Greeting,
FYI, we noticed the following commit (built with gcc-9):
commit: d6e28d35d522980af2fc1311a04d735d94f1df62 ("x86: Add straight-line-speculation
mitigation")
https://git.kernel.org/cgit/linux/kernel/git/peterz/queue.git x86/wip.sls
in testcase: fsmark
version: fsmark-x86_64-698ee57-1_20211108
with following parameters:
iterations: 1x
nr_threads: 64t
disk: 1SSD
fs: ext4
fs2: nfsv4
filesize: 4M
test_size: 60G
sync_method: NoSync
cpufreq_governor: performance
ucode: 0x700001e
test-description: The fsmark is a file system benchmark to test synchronous write
workloads, for example, mail servers workload.
test-url:
https://sourceforge.net/projects/fsmark/
on test machine: 144 threads 4 sockets Intel(R) Xeon(R) Gold 5318H CPU @ 2.50GHz with 128G
memory
caused below changes (please refer to attached dmesg/kmsg for entire log/backtrace):
If you fix the issue, kindly add following tag
Reported-by: kernel test robot <oliver.sang(a)intel.com>
[ 39.617768][ T1592] kernel BUG at arch/x86/kernel/alternative.c:1390!
[ 39.617773][ T1592] invalid opcode: 0000 [#1] SMP NOPTI
[ 39.617897][ T866] IOAPIC[5]: Preconfigured routing entry (13-3 -> IRQ 310 Level:1
ActiveLow:1)
[ 39.621614][ T15] scsi host3: ahci
[ 39.632644][ T1592] CPU: 66 PID: 1592 Comm: systemd-udevd Not tainted
5.16.0-rc1-00003-gd6e28d35d522 #1
[ 39.632647][ T1592] RIP: 0010:text_poke_loc_init (arch/x86/kernel/alternative.c:1390
(discriminator 1))
[ 39.639370][ T15] scsi host4: ahci
[ 39.644309][ T1592] Code: 05 47 a5 1d 01 39 03 74 23 0f 0b 8b 44 24 38 89 45 04 eb be 66
81 3b 66 90 75 2a c6 45 08 eb c7 45 04 00 00 00 00 eb aa 0f 0b <0f> 0b 0f b6 05 1d
a5 1d 01 38 43 04 75 d1 c6 45 08 e9 c7 45 04 00
All code
========
0: 05 47 a5 1d 01 add $0x11da547,%eax
5: 39 03 cmp %eax,(%rbx)
7: 74 23 je 0x2c
9: 0f 0b ud2
b: 8b 44 24 38 mov 0x38(%rsp),%eax
f: 89 45 04 mov %eax,0x4(%rbp)
12: eb be jmp 0xffffffffffffffd2
14: 66 81 3b 66 90 cmpw $0x9066,(%rbx)
19: 75 2a jne 0x45
1b: c6 45 08 eb movb $0xeb,0x8(%rbp)
1f: c7 45 04 00 00 00 00 movl $0x0,0x4(%rbp)
26: eb aa jmp 0xffffffffffffffd2
28: 0f 0b ud2
2a:* 0f 0b ud2 <-- trapping instruction
2c: 0f b6 05 1d a5 1d 01 movzbl 0x11da51d(%rip),%eax # 0x11da550
33: 38 43 04 cmp %al,0x4(%rbx)
36: 75 d1 jne 0x9
38: c6 45 08 e9 movb $0xe9,0x8(%rbp)
3c: c7 .byte 0xc7
3d: 45 04 00 rex.RB add $0x0,%al
Code starting with the faulting instruction
===========================================
0: 0f 0b ud2
2: 0f b6 05 1d a5 1d 01 movzbl 0x11da51d(%rip),%eax # 0x11da526
9: 38 43 04 cmp %al,0x4(%rbx)
c: 75 d1 jne 0xffffffffffffffdf
e: c6 45 08 e9 movb $0xe9,0x8(%rbp)
12: c7 .byte 0xc7
13: 45 04 00 rex.RB add $0x0,%al
[ 39.644311][ T1592] RSP: 0018:ffffc90020ad7b70 EFLAGS: 00010297
[ 39.644313][ T1592] RAX: 0000000000000001 RBX: ffffffff82203622 RCX: ffffffff82203631
[ 39.644314][ T1592] RDX: 00000000ffffffea RSI: ffffffff82203631 RDI: 00000000000000c3
[ 39.653224][ T15] scsi host5: ahci
[ 39.656665][ T1592] RBP: ffffc90020ad7c18 R08: ffffc90020ad7b70 R09: 0000000000000001
[ 39.656667][ T1592] R10: ffff889882509a00 R11: 0000000000000002 R12: 0000000000000005
[ 39.656667][ T1592] R13: ffffffffc0e3c590 R14: ffffffff82203622 R15: ffffffffc0ee661c
[ 39.656668][ T1592] FS: 00007f1984fc8d40(0000) GS:ffff88a025d00000(0000)
knlGS:0000000000000000
[ 39.656669][ T1592] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[ 39.656671][ T1592] CR2: 000055a7547a4dd0 CR3: 000000011028c006 CR4: 00000000007706e0
[ 39.657725][ T1082] IOAPIC[9]: Preconfigured routing entry (17-2 -> IRQ 318 Level:1
ActiveLow:1)
[ 39.666342][ T15] scsi host6: ahci
[ 39.667411][ T1082] IOAPIC[9]: Preconfigured routing entry (17-3 -> IRQ 320 Level:1
ActiveLow:1)
[ 39.671621][ T1592] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
[ 39.671623][ T1592] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
[ 39.671624][ T1592] PKRU: 55555554
[ 39.671625][ T1592] Call Trace:
[ 39.671627][ T1592] <TASK>
[ 39.675491][ T15] scsi host7: ahci
[ 39.694642][ T1592] ? complete_emulated_wrmsr (arch/x86/kvm/x86.c:1830) kvm
[ 39.700852][ T15] scsi host8: ahci
[ 39.707076][ T884] IOAPIC[13]: Preconfigured routing entry (21-2 -> IRQ 328 Level:1
ActiveLow:1)
[ 39.708385][ T1592] ? complete_emulated_wrmsr (arch/x86/kvm/x86.c:1830) kvm
[ 39.716384][ T884] IOAPIC[13]: Preconfigured routing entry (21-3 -> IRQ 330 Level:1
ActiveLow:1)
[ 39.716506][ T15] scsi host9: ahci
[ 39.716547][ T15] ata3: SATA max UDMA/133 abar m524288@0x92200000 port 0x92200100 irq
304
[ 39.716548][ T15] ata4: SATA max UDMA/133 abar m524288@0x92200000 port 0x92200180 irq
304
[ 39.716551][ T15] ata5: SATA max UDMA/133 abar m524288@0x92200000 port 0x92200200 irq
304
[ 39.716554][ T15] ata6: SATA max UDMA/133 abar m524288@0x92200000 port 0x92200280 irq
304
[ 39.716560][ T15] ata7: SATA max UDMA/133 abar m524288@0x92200000 port 0x92200300 irq
304
[ 39.716563][ T15] ata8: SATA max UDMA/133 abar m524288@0x92200000 port 0x92200380 irq
304
[ 39.716566][ T15] ata9: SATA max UDMA/133 abar m524288@0x92200000 port 0x92200400 irq
304
[ 39.716569][ T15] ata10: SATA max UDMA/133 abar m524288@0x92200000 port 0x92200480
irq 304
[ 39.719786][ T1592] text_poke_bp (arch/x86/kernel/alternative.c:1497)
[ 39.719791][ T1592] arch_static_call_transform (arch/x86/kernel/static_call.c:117)
[ 39.776402][ T1694] ata2: SATA link down (SStatus 4 SControl 300)
[ 39.778612][ T1592] __static_call_init+0x15b/0x240
[ 39.778618][ T1592] static_call_module_notify (kernel/static_call.c:217
kernel/static_call.c:389 kernel/static_call.c:432)
[ 39.787441][ T1692] ata1: SATA link down (SStatus 4 SControl 300)
[ 39.795216][ T1592] notifier_call_chain_robust (kernel/notifier.c:83
kernel/notifier.c:118)
[ 39.957258][ T1592] blocking_notifier_call_chain_robust (kernel/notifier.c:284
kernel/notifier.c:271)
[ 39.963438][ T1592] load_module (include/linux/notifier.h:198 kernel/module.c:3923
kernel/module.c:4100)
[ 39.967797][ T1592] ? __kernel_read (fs/read_write.c:439 (discriminator 1))
[ 39.972415][ T1592] ? __do_sys_finit_module (kernel/module.c:4224)
[ 39.977639][ T1592] __do_sys_finit_module (kernel/module.c:4224)
[ 39.982684][ T1592] do_syscall_64 (arch/x86/entry/common.c:50 arch/x86/entry/common.c:80)
[ 39.986957][ T1592] entry_SYSCALL_64_after_hwframe (arch/x86/entry/entry_64.S:113)
[ 39.992703][ T1592] RIP: 0033:0x7f19857b2f59
[ 39.996974][ T1592] Code: 00 c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 48 89 f8 48
89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff
73 01 c3 48 8b 0d 07 6f 0c 00 f7 d8 64 89 01 48
All code
========
0: 00 c3 add %al,%bl
2: 66 2e 0f 1f 84 00 00 nopw %cs:0x0(%rax,%rax,1)
9: 00 00 00
c: 0f 1f 44 00 00 nopl 0x0(%rax,%rax,1)
11: 48 89 f8 mov %rdi,%rax
14: 48 89 f7 mov %rsi,%rdi
17: 48 89 d6 mov %rdx,%rsi
1a: 48 89 ca mov %rcx,%rdx
1d: 4d 89 c2 mov %r8,%r10
20: 4d 89 c8 mov %r9,%r8
23: 4c 8b 4c 24 08 mov 0x8(%rsp),%r9
28: 0f 05 syscall
2a:* 48 3d 01 f0 ff ff cmp $0xfffffffffffff001,%rax <-- trapping instruction
30: 73 01 jae 0x33
32: c3 retq
33: 48 8b 0d 07 6f 0c 00 mov 0xc6f07(%rip),%rcx # 0xc6f41
3a: f7 d8 neg %eax
3c: 64 89 01 mov %eax,%fs:(%rcx)
3f: 48 rex.W
Code starting with the faulting instruction
===========================================
0: 48 3d 01 f0 ff ff cmp $0xfffffffffffff001,%rax
6: 73 01 jae 0x9
8: c3 retq
9: 48 8b 0d 07 6f 0c 00 mov 0xc6f07(%rip),%rcx # 0xc6f17
10: f7 d8 neg %eax
12: 64 89 01 mov %eax,%fs:(%rcx)
15: 48 rex.W
To reproduce:
git clone
https://github.com/intel/lkp-tests.git
cd lkp-tests
sudo bin/lkp install job.yaml # job file is attached in this email
bin/lkp split-job --compatible job.yaml # generate the yaml file for lkp run
sudo bin/lkp run generated-yaml-file
# if come across any failure that blocks the test,
# please remove ~/.lkp and /lkp dir to run from a clean state.
---
0DAY/LKP+ Test Infrastructure Open Source Technology Center
https://lists.01.org/hyperkitty/list/lkp@lists.01.org Intel Corporation
Thanks,
Oliver Sang