------------[ cut here ]------------ kernfs: can not remove 'nr_tags', no directory WARNING: CPU: 1 PID: 3707 at fs/kernfs/dir.c:1579 kernfs_remove_by_name_ns+0xed/0x110 fs/kernfs/dir.c:1579 Modules linked in: CPU: 1 PID: 3707 Comm: syz-executor309 Not tainted 6.0.0-rc2-next-20220826-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/22/2022 RIP: 0010:kernfs_remove_by_name_ns+0xed/0x110 fs/kernfs/dir.c:1579 Code: c3 e8 f7 c3 7d ff 4c 89 e7 41 bc fe ff ff ff e8 f9 1b 60 ff eb da e8 e2 c3 7d ff 4c 89 ee 48 c7 c7 e0 92 ff 89 e8 9c de 41 07 <0f> 0b 41 bc fe ff ff ff eb bc e8 04 76 ca ff e9 71 ff ff ff e8 fa RSP: 0018:ffffc90003e1fa38 EFLAGS: 00010286 RAX: 0000000000000000 RBX: ffffffff8c87e668 RCX: 0000000000000000 RDX: ffff88801fb10000 RSI: ffffffff8161e578 RDI: fffff520007c3f39 RBP: 0000000000000000 R08: 0000000000000005 R09: 0000000000000000 R10: 0000000080000000 R11: 203a73666e72656b R12: 0000000000000000 R13: ffffffff8a46fe00 R14: 0000000000000000 R15: 0000000000000001 FS: 00007f2203f70700(0000) GS:ffff8880b9b00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00005602ae0e7068 CR3: 000000001c8fb000 CR4: 00000000003506e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: kernfs_remove_by_name include/linux/kernfs.h:615 [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/0x1f0 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_hctxs+0x247/0x2c0 block/blk-mq-sysfs.c:302 __blk_mq_update_nr_hw_queues block/blk-mq.c:4545 [inline] blk_mq_update_nr_hw_queues+0x489/0xdf0 block/blk-mq.c:4591 nbd_start_device+0x153/0xc30 drivers/block/nbd.c:1357 nbd_start_device_ioctl drivers/block/nbd.c:1407 [inline] __nbd_ioctl drivers/block/nbd.c:1481 [inline] nbd_ioctl+0x5a1/0xbd0 drivers/block/nbd.c:1521 blkdev_ioctl+0x36e/0x800 block/ioctl.c:614 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+0x63/0xcd RIP: 0033:0x7f2203fcb5a9 Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 31 18 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:00007f2203f702e8 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 00007f22040484c0 RCX: 00007f2203fcb5a9 RDX: 0000000000000000 RSI: 000000000000ab03 RDI: 0000000000000007 RBP: 00007f22040153b4 R08: 0000000000000002 R09: 0000000000003932 R10: 0000000000000000 R11: 0000000000000246 R12: 00007f22040484cc R13: 00007f2203f702f0 R14: 00007f22040484c8 R15: 0000000000000002