syzbot


WARNING in internal_create_group

Status: fixed on 2021/11/10 00:50
Subsystems: fs
[Documentation on labels]
Reported-by: syzbot+9937dc42271cd87d4b98@syzkaller.appspotmail.com
Fix commit: b1a811633f73 block: nbd: add sanity check for first_minor
First crash: 1069d, last: 1011d
Cause bisection: the issue happens on the oldest tested release (bisect log)
Crash: WARNING in nbd_dev_add (log)
Repro: C syz .config
  
Discussions (7)
Title Replies (including bot) Last reply
[PATCH 5.14 000/334] 5.14.4-rc1 review 381 (381) 2021/09/22 06:20
Re: [syzbot] WARNING in internal_create_group 6 (6) 2021/09/16 10:56
[PATCH 5.10 000/236] 5.10.65-rc1 review 249 (249) 2021/09/16 08:48
[PATCH 5.4 000/144] 5.4.146-rc1 review 151 (151) 2021/09/15 02:05
[PATCH 5.13 000/300] 5.13.17-rc1 review 308 (308) 2021/09/14 15:59
[PATCH] block: nbd: add sanity check for first_minor 7 (7) 2021/08/16 16:56
[syzbot] WARNING in internal_create_group 0 (2) 2021/07/20 18:53

Sample crash report:
RSP: 002b:00007ffd8de69d18 EFLAGS: 00000246 ORIG_RAX: 000000000000002e
RAX: ffffffffffffffda RBX: 00000000004004a0 RCX: 000000000043fa49
RDX: 0000000000000000 RSI: 00000000200002c0 RDI: 0000000000000004
RBP: 00000000004034b0 R08: 0000000000000000 R09: 00000000004004a0
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000403540
R13: 0000000000000000 R14: 00000000004ad018 R15: 00000000004004a0
------------[ cut here ]------------
WARNING: CPU: 0 PID: 8435 at fs/sysfs/group.c:116 internal_create_group+0x911/0xb20 fs/sysfs/group.c:116
Modules linked in:
CPU: 0 PID: 8435 Comm: syz-executor570 Not tainted 5.14.0-rc2-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:internal_create_group+0x911/0xb20 fs/sysfs/group.c:116
Code: 0f 85 e8 f7 ff ff 41 bd ea ff ff ff e9 34 fd ff ff e8 53 3b 82 ff 48 8b 7c 24 08 e8 89 11 ff ff e9 20 fd ff ff e8 3f 3b 82 ff <0f> 0b 41 bd ea ff ff ff e9 0e fd ff ff e8 2d 3b 82 ff 48 8b 14 24
RSP: 0018:ffffc900010ff2a8 EFLAGS: 00010293
RAX: 0000000000000000 RBX: 0000000000000000 RCX: 0000000000000000
RDX: ffff8880284f0000 RSI: ffffffff81f34d91 RDI: 0000000000000003
RBP: ffff88801fd7b9a8 R08: 0000000000000000 R09: ffff88801fd7b9af
R10: ffffffff81f3453e R11: 0000000000000000 R12: 0000000000000000
R13: ffff8881455db770 R14: 0000000000000000 R15: ffff8881455db77c
FS:  0000000000990300(0000) GS:ffff8880b9c00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f56bbe93740 CR3: 000000001dd48000 CR4: 0000000000350ef0
Call Trace:
 blk_register_queue+0xda/0x570 block/blk-sysfs.c:871
 __device_add_disk+0x7b5/0xd10 block/genhd.c:529
 add_disk include/linux/genhd.h:217 [inline]
 nbd_dev_add+0x73f/0x940 drivers/block/nbd.c:1733
 nbd_genl_connect+0x551/0x1820 drivers/block/nbd.c:1842
 genl_family_rcv_msg_doit+0x228/0x320 net/netlink/genetlink.c:739
 genl_family_rcv_msg net/netlink/genetlink.c:783 [inline]
 genl_rcv_msg+0x328/0x580 net/netlink/genetlink.c:800
 netlink_rcv_skb+0x153/0x420 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+0x533/0x7d0 net/netlink/af_netlink.c:1340
 netlink_sendmsg+0x86d/0xdb0 net/netlink/af_netlink.c:1929
 sock_sendmsg_nosec net/socket.c:703 [inline]
 sock_sendmsg+0xcf/0x120 net/socket.c:723
 ____sys_sendmsg+0x6e8/0x810 net/socket.c:2392
 ___sys_sendmsg+0xf3/0x170 net/socket.c:2446
 __sys_sendmsg+0xe5/0x1b0 net/socket.c:2475
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x35/0xb0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x44/0xae
RIP: 0033:0x43fa49
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:00007ffd8de69d18 EFLAGS: 00000246 ORIG_RAX: 000000000000002e
RAX: ffffffffffffffda RBX: 00000000004004a0 RCX: 000000000043fa49
RDX: 0000000000000000 RSI: 00000000200002c0 RDI: 0000000000000004
RBP: 00000000004034b0 R08: 0000000000000000 R09: 00000000004004a0
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000403540
R13: 0000000000000000 R14: 00000000004ad018 R15: 00000000004004a0

Crashes (20):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2021/07/20 18:53 upstream 8cae8cd89f05 1b201b48 .config console log report syz C ci-upstream-kasan-gce-root WARNING in internal_create_group
2021/08/20 09:45 upstream f87d64319e6f b599f2fc .config console log report info ci-upstream-kasan-gce-selinux-root WARNING in internal_create_group
2021/07/20 18:31 upstream 8cae8cd89f05 1b201b48 .config console log report info ci-upstream-kasan-gce-root WARNING in internal_create_group
2021/09/04 17:13 net-old 57f780f1c433 d236a457 .config console log report info ci-upstream-net-this-kasan-gce WARNING in internal_create_group
2021/09/03 17:05 net-old 57f780f1c433 f62a5829 .config console log report info ci-upstream-net-this-kasan-gce WARNING in internal_create_group
2021/08/27 09:09 net-old 73367f05b25d b318694d .config console log report info ci-upstream-net-this-kasan-gce WARNING in internal_create_group
2021/08/25 05:31 net-old 3b0720ba00a7 b599f2fc .config console log report info ci-upstream-net-this-kasan-gce WARNING in internal_create_group
2021/08/18 10:24 net-old 276e189f8e4e a2fe1cb5 .config console log report info ci-upstream-net-this-kasan-gce WARNING in internal_create_group
2021/08/16 16:42 net-old 19d1532a1876 33c26cb7 .config console log report info ci-upstream-net-this-kasan-gce WARNING in internal_create_group
2021/08/13 18:49 net-old a9a507013a6f 3fd2ea69 .config console log report info ci-upstream-net-this-kasan-gce WARNING in internal_create_group
2021/07/19 08:00 net-old 517a16b1a88b f115ae98 .config console log report info ci-upstream-net-this-kasan-gce WARNING in internal_create_group
2021/07/10 18:50 net-old 5d52c906f059 8f5a7b8c .config console log report info ci-upstream-net-this-kasan-gce WARNING in internal_create_group
2021/09/06 05:58 net-next-old 29ce8f970107 d236a457 .config console log report info ci-upstream-net-kasan-gce WARNING in internal_create_group
2021/08/24 12:08 net-next-old faf482ca196a b599f2fc .config console log report info ci-upstream-net-kasan-gce WARNING in internal_create_group
2021/08/16 04:02 net-next-old e4637f621203 2489ab88 .config console log report info ci-upstream-net-kasan-gce WARNING in internal_create_group
2021/08/12 22:04 net-next-old bed5a942e27e 3fd2ea69 .config console log report info ci-upstream-net-kasan-gce WARNING in internal_create_group
2021/07/31 14:51 net-next-old 3e12361b6d23 6c236867 .config console log report info ci-upstream-net-kasan-gce WARNING in internal_create_group
2021/07/30 21:32 net-next-old 3e12361b6d23 6c236867 .config console log report info ci-upstream-net-kasan-gce WARNING in internal_create_group
2021/08/08 04:21 linux-next 7999516e20bd 6972b106 .config console log report info ci-upstream-linux-next-kasan-gce-root WARNING in internal_create_group
2021/07/22 17:45 linux-next 7468cbf5c917 302e51de .config console log report info ci-upstream-linux-next-kasan-gce-root WARNING in internal_create_group
* Struck through repros no longer work on HEAD.