syzbot


WARNING in kernfs_remove_by_name_ns (3)
Status: upstream: reported C repro on 2021/11/08 11:24
Reported-by: syzbot+93cbdd0ab421adc5275d@syzkaller.appspotmail.com
First crash: 204d, last: 12d

Cause bisection: failed (bisect log)
similar bugs (2):
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream WARNING in kernfs_remove_by_name_ns (2) 1 375d 371d 0/22 auto-closed as invalid on 2021/09/14 07:04
upstream WARNING in kernfs_remove_by_name_ns 4 994d 1069d 0/22 auto-closed as invalid on 2020/01/04 08:56
Patch testing requests:
Created Duration User Patch Repo Result
2022/03/03 02:47 10m phind.uet@gmail.com linux-next report log

Sample crash report:
------------[ cut here ]------------
kernfs: can not remove 'nr_tags', no directory
WARNING: CPU: 0 PID: 3670 at fs/kernfs/dir.c:1569 kernfs_remove_by_name_ns+0xed/0x110 fs/kernfs/dir.c:1569
Modules linked in:
CPU: 0 PID: 3670 Comm: syz-executor363 Not tainted 5.18.0-rc6-syzkaller-00148-gec7f49619d8e #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:kernfs_remove_by_name_ns+0xed/0x110 fs/kernfs/dir.c:1569
Code: c3 e8 67 ee 79 ff 4c 89 e7 41 bc fe ff ff ff e8 69 1e 5d ff eb da e8 52 ee 79 ff 4c 89 ee 48 c7 c7 a0 95 de 89 e8 eb 3d 29 07 <0f> 0b 41 bc fe ff ff ff eb bc e8 24 7f c5 ff e9 71 ff ff ff e8 1a
RSP: 0018:ffffc9000341fa20 EFLAGS: 00010286
RAX: 0000000000000000 RBX: ffffffff8c657a68 RCX: 0000000000000000
RDX: ffff888020479d80 RSI: ffffffff81601ae8 RDI: fffff52000683f36
RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000001
R10: ffffffff815fc4be R11: 0000000000000000 R12: 0000000000000000
R13: ffffffff8a255fc0 R14: 0000000000000000 R15: 0000000000000001
FS:  00007f2b8f1b6700(0000) GS:ffff8880b9c00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f2b8f271aa6 CR3: 0000000073cfa000 CR4: 0000000000350ef0
Call Trace:
 <TASK>
 kernfs_remove_by_name include/linux/kernfs.h:558 [inline]
 remove_files+0x96/0x1c0 fs/sysfs/group.c:28
 sysfs_remove_group+0x87/0x170 fs/sysfs/group.c:288
 sysfs_remove_groups fs/sysfs/group.c:312 [inline]
 sysfs_remove_groups+0x5c/0xa0 fs/sysfs/group.c:304
 __kobject_del+0x89/0x200 lib/kobject.c:579
 kobject_del lib/kobject.c:611 [inline]
 kobject_del+0x3c/0x60 lib/kobject.c:603
 blk_mq_unregister_hctx block/blk-mq-sysfs.c:181 [inline]
 blk_mq_unregister_hctx block/blk-mq-sysfs.c:170 [inline]
 blk_mq_sysfs_unregister+0x247/0x2c0 block/blk-mq-sysfs.c:303
 __blk_mq_update_nr_hw_queues block/blk-mq.c:4518 [inline]
 blk_mq_update_nr_hw_queues+0x48c/0xe10 block/blk-mq.c:4564
 nbd_start_device+0x157/0xd10 drivers/block/nbd.c:1347
 nbd_start_device_ioctl drivers/block/nbd.c:1397 [inline]
 __nbd_ioctl drivers/block/nbd.c:1471 [inline]
 nbd_ioctl+0x5f3/0xb10 drivers/block/nbd.c:1511
 blkdev_ioctl+0x36e/0x800 block/ioctl.c:588
 vfs_ioctl fs/ioctl.c:51 [inline]
 __do_sys_ioctl fs/ioctl.c:870 [inline]
 __se_sys_ioctl fs/ioctl.c:856 [inline]
 __x64_sys_ioctl+0x193/0x200 fs/ioctl.c:856
 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:0x7f2b8f209339
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 11 15 00 00 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 73 01 c3 48 c7 c1 b8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007f2b8f1b62e8 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 00007f2b8f28d4e0 RCX: 00007f2b8f209339
RDX: 0000000000000000 RSI: 000000000000ab03 RDI: 0000000000000007
RBP: 00007f2b8f25a1ac R08: 0000000000000002 R09: 0000000000003631
R10: 0000000000000000 R11: 0000000000000246 R12: 00007f2b8f28d4ec
R13: 00007f2b8f1b62f0 R14: 00007f2b8f28d4e8 R15: 0000000000000002
 </TASK>

Fix bisection attempts:
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci-upstream-kasan-gce-smack-root 2022/04/01 17:43 upstream e8b767f5e040 6cc879d4 .config log report syz C
Crashes (18):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci-upstream-kasan-gce-root 2022/05/14 23:06 upstream ec7f49619d8e 744a39e2 .config log report syz C WARNING in kernfs_remove_by_name_ns
ci-upstream-kasan-gce-root 2022/04/18 16:56 upstream b2d229d4ddb1 8bcc32a6 .config log report syz C WARNING in kernfs_remove_by_name_ns
ci-upstream-kasan-gce-smack-root 2021/12/29 19:50 upstream e7c124bd0463 6cc879d4 .config log report syz C WARNING in kernfs_remove_by_name_ns
ci-upstream-linux-next-kasan-gce-root 2022/03/01 19:39 linux-next e6ada6df471f 45a13a73 .config log report syz C WARNING in kernfs_remove_by_name_ns
ci-upstream-kasan-gce-smack-root 2022/04/24 14:10 upstream 22da5264abf4 131df97d .config log report info WARNING in kernfs_remove_by_name_ns
ci-upstream-kasan-gce-smack-root 2022/04/15 02:53 upstream b9b4c79e5830 b17b2923 .config log report info WARNING in kernfs_remove_by_name_ns
ci-upstream-kasan-gce-root 2022/02/27 06:21 upstream 2293be58d6a1 45a13a73 .config log report info WARNING in kernfs_remove_by_name_ns
ci-upstream-kasan-gce-selinux-root 2022/02/09 03:11 upstream e6251ab4551f 0b33604d .config log report info WARNING in kernfs_remove_by_name_ns
ci-upstream-kasan-gce-smack-root 2022/01/24 17:43 upstream dd81e1c7d5fb 214351e1 .config log report info WARNING in kernfs_remove_by_name_ns
ci-upstream-kasan-gce-root 2022/01/02 09:30 upstream 278218f6778b e1768e9c .config log report info WARNING in kernfs_remove_by_name_ns
ci-upstream-kasan-gce-smack-root 2021/12/29 18:20 upstream e7c124bd0463 6cc879d4 .config log report info WARNING in kernfs_remove_by_name_ns
ci-upstream-kasan-gce-root 2021/11/04 11:22 upstream ce840177930f 4c1be0be .config log report info WARNING in kernfs_remove_by_name_ns
ci2-upstream-usb 2022/05/10 21:12 https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing a2673d570bd6 8b277b8e .config log report info WARNING in kernfs_remove_by_name_ns
ci2-upstream-usb 2022/05/10 06:17 https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing a2673d570bd6 8b277b8e .config log report info WARNING in kernfs_remove_by_name_ns
ci-upstream-linux-next-kasan-gce-root 2022/03/02 17:21 linux-next e6ada6df471f 45a13a73 .config log report info WARNING in kernfs_remove_by_name_ns
ci-upstream-linux-next-kasan-gce-root 2022/02/09 03:05 linux-next ef6b35306dd8 0b33604d .config log report info WARNING in kernfs_remove_by_name_ns
ci-upstream-linux-next-kasan-gce-root 2022/01/19 18:10 linux-next 6f59bc242877 0620189b .config log report info WARNING in kernfs_remove_by_name_ns
ci-upstream-linux-next-kasan-gce-root 2022/01/17 08:01 linux-next 68e0667e38d9 723cfaf0 .config log report info WARNING in kernfs_remove_by_name_ns