syzbot


WARNING in blk_mq_sched_free_requests (2)

Status: fixed on 2019/10/15 23:40
Subsystems: block
[Documentation on labels]
Reported-by: syzbot+da3b7677bb913dc1b737@syzkaller.appspotmail.com
Fix commit: 284b94be1925 blk-mq: move lockdep_assert_held() into elevator_exit
First crash: 1734d, last: 1727d
Discussions (6)
Title Replies (including bot) Last reply
[PATCH 5.3 000/148] 5.3.6-stable review 163 (163) 2019/11/14 15:05
[PATCH AUTOSEL 5.3 01/71] drivers: thermal: qcom: tsens: Fix memory leak from qfprom read 74 (74) 2019/10/09 03:45
[PATCH AUTOSEL 5.2 01/63] drivers: thermal: qcom: tsens: Fix memory leak from qfprom read 63 (63) 2019/10/01 16:41
[PATCH] blk-mq: move lockdep_assert_held() into elevator_exit 3 (3) 2019/09/26 06:45
Re: [PATCH] blk-mq: move lockdep_assert_held() into elevator_exit 1 (1) 2019/09/25 23:38
WARNING in blk_mq_sched_free_requests (2) 1 (2) 2019/09/25 00:57
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream WARNING in blk_mq_sched_free_requests block C done 4 1834d 1836d 12/27 fixed on 2019/07/10 21:40

Sample crash report:
------------[ cut here ]------------
WARNING: CPU: 0 PID: 22939 at block/blk-mq-sched.c:558 blk_mq_sched_free_requests+0x1cc/0x250 block/blk-mq-sched.c:558
Kernel panic - not syncing: panic_on_warn set ...
CPU: 0 PID: 22939 Comm: syz-executor.3 Not tainted 5.3.0+ #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Call Trace:
 __dump_stack lib/dump_stack.c:77 [inline]
 dump_stack+0x172/0x1f0 lib/dump_stack.c:113
 panic+0x2dc/0x755 kernel/panic.c:220
 __warn.cold+0x2f/0x3c kernel/panic.c:581
 report_bug+0x289/0x300 lib/bug.c:195
 fixup_bug arch/x86/kernel/traps.c:179 [inline]
 fixup_bug arch/x86/kernel/traps.c:174 [inline]
 do_error_trap+0x11b/0x200 arch/x86/kernel/traps.c:272
 do_invalid_op+0x37/0x50 arch/x86/kernel/traps.c:291
 invalid_op+0x23/0x30 arch/x86/entry/entry_64.S:1028
RIP: 0010:blk_mq_sched_free_requests+0x1cc/0x250 block/blk-mq-sched.c:558
Code: fe 49 8d bd e8 06 00 00 be ff ff ff ff e8 ec d9 25 fe 31 ff 89 c3 89 c6 e8 81 4b 40 fe 85 db 0f 85 97 fe ff ff e8 f4 49 40 fe <0f> 0b e9 8b fe ff ff 48 c7 c7 f4 a1 c5 89 e8 d1 9e 7b fe e9 63 fe
RSP: 0018:ffff8880506879e0 EFLAGS: 00010216
RAX: 0000000000040000 RBX: 0000000000000000 RCX: ffffc9000c98a000
RDX: 000000000000c6a4 RSI: ffffffff8332884c RDI: 0000000000000005
RBP: ffff888050687a30 R08: ffff8880a0e00000 R09: fffffbfff14ed736
R10: fffffbfff14ed735 R11: ffffffff8a76b9af R12: 00000000fffffff4
R13: ffff8880a3074180 R14: ffff88809708e698 R15: ffff8880a3074180
 blk_mq_init_sched+0x32c/0x770 block/blk-mq-sched.c:543
 elevator_init_mq+0x1d3/0x3f0 block/elevator.c:719
 __device_add_disk+0xa00/0x1230 block/genhd.c:705
 device_add_disk+0x2b/0x40 block/genhd.c:763
 add_disk include/linux/genhd.h:429 [inline]
 loop_add+0x635/0x8d0 drivers/block/loop.c:2051
 loop_control_ioctl drivers/block/loop.c:2152 [inline]
 loop_control_ioctl+0x165/0x360 drivers/block/loop.c:2134
 vfs_ioctl fs/ioctl.c:46 [inline]
 file_ioctl fs/ioctl.c:509 [inline]
 do_vfs_ioctl+0xdb6/0x13e0 fs/ioctl.c:696
 ksys_ioctl+0xab/0xd0 fs/ioctl.c:713
 __do_sys_ioctl fs/ioctl.c:720 [inline]
 __se_sys_ioctl fs/ioctl.c:718 [inline]
 __x64_sys_ioctl+0x73/0xb0 fs/ioctl.c:718
 do_syscall_64+0xfa/0x760 arch/x86/entry/common.c:290
 entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x459a29
Code: fd b7 fb ff c3 66 2e 0f 1f 84 00 00 00 00 00 66 90 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 0f 83 cb b7 fb ff c3 66 2e 0f 1f 84 00 00 00 00
RSP: 002b:00007f8573d11c78 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 0000000000459a29
RDX: 0000000000000000 RSI: 0000000000004c80 RDI: 0000000000000004
RBP: 000000000075c070 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 00007f8573d126d4
R13: 00000000004c314c R14: 00000000004d6a18 R15: 00000000ffffffff
Kernel Offset: disabled
Rebooting in 86400 seconds..

Crashes (7):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2019/09/26 18:48 upstream cbafe18c7102 24d405a3 .config console log report ci-upstream-kasan-gce-root
2019/09/22 11:31 upstream f7c3bf8fa7e5 d96e88f3 .config console log report ci-upstream-kasan-gce-root
2019/09/22 11:18 upstream f7c3bf8fa7e5 d96e88f3 .config console log report ci-upstream-kasan-gce
2019/09/22 10:27 upstream f7c3bf8fa7e5 d96e88f3 .config console log report ci-upstream-kasan-gce-root
2019/09/20 23:25 upstream 574cc4539762 d96e88f3 .config console log report ci-upstream-kasan-gce-selinux-root
2019/09/28 09:10 linux-next bb2aee77c82d d8074e0b .config console log report ci-upstream-linux-next-kasan-gce-root
2019/09/28 01:55 linux-next bb2aee77c82d d8074e0b .config console log report ci-upstream-linux-next-kasan-gce-root
* Struck through repros no longer work on HEAD.