syzbot


WARNING in nbd_dev_add

Status: upstream: reported C repro on 2021/02/22 12:25
Reported-by: syzbot+ae049bfa860d904e5cc8@syzkaller.appspotmail.com
First crash: 1183d, last: 454d
Similar bugs (2)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream WARNING in nbd_dev_add block C inconclusive 131 924d 1183d 20/26 fixed on 2021/11/10 00:50
upstream WARNING in nbd_dev_add (2) block 4 920d 918d 20/26 fixed on 2022/03/08 16:11

Sample crash report:
RBP: 00007f7d92cb65a0 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 00007f7d92cb6630
R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000
kobject_add_internal failed for 43:0 with -EEXIST, don't try to register things with the same name in the same directory.
------------[ cut here ]------------
WARNING: CPU: 0 PID: 8085 at block/genhd.c:719 __device_add_disk.cold+0x69/0x188 block/genhd.c:719
Kernel panic - not syncing: panic_on_warn set ...

CPU: 0 PID: 8085 Comm: syz-executor821 Not tainted 4.19.211-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/21/2023
Call Trace:
 __dump_stack lib/dump_stack.c:77 [inline]
 dump_stack+0x1fc/0x2ef lib/dump_stack.c:118
 panic+0x26a/0x50e kernel/panic.c:186
 __warn.cold+0x20/0x5a kernel/panic.c:541
 report_bug+0x262/0x2b0 lib/bug.c:183
 fixup_bug arch/x86/kernel/traps.c:178 [inline]
 fixup_bug arch/x86/kernel/traps.c:173 [inline]
 do_error_trap+0x1d7/0x310 arch/x86/kernel/traps.c:296
 invalid_op+0x14/0x20 arch/x86/entry/entry_64.S:1038
RIP: 0010:__device_add_disk.cold+0x69/0x188 block/genhd.c:719
Code: 02 84 c0 74 08 3c 03 0f 8e a8 00 00 00 44 8b a5 f0 05 00 00 e9 67 ad 6a fb e8 05 45 66 f9 48 c7 c7 60 75 b2 88 e8 64 76 f7 ff <0f> 0b e9 8f b9 6a fb e8 ed 44 66 f9 48 c7 c7 60 75 b2 88 e8 4c 76
RSP: 0018:ffff888090abf488 EFLAGS: 00010282
RAX: 0000000000000024 RBX: 0000000000000001 RCX: 0000000000000000
RDX: 0000000000000000 RSI: ffffffff814dff01 RDI: ffffed1012157e83
RBP: ffff88809ea3ce00 R08: 0000000000000024 R09: 0000000000000000
R10: 0000000000000005 R11: 0000000000000000 R12: ffff88809ea3ce90
R13: ffff88809ea3d490 R14: 00000000ffffffef R15: ffff88809ea3ce04
 add_disk include/linux/genhd.h:409 [inline]
 nbd_dev_add+0x6a9/0x890 drivers/block/nbd.c:1692
 nbd_genl_connect+0x488/0x1630 drivers/block/nbd.c:1784
 genl_family_rcv_msg+0x642/0xc40 net/netlink/genetlink.c:602
 genl_rcv_msg+0xbf/0x160 net/netlink/genetlink.c:627
 netlink_rcv_skb+0x160/0x440 net/netlink/af_netlink.c:2463
 genl_rcv+0x24/0x40 net/netlink/genetlink.c:638
 netlink_unicast_kernel net/netlink/af_netlink.c:1325 [inline]
 netlink_unicast+0x4d5/0x690 net/netlink/af_netlink.c:1351
 netlink_sendmsg+0x6c3/0xc50 net/netlink/af_netlink.c:1917
 sock_sendmsg_nosec net/socket.c:651 [inline]
 sock_sendmsg+0xc3/0x120 net/socket.c:661
 ___sys_sendmsg+0x7bb/0x8e0 net/socket.c:2227
 __sys_sendmsg net/socket.c:2265 [inline]
 __do_sys_sendmsg net/socket.c:2274 [inline]
 __se_sys_sendmsg net/socket.c:2272 [inline]
 __x64_sys_sendmsg+0x132/0x220 net/socket.c:2272
 do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293
 entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x7f7d92cf2b39
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:00007fff8dd090f8 EFLAGS: 00000246 ORIG_RAX: 000000000000002e
RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007f7d92cf2b39
RDX: 0000000000000000 RSI: 00000000200001c0 RDI: 0000000000000003
RBP: 00007f7d92cb65a0 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 00007f7d92cb6630
R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000
Kernel Offset: disabled
Rebooting in 86400 seconds..

Crashes (165):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/02/21 18:37 linux-4.19.y 3f8a27f9e27b f949448d .config console log report syz C [disk image] [vmlinux] ci2-linux-4-19 WARNING in nbd_dev_add
2022/10/29 11:42 linux-4.19.y 3f8a27f9e27b 899d812a .config console log report syz C [disk image] [vmlinux] ci2-linux-4-19 WARNING in nbd_dev_add
2022/07/13 00:08 linux-4.19.y 3f8a27f9e27b d91dd8ea .config console log report syz C ci2-linux-4-19 WARNING in nbd_dev_add
2022/03/29 07:26 linux-4.19.y 3f8a27f9e27b 6bdac766 .config console log report syz C ci2-linux-4-19 WARNING in nbd_dev_add
2021/07/26 17:20 linux-4.19.y 4938296e03bd fd511809 .config console log report syz C ci2-linux-4-19 WARNING in nbd_dev_add
2021/05/23 07:14 linux-4.19.y 1e986fe9ad15 3c7fef33 .config console log report syz C ci2-linux-4-19 WARNING in nbd_dev_add
2021/03/14 00:49 linux-4.19.y 030194a5b292 4a003785 .config console log report syz C ci2-linux-4-19 WARNING in nbd_dev_add
2021/03/08 01:49 linux-4.19.y 2cae3e25b706 09fbf400 .config console log report syz C ci2-linux-4-19 WARNING in nbd_dev_add
2021/02/27 08:49 linux-4.19.y 2d19be4653f5 4c37c133 .config console log report syz C ci2-linux-4-19 WARNING in nbd_dev_add
2023/02/21 18:23 linux-4.19.y 3f8a27f9e27b f949448d .config console log report info [disk image] [vmlinux] ci2-linux-4-19 WARNING in nbd_dev_add
2023/02/05 08:56 linux-4.19.y 3f8a27f9e27b be607b78 .config console log report info [disk image] [vmlinux] ci2-linux-4-19 WARNING in nbd_dev_add
2023/02/04 08:57 linux-4.19.y 3f8a27f9e27b 1b2f701a .config console log report info [disk image] [vmlinux] ci2-linux-4-19 WARNING in nbd_dev_add
2023/01/19 19:03 linux-4.19.y 3f8a27f9e27b 66fca3ae .config console log report info [disk image] [vmlinux] ci2-linux-4-19 WARNING in nbd_dev_add
2023/01/15 16:58 linux-4.19.y 3f8a27f9e27b a63719e7 .config console log report info [disk image] [vmlinux] ci2-linux-4-19 WARNING in nbd_dev_add
2022/11/28 15:45 linux-4.19.y 3f8a27f9e27b 247de55b .config console log report info [disk image] [vmlinux] ci2-linux-4-19 WARNING in nbd_dev_add
2022/11/17 23:19 linux-4.19.y 3f8a27f9e27b 4ba8ab94 .config console log report info [disk image] [vmlinux] ci2-linux-4-19 WARNING in nbd_dev_add
2022/11/13 09:58 linux-4.19.y 3f8a27f9e27b f42ee5d8 .config console log report info [disk image] [vmlinux] ci2-linux-4-19 WARNING in nbd_dev_add
2022/10/29 23:23 linux-4.19.y 3f8a27f9e27b 2a71366b .config console log report info [disk image] [vmlinux] ci2-linux-4-19 WARNING in nbd_dev_add
2022/10/29 11:24 linux-4.19.y 3f8a27f9e27b 899d812a .config console log report info [disk image] [vmlinux] ci2-linux-4-19 WARNING in nbd_dev_add
2022/10/06 04:14 linux-4.19.y 3f8a27f9e27b 2c6543ad .config console log report info [disk image] [vmlinux] ci2-linux-4-19 WARNING in nbd_dev_add
2022/09/23 01:05 linux-4.19.y 3f8a27f9e27b 0042f2b4 .config console log report info ci2-linux-4-19 WARNING in nbd_dev_add
2022/09/17 20:51 linux-4.19.y 3f8a27f9e27b dd9a85ff .config console log report info [disk image] [vmlinux] ci2-linux-4-19 WARNING in nbd_dev_add
2022/09/17 19:01 linux-4.19.y 3f8a27f9e27b dd9a85ff .config console log report info [disk image] [vmlinux] ci2-linux-4-19 WARNING in nbd_dev_add
2022/09/13 06:53 linux-4.19.y 3f8a27f9e27b f371ed7e .config console log report info ci2-linux-4-19 WARNING in nbd_dev_add
2022/09/04 07:07 linux-4.19.y 3f8a27f9e27b 28811d0a .config console log report info [disk image] [vmlinux] ci2-linux-4-19 WARNING in nbd_dev_add
2022/09/03 05:22 linux-4.19.y 3f8a27f9e27b 49e94a20 .config console log report info [disk image] [vmlinux] ci2-linux-4-19 WARNING in nbd_dev_add
2022/09/02 06:04 linux-4.19.y 3f8a27f9e27b a805568e .config console log report info [disk image] [vmlinux] ci2-linux-4-19 WARNING in nbd_dev_add
2022/08/28 09:54 linux-4.19.y 3f8a27f9e27b 07177916 .config console log report info ci2-linux-4-19 WARNING in nbd_dev_add
2022/08/20 07:37 linux-4.19.y 3f8a27f9e27b 26a13b38 .config console log report info ci2-linux-4-19 WARNING in nbd_dev_add
2022/08/17 03:26 linux-4.19.y 3f8a27f9e27b 9e4b39c2 .config console log report info ci2-linux-4-19 WARNING in nbd_dev_add
2022/08/10 01:10 linux-4.19.y 3f8a27f9e27b c2a623d6 .config console log report info ci2-linux-4-19 WARNING in nbd_dev_add
2022/07/20 06:19 linux-4.19.y 3f8a27f9e27b 775344bc .config console log report info ci2-linux-4-19 WARNING in nbd_dev_add
2022/06/18 08:51 linux-4.19.y 3f8a27f9e27b 8f633d84 .config console log report info ci2-linux-4-19 WARNING in nbd_dev_add
2022/06/07 16:50 linux-4.19.y 3f8a27f9e27b b2706118 .config console log report info ci2-linux-4-19 WARNING in nbd_dev_add
2022/06/04 02:49 linux-4.19.y 3f8a27f9e27b c8857892 .config console log report info ci2-linux-4-19 WARNING in nbd_dev_add
2022/05/31 04:09 linux-4.19.y 3f8a27f9e27b af70c3a9 .config console log report info ci2-linux-4-19 WARNING in nbd_dev_add
2022/05/29 08:33 linux-4.19.y 3f8a27f9e27b a46af346 .config console log report info ci2-linux-4-19 WARNING in nbd_dev_add
2022/05/28 08:26 linux-4.19.y 3f8a27f9e27b a46af346 .config console log report info ci2-linux-4-19 WARNING in nbd_dev_add
2022/05/24 17:54 linux-4.19.y 3f8a27f9e27b fcfad4ff .config console log report info ci2-linux-4-19 WARNING in nbd_dev_add
2022/05/18 11:01 linux-4.19.y 3f8a27f9e27b 744a39e2 .config console log report info ci2-linux-4-19 WARNING in nbd_dev_add
2022/05/15 21:15 linux-4.19.y 3f8a27f9e27b 744a39e2 .config console log report info ci2-linux-4-19 WARNING in nbd_dev_add
2022/05/06 10:01 linux-4.19.y 3f8a27f9e27b efeff0a5 .config console log report info ci2-linux-4-19 WARNING in nbd_dev_add
2022/05/04 02:08 linux-4.19.y 3f8a27f9e27b dc9e5259 .config console log report info ci2-linux-4-19 WARNING in nbd_dev_add
2022/04/24 21:08 linux-4.19.y 3f8a27f9e27b 131df97d .config console log report info ci2-linux-4-19 WARNING in nbd_dev_add
2022/04/24 19:51 linux-4.19.y 3f8a27f9e27b 131df97d .config console log report info ci2-linux-4-19 WARNING in nbd_dev_add
2022/04/20 23:13 linux-4.19.y 3f8a27f9e27b d4befee1 .config console log report info ci2-linux-4-19 WARNING in nbd_dev_add
2022/04/08 07:09 linux-4.19.y 3f8a27f9e27b c6ff3e05 .config console log report info ci2-linux-4-19 WARNING in nbd_dev_add
2022/03/30 19:46 linux-4.19.y 3f8a27f9e27b 42718dd6 .config console log report info ci2-linux-4-19 WARNING in nbd_dev_add
2022/03/29 23:06 linux-4.19.y 3f8a27f9e27b 6bdac766 .config console log report info ci2-linux-4-19 WARNING in nbd_dev_add
2022/03/29 11:28 linux-4.19.y 3f8a27f9e27b 6bdac766 .config console log report info ci2-linux-4-19 WARNING in nbd_dev_add
2022/03/27 08:12 linux-4.19.y 3f8a27f9e27b 89bc8608 .config console log report info ci2-linux-4-19 WARNING in nbd_dev_add
2022/03/26 03:12 linux-4.19.y 3f8a27f9e27b 89bc8608 .config console log report info ci2-linux-4-19 WARNING in nbd_dev_add
2022/03/21 07:56 linux-4.19.y 3f8a27f9e27b e2d91b1d .config console log report info ci2-linux-4-19 WARNING in nbd_dev_add
2022/03/09 18:54 linux-4.19.y 3f8a27f9e27b 9e8eaa75 .config console log report info ci2-linux-4-19 WARNING in nbd_dev_add
2021/02/22 12:24 linux-4.19.y 255b58a2b3af a659b3f1 .config console log report info ci2-linux-4-19 WARNING in nbd_dev_add
* Struck through repros no longer work on HEAD.