------------[ cut here ]------------ kernfs: can not remove 'nr_tags', no directory WARNING: CPU: 1 PID: 5125 at fs/kernfs/dir.c:1651 kernfs_remove_by_name_ns+0x101/0x120 fs/kernfs/dir.c:1651 Modules linked in: CPU: 0 PID: 5125 Comm: syz-executor104 Not tainted 6.1.0-next-20221216-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022 RIP: 0010:kernfs_remove_by_name_ns+0x101/0x120 fs/kernfs/dir.c:1651 Code: c3 e8 f3 76 7b ff 4c 89 e7 41 bc fe ff ff ff e8 45 e9 5c ff eb da e8 de 76 7b ff 4c 89 ee 48 c7 c7 60 fa 5e 8a e8 09 ef ba 07 <0f> 0b 41 bc fe ff ff ff eb bc e8 60 86 c9 ff e9 61 ff ff ff e8 56 RSP: 0018:ffffc90003dbfa30 EFLAGS: 00010282 RAX: 0000000000000000 RBX: ffffffff8d07e7e8 RCX: 0000000000000000 RDX: ffff888075d28000 RSI: ffffffff81667acc RDI: fffff520007b7f38 RBP: 0000000000000000 R08: 0000000000000005 R09: 0000000000000000 R10: 0000000080000000 R11: 0000000000000000 R12: 0000000000000000 R13: ffffffff8aa496c0 R14: 0000000000000000 R15: 0000000000000001 FS: 00007fe27a370700(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fe27a4044b0 CR3: 0000000026dec000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: kernfs_remove_by_name include/linux/kernfs.h:618 [inline] remove_files+0x96/0x1c0 fs/sysfs/group.c:28 sysfs_remove_group+0x8b/0x170 fs/sysfs/group.c:288 sysfs_remove_groups fs/sysfs/group.c:312 [inline] sysfs_remove_groups+0x60/0xa0 fs/sysfs/group.c:304 __kobject_del+0x89/0x1f0 lib/kobject.c:579 kobject_del lib/kobject.c:611 [inline] kobject_del+0x40/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+0x24b/0x2d0 block/blk-mq-sysfs.c:309 __blk_mq_update_nr_hw_queues block/blk-mq.c:4713 [inline] blk_mq_update_nr_hw_queues+0x471/0xf60 block/blk-mq.c:4757 nbd_start_device+0x153/0xc30 drivers/block/nbd.c:1355 nbd_start_device_ioctl drivers/block/nbd.c:1405 [inline] __nbd_ioctl drivers/block/nbd.c:1481 [inline] nbd_ioctl+0x220/0xc60 drivers/block/nbd.c:1521 blkdev_ioctl+0x369/0xa20 block/ioctl.c:616 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+0x197/0x210 fs/ioctl.c:856 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x39/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7fe27a3c3309 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:00007fe27a3702e8 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 00007fe27a4474c0 RCX: 00007fe27a3c3309 RDX: 0000000000000000 RSI: 000000000000ab03 RDI: 0000000000000003 RBP: 00007fe27a414194 R08: 0000000000000002 R09: 0000000000003831 R10: 0000000000000000 R11: 0000000000000246 R12: 00007fe27a4474cc R13: 00007fe27a3702f0 R14: 00007fe27a4474c8 R15: 0000000000000002