syzbot


general protection fault in blk_mq_run_hw_queues

Status: fixed on 2021/11/10 00:50
Reported-by: syzbot+9ca43ff47167c0ee3466@syzkaller.appspotmail.com
Fix commit: 16ad3db3b24c nbd: fix order of cleaning up the queue and freeing the tagset
First crash: 577d, last: 526d

Cause bisection: introduced by (bisect log) [no-op commit]:
commit ceeb7218c6b3b0d7c514f86aadd7d3fb94343d2d
Author: Danil Kipnis <danil.kipnis@cloud.ionos.com>
Date: Mon Apr 19 07:37:04 2021 +0000

  MAINTAINERS: Change maintainer for rnbd module

Crash: WARNING in kvm_wait (log)
Repro: C syz .config
Last patch testing requests:
Created Duration User Patch Repo Result
2021/07/05 08:49 15m wangqing@vivo.com patch git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git dbe69e43 report log
2021/07/05 08:23 19m wangqing@vivo.com upstream error
2021/07/05 07:51 19m wangqing@vivo.com patch upstream error

Sample crash report:
netlink: 4 bytes leftover after parsing attributes in process `syz-executor092'.
netlink: 4 bytes leftover after parsing attributes in process `syz-executor092'.
nbd: socks must be embedded in a SOCK_ITEM attr
general protection fault, probably for non-canonical address 0xdffffc0000000000: 0000 [#1] PREEMPT SMP KASAN
KASAN: null-ptr-deref in range [0x0000000000000000-0x0000000000000007]
CPU: 0 PID: 8422 Comm: syz-executor092 Tainted: G        W         5.13.0-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:blk_mq_map_queue_type block/blk-mq.h:96 [inline]
RIP: 0010:blk_mq_get_sq_hctx block/blk-mq.c:1663 [inline]
RIP: 0010:blk_mq_run_hw_queues+0x14f/0x430 block/blk-mq.c:1682
Code: 80 3c 08 00 74 08 48 89 ef e8 0d 0f dd fd 44 89 fb 48 c1 e3 02 48 03 5d 00 48 89 d8 48 c1 e8 03 48 bd 00 00 00 00 00 fc ff df <8a> 04 28 84 c0 0f 85 b7 02 00 00 8b 03 49 8d 1c c4 48 89 d8 48 c1
RSP: 0018:ffffc9000183f160 EFLAGS: 00010246
RAX: 0000000000000000 RBX: 0000000000000000 RCX: dffffc0000000000
RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffff88801f912b38
RBP: dffffc0000000000 R08: ffffffff83eb6412 R09: ffffed1003f22687
R10: ffffed1003f22687 R11: 0000000000000000 R12: ffff88814615f4d8
R13: 0000000000000000 R14: ffff88801f912af0 R15: 0000000000000000
FS:  0000000001ab6300(0000) GS:ffff8880b9a00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fa915ace020 CR3: 0000000018231000 CR4: 00000000001506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 blk_set_queue_dying block/blk-core.c:353 [inline]
 blk_cleanup_queue+0x9c/0x220 block/blk-core.c:380
 blk_cleanup_disk+0x3b/0x80 block/genhd.c:1324
 nbd_dev_remove drivers/block/nbd.c:226 [inline]
 nbd_put+0x9d/0x170 drivers/block/nbd.c:246
 nbd_genl_connect+0x17e7/0x1aa0 drivers/block/nbd.c:1957
 genl_family_rcv_msg_doit net/netlink/genetlink.c:739 [inline]
 genl_family_rcv_msg net/netlink/genetlink.c:783 [inline]
 genl_rcv_msg+0xfb4/0x13c0 net/netlink/genetlink.c:800
 netlink_rcv_skb+0x1f0/0x460 net/netlink/af_netlink.c:2504
 genl_rcv+0x24/0x40 net/netlink/genetlink.c:811
 netlink_unicast_kernel net/netlink/af_netlink.c:1314 [inline]
 netlink_unicast+0x7de/0x9b0 net/netlink/af_netlink.c:1340
 netlink_sendmsg+0xaa6/0xe90 net/netlink/af_netlink.c:1929
 sock_sendmsg_nosec net/socket.c:702 [inline]
 sock_sendmsg net/socket.c:722 [inline]
 ____sys_sendmsg+0x5a2/0x900 net/socket.c:2385
 ___sys_sendmsg net/socket.c:2439 [inline]
 __sys_sendmsg+0x319/0x400 net/socket.c:2468
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x3d/0xb0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x44/0xae
RIP: 0033:0x43fa29
Code: 28 c3 e8 5a 14 00 00 66 2e 0f 1f 84 00 00 00 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 c7 c1 c0 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007ffcd5946088 EFLAGS: 00000246 ORIG_RAX: 000000000000002e
RAX: ffffffffffffffda RBX: 00000000004004a0 RCX: 000000000043fa29
RDX: 0000000000000000 RSI: 0000000020000b40 RDI: 0000000000000003
RBP: 0000000000403490 R08: 0000000000000000 R09: 00000000004004a0
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000403520
R13: 0000000000000000 R14: 00000000004ad018 R15: 00000000004004a0
Modules linked in:
---[ end trace d9ad06d2dab45e1b ]---
RIP: 0010:blk_mq_map_queue_type block/blk-mq.h:96 [inline]
RIP: 0010:blk_mq_get_sq_hctx block/blk-mq.c:1663 [inline]
RIP: 0010:blk_mq_run_hw_queues+0x14f/0x430 block/blk-mq.c:1682
Code: 80 3c 08 00 74 08 48 89 ef e8 0d 0f dd fd 44 89 fb 48 c1 e3 02 48 03 5d 00 48 89 d8 48 c1 e8 03 48 bd 00 00 00 00 00 fc ff df <8a> 04 28 84 c0 0f 85 b7 02 00 00 8b 03 49 8d 1c c4 48 89 d8 48 c1
RSP: 0018:ffffc9000183f160 EFLAGS: 00010246
RAX: 0000000000000000 RBX: 0000000000000000 RCX: dffffc0000000000
RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffff88801f912b38
RBP: dffffc0000000000 R08: ffffffff83eb6412 R09: ffffed1003f22687
R10: ffffed1003f22687 R11: 0000000000000000 R12: ffff88814615f4d8
R13: 0000000000000000 R14: ffff88801f912af0 R15: 0000000000000000
FS:  0000000001ab6300(0000) GS:ffff8880b9a00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fa915ace020 CR3: 0000000018231000 CR4: 00000000001506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400

Crashes (305):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets Title
ci-upstream-kasan-gce-smack-root 2021/07/01 12:32 upstream dbe69e433722 658ebc66 .config console log report syz C general protection fault in blk_mq_run_hw_queues
ci-upstream-kasan-gce-smack-root 2021/07/15 20:38 upstream 8096acd7442e b9a2f64e .config console log report info general protection fault in blk_mq_run_hw_queues
ci-upstream-kasan-gce-smack-root 2021/07/15 06:38 upstream 8096acd7442e b9a2f64e .config console log report info general protection fault in blk_mq_run_hw_queues
ci-upstream-kasan-gce-selinux-root 2021/07/14 23:44 upstream 8096acd7442e 94e0b707 .config console log report info general protection fault in blk_mq_run_hw_queues
ci-upstream-kasan-gce-smack-root 2021/07/14 14:00 upstream 40226a3d96ef 484502bd .config console log report info general protection fault in blk_mq_run_hw_queues
ci-upstream-kasan-gce-smack-root 2021/07/14 12:12 upstream 40226a3d96ef 484502bd .config console log report info general protection fault in blk_mq_run_hw_queues
ci-upstream-kasan-gce-root 2021/07/13 21:59 upstream 40226a3d96ef fa0594c3 .config console log report info general protection fault in blk_mq_run_hw_queues
ci-upstream-kasan-gce-selinux-root 2021/07/13 07:22 upstream 7fef2edf7cc7 f415556d .config console log report info general protection fault in blk_mq_run_hw_queues
ci-upstream-kasan-gce-selinux-root 2021/07/13 01:46 upstream 7fef2edf7cc7 f415556d .config console log report info general protection fault in blk_mq_run_hw_queues
ci-upstream-kasan-gce-smack-root 2021/07/13 01:32 upstream 7fef2edf7cc7 f415556d .config console log report info general protection fault in blk_mq_run_hw_queues
ci-upstream-kasan-gce-selinux-root 2021/07/13 00:32 upstream 7fef2edf7cc7 f415556d .config console log report info general protection fault in blk_mq_run_hw_queues
ci-upstream-kasan-gce-root 2021/07/12 19:43 upstream e73f0f0ee754 f415556d .config console log report info general protection fault in blk_mq_run_hw_queues
ci-upstream-net-this-kasan-gce 2021/07/22 22:26 net e40cba9490ba 302e51de .config console log report info general protection fault in blk_mq_run_hw_queues
ci-upstream-net-this-kasan-gce 2021/07/22 06:38 net 161dcc024288 29c3f20f .config console log report info general protection fault in blk_mq_run_hw_queues
ci-upstream-net-this-kasan-gce 2021/07/21 12:56 net 09cfae9f13d5 1b201b48 .config console log report info general protection fault in blk_mq_run_hw_queues
ci-upstream-net-this-kasan-gce 2021/07/21 03:36 net 6c2d125823ae 1b201b48 .config console log report info general protection fault in blk_mq_run_hw_queues
ci-upstream-net-this-kasan-gce 2021/07/20 17:50 net 6c2d125823ae 1b201b48 .config console log report info general protection fault in blk_mq_run_hw_queues
ci-upstream-net-this-kasan-gce 2021/07/18 20:59 net a17ad0961706 f115ae98 .config console log report info general protection fault in blk_mq_run_hw_queues
ci-upstream-net-this-kasan-gce 2021/07/17 09:57 net 5b69874f74cc f115ae98 .config console log report info general protection fault in blk_mq_run_hw_queues
ci-upstream-net-this-kasan-gce 2021/07/16 04:31 net 65875073eddd f115ae98 .config console log report info general protection fault in blk_mq_run_hw_queues
ci-upstream-net-this-kasan-gce 2021/07/15 03:09 net 8096acd7442e 94e0b707 .config console log report info general protection fault in blk_mq_run_hw_queues
ci-upstream-net-this-kasan-gce 2021/07/01 05:42 net dbe69e433722 38a885d1 .config console log report info general protection fault in blk_mq_run_hw_queues
ci-upstream-net-kasan-gce 2021/07/24 00:15 net-next 090597b4a9c1 bc5f1d88 .config console log report info general protection fault in blk_mq_run_hw_queues
ci-upstream-net-kasan-gce 2021/07/22 22:25 net-next c2255ff47768 302e51de .config console log report info general protection fault in blk_mq_run_hw_queues
ci-upstream-net-kasan-gce 2021/07/22 11:40 net-next c2255ff47768 29c3f20f .config console log report info general protection fault in blk_mq_run_hw_queues
ci-upstream-net-kasan-gce 2021/07/22 05:38 net-next 54cb43199e14 29c3f20f .config console log report info general protection fault in blk_mq_run_hw_queues
ci-upstream-net-kasan-gce 2021/07/22 04:14 net-next 54cb43199e14 29c3f20f .config console log report info general protection fault in blk_mq_run_hw_queues
ci-upstream-net-kasan-gce 2021/07/20 15:55 net-next fef773fc8110 1b201b48 .config console log report info general protection fault in blk_mq_run_hw_queues
ci-upstream-net-kasan-gce 2021/07/20 14:25 net-next fef773fc8110 bc48c9ab .config console log report info general protection fault in blk_mq_run_hw_queues
ci-upstream-net-kasan-gce 2021/07/20 00:03 net-next 0d6835ffe50c bc48c9ab .config console log report info general protection fault in blk_mq_run_hw_queues
ci-upstream-net-kasan-gce 2021/07/18 02:51 net-next 23d2b94043ca f115ae98 .config console log report info general protection fault in blk_mq_run_hw_queues
ci-upstream-net-kasan-gce 2021/07/16 00:43 net-next 5c2c85315948 f115ae98 .config console log report info general protection fault in blk_mq_run_hw_queues
ci-upstream-net-kasan-gce 2021/07/14 11:03 net-next 5e437416ff66 484502bd .config console log report info general protection fault in blk_mq_run_hw_queues
ci-upstream-net-kasan-gce 2021/07/14 07:05 net-next 5e437416ff66 484502bd .config console log report info general protection fault in blk_mq_run_hw_queues
ci-upstream-net-kasan-gce 2021/07/14 02:08 net-next 5e437416ff66 fa0594c3 .config console log report info general protection fault in blk_mq_run_hw_queues
ci-upstream-net-kasan-gce 2021/07/12 16:50 net-next 5e437416ff66 a4869c92 .config console log report info general protection fault in blk_mq_run_hw_queues
ci-upstream-linux-next-kasan-gce-root 2021/07/21 07:15 linux-next c1a6d08348fc 1b201b48 .config console log report info general protection fault in blk_mq_run_hw_queues
ci-upstream-linux-next-kasan-gce-root 2021/07/20 18:32 linux-next c1a6d08348fc 1b201b48 .config console log report info general protection fault in blk_mq_run_hw_queues
ci-upstream-linux-next-kasan-gce-root 2021/07/18 22:39 linux-next c1a6d08348fc f115ae98 .config console log report info general protection fault in blk_mq_run_hw_queues
ci-upstream-linux-next-kasan-gce-root 2021/07/18 15:01 linux-next c1a6d08348fc f115ae98 .config console log report info general protection fault in blk_mq_run_hw_queues
ci-upstream-linux-next-kasan-gce-root 2021/07/18 04:01 linux-next c1a6d08348fc f115ae98 .config console log report info general protection fault in blk_mq_run_hw_queues
ci-upstream-linux-next-kasan-gce-root 2021/07/17 00:20 linux-next c1a6d08348fc f115ae98 .config console log report info general protection fault in blk_mq_run_hw_queues
ci-upstream-linux-next-kasan-gce-root 2021/07/16 06:23 linux-next c1a6d08348fc f115ae98 .config console log report info general protection fault in blk_mq_run_hw_queues
ci-upstream-linux-next-kasan-gce-root 2021/07/16 03:28 linux-next c1a6d08348fc f115ae98 .config console log report info general protection fault in blk_mq_run_hw_queues
ci-upstream-linux-next-kasan-gce-root 2021/07/15 07:58 linux-next c1a6d08348fc b9a2f64e .config console log report info general protection fault in blk_mq_run_hw_queues
ci-upstream-linux-next-kasan-gce-root 2021/07/14 20:29 linux-next c0d438dbc0b7 94e0b707 .config console log report info general protection fault in blk_mq_run_hw_queues
ci-upstream-linux-next-kasan-gce-root 2021/07/14 11:06 linux-next c0d438dbc0b7 484502bd .config console log report info general protection fault in blk_mq_run_hw_queues
ci-upstream-linux-next-kasan-gce-root 2021/07/13 19:43 linux-next 8f0df15bafc1 fa0594c3 .config console log report info general protection fault in blk_mq_run_hw_queues
ci-upstream-linux-next-kasan-gce-root 2021/07/13 15:17 linux-next 8f0df15bafc1 f415556d .config console log report info general protection fault in blk_mq_run_hw_queues
ci-upstream-linux-next-kasan-gce-root 2021/07/12 21:00 linux-next db503865b9ba f415556d .config console log report info general protection fault in blk_mq_run_hw_queues
ci-qemu2-riscv64 2021/08/21 13:42 git://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux.git fixes 1c8094e394bc b599f2fc .config console log report info KASAN: null-ptr-deref Read in blk_mq_run_hw_queues
ci-qemu2-riscv64 2021/08/08 03:07 git://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux.git fixes 867432bec1c6 6972b106 .config console log report info KASAN: null-ptr-deref Read in blk_mq_run_hw_queues
* Struck through repros no longer work on HEAD.