[linus:master] [x86/srso] fb3bd914b3: WARNING:at_arch/x86/kernel/alternative.c:#apply_returns
From: kernel test robot
Date: Mon Aug 14 2023 - 04:31:38 EST
Hello,
kernel test robot noticed "WARNING:at_arch/x86/kernel/alternative.c:#apply_returns" on:
commit: fb3bd914b3ec28f5fb697ac55c4846ac2d542855 ("x86/srso: Add a Speculative RAS Overflow mitigation")
https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git master
[test failed on linus/master v6.5-rc6]
[test failed on linux-next/master 21ef7b1e17d039053edaeaf41142423810572741]
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@xxxxxxxxx>
| Closes: https://lore.kernel.org/oe-lkp/202308141043.79d160a1-oliver.sang@xxxxxxxxx
[ 13.866672][ T0] ------------[ cut here ]------------
[ 13.867512][ T0] missing return thunk: __ret+0x5/0x7e-__ret+0x0/0x7e: e9 f6 ff ff ff
[ 13.868538][ T0] WARNING: CPU: 0 PID: 0 at arch/x86/kernel/alternative.c:755 apply_returns+0x351/0x700
[ 13.870993][ T0] Modules linked in:
[ 13.871543][ T0] CPU: 0 PID: 0 Comm: swapper Not tainted 6.5.0-rc2-00002-gfb3bd914b3ec #1
[ 13.872689][ T0] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.16.2-debian-1.16.2-1 04/01/2014
[ 13.874057][ T0] RIP: 0010:apply_returns+0x351/0x700
[ 13.874615][ T0] Code: e9 4d ff ff ff c6 05 15 cc 49 03 01 48 c7 c7 60 bf 01 83 4c 89 ea b9 05 00 00 00 90 48 8b 74 24 08 49 89 f0 e8 50 97 0e 00 90 <0f> 0b 90
90 e9 1f ff ff ff 4d 85 ed 0f 84 4c ff ff ff 48 8b 74 24
[ 13.877395][ T0] RSP: 0000:ffffffff83a07de0 EFLAGS: 00010246
[ 13.878236][ T0] RAX: 0000000000000000 RBX: ffffffff82d32545 RCX: 0000000000000000
[ 13.879355][ T0] RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000
[ 13.880389][ T0] RBP: ffffffff83a07ed0 R08: 0000000000000000 R09: 0000000000000000
[ 13.881461][ T0] R10: 0000000000000000 R11: 0000000000000000 R12: dffffc0000000000
[ 13.882527][ T0] R13: ffffffff82d32540 R14: ffffffff846e9a58 R15: 1ffffffff0740fc9
[ 13.883644][ T0] FS: 0000000000000000(0000) GS:ffffffff83ad5000(0000) knlGS:0000000000000000
[ 13.884632][ T0] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[ 13.885529][ T0] CR2: ffff88843ffff000 CR3: 0000000003ab6000 CR4: 00000000000406f0
[ 13.886637][ T0] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
[ 13.887727][ T0] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
[ 13.888814][ T0] Call Trace:
[ 13.889281][ T0] <TASK>
[ 13.889711][ T0] ? show_regs+0x5b/0x70
[ 13.890324][ T0] ? __warn+0xe6/0x1f0
[ 13.890942][ T0] ? apply_returns+0x351/0x700
[ 13.891612][ T0] ? report_bug+0x15f/0x380
[ 13.892229][ T0] ? apply_returns+0x351/0x700
[ 13.892920][ T0] ? handle_bug+0x42/0x70
[ 13.893544][ T0] ? exc_invalid_op+0x1f/0x60
[ 13.894618][ T0] ? asm_exc_invalid_op+0x1f/0x30
[ 13.895327][ T0] ? zen_untrain_ret+0x1/0x1
[ 13.895941][ T0] ? __ret+0x5/0x7e
[ 13.896491][ T0] ? apply_returns+0x351/0x700
[ 13.897131][ T0] ? do_nanosleep+0x2ae/0x380
[ 13.897766][ T0] ? __ret+0x5/0x7e
[ 13.898332][ T0] ? __ret+0x5/0x7e
[ 13.898872][ T0] ? __ret+0x14/0x7e
[ 13.899433][ T0] ? __ret+0xa/0x7e
[ 13.899974][ T0] ? unregister_die_notifier+0x17/0x30
[ 13.900751][ T0] alternative_instructions+0x4b/0xa0
[ 13.901514][ T0] arch_cpu_finalize_init+0x3e/0xb0
[ 13.902220][ T0] start_kernel+0x2ff/0x3c0
[ 13.902833][ T0] x86_64_start_reservations+0x3c/0x40
[ 13.903624][ T0] x86_64_start_kernel+0x63/0x70
[ 13.904627][ T0] secondary_startup_64_no_verify+0x102/0x10b
[ 13.905488][ T0] </TASK>
[ 13.905909][ T0] irq event stamp: 110211
[ 13.906494][ T0] hardirqs last enabled at (110219): [<ffffffff8121f433>] __up_console_sem+0xa3/0x100
[ 13.907867][ T0] hardirqs last disabled at (110226): [<ffffffff8121f418>] __up_console_sem+0x88/0x100
[ 13.909256][ T0] softirqs last enabled at (110192): [<ffffffff82d31d74>] __do_softirq+0x4d4/0x631
[ 13.910544][ T0] softirqs last disabled at (110185): [<ffffffff81148b49>] irq_exit_rcu+0x89/0xc0
[ 13.914615][ T0] ---[ end trace 0000000000000000 ]---
The kernel config and materials to reproduce are available at:
https://download.01.org/0day-ci/archive/20230814/202308141043.79d160a1-oliver.sang@xxxxxxxxx
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki