From: kernel test robot <oliver.sang@intel.com>
To: Jim Cromie <jim.cromie@gmail.com>
Cc: <oe-lkp@lists.linux.dev>, <lkp@intel.com>, <oliver.sang@intel.com>
Subject: [jimc:dd-kitchen-sink] [dyndbg] 4800de5cd5: BUG:kernel_NULL_pointer_dereference,address
Date: Mon, 9 Oct 2023 14:15:58 +0800 [thread overview]
Message-ID: <202310090909.cb63dd5e-oliver.sang@intel.com> (raw)
Hello,
kernel test robot noticed "BUG:kernel_NULL_pointer_dereference,address" on:
commit: 4800de5cd505a9ec00f61a9c0d44ebef79d156e8 ("dyndbg: drop _ddebug.site member")
https://github.com/jimc/linux.git dd-kitchen-sink
in testcase: boot
compiler: gcc-12
test machine: qemu-system-x86_64 -enable-kvm -cpu SandyBridge -smp 2 -m 16G
(please refer to attached dmesg/kmsg for entire log/backtrace)
If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <oliver.sang@intel.com>
| Closes: https://lore.kernel.org/oe-lkp/202310090909.cb63dd5e-oliver.sang@intel.com
[ 41.276917][ T1] signal: max sigframe size: 1760
[ 41.277486][ T1] rcu: Hierarchical SRCU implementation.
[ 41.278185][ T1] rcu: Max phase no-delay instances is 1000.
[ 41.280772][ T1] dyndbg: di.num_sites:19313 != di.num_descs:14485
[ 41.281332][ T1] BUG: kernel NULL pointer dereference, address: 00000000
[ 41.282179][ T1] #PF: supervisor read access in kernel mode
[ 41.282886][ T1] #PF: error_code(0x0000) - not-present page
[ 41.283602][ T1] *pde = 00000000
[ 41.284063][ T1] Oops: 0000 [#1] PREEMPT SMP
[ 41.284649][ T1] CPU: 0 PID: 1 Comm: swapper/0 Not tainted 6.6.0-rc3-00035-g4800de5cd505 #1 f8475d0cc4ef27da86708ed4446a0eaec1ab739e
[ 41.285183][ T1] EIP: strcmp (arch/x86/lib/string_32.c:100)
[ 41.285183][ T1] Code: 8b 75 f8 89 d8 8b 5d f4 8b 7d fc 89 ec 5d 31 d2 31 c9 e9 de bf 04 00 66 90 55 89 e5 83 ec 08 89 75 f8 89 c6 89 7d fc 89 d7 ac <ae> 75 08 84 c0 75 f8 31 c0 eb 04 19 c0 0c 01 8b 75 f8 8b 7d fc 89
All code
========
0: 8b 75 f8 mov -0x8(%rbp),%esi
3: 89 d8 mov %ebx,%eax
5: 8b 5d f4 mov -0xc(%rbp),%ebx
8: 8b 7d fc mov -0x4(%rbp),%edi
b: 89 ec mov %ebp,%esp
d: 5d pop %rbp
e: 31 d2 xor %edx,%edx
10: 31 c9 xor %ecx,%ecx
12: e9 de bf 04 00 jmp 0x4bff5
17: 66 90 xchg %ax,%ax
19: 55 push %rbp
1a: 89 e5 mov %esp,%ebp
1c: 83 ec 08 sub $0x8,%esp
1f: 89 75 f8 mov %esi,-0x8(%rbp)
22: 89 c6 mov %eax,%esi
24: 89 7d fc mov %edi,-0x4(%rbp)
27: 89 d7 mov %edx,%edi
29: ac lods %ds:(%rsi),%al
2a:* ae scas %es:(%rdi),%al <-- trapping instruction
2b: 75 08 jne 0x35
2d: 84 c0 test %al,%al
2f: 75 f8 jne 0x29
31: 31 c0 xor %eax,%eax
33: eb 04 jmp 0x39
35: 19 c0 sbb %eax,%eax
37: 0c 01 or $0x1,%al
39: 8b 75 f8 mov -0x8(%rbp),%esi
3c: 8b 7d fc mov -0x4(%rbp),%edi
3f: 89 .byte 0x89
Code starting with the faulting instruction
===========================================
0: ae scas %es:(%rdi),%al
1: 75 08 jne 0xb
3: 84 c0 test %al,%al
5: 75 f8 jne 0xffffffffffffffff
7: 31 c0 xor %eax,%eax
9: eb 04 jmp 0xf
b: 19 c0 sbb %eax,%eax
d: 0c 01 or $0x1,%al
f: 8b 75 f8 mov -0x8(%rbp),%esi
12: 8b 7d fc mov -0x4(%rbp),%edi
15: 89 .byte 0x89
[ 41.285183][ T1] EAX: d1ad926d EBX: d2297504 ECX: 00000000 EDX: 00000000
[ 41.285183][ T1] ESI: d1ad92f2 EDI: 00000000 EBP: c0287e8c ESP: c0287e84
[ 41.285183][ T1] DS: 007b ES: 007b FS: 00d8 GS: 0000 SS: 0068 EFLAGS: 00010286
[ 41.285183][ T1] CR0: 80050033 CR2: 00000000 CR3: 125a9000 CR4: 00040690
[ 41.285183][ T1] DR0: 00000000 DR1: 00000000 DR2: 00000000 DR3: 00000000
[ 41.285183][ T1] DR6: fffe0ff0 DR7: 00000400
[ 41.285183][ T1] Call Trace:
[ 41.285183][ T1] ? show_regs (arch/x86/kernel/dumpstack.c:479)
[ 41.285183][ T1] ? __die (arch/x86/kernel/dumpstack.c:421 arch/x86/kernel/dumpstack.c:434)
[ 41.285183][ T1] ? oops_enter (kernel/panic.c:567 kernel/panic.c:625)
[ 41.285183][ T1] ? page_fault_oops (arch/x86/mm/fault.c:707)
[ 41.285183][ T1] ? kernelmode_fixup_or_oops+0xa0/0x108
[ 41.285183][ T1] ? __bad_area_nosemaphore+0x147/0x278
[ 41.285183][ T1] ? bad_area_nosemaphore (arch/x86/mm/fault.c:867)
[ 41.285183][ T1] ? do_user_addr_fault (arch/x86/mm/fault.c:1476)
[ 41.285183][ T1] ? rcu_is_watching (kernel/rcu/tree.c:702 (discriminator 1))
[ 41.285183][ T1] ? exc_page_fault (arch/x86/include/asm/irqflags.h:26 arch/x86/include/asm/irqflags.h:67 arch/x86/include/asm/irqflags.h:127 arch/x86/mm/fault.c:1513 arch/x86/mm/fault.c:1561)
[ 41.285183][ T1] ? pvclock_clocksource_read_nowd (arch/x86/mm/fault.c:1518)
[ 41.285183][ T1] ? handle_exception (arch/x86/entry/entry_32.S:1049)
[ 41.285183][ T1] ? pvclock_clocksource_read_nowd (arch/x86/mm/fault.c:1518)
[ 41.285183][ T1] ? strcmp (arch/x86/lib/string_32.c:100)
[ 41.285183][ T1] ? pvclock_clocksource_read_nowd (arch/x86/mm/fault.c:1518)
[ 41.285183][ T1] ? strcmp (arch/x86/lib/string_32.c:100)
[ 41.285183][ T1] dynamic_debug_init (lib/dynamic_debug.c:1698)
[ 41.285183][ T1] ? dynamic_debug_init_control (lib/dynamic_debug.c:1666)
[ 41.285183][ T1] ? rest_init (init/main.c:1429)
[ 41.285183][ T1] do_one_initcall (init/main.c:1232)
[ 41.285183][ T1] ? call_rcu_tasks_generic (include/linux/rcupdate.h:780 kernel/rcu/tasks.h:377)
[ 41.285183][ T1] ? rest_init (init/main.c:1429)
[ 41.285183][ T1] kernel_init_freeable (init/main.c:1337 init/main.c:1537)
[ 41.285183][ T1] kernel_init (init/main.c:1439)
[ 41.285183][ T1] ? schedule_tail (kernel/sched/core.c:5318)
[ 41.285183][ T1] ret_from_fork (arch/x86/kernel/process.c:153)
[ 41.285183][ T1] ? rest_init (init/main.c:1429)
[ 41.285183][ T1] ret_from_fork_asm (arch/x86/entry/entry_32.S:741)
[ 41.285183][ T1] entry_INT80_32 (arch/x86/entry/entry_32.S:947)
[ 41.285183][ T1] Modules linked in:
[ 41.285183][ T1] CR2: 0000000000000000
[ 41.285183][ T1] ---[ end trace 0000000000000000 ]---
[ 41.285183][ T1] EIP: strcmp (arch/x86/lib/string_32.c:100)
[ 41.285183][ T1] Code: 8b 75 f8 89 d8 8b 5d f4 8b 7d fc 89 ec 5d 31 d2 31 c9 e9 de bf 04 00 66 90 55 89 e5 83 ec 08 89 75 f8 89 c6 89 7d fc 89 d7 ac <ae> 75 08 84 c0 75 f8 31 c0 eb 04 19 c0 0c 01 8b 75 f8 8b 7d fc 89
All code
========
0: 8b 75 f8 mov -0x8(%rbp),%esi
3: 89 d8 mov %ebx,%eax
5: 8b 5d f4 mov -0xc(%rbp),%ebx
8: 8b 7d fc mov -0x4(%rbp),%edi
b: 89 ec mov %ebp,%esp
d: 5d pop %rbp
e: 31 d2 xor %edx,%edx
10: 31 c9 xor %ecx,%ecx
12: e9 de bf 04 00 jmp 0x4bff5
17: 66 90 xchg %ax,%ax
19: 55 push %rbp
1a: 89 e5 mov %esp,%ebp
1c: 83 ec 08 sub $0x8,%esp
1f: 89 75 f8 mov %esi,-0x8(%rbp)
22: 89 c6 mov %eax,%esi
24: 89 7d fc mov %edi,-0x4(%rbp)
27: 89 d7 mov %edx,%edi
29: ac lods %ds:(%rsi),%al
2a:* ae scas %es:(%rdi),%al <-- trapping instruction
2b: 75 08 jne 0x35
2d: 84 c0 test %al,%al
2f: 75 f8 jne 0x29
31: 31 c0 xor %eax,%eax
33: eb 04 jmp 0x39
35: 19 c0 sbb %eax,%eax
37: 0c 01 or $0x1,%al
39: 8b 75 f8 mov -0x8(%rbp),%esi
3c: 8b 7d fc mov -0x4(%rbp),%edi
3f: 89 .byte 0x89
Code starting with the faulting instruction
===========================================
0: ae scas %es:(%rdi),%al
1: 75 08 jne 0xb
3: 84 c0 test %al,%al
5: 75 f8 jne 0xffffffffffffffff
7: 31 c0 xor %eax,%eax
9: eb 04 jmp 0xf
b: 19 c0 sbb %eax,%eax
d: 0c 01 or $0x1,%al
f: 8b 75 f8 mov -0x8(%rbp),%esi
12: 8b 7d fc mov -0x4(%rbp),%edi
15: 89 .byte 0x89
we also observed parent crash at the same position like below:
[ 1.513152][ T1] signal: max sigframe size: 1760
[ 1.514116][ T1] rcu: Hierarchical SRCU implementation.
[ 1.514840][ T1] rcu: Max phase no-delay instances is 1000.
[ 1.517930][ T1] ------------[ cut here ]------------
[ 1.518640][ T1] kernel BUG at lib/dynamic_debug.c:1670!
[ 1.519453][ T1] invalid opcode: 0000 [#1] PREEMPT SMP
[ 1.520200][ T1] CPU: 0 PID: 1 Comm: swapper/0 Not tainted 6.6.0-rc3-00034-g865080844494 #1 cb7bf5f3075e829952fe3d71614b0ccb0a823c5f
[ 1.521100][ T1] EIP: dynamic_debug_init+0x2e0/0x330
[ 1.521100][ T1] Code: ff e9 da fe ff ff 8d 74 26 00 c7 04 24 d4 86 8d cd e8 50 e0 b9 fc 8b 45 b8 83 c4 54 5b 5e 5f 5d 31 d2 31 c9 e9 e5 de 6a fe 90 <0f>
0b b8 80 64 ff cd e8 f0 ae 1c fd c7 04 24 10 87 8d cd e8 24 e0
[ 1.521100][ T1] EAX: 555594bd EBX: ce375a60 ECX: 0000000b EDX: 00002f8e
[ 1.521100][ T1] ESI: cca11134 EDI: 00000003 EBP: c0287ef4 ESP: c0287e94
[ 1.521100][ T1] DS: 007b ES: 007b FS: 00d8 GS: 0000 SS: 0068 EFLAGS: 00010287
[ 1.521100][ T1] CR0: 80050033 CR2: ffd38000 CR3: 0e589000 CR4: 00040690
[ 1.521100][ T1] DR0: 00000000 DR1: 00000000 DR2: 00000000 DR3: 00000000
[ 1.521100][ T1] DR6: fffe0ff0 DR7: 00000400
[ 1.521100][ T1] Call Trace:
[ 1.521100][ T1] ? show_regs+0x82/0x94
[ 1.521100][ T1] ? die+0x2f/0x9c
[ 1.521100][ T1] ? atomic_notifier_call_chain+0x7f/0x114
[ 1.521100][ T1] ? do_trap+0x95/0x124
[ 1.521100][ T1] ? do_error_trap+0x6c/0x108
[ 1.521100][ T1] ? dynamic_debug_init+0x2e0/0x330
[ 1.521100][ T1] ? rest_init+0x184/0x184
[ 1.521100][ T1] ? exc_overflow+0x5c/0x5c
[ 1.521100][ T1] ? exc_invalid_op+0x68/0x84
[ 1.521100][ T1] ? dynamic_debug_init+0x2e0/0x330
[ 1.521100][ T1] ? dynamic_debug_init_control+0x94/0x94
[ 1.521100][ T1] ? handle_exception+0x11e/0x11e
[ 1.521100][ T1] ? dynamic_debug_init_control+0x94/0x94
[ 1.521100][ T1] ? rest_init+0x184/0x184
[ 1.521100][ T1] ? exc_overflow+0x5c/0x5c
[ 1.521100][ T1] ? dynamic_debug_init+0x2e0/0x330
[ 1.521100][ T1] ? exc_overflow+0x5c/0x5c
[ 1.521100][ T1] ? dynamic_debug_init+0x2e0/0x330
[ 1.521100][ T1] ? dynamic_debug_init_control+0x94/0x94
[ 1.521100][ T1] ? rest_init+0x184/0x184
[ 1.521100][ T1] do_one_initcall+0x69/0x3a4
[ 1.521100][ T1] ? call_rcu_tasks_generic+0x199/0x3d8
[ 1.521100][ T1] ? rest_init+0x184/0x184
[ 1.521100][ T1] kernel_init_freeable+0x9c/0x1c0
[ 1.521100][ T1] kernel_init+0x15/0x1dc
[ 1.521100][ T1] ? schedule_tail+0x50/0x6c
[ 1.521100][ T1] ret_from_fork+0x40/0x4c
[ 1.521100][ T1] ? rest_init+0x184/0x184
[ 1.521100][ T1] ret_from_fork_asm+0x12/0x1c
[ 1.521100][ T1] entry_INT80_32+0x10d/0x10d
[ 1.521100][ T1] Modules linked in:
[ 1.521139][ T1] ---[ end trace 0000000000000000 ]---
[ 1.521830][ T1] EIP: dynamic_debug_init+0x2e0/0x330
[ 1.522518][ T1] Code: ff e9 da fe ff ff 8d 74 26 00 c7 04 24 d4 86 8d cd e8 50 e0 b9 fc 8b 45 b8 83 c4 54 5b 5e 5f 5d 31 d2 31 c9 e9 e5 de 6a fe 90 <0f>
0b b8 80 64 ff cd e8 f0 ae 1c fd c7 04 24 10 87 8d cd e8 24 e0
[ 1.525078][ T1] EAX: 555594bd EBX: ce375a60 ECX: 0000000b EDX: 00002f8e
[ 1.525115][ T1] ESI: cca11134 EDI: 00000003 EBP: c0287ef4 ESP: c0287e94
[ 1.526091][ T1] DS: 007b ES: 007b FS: 00d8 GS: 0000 SS: 0068 EFLAGS: 00010287
[ 1.527087][ T1] CR0: 80050033 CR2: ffd38000 CR3: 0e589000 CR4: 00040690
[ 1.527984][ T1] DR0: 00000000 DR1: 00000000 DR2: 00000000 DR3: 00000000
[ 1.528930][ T1] DR6: fffe0ff0 DR7: 00000400
[ 1.529104][ T1] Kernel panic - not syncing: Fatal exception
FYI.
The kernel config and materials to reproduce are available at:
https://download.01.org/0day-ci/archive/20231009/202310090909.cb63dd5e-oliver.sang@intel.com
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
reply other threads:[~2023-10-09 6:16 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=202310090909.cb63dd5e-oliver.sang@intel.com \
--to=oliver.sang@intel.com \
--cc=jim.cromie@gmail.com \
--cc=lkp@intel.com \
--cc=oe-lkp@lists.linux.dev \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.