------------[ cut here ]------------ kernfs: can not remove 'nr_tags', no directory WARNING: CPU: 1 PID: 3716 at fs/kernfs/dir.c:1576 kernfs_remove_by_name_ns+0xed/0x110 fs/kernfs/dir.c:1576 Modules linked in: CPU: 1 PID: 3716 Comm: syz-executor308 Not tainted 5.19.0-rc6-syzkaller-00364-g9b59ec8d50a1 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/29/2022 RIP: 0010:kernfs_remove_by_name_ns+0xed/0x110 fs/kernfs/dir.c:1576 Code: c3 e8 37 26 78 ff 4c 89 e7 41 bc fe ff ff ff e8 49 e1 5a ff eb da e8 22 26 78 ff 4c 89 ee 48 c7 c7 a0 60 df 89 e8 dd 38 30 07 <0f> 0b 41 bc fe ff ff ff eb bc e8 64 e2 c4 ff e9 71 ff ff ff e8 5a RSP: 0018:ffffc9000337fa38 EFLAGS: 00010286 RAX: 0000000000000000 RBX: ffffffff8c672288 RCX: 0000000000000000 RDX: ffff88801b813b00 RSI: ffffffff8160d168 RDI: fffff5200066ff39 RBP: 0000000000000000 R08: 0000000000000005 R09: 0000000000000000 R10: 0000000080000000 R11: 0000000000000001 R12: 0000000000000000 R13: ffffffff8a2693e0 R14: 0000000000000000 R15: 0000000000000001 FS: 00007fc31ac8b700(0000) GS:ffff8880b9b00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fc31ad239b0 CR3: 000000001f308000 CR4: 0000000000350ee0 Call Trace: 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:4516 [inline] blk_mq_update_nr_hw_queues+0x489/0xdf0 block/blk-mq.c:4562 nbd_start_device+0x153/0xc30 drivers/block/nbd.c:1356 nbd_start_device_ioctl drivers/block/nbd.c:1406 [inline] __nbd_ioctl drivers/block/nbd.c:1480 [inline] nbd_ioctl+0x5a5/0xbd0 drivers/block/nbd.c:1520 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:0x7fc31ace0c29 Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 41 16 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:00007fc31ac8b2e8 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 00007fc31ad6b280 RCX: 00007fc31ace0c29 RDX: 0000000000000000 RSI: 000000000000ab03 RDI: 0000000000000007 RBP: 00007fc31ad32338 R08: 0000000000000002 R09: 0000000000003932 R10: 0000000000000000 R11: 0000000000000246 R12: 00007fc31ad6b28c R13: 00007fc31ac8b2f0 R14: 00007fc31ad6b288 R15: 0000000000000002