FYI, we noticed the following commit: https://git.kernel.org/pub/scm/linux/kernel/git/axboe/linux-block.git blk-dio commit fb205598f24363aae7b7e4bbb6c95cecc7c0d821 ("blk-mq: private O_DIRECT implementation") in testcase: boot on test machine: qemu-system-x86_64 -enable-kvm -cpu host -smp 2 -m 4G caused below changes: +----------------------------------------------------------------------------------------+------------+------------+ | | f31494bd05 | fb205598f2 | +----------------------------------------------------------------------------------------+------------+------------+ | boot_successes | 879 | 494 | | boot_failures | 189 | 598 | | BUG:kernel_early-boot_hang_Unable_to_boot-please_use_a_kernel_appropriate_for_your_CPU | 12 | | | BUG:kernel_reboot-without-warning_in_test_stage | 150 | 237 | | calltrace:SyS_write | 1 | 9 | | BUG:kernel_early-boot_hang | 8 | | | WARNING:at_kernel/trace/ftrace.c:#ftrace_bug | 19 | | | backtrace:perf_ftrace_event_register | 19 | | | backtrace:perf_trace_init | 19 | | | backtrace:perf_tp_event_init | 19 | | | backtrace:perf_try_init_event | 19 | | | backtrace:perf_event_alloc | 19 | | | backtrace:SyS_perf_event_open | 19 | | | BUG:unable_to_handle_kernel | 0 | 237 | | Oops | 0 | 238 | | RIP:blk_update_request | 0 | 169 | | calltrace:SyS_epoll_wait | 0 | 25 | | Kernel_panic-not_syncing:Fatal_exception_in_interrupt | 0 | 361 | | RIP:__blk_recalc_rq_segments | 0 | 77 | | calltrace:SyS_newfstat | 0 | 13 | | kernel_BUG_at_block/blk-mq.c | 0 | 111 | | invalid_opcode:#[##]SMP | 0 | 111 | | RIP:blk_mq_end_request | 0 | 111 | | calltrace:SyS_ioctl | 0 | 24 | | calltrace:SyS_lseek | 0 | 24 | | calltrace:SyS_read | 0 | 80 | | general_protection_fault:#[##]SMP | 0 | 12 | | calltrace:SyS_recvmsg | 0 | 9 | | calltrace:smpboot_thread_fn | 0 | 1 | | calltrace:schedule_timeout | 0 | 2 | | RIP:bio_advance | 0 | 1 | | calltrace:SyS_open | 0 | 2 | | calltrace:SyS_ppoll | 0 | 1 | | RIP:blk_account_io_completion | 0 | 1 | | calltrace:prepare_to_swait_event | 0 | 1 | | calltrace:SyS_close | 0 | 2 | +----------------------------------------------------------------------------------------+------------+------------+ [ 69.317126] systemd-udevd[2082]: starting version 215 Starting Copy rules generated while the root was ro... Starting LSB: MD array assembly... [ 69.696600] general protection fault: 0000 [#1] SMP [ 69.712484] Modules linked in: [ 69.726192] CPU: 0 PID: 2096 Comm: mdadm Not tainted 4.8.0-rc1-00242-gfb20559 #1 [ 69.752666] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS Debian-1.8.2-1 04/01/2014 [ 69.781474] task: ffff880113868cc0 task.stack: ffff88011468c000 [ 69.798806] RIP: 0010:[] [] blk_update_request+0x275/0x2a6 [ 69.828338] RSP: 0000:ffff88013fc03ee0 EFLAGS: 00010006 [ 69.844799] RAX: ffff88011462d900 RBX: ffff880114d50000 RCX: 0001000000000000 [ 69.864041] RDX: 0000000000000825 RSI: 0000000000000000 RDI: ffff88011462d500 [ 69.883582] RBP: ffff88013fc03f10 R08: 00000000000087d0 R09: 0000000000000000 [ 69.902994] R10: 0000000000000002 R11: 0000000000000246 R12: 0000000000000000 [ 69.922345] R13: 0000000000000008 R14: 0000000000000000 R15: 0000000000001000 [ 69.942111] FS: 00007f473842f700(0000) GS:ffff88013fc00000(0000) knlGS:0000000000000000 [ 69.969853] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 69.986867] CR2: 0000000001d7dbf8 CR3: 000000012e4f9000 CR4: 00000000000006f0 [ 70.006304] Stack: [ 70.017161] ffff88011462d500 ffff880114d50000 0000000000000000 ffff880114d50000 [ 70.047531] ffffffff81eac5db 0000000000000000 ffff88013fc03f30 ffffffff814dadcd [ 70.078150] ffff880114d50010 ffffffff814d9aa6 ffff88013fc03f40 ffffffff815de10f [ 70.108775] Call Trace: [ 70.120410] [ 70.124784] [] blk_mq_end_request+0x1a/0x5c [ 70.149863] [] ? __blk_mq_end_request+0x44/0x44 [ 70.167817] [] virtblk_request_done+0x5e/0x60 [ 70.185409] [] __blk_mq_complete_request_remote+0x13/0x15 [ 70.204954] [] flush_smp_call_function_queue+0xcd/0x13e [ 70.224015] [] generic_smp_call_function_single_interrupt+0x13/0x4a [ 70.263316] [] smp_call_function_single_interrupt+0x27/0x35 [ 70.289465] [] call_function_single_interrupt+0x8c/0xa0 [ 70.308366] [ 70.312603] Code: 4f 49 8b 7d 08 44 89 f1 48 89 da 4c 89 fe 41 ff 55 00 49 83 c5 18 49 83 7d 00 00 e9 e4 fd ff ff 8b 48 2c 48 c1 e1 04 48 03 48 78 <8b> 49 08 2b 48 30 39 ca 0f 47 d1 eb 8a 8b 4a 2c 48 c1 e1 04 48 [ 70.438340] RIP [] blk_update_request+0x275/0x2a6 [ 70.457494] RSP [ 70.470915] ---[ end trace b4db690ab7dba899 ]--- [ 70.486372] Kernel panic - not syncing: Fatal exception in interrupt Thanks, Xiaolong