lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202308301532.d7acf63e-oliver.sang@intel.com>
Date:   Wed, 30 Aug 2023 15:17:56 +0800
From:   kernel test robot <oliver.sang@...el.com>
To:     Josh Poimboeuf <jpoimboe@...nel.org>
CC:     <oe-lkp@...ts.linux.dev>, <lkp@...el.com>,
        <linux-kernel@...r.kernel.org>, <oliver.sang@...el.com>
Subject: [linus:master] [objtool]  6342a20efb:
 WARNING:at_arch/x86/kernel/alternative.c:#__apply_fineibt



Hello,

kernel test robot noticed "WARNING:at_arch/x86/kernel/alternative.c:#__apply_fineibt" on:

commit: 6342a20efbd8b70d169c325b2c27a8a8f96388d5 ("objtool: Add elf_create_section_pair()")
https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git master

[test failed on linus/master 7d2f353b2682dcfe5f9bc71e5b61d5b61770d98e]
[test failed on linux-next/master 6269320850097903b30be8f07a5c61d9f7592393]

in testcase: boot

compiler: clang-16
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@...el.com>
| Closes: https://lore.kernel.org/oe-lkp/202308301532.d7acf63e-oliver.sang@intel.com



[    1.953072][    T0] ------------[ cut here ]------------
[ 1.953439][ T0] no CFI hash found at: __call_sites+0x2bedc/0x2cbd0 ffffffffb2e29344 00 00 00 00 00 
[ 1.955319][ T0] WARNING: CPU: 0 PID: 0 at arch/x86/kernel/alternative.c:912 __apply_fineibt (arch/x86/kernel/alternative.c:911 arch/x86/kernel/alternative.c:1012) 
[    1.957432][    T0] Modules linked in:
[    1.958156][    T0] CPU: 0 PID: 0 Comm: swapper/0 Tainted: G                T  6.4.0-rc2-00026-g6342a20efbd8 #1
[    1.959951][    T0] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.16.2-debian-1.16.2-1 04/01/2014
[ 1.961436][ T0] RIP: 0010:__apply_fineibt (arch/x86/kernel/alternative.c:911 arch/x86/kernel/alternative.c:1012) 
[ 1.962557][ T0] Code: 24 3c 00 74 5a 48 c7 c7 40 06 22 b1 eb 4c 90 48 c7 c7 20 07 22 b1 48 89 de 48 89 da b9 05 00 00 00 49 89 d8 e8 9c 31 14 00 90 <0f> 0b 90 90 eb 23 90 4d 01 ec 48 c7 c7 20 07 22 b1 4c 89 e6 4c 89
All code
========
   0:	24 3c                	and    $0x3c,%al
   2:	00 74 5a 48          	add    %dh,0x48(%rdx,%rbx,2)
   6:	c7 c7 40 06 22 b1    	mov    $0xb1220640,%edi
   c:	eb 4c                	jmp    0x5a
   e:	90                   	nop
   f:	48 c7 c7 20 07 22 b1 	mov    $0xffffffffb1220720,%rdi
  16:	48 89 de             	mov    %rbx,%rsi
  19:	48 89 da             	mov    %rbx,%rdx
  1c:	b9 05 00 00 00       	mov    $0x5,%ecx
  21:	49 89 d8             	mov    %rbx,%r8
  24:	e8 9c 31 14 00       	callq  0x1431c5
  29:	90                   	nop
  2a:*	0f 0b                	ud2    		<-- trapping instruction
  2c:	90                   	nop
  2d:	90                   	nop
  2e:	eb 23                	jmp    0x53
  30:	90                   	nop
  31:	4d 01 ec             	add    %r13,%r12
  34:	48 c7 c7 20 07 22 b1 	mov    $0xffffffffb1220720,%rdi
  3b:	4c 89 e6             	mov    %r12,%rsi
  3e:	4c                   	rex.WR
  3f:	89                   	.byte 0x89

Code starting with the faulting instruction
===========================================
   0:	0f 0b                	ud2    
   2:	90                   	nop
   3:	90                   	nop
   4:	eb 23                	jmp    0x29
   6:	90                   	nop
   7:	4d 01 ec             	add    %r13,%r12
   a:	48 c7 c7 20 07 22 b1 	mov    $0xffffffffb1220720,%rdi
  11:	4c 89 e6             	mov    %r12,%rsi
  14:	4c                   	rex.WR
  15:	89                   	.byte 0x89
[    1.965434][    T0] RSP: 0000:ffffffffb1e07e70 EFLAGS: 00010282
[    1.966532][    T0] RAX: 0000000000000052 RBX: ffffffffb2e29344 RCX: ffffffffb1f1c8c0
[    1.969432][    T0] RDX: 0000000000000001 RSI: 0000000000000008 RDI: ffffffffb1e07c88
[    1.970910][    T0] RBP: 1ffffffff61d554a R08: dffffc0000000000 R09: fffffbfff63c0f92
[    1.973428][    T0] R10: 0000000000000000 R11: dffffc0000000001 R12: ffffffffb2e29344
[    1.974925][    T0] R13: 1ffffffff63c0fce R14: 000000005f1e3d74 R15: ffffffffb0eaaa51
[    1.976476][    T0] FS:  0000000000000000(0000) GS:ffff8883af000000(0000) knlGS:0000000000000000
[    1.977434][    T0] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[    1.978660][    T0] CR2: ffff88843ffff000 CR3: 00000001f266d000 CR4: 00000000000406b0
[    1.981432][    T0] Call Trace:
[    1.982066][    T0]  <TASK>
[ 1.982649][ T0] ? alternative_instructions (arch/x86/kernel/alternative.c:1387) 
[ 1.983721][ T0] ? check_bugs (arch/x86/kernel/cpu/bugs.c:209) 
[ 1.984570][ T0] ? start_kernel (init/main.c:1084) 
[ 1.985435][ T0] ? x86_64_start_reservations (??:?) 
[ 1.986463][ T0] ? x86_64_start_kernel (??:?) 
[ 1.987445][ T0] ? secondary_startup_64_no_verify (arch/x86/kernel/head_64.S:370) 
[    1.988620][    T0]  </TASK>
[    1.989432][    T0] irq event stamp: 115689
[ 1.990218][ T0] hardirqs last enabled at (115697): __up_console_sem (arch/x86/include/asm/irqflags.h:42 arch/x86/include/asm/irqflags.h:77 arch/x86/include/asm/irqflags.h:135 kernel/printk/printk.c:347) 
[ 1.992045][ T0] hardirqs last disabled at (115704): __up_console_sem (kernel/printk/printk.c:345) 
[ 1.993434][ T0] softirqs last enabled at (115720): irq_exit_rcu (kernel/softirq.c:664) 
[ 1.995111][ T0] softirqs last disabled at (115713): irq_exit_rcu (kernel/softirq.c:664) 
[    1.997428][    T0] ---[ end trace 0000000000000000 ]---
[    1.998438][    T0] SMP alternatives: Something went horribly wrong trying to rewrite the CFI implementation.
[    2.005482][    T0] Freeing SMP alternatives memory: 44K
[    2.006670][    T0] Running RCU synchronous self tests
[    2.007663][    T0] Running RCU synchronous self tests
[    2.009408][    T1] smpboot: CPU0: Intel Xeon E312xx (Sandy Bridge) (family: 0x6, model: 0x2a, stepping: 0x1)



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



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

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ