------------[ cut here ]------------ kernfs: can not remove 'nr_tags', no directory WARNING: CPU: 3 PID: 5593 at fs/kernfs/dir.c:1683 kernfs_remove_by_name_ns+0x110/0x130 fs/kernfs/dir.c:1683 Modules linked in: CPU: 3 UID: 0 PID: 5593 Comm: syz-executor.0 Not tainted 6.11.0-rc3-syzkaller-00007-gd74da846046a #0 Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2~bpo12+1 04/01/2014 RIP: 0010:kernfs_remove_by_name_ns+0x110/0x130 fs/kernfs/dir.c:1683 Code: 67 ff bb fe ff ff ff 89 d8 5b 5d 41 5c 41 5d c3 cc cc cc cc e8 51 69 67 ff 90 48 c7 c7 20 2e 61 8b 4c 89 e6 e8 41 af 29 ff 90 <0f> 0b 90 90 eb cd e8 d5 9e c4 ff e9 54 ff ff ff e8 cb 9e c4 ff e9 RSP: 0018:ffffc90003327848 EFLAGS: 00010282 RAX: 0000000000000000 RBX: 0000000000000000 RCX: ffffffff814cc3d9 RDX: ffff888020718000 RSI: ffffffff814cc3e6 RDI: 0000000000000001 RBP: ffffffff8e7fc8a0 R08: 0000000000000001 R09: 0000000000000000 R10: 0000000000000001 R11: 0000000000000000 R12: ffffffff8bae2d20 R13: 0000000000000000 R14: ffffffff8bae2c40 R15: 0000000000000004 FS: 00007f2df84736c0(0000) GS:ffff88806b300000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000000c001448000 CR3: 000000002ced2000 CR4: 0000000000350ef0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: kernfs_remove_by_name include/linux/kernfs.h:625 [inline] remove_files+0x96/0x1c0 fs/sysfs/group.c:28 sysfs_remove_group+0x8b/0x180 fs/sysfs/group.c:319 sysfs_remove_groups fs/sysfs/group.c:343 [inline] sysfs_remove_groups+0x60/0xa0 fs/sysfs/group.c:335 __kobject_del+0x89/0x1f0 lib/kobject.c:595 kobject_del lib/kobject.c:627 [inline] kobject_del+0x3f/0x60 lib/kobject.c:619 blk_mq_unregister_hctx block/blk-mq-sysfs.c:155 [inline] blk_mq_unregister_hctx block/blk-mq-sysfs.c:144 [inline] blk_mq_sysfs_unregister_hctxs+0x258/0x2d0 block/blk-mq-sysfs.c:283 __blk_mq_update_nr_hw_queues+0x8f6/0x14a0 block/blk-mq.c:4808 blk_mq_update_nr_hw_queues+0x2a/0x40 block/blk-mq.c:4863 nbd_start_device+0x15b/0xd70 drivers/block/nbd.c:1393 nbd_start_device_ioctl drivers/block/nbd.c:1444 [inline] __nbd_ioctl drivers/block/nbd.c:1519 [inline] nbd_ioctl+0x21a/0xfd0 drivers/block/nbd.c:1559 blkdev_ioctl+0x27c/0x6e0 block/ioctl.c:676 vfs_ioctl fs/ioctl.c:51 [inline] __do_sys_ioctl fs/ioctl.c:907 [inline] __se_sys_ioctl fs/ioctl.c:893 [inline] __x64_sys_ioctl+0x193/0x220 fs/ioctl.c:893 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xcd/0x250 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f2df767cba9 Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 e1 20 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 b0 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f2df84730c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 00007f2df779bf80 RCX: 00007f2df767cba9 RDX: 0000000000000000 RSI: 000000000000ab03 RDI: 0000000000000007 RBP: 00007f2df8473120 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000002 R13: 000000000000000b R14: 00007f2df779bf80 R15: 00007fff995db008