------------[ cut here ]------------ kernfs: can not remove 'nr_tags', no directory WARNING: CPU: 0 PID: 6166 at fs/kernfs/dir.c:1684 kernfs_remove_by_name_ns+0xfe/0x160 fs/kernfs/dir.c:1683 Modules linked in: CPU: 0 UID: 0 PID: 6166 Comm: syz-executor.0 Not tainted 6.13.0-rc1-syzkaller-00316-gb5f217084ab3 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024 RIP: 0010:kernfs_remove_by_name_ns+0xfe/0x160 fs/kernfs/dir.c:1683 Code: 48 89 df e8 34 ee ff ff 48 89 df e8 bc 8d ff ff 31 db eb 2b e8 a3 95 56 ff 90 48 c7 c7 00 1a 1b 8c 4c 89 e6 e8 f3 3c 17 ff 90 <0f> 0b 90 90 bb fe ff ff ff eb 12 e8 82 95 56 ff bb fe ff ff ff 4c RSP: 0018:ffffc900046478a0 EFLAGS: 00010246 RAX: 01dd0e6b52792700 RBX: ffffffff8f05e340 RCX: ffff88802b97bc00 RDX: 0000000000000000 RSI: 0000000000000001 RDI: 0000000000000000 RBP: dffffc0000000000 R08: ffffffff81601c02 R09: fffffbfff1cfa210 R10: dffffc0000000000 R11: fffffbfff1cfa210 R12: ffffffff8c5db260 R13: 0000000000000000 R14: ffffffff8c5db200 R15: 0000000000000000 FS: 00007f0c44c6b6c0(0000) GS:ffff8880b8600000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f0c43b8d090 CR3: 0000000028228000 CR4: 0000000000350ef0 Call Trace: kernfs_remove_by_name include/linux/kernfs.h:625 [inline] remove_files fs/sysfs/group.c:28 [inline] sysfs_remove_group+0xfe/0x2c0 fs/sysfs/group.c:322 sysfs_remove_groups+0x54/0xb0 fs/sysfs/group.c:346 __kobject_del+0x84/0x310 lib/kobject.c:595 kobject_del+0x45/0x60 lib/kobject.c:627 blk_mq_unregister_hctx block/blk-mq-sysfs.c:155 [inline] blk_mq_sysfs_unregister_hctxs+0x228/0x300 block/blk-mq-sysfs.c:283 __blk_mq_update_nr_hw_queues block/blk-mq.c:4928 [inline] blk_mq_update_nr_hw_queues+0x6cc/0x1ae0 block/blk-mq.c:4983 nbd_start_device+0x16c/0xaa0 drivers/block/nbd.c:1413 nbd_start_device_ioctl drivers/block/nbd.c:1464 [inline] __nbd_ioctl drivers/block/nbd.c:1539 [inline] nbd_ioctl+0x5dc/0xf40 drivers/block/nbd.c:1579 blkdev_ioctl+0x57f/0x6a0 block/ioctl.c:693 vfs_ioctl fs/ioctl.c:51 [inline] __do_sys_ioctl fs/ioctl.c:906 [inline] __se_sys_ioctl+0xf7/0x170 fs/ioctl.c:892 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f0c43a799e9 Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 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 b0 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f0c44c6b0c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 00007f0c43b8bf60 RCX: 00007f0c43a799e9 RDX: 0000000000000000 RSI: 000000000000ab03 RDI: 0000000000000007 RBP: 00007f0c44c6b120 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000002 R13: 000000000000000b R14: 00007f0c43b8bf60 R15: 00007ffd176ca428