Greeting,
FYI, we noticed the following commit (built with gcc-9):
commit: 8c53463b3a0732642def780659fa9244679346d4 ("block/mq-deadline: Add cgroup support")
https://github.com/bvanassche/linux deadline-scheduler
in testcase: boot
on test machine: qemu-system-i386 -enable-kvm -cpu SandyBridge -smp 2 -m 4G
caused below changes (please refer to attached dmesg/kmsg for entire log/backtrace):
+----------------------------------------------------------+------------+------------+
| | 54798cf44c | 8c53463b3a |
+----------------------------------------------------------+------------+------------+
| boot_successes | 9 | 0 |
| boot_failures | 0 | 12 |
| WARNING:at_block/mq-deadline-main.c:#dd_insert_requests | 0 | 12 |
| EIP:dd_insert_requests | 0 | 12 |
| WARNING:at_block/mq-deadline-main.c:#dd_dispatch_request | 0 | 12 |
| EIP:dd_dispatch_request | 0 | 12 |
+----------------------------------------------------------+------------+------------+
If you fix the issue, kindly add following tag
Reported-by: kernel test robot <[email protected]>
[ 8.122422] WARNING: CPU: 0 PID: 156 at block/mq-deadline-main.c:680 dd_insert_requests (kbuild/src/consumer/block/mq-deadline-main.c:680 kbuild/src/consumer/block/mq-deadline-main.c:727)
[ 8.123248] Modules linked in: pcspkr drm drm_panel_orientation_quirks cfbfillrect pata_acpi cfbimgblt cfbcopyarea ata_piix fb_sys_fops syscopyarea parport_pc parport sysfillrect sysimgblt qemu_fw_cfg fb libata fbdev backlight i2c_core scsi_mod tiny_power_button button
[ 8.125312] CPU: 0 PID: 156 Comm: udevd Not tainted 5.13.0-rc3-00046-g8c53463b3a07 #1
[ 8.126051] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.12.0-1 04/01/2014
[ 8.126822] EIP: dd_insert_requests (kbuild/src/consumer/block/mq-deadline-main.c:680 kbuild/src/consumer/block/mq-deadline-main.c:727)
[ 8.133361] Code: 04 0f b7 7b 4c 8b b0 b0 00 00 00 c1 ef 0d 8b 46 04 8b 40 04 89 45 f0 8b 43 dc 89 45 e8 a1 f8 02 97 c2 85 c0 0f 85 c2 00 00 00 <0f> 0b ff 04 bd e0 de 1a c3 8b 3c bd 04 e2 e7 c1 8b 45 f0 ff 44 b8
All code
========
0: 04 0f add $0xf,%al
2: b7 7b mov $0x7b,%bh
4: 4c 8b b0 b0 00 00 00 mov 0xb0(%rax),%r14
b: c1 ef 0d shr $0xd,%edi
e: 8b 46 04 mov 0x4(%rsi),%eax
11: 8b 40 04 mov 0x4(%rax),%eax
14: 89 45 f0 mov %eax,-0x10(%rbp)
17: 8b 43 dc mov -0x24(%rbx),%eax
1a: 89 45 e8 mov %eax,-0x18(%rbp)
1d: a1 f8 02 97 c2 85 c0 movabs 0x850fc085c29702f8,%eax
24: 0f 85
26: c2 00 00 retq $0x0
29: 00 0f add %cl,(%rdi)
2b: 0b ff or %edi,%edi
2d: 04 bd add $0xbd,%al
2f:* e0 de loopne 0xf <-- trapping instruction
31: 1a c3 sbb %bl,%al
33: 8b 3c bd 04 e2 e7 c1 mov -0x3e181dfc(,%rdi,4),%edi
3a: 8b 45 f0 mov -0x10(%rbp),%eax
3d: ff .byte 0xff
3e: 44 rex.R
3f: b8 .byte 0xb8
Code starting with the faulting instruction
===========================================
0: 0f 0b ud2
2: ff 04 bd e0 de 1a c3 incl -0x3ce52120(,%rdi,4)
9: 8b 3c bd 04 e2 e7 c1 mov -0x3e181dfc(,%rdi,4),%edi
10: 8b 45 f0 mov -0x10(%rbp),%eax
13: ff .byte 0xff
14: 44 rex.R
15: b8 .byte 0xb8
[ 8.134961] EAX: 00000001 EBX: c47a8030 ECX: ffffffff EDX: c47a9aa4
[ 8.135547] ESI: c44c5b70 EDI: 00000000 EBP: c4f9fbf4 ESP: c4f9fbd0
[ 8.136121] DS: 007b ES: 007b FS: 0000 GS: 0033 SS: 0068 EFLAGS: 00010202
[ 8.136730] CR0: 80050033 CR2: bfa0ce28 CR3: 04f8b000 CR4: 000406d0
[ 8.137302] DR0: 00000000 DR1: 00000000 DR2: 00000000 DR3: 00000000
[ 8.137872] DR6: fffe0ff0 DR7: 00000400
[ 8.138257] Call Trace:
[ 8.138539] ? dd_merged_requests (kbuild/src/consumer/block/mq-deadline-main.c:717)
[ 8.138954] blk_mq_sched_insert_request (kbuild/src/consumer/block/blk-mq-sched.c:468)
[ 8.139434] blk_mq_submit_bio (kbuild/src/consumer/block/blk-mq.c:2302)
[ 8.139846] submit_bio_noacct (kbuild/src/consumer/block/blk-core.c:1014 kbuild/src/consumer/block/blk-core.c:1047)
[ 8.140252] ? lockdep_init_map_type (kbuild/src/consumer/kernel/locking/lockdep.c:4685)
[ 8.140700] submit_bio (kbuild/src/consumer/block/blk-core.c:1109)
[ 8.141050] __floppy_read_block_0 (kbuild/src/consumer/drivers/block/floppy.c:2849 (discriminator 3) kbuild/src/consumer/drivers/block/floppy.c:4142 (discriminator 3))
[ 8.141490] ? floppy_release (kbuild/src/consumer/drivers/block/floppy.c:4102)
[ 8.141879] floppy_revalidate (kbuild/src/consumer/drivers/block/floppy.c:4188)
[ 8.142282] floppy_open (kbuild/src/consumer/drivers/block/floppy.c:4036)
[ 8.142650] ? invalidate_drive (kbuild/src/consumer/drivers/block/floppy.c:3967)
[ 8.143055] __blkdev_get (kbuild/src/consumer/fs/block_dev.c:1313)
[ 8.143428] blkdev_get_by_dev (kbuild/src/consumer/fs/block_dev.c:1452)
[ 8.143830] blkdev_open (kbuild/src/consumer/fs/block_dev.c:1547)
[ 8.144183] do_dentry_open (kbuild/src/consumer/fs/open.c:827)
[ 8.144574] ? blkdev_get_by_dev (kbuild/src/consumer/fs/block_dev.c:1526)
[ 8.144997] vfs_open (kbuild/src/consumer/fs/open.c:941)
[ 8.145333] path_openat (kbuild/src/consumer/fs/namei.c:3361 kbuild/src/consumer/fs/namei.c:3494)
[ 8.145722] do_filp_open (kbuild/src/consumer/fs/namei.c:3522)
[ 8.146099] ? _raw_spin_unlock (kbuild/src/consumer/kernel/locking/spinlock.c:184)
[ 8.146502] ? alloc_fd (kbuild/src/consumer/fs/file.c:526 (discriminator 13))
[ 8.146861] do_sys_openat2 (kbuild/src/consumer/fs/open.c:1188)
[ 8.147264] do_sys_open (kbuild/src/consumer/fs/open.c:1204)
[ 8.147626] __ia32_sys_openat (kbuild/src/consumer/fs/open.c:1214)
[ 8.148020] do_int80_syscall_32 (kbuild/src/consumer/arch/x86/entry/common.c:78 kbuild/src/consumer/arch/x86/entry/common.c:96)
[ 8.148427] entry_INT80_32 (kbuild/src/consumer/arch/x86/entry/entry_32.S:981)
[ 8.148803] EIP: 0xb7dbd390
[ 8.149109] Code: 41 00 81 fa 00 00 41 00 74 30 65 8b 0d 0c 00 00 00 80 cc 80 85 c9 89 c2 75 28 b8 27 01 00 00 bb 9c ff ff ff 8b 4c 24 20 cd 80 <3d> 00 f0 ff ff 77 51 83 c4 10 5b 5e 5f c3 66 90 8b 74 24 28 eb ca
All code
========
0: 41 00 81 fa 00 00 41 add %al,0x410000fa(%r9)
7: 00 74 30 65 add %dh,0x65(%rax,%rsi,1)
b: 8b 0d 0c 00 00 00 mov 0xc(%rip),%ecx # 0x1d
11: 80 cc 80 or $0x80,%ah
14: 85 c9 test %ecx,%ecx
16: 89 c2 mov %eax,%edx
18: 75 28 jne 0x42
1a: b8 27 01 00 00 mov $0x127,%eax
1f: bb 9c ff ff ff mov $0xffffff9c,%ebx
24: 8b 4c 24 20 mov 0x20(%rsp),%ecx
28: cd 80 int $0x80
2a:* 3d 00 f0 ff ff cmp $0xfffff000,%eax <-- trapping instruction
2f: 77 51 ja 0x82
31: 83 c4 10 add $0x10,%esp
34: 5b pop %rbx
35: 5e pop %rsi
36: 5f pop %rdi
37: c3 retq
38: 66 90 xchg %ax,%ax
3a: 8b 74 24 28 mov 0x28(%rsp),%esi
3e: eb ca jmp 0xa
Code starting with the faulting instruction
===========================================
0: 3d 00 f0 ff ff cmp $0xfffff000,%eax
5: 77 51 ja 0x58
7: 83 c4 10 add $0x10,%esp
a: 5b pop %rbx
b: 5e pop %rsi
c: 5f pop %rdi
d: c3 retq
e: 66 90 xchg %ax,%ax
10: 8b 74 24 28 mov 0x28(%rsp),%esi
14: eb ca jmp 0xffffffffffffffe0
[ 8.150700] EAX: ffffffda EBX: ffffff9c ECX: 00498b20 EDX: 000a8800
[ 8.151275] ESI: 00000000 EDI: 00495560 EBP: 00495560 ESP: bfa138b0
[ 8.151845] DS: 007b ES: 007b FS: 0000 GS: 0033 SS: 007b EFLAGS: 00000246
[ 8.152462] irq event stamp: 8221
[ 8.152806] hardirqs last enabled at (8229): console_unlock (kbuild/src/consumer/kernel/printk/printk.c:2668 (discriminator 1))
[ 8.153535] hardirqs last disabled at (8236): console_unlock (kbuild/src/consumer/kernel/printk/printk.c:2589 (discriminator 1))
[ 8.154271] softirqs last enabled at (8114): __do_softirq (kbuild/src/consumer/arch/x86/include/asm/preempt.h:27 kbuild/src/consumer/kernel/softirq.c:403 kbuild/src/consumer/kernel/softirq.c:588)
[ 8.154995] softirqs last disabled at (8109): call_on_stack (kbuild/src/consumer/arch/x86/kernel/irq_32.c:60)
[ 8.155716] ---[ end trace 513f63baae727a41 ]---
[ 8.156316] ------------[ cut here ]------------
To reproduce:
# build kernel
cd linux
cp config-5.13.0-rc3-00046-g8c53463b3a07 .config
make HOSTCC=gcc-9 CC=gcc-9 ARCH=i386 olddefconfig prepare modules_prepare bzImage
git clone https://github.com/intel/lkp-tests.git
cd lkp-tests
bin/lkp qemu -k <bzImage> job-script # job-script is attached in this email
---
0DAY/LKP+ Test Infrastructure Open Source Technology Center
https://lists.01.org/hyperkitty/list/[email protected] Intel Corporation
Thanks,
Oliver Sang