syzbot


kernel BUG in blk_flush_complete_seq

Status: auto-closed as invalid on 2022/05/15 00:10
Reported-by: syzbot+5eed89f4f239e7699d5b@syzkaller.appspotmail.com
First crash: 285d, last: 285d

Sample crash report:
------------[ cut here ]------------
kernel BUG at block/blk-flush.c:208!
invalid opcode: 0000 [#1] PREEMPT SMP KASAN
CPU: 1 PID: 7007 Comm: syz-executor.2 Not tainted 5.17.0-rc3-syzkaller-00329-g42964a18f81c #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:blk_flush_complete_seq+0xc95/0xca0 block/blk-flush.c:208
Code: c1 03 38 c1 0f 8c 6c fd ff ff 48 89 ef e8 b3 a9 cd fd e9 5f fd ff ff e8 29 e1 80 fd 0f 0b e8 22 e1 80 fd 0f 0b e8 1b e1 80 fd <0f> 0b 66 0f 1f 84 00 00 00 00 00 55 48 89 e5 41 57 41 56 41 55 41
RSP: 0018:ffffc90000dc0b80 EFLAGS: 00010046
RAX: ffffffff8404d845 RBX: ffff88801e387c48 RCX: ffff888019311d00
RDX: 0000000080000101 RSI: ffffffff8d11cdb0 RDI: 0000000000000008
RBP: 0000000000000007 R08: 0000000000000005 R09: ffffffff8404cceb
R10: 0000000000000004 R11: ffff888019311d00 R12: 0000000000000000
R13: ffff88801e387c00 R14: ffff88801b88a900 R15: dffffc0000000000
FS:  00007fe480555700(0000) GS:ffff8880b9b00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000055555584f6d0 CR3: 000000004a48c000 CR4: 00000000003506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <IRQ>
 flush_end_io+0x7f7/0xa70 block/blk-flush.c:268
 scsi_end_request+0x486/0x910 drivers/scsi/scsi_lib.c:578
 scsi_io_completion+0x1e6/0x23c0 drivers/scsi/scsi_lib.c:980
 blk_complete_reqs block/blk-mq.c:999 [inline]
 blk_done_softirq+0x119/0x160 block/blk-mq.c:1004
 __do_softirq+0x392/0x7a3 kernel/softirq.c:558
 __irq_exit_rcu+0xec/0x170 kernel/softirq.c:637
 irq_exit_rcu+0x5/0x20 kernel/softirq.c:649
 common_interrupt+0xa4/0xc0 arch/x86/kernel/irq.c:240
 </IRQ>
 <TASK>
 asm_common_interrupt+0x1e/0x40
RIP: 0010:get_current arch/x86/include/asm/current.h:15 [inline]
RIP: 0010:__sanitizer_cov_trace_pc+0x4/0x60 kernel/kcov.c:199
Code: 00 00 0f 1f 40 00 be 0d 00 00 00 48 c7 c7 00 a9 b5 8c e8 cf bc 4c 00 c3 cc cc cc cc cc cc cc cc cc cc cc cc cc cc 48 8b 04 24 <65> 48 8b 0c 25 80 6f 02 00 65 8b 15 14 b6 7c 7e f7 c2 00 01 ff 00
RSP: 0018:ffffc90004dc5ea8 EFLAGS: 00000246
RAX: ffffffff840698a9 RBX: 0000000000000000 RCX: ffffffff84069877
RDX: ffff888019311d00 RSI: 0000000000000000 RDI: 0000000000000000
RBP: 00000275bfcd612d R08: ffffffff8406989e R09: ffffed100373090b
R10: ffffed100373090b R11: 0000000000000000 R12: ffffe8ffffd1f1c0
R13: dffffc0000000000 R14: ffff88801b984800 R15: ffff88801b8c2238
 blk_mq_sched_restart block/blk-mq-sched.h:34 [inline]
 __blk_mq_free_request+0x2a9/0x330 block/blk-mq.c:614
 blk_mq_free_plug_rqs+0x88/0xd0 block/blk-mq.c:646
 blk_flush_plug+0x55a/0x570 block/blk-core.c:1290
 io_schedule_prepare kernel/sched/core.c:8376 [inline]
 io_schedule_timeout+0x89/0x120 kernel/sched/core.c:8395
 do_wait_for_common+0x2da/0x480 kernel/sched/completion.c:85
 __wait_for_common kernel/sched/completion.c:106 [inline]
 wait_for_common_io kernel/sched/completion.c:123 [inline]
 wait_for_completion_io_timeout+0x44/0x60 kernel/sched/completion.c:191
 submit_bio_wait+0x14b/0x200 block/bio.c:1284
 blkdev_issue_flush+0x17b/0x230 block/blk-flush.c:466
 jbd2_cleanup_journal_tail fs/jbd2/checkpoint.c:403 [inline]
 jbd2_log_do_checkpoint+0x25f/0x1550 fs/jbd2/checkpoint.c:213
 __jbd2_log_wait_for_space+0x3bd/0x790 fs/jbd2/checkpoint.c:139
 add_transaction_credits+0x936/0xbf0 fs/jbd2/transaction.c:303
 start_this_handle+0x754/0x1630 fs/jbd2/transaction.c:427
 jbd2__journal_start+0x2ca/0x5b0 fs/jbd2/transaction.c:525
 __ext4_journal_start_sb+0x111/0x1e0 fs/ext4/ext4_jbd2.c:105
 __ext4_journal_start fs/ext4/ext4_jbd2.h:326 [inline]
 ext4_dirty_inode+0x8a/0x100 fs/ext4/inode.c:5899
 __mark_inode_dirty+0xb6/0x8f0 fs/fs-writeback.c:2409
 generic_update_time+0x1c7/0x1e0 fs/inode.c:1856
 inode_update_time fs/inode.c:1869 [inline]
 file_update_time+0x383/0x3f0 fs/inode.c:2086
 ext4_dio_write_checks fs/ext4/file.c:456 [inline]
 ext4_dio_write_iter fs/ext4/file.c:520 [inline]
 ext4_file_write_iter+0x1463/0x1bb0 fs/ext4/file.c:675
 call_write_iter include/linux/fs.h:2074 [inline]
 io_write+0x5f0/0xb70 fs/io_uring.c:3810
 io_issue_sqe+0x1804/0x11820 fs/io_uring.c:6755
 __io_queue_sqe+0x2d/0xb30 fs/io_uring.c:7097
 io_submit_sqe fs/io_uring.c:7347 [inline]
 io_submit_sqes+0x12b5/0xb370 fs/io_uring.c:7453
 __do_sys_io_uring_enter fs/io_uring.c:10152 [inline]
 __se_sys_io_uring_enter+0x21f/0x1cb0 fs/io_uring.c:10094
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x44/0xd0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x44/0xae
RIP: 0033:0x7fe481be0059
Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 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 c7 c1 b8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007fe480555168 EFLAGS: 00000246 ORIG_RAX: 00000000000001aa
RAX: ffffffffffffffda RBX: 00007fe481cf2f60 RCX: 00007fe481be0059
RDX: 0000000000000000 RSI: 0000000000006019 RDI: 0000000000000006
RBP: 00007fe481c3a08d R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007fffcc21b67f R14: 00007fe480555300 R15: 0000000000022000
 </TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:blk_flush_complete_seq+0xc95/0xca0 block/blk-flush.c:208
Code: c1 03 38 c1 0f 8c 6c fd ff ff 48 89 ef e8 b3 a9 cd fd e9 5f fd ff ff e8 29 e1 80 fd 0f 0b e8 22 e1 80 fd 0f 0b e8 1b e1 80 fd <0f> 0b 66 0f 1f 84 00 00 00 00 00 55 48 89 e5 41 57 41 56 41 55 41
RSP: 0018:ffffc90000dc0b80 EFLAGS: 00010046
RAX: ffffffff8404d845 RBX: ffff88801e387c48 RCX: ffff888019311d00
RDX: 0000000080000101 RSI: ffffffff8d11cdb0 RDI: 0000000000000008
RBP: 0000000000000007 R08: 0000000000000005 R09: ffffffff8404cceb
R10: 0000000000000004 R11: ffff888019311d00 R12: 0000000000000000
R13: ffff88801e387c00 R14: ffff88801b88a900 R15: dffffc0000000000
FS:  00007fe480555700(0000) GS:ffff8880b9b00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000055555584f6d0 CR3: 000000004a48c000 CR4: 00000000003506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
----------------
Code disassembly (best guess):
   0:	00 00                	add    %al,(%rax)
   2:	0f 1f 40 00          	nopl   0x0(%rax)
   6:	be 0d 00 00 00       	mov    $0xd,%esi
   b:	48 c7 c7 00 a9 b5 8c 	mov    $0xffffffff8cb5a900,%rdi
  12:	e8 cf bc 4c 00       	callq  0x4cbce6
  17:	c3                   	retq
  18:	cc                   	int3
  19:	cc                   	int3
  1a:	cc                   	int3
  1b:	cc                   	int3
  1c:	cc                   	int3
  1d:	cc                   	int3
  1e:	cc                   	int3
  1f:	cc                   	int3
  20:	cc                   	int3
  21:	cc                   	int3
  22:	cc                   	int3
  23:	cc                   	int3
  24:	cc                   	int3
  25:	cc                   	int3
  26:	48 8b 04 24          	mov    (%rsp),%rax
* 2a:	65 48 8b 0c 25 80 6f 	mov    %gs:0x26f80,%rcx <-- trapping instruction
  31:	02 00
  33:	65 8b 15 14 b6 7c 7e 	mov    %gs:0x7e7cb614(%rip),%edx        # 0x7e7cb64e
  3a:	f7 c2 00 01 ff 00    	test   $0xff0100,%edx

Crashes (1):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci-upstream-kasan-gce-smack-root 2022/02/14 00:10 upstream 42964a18f81c 8b9ca619 .config log report info kernel BUG in blk_flush_complete_seq
* Struck through repros no longer work on HEAD.