All of lore.kernel.org
 help / color / mirror / Atom feed
* [jimc:dd-fix-5g] [dyndbg]  6c815b1b62: canonical_address#:#[##]
@ 2023-09-11  6:37 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2023-09-11  6:37 UTC (permalink / raw)
  To: Jim Cromie; +Cc: oe-lkp, lkp, oliver.sang



Hello,

kernel test robot noticed "canonical_address#:#[##]" on:

commit: 6c815b1b62257b8e71192ae19276461928a7746d ("dyndbg: add for_each_boxed_vector")
https://github.com/jimc/linux.git dd-fix-5g

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)


+---------------------------------------------------------+------------+------------+
|                                                         | c6e33415a9 | 6c815b1b62 |
+---------------------------------------------------------+------------+------------+
| canonical_address#:#[##]                                | 0          | 14         |
| RIP:ddebug_apply_params                                 | 0          | 14         |
| Kernel_panic-not_syncing:Fatal_exception                | 0          | 14         |
+---------------------------------------------------------+------------+------------+


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/202309111435.deacfb92-oliver.sang@intel.com


[    5.164978][    T1] ------------[ cut here ]------------
[ 5.166015][ T1] WARNING: CPU: 0 PID: 1 at lib/dynamic_debug.c:1257 ddebug_add_module (lib/dynamic_debug.c:1257 lib/dynamic_debug.c:1316) 
[    5.166687][    T1] Modules linked in:
[    5.167451][    T1] CPU: 0 PID: 1 Comm: swapper Not tainted 6.5.0-00015-g6c815b1b6225 #1 cd2200472f193696f75b814e47a4c91c568f9ba9
[    5.170077][    T1] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.16.2-debian-1.16.2-1 04/01/2014
[ 5.171858][ T1] RIP: 0010:ddebug_add_module (lib/dynamic_debug.c:1257 lib/dynamic_debug.c:1316) 
[ 5.173165][ T1] Code: 0f b6 04 28 84 c0 74 08 3c 03 0f 8e 6f 06 00 00 48 8b 44 24 20 8b 50 20 41 39 d6 0f 83 f6 00 00 00 4d 85 e4 0f 85 48 ff ff ff <0f> 0b eb c0 48 8b 44 24 30 80 38 00 0f 85 41 08 00 00 4c 89 63 28
All code
========
   0:	0f b6 04 28          	movzbl (%rax,%rbp,1),%eax
   4:	84 c0                	test   %al,%al
   6:	74 08                	je     0x10
   8:	3c 03                	cmp    $0x3,%al
   a:	0f 8e 6f 06 00 00    	jle    0x67f
  10:	48 8b 44 24 20       	mov    0x20(%rsp),%rax
  15:	8b 50 20             	mov    0x20(%rax),%edx
  18:	41 39 d6             	cmp    %edx,%r14d
  1b:	0f 83 f6 00 00 00    	jae    0x117
  21:	4d 85 e4             	test   %r12,%r12
  24:	0f 85 48 ff ff ff    	jne    0xffffffffffffff72
  2a:*	0f 0b                	ud2    		<-- trapping instruction
  2c:	eb c0                	jmp    0xffffffffffffffee
  2e:	48 8b 44 24 30       	mov    0x30(%rsp),%rax
  33:	80 38 00             	cmpb   $0x0,(%rax)
  36:	0f 85 41 08 00 00    	jne    0x87d
  3c:	4c 89 63 28          	mov    %r12,0x28(%rbx)

Code starting with the faulting instruction
===========================================
   0:	0f 0b                	ud2    
   2:	eb c0                	jmp    0xffffffffffffffc4
   4:	48 8b 44 24 30       	mov    0x30(%rsp),%rax
   9:	80 38 00             	cmpb   $0x0,(%rax)
   c:	0f 85 41 08 00 00    	jne    0x853
  12:	4c 89 63 28          	mov    %r12,0x28(%rbx)
[    5.176173][    T1] RSP: 0000:ffff8881108c7ca0 EFLAGS: 00010246
[    5.177276][    T1] RAX: 1ffffffff1716087 RBX: ffff888110a31400 RCX: 1ffff11022118fb4
[    5.178722][    T1] RDX: 1ffff11022146285 RSI: 0000000000000002 RDI: ffffffff8b8b0440
[    5.179968][    T1] RBP: ffffffff8788d260 R08: 0000000000000000 R09: ffffed1022118f67
[    5.181399][    T1] R10: ffff888110a31428 R11: ffffffff8a11cb20 R12: ffffffff8b8b0438
[    5.183291][    T1] R13: dffffc0000000000 R14: 0000000000000000 R15: 0000000000000000
[    5.184763][    T1] FS:  0000000000000000(0000) GS:ffffffff8953c000(0000) knlGS:0000000000000000
[    5.186674][    T1] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[    5.187832][    T1] CR2: ffff88843ffff000 CR3: 000000000950c000 CR4: 00000000000406f0
[    5.189264][    T1] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
[    5.189960][    T1] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
[    5.191407][    T1] Call Trace:
[    5.192840][    T1]  <TASK>
[ 5.193452][ T1] ? __warn (kernel/panic.c:673) 
[ 5.194246][ T1] ? ddebug_add_module (lib/dynamic_debug.c:1257 lib/dynamic_debug.c:1316) 
[ 5.195192][ T1] ? report_bug (lib/bug.c:180 lib/bug.c:219) 
[ 5.196177][ T1] ? handle_bug (arch/x86/kernel/traps.c:324) 
[ 5.196990][ T1] ? exc_invalid_op (arch/x86/kernel/traps.c:345 (discriminator 1)) 
[ 5.197885][ T1] ? asm_exc_invalid_op (arch/x86/include/asm/idtentry.h:568) 
[ 5.198831][ T1] ? ddebug_add_module (lib/dynamic_debug.c:1257 lib/dynamic_debug.c:1316) 
[ 5.199834][ T1] dynamic_debug_init (lib/dynamic_debug.c:1502) 
[ 5.200759][ T1] ? dynamic_debug_init_control (lib/dynamic_debug.c:1458) 
[ 5.201798][ T1] ? rng_is_initialized (drivers/char/random.c:918) 
[ 5.202845][ T1] ? dynamic_debug_init_control (lib/dynamic_debug.c:1458) 
[ 5.203895][ T1] do_one_initcall (init/main.c:1232) 
[ 5.204784][ T1] ? trace_event_raw_event_initcall_level (init/main.c:1223) 
[ 5.206005][ T1] ? native_apic_msr_write (arch/x86/include/asm/atomic.h:23 include/linux/atomic/atomic-arch-fallback.h:444 include/linux/jump_label.h:260 include/linux/jump_label.h:270 arch/x86/include/asm/msr.h:147 arch/x86/include/asm/msr.h:254 arch/x86/include/asm/apic.h:207 arch/x86/include/asm/apic.h:201) 
[ 5.206485][ T1] ? arch_irq_work_raise (arch/x86/include/asm/apic.h:414 arch/x86/kernel/irq_work.c:32) 
[ 5.209511][ T1] kernel_init_freeable (init/main.c:1337 init/main.c:1537) 
[ 5.210455][ T1] ? rest_init (init/main.c:1429) 
[ 5.213131][ T1] kernel_init (init/main.c:1439) 
[ 5.213980][ T1] ? _raw_spin_unlock_irq (arch/x86/include/asm/irqflags.h:42 arch/x86/include/asm/irqflags.h:77 include/linux/spinlock_api_smp.h:159 kernel/locking/spinlock.c:202) 
[ 5.214979][ T1] ret_from_fork (arch/x86/kernel/process.c:151) 
[ 5.216172][ T1] ? rest_init (init/main.c:1429) 
[ 5.217041][ T1] ret_from_fork_asm (arch/x86/entry/entry_64.S:312) 
[    5.217993][    T1]  </TASK>
[    5.218623][    T1] irq event stamp: 2571
[ 5.219504][ T1] hardirqs last enabled at (2583): __up_console_sem (arch/x86/include/asm/irqflags.h:26 (discriminator 1) arch/x86/include/asm/irqflags.h:67 (discriminator 1) arch/x86/include/asm/irqflags.h:127 (discriminator 1) kernel/printk/printk.c:347 (discriminator 1)) 
[ 5.221156][ T1] hardirqs last disabled at (2592): __up_console_sem (kernel/printk/printk.c:345 (discriminator 1)) 
[ 5.222719][ T1] softirqs last enabled at (1378): __do_softirq (arch/x86/include/asm/preempt.h:27 kernel/softirq.c:400 kernel/softirq.c:582) 
[ 5.224385][ T1] softirqs last disabled at (1369): irq_exit_rcu (kernel/softirq.c:642) 
[    5.225899][    T1] ---[ end trace 0000000000000000 ]---
[    5.226487][    T1] general protection fault, probably for non-canonical address 0xedcf288bee8e6ce1: 0000 [#1] KASAN PTI
[    5.228235][    T1] KASAN: maybe wild-memory-access in range [0x6e79645f74736708-0x6e79645f7473670f]
[    5.229499][    T1] CPU: 0 PID: 1 Comm: swapper Tainted: G        W          6.5.0-00015-g6c815b1b6225 #1 cd2200472f193696f75b814e47a4c91c568f9ba9
[    5.229499][    T1] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.16.2-debian-1.16.2-1 04/01/2014
[ 5.229499][ T1] RIP: 0010:ddebug_apply_params (lib/dynamic_debug.c:1201) 
[ 5.229499][ T1] Code: 48 85 ed 0f 84 ad 02 00 00 83 f8 01 0f 8f 1e 01 00 00 48 8d bd 98 01 00 00 48 b8 00 00 00 00 00 fc ff df 48 89 fa 48 c1 ea 03 <80> 3c 02 00 0f 85 8e 05 00 00 48 8d bd a0 01 00 00 48 8b 9d 98 01
All code
========
   0:	48 85 ed             	test   %rbp,%rbp
   3:	0f 84 ad 02 00 00    	je     0x2b6
   9:	83 f8 01             	cmp    $0x1,%eax
   c:	0f 8f 1e 01 00 00    	jg     0x130
  12:	48 8d bd 98 01 00 00 	lea    0x198(%rbp),%rdi
  19:	48 b8 00 00 00 00 00 	movabs $0xdffffc0000000000,%rax
  20:	fc ff df 
  23:	48 89 fa             	mov    %rdi,%rdx
  26:	48 c1 ea 03          	shr    $0x3,%rdx
  2a:*	80 3c 02 00          	cmpb   $0x0,(%rdx,%rax,1)		<-- trapping instruction
  2e:	0f 85 8e 05 00 00    	jne    0x5c2
  34:	48 8d bd a0 01 00 00 	lea    0x1a0(%rbp),%rdi
  3b:	48                   	rex.W
  3c:	8b                   	.byte 0x8b
  3d:	9d                   	popfq  
  3e:	98                   	cwtl   
  3f:	01                   	.byte 0x1

Code starting with the faulting instruction
===========================================
   0:	80 3c 02 00          	cmpb   $0x0,(%rdx,%rax,1)
   4:	0f 85 8e 05 00 00    	jne    0x598
   a:	48 8d bd a0 01 00 00 	lea    0x1a0(%rbp),%rdi
  11:	48                   	rex.W
  12:	8b                   	.byte 0x8b
  13:	9d                   	popfq  
  14:	98                   	cwtl   
  15:	01                   	.byte 0x1


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



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


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2023-09-11  6:38 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-09-11  6:37 [jimc:dd-fix-5g] [dyndbg] 6c815b1b62: canonical_address#:#[##] kernel test robot

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.