All of lore.kernel.org
 help / color / mirror / Atom feed
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]  b4808c4275: kernel_BUG_at_lib/dynamic_debug.c
Date: Tue, 31 Oct 2023 10:55:14 +0800	[thread overview]
Message-ID: <202310311053.912f184-oliver.sang@intel.com> (raw)



Hello,

kernel test robot noticed "kernel_BUG_at_lib/dynamic_debug.c" on:

commit: b4808c42751b0750080b2c52c0cabf6fd5e41328 ("dyndbg: add 2nd cursor pair to init-fn")
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)


+--------------------------------------------------------------+------------+------------+
|                                                              | 735f754af2 | b4808c4275 |
+--------------------------------------------------------------+------------+------------+
| kernel_BUG_at_lib/dynamic_debug.c                            | 0          | 7          |
| invalid_opcode:#[##]                                         | 0          | 7          |
| EIP:dynamic_debug_init                                       | 0          | 7          |
| Kernel_panic-not_syncing:Fatal_exception                     | 0          | 7          |
+--------------------------------------------------------------+------------+------------+


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/202310311053.912f184-oliver.sang@intel.com


[    1.813094][    T1] ------------[ cut here ]------------
[    1.815005][    T1] kernel BUG at lib/dynamic_debug.c:1516!
[    1.816770][    T1] invalid opcode: 0000 [#1] PREEMPT
[    1.818415][    T1] CPU: 0 PID: 1 Comm: swapper Not tainted 6.6.0-rc7-00027-gb4808c42751b #1
[    1.818493][    T1] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.16.2-debian-1.16.2-1 04/01/2014
[ 1.818493][ T1] EIP: dynamic_debug_init (lib/dynamic_debug.c:1516 (discriminator 1)) 
[ 1.818493][ T1] Code: b8 3b 46 1e c2 6a 00 6a 00 6a 00 6a 00 e8 00 e3 63 fe 89 f0 e8 89 93 7e fe 83 c4 14 81 eb 3f 7e 98 52 e9 2c ff ff ff 8d 76 00 <0f> 0b b8 4c 0f 88 c2 e8 b0 98 ad fe 8d 74 26 00 68 0c 42 1e c2 c1
All code
========
   0:	b8 3b 46 1e c2       	mov    $0xc21e463b,%eax
   5:	6a 00                	push   $0x0
   7:	6a 00                	push   $0x0
   9:	6a 00                	push   $0x0
   b:	6a 00                	push   $0x0
   d:	e8 00 e3 63 fe       	call   0xfffffffffe63e312
  12:	89 f0                	mov    %esi,%eax
  14:	e8 89 93 7e fe       	call   0xfffffffffe7e93a2
  19:	83 c4 14             	add    $0x14,%esp
  1c:	81 eb 3f 7e 98 52    	sub    $0x52987e3f,%ebx
  22:	e9 2c ff ff ff       	jmp    0xffffffffffffff53
  27:	8d 76 00             	lea    0x0(%rsi),%esi
  2a:*	0f 0b                	ud2		<-- trapping instruction
  2c:	b8 4c 0f 88 c2       	mov    $0xc2880f4c,%eax
  31:	e8 b0 98 ad fe       	call   0xfffffffffead98e6
  36:	8d 74 26 00          	lea    0x0(%rsi,%riz,1),%esi
  3a:	68 0c 42 1e c2       	push   $0xffffffffc21e420c
  3f:	c1                   	.byte 0xc1

Code starting with the faulting instruction
===========================================
   0:	0f 0b                	ud2
   2:	b8 4c 0f 88 c2       	mov    $0xc2880f4c,%eax
   7:	e8 b0 98 ad fe       	call   0xfffffffffead98bc
   c:	8d 74 26 00          	lea    0x0(%rsi,%riz,1),%esi
  10:	68 0c 42 1e c2       	push   $0xffffffffc21e420c
  15:	c1                   	.byte 0xc1
[    1.818493][    T1] EAX: 000018c9 EBX: b9ad402b ECX: 00000000 EDX: 00001297
[    1.818493][    T1] ESI: c2a3c074 EDI: 00000000 EBP: c392df14 ESP: c392dec8
[    1.818493][    T1] DS: 007b ES: 007b FS: 0000 GS: 0000 SS: 0068 EFLAGS: 00010293
[    1.818493][    T1] CR0: 80050033 CR2: ffdd8000 CR3: 02aeb000 CR4: 00040690
[    1.818493][    T1] Call Trace:
[ 1.818493][ T1] ? show_regs (arch/x86/kernel/dumpstack.c:478) 
[ 1.818493][ T1] ? die (arch/x86/kernel/dumpstack.c:421 arch/x86/kernel/dumpstack.c:434 arch/x86/kernel/dumpstack.c:447) 
[ 1.818493][ T1] ? do_trap (arch/x86/kernel/traps.c:112 arch/x86/kernel/traps.c:153) 
[ 1.818493][ T1] ? do_error_trap (arch/x86/include/asm/traps.h:59 arch/x86/kernel/traps.c:174) 
[ 1.818493][ T1] ? dynamic_debug_init (lib/dynamic_debug.c:1516 (discriminator 1)) 
[ 1.818493][ T1] ? exc_overflow (arch/x86/kernel/traps.c:250) 
[ 1.818493][ T1] ? exc_invalid_op (arch/x86/kernel/traps.c:265) 
[ 1.818493][ T1] ? dynamic_debug_init (lib/dynamic_debug.c:1516 (discriminator 1)) 
[ 1.818493][ T1] ? dynamic_debug_init_control (lib/dynamic_debug.c:1499) 
[ 1.818493][ T1] ? handle_exception (arch/x86/entry/entry_32.S:1056) 
[ 1.818493][ T1] ? dynamic_debug_init_control (lib/dynamic_debug.c:1499) 
[ 1.818493][ T1] ? exc_overflow (arch/x86/kernel/traps.c:250) 
[ 1.818493][ T1] ? dynamic_debug_init (lib/dynamic_debug.c:1516 (discriminator 1)) 
[ 1.818493][ T1] ? exc_overflow (arch/x86/kernel/traps.c:250) 
[ 1.818493][ T1] ? dynamic_debug_init (lib/dynamic_debug.c:1516 (discriminator 1)) 
[ 1.818493][ T1] ? dynamic_debug_init_control (lib/dynamic_debug.c:1499) 
[ 1.818493][ T1] do_one_initcall (init/main.c:1232) 
[ 1.818493][ T1] kernel_init_freeable (init/main.c:1337 init/main.c:1537) 
[ 1.818493][ T1] ? rest_init (init/main.c:1429) 
[ 1.818493][ T1] kernel_init (init/main.c:1439) 
[ 1.818493][ T1] ret_from_fork (arch/x86/kernel/process.c:153) 
[ 1.818493][ T1] ? rest_init (init/main.c:1429) 
[ 1.818493][ T1] ret_from_fork_asm (arch/x86/entry/entry_32.S:741) 
[ 1.818493][ T1] entry_INT80_32 (arch/x86/entry/entry_32.S:947) 
[    1.818493][    T1] Modules linked in:
[    1.818510][    T1] ---[ end trace 0000000000000000 ]---
[ 1.820150][ T1] EIP: dynamic_debug_init (lib/dynamic_debug.c:1516 (discriminator 1)) 
[ 1.822506][ T1] Code: b8 3b 46 1e c2 6a 00 6a 00 6a 00 6a 00 e8 00 e3 63 fe 89 f0 e8 89 93 7e fe 83 c4 14 81 eb 3f 7e 98 52 e9 2c ff ff ff 8d 76 00 <0f> 0b b8 4c 0f 88 c2 e8 b0 98 ad fe 8d 74 26 00 68 0c 42 1e c2 c1
All code
========
   0:	b8 3b 46 1e c2       	mov    $0xc21e463b,%eax
   5:	6a 00                	push   $0x0
   7:	6a 00                	push   $0x0
   9:	6a 00                	push   $0x0
   b:	6a 00                	push   $0x0
   d:	e8 00 e3 63 fe       	call   0xfffffffffe63e312
  12:	89 f0                	mov    %esi,%eax
  14:	e8 89 93 7e fe       	call   0xfffffffffe7e93a2
  19:	83 c4 14             	add    $0x14,%esp
  1c:	81 eb 3f 7e 98 52    	sub    $0x52987e3f,%ebx
  22:	e9 2c ff ff ff       	jmp    0xffffffffffffff53
  27:	8d 76 00             	lea    0x0(%rsi),%esi
  2a:*	0f 0b                	ud2		<-- trapping instruction
  2c:	b8 4c 0f 88 c2       	mov    $0xc2880f4c,%eax
  31:	e8 b0 98 ad fe       	call   0xfffffffffead98e6
  36:	8d 74 26 00          	lea    0x0(%rsi,%riz,1),%esi
  3a:	68 0c 42 1e c2       	push   $0xffffffffc21e420c
  3f:	c1                   	.byte 0xc1

Code starting with the faulting instruction
===========================================
   0:	0f 0b                	ud2
   2:	b8 4c 0f 88 c2       	mov    $0xc2880f4c,%eax
   7:	e8 b0 98 ad fe       	call   0xfffffffffead98bc
   c:	8d 74 26 00          	lea    0x0(%rsi,%riz,1),%esi
  10:	68 0c 42 1e c2       	push   $0xffffffffc21e420c
  15:	c1                   	.byte 0xc1


The kernel config and materials to reproduce are available at:
https://download.01.org/0day-ci/archive/20231031/202310311053.912f184-oliver.sang@intel.com



-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki


                 reply	other threads:[~2023-10-31  2:55 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=202310311053.912f184-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.