kobject_add_internal failed for qgroups (error: -12 parent: 395ef67a-297e-477c-816d-cd80a5b93e5d) ------------[ cut here ]------------ kernfs: can not remove 'enabled', no directory WARNING: CPU: 0 PID: 5068 at fs/kernfs/dir.c:1652 kernfs_remove_by_name_ns+0xf5/0x150 fs/kernfs/dir.c:1651 Modules linked in: CPU: 0 PID: 5068 Comm: syz-executor298 Not tainted 6.2.0-rc2-syzkaller-00203-g1f5abbd77e2c #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022 RIP: 0010:kernfs_remove_by_name_ns+0xf5/0x150 fs/kernfs/dir.c:1651 Code: 48 89 df e8 7d ec ff ff 48 89 df e8 e5 98 ff ff 31 db eb 29 e8 fc fe 71 ff 48 c7 c7 00 11 01 8b 4c 89 e6 31 c0 e8 bb ee 38 ff <0f> 0b bb fe ff ff ff eb 12 e8 dd fe 71 ff bb fe ff ff ff 4c 89 f7 RSP: 0018:ffffc90003e0fb00 EFLAGS: 00010246 RAX: 16aeb9e2e8226f00 RBX: ffffffff8d8562e0 RCX: ffff888024991d40 RDX: 0000000000000000 RSI: 0000000080000000 RDI: 0000000000000000 RBP: dffffc0000000000 R08: ffffffff816f2c9d R09: fffff520007c1f19 R10: fffff520007c1f19 R11: 1ffff920007c1f18 R12: ffffffff8b3a0260 R13: 0000000000000000 R14: ffffffff8b3a0200 R15: 0000000000000000 FS: 000055555628d3c0(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f0ec66b7300 CR3: 000000007885d000 CR4: 00000000003506e0 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 fs/sysfs/group.c:28 [inline] sysfs_remove_group+0x102/0x2b0 fs/sysfs/group.c:288 sysfs_remove_groups+0x5b/0xb0 fs/sysfs/group.c:312 __kobject_del+0x84/0x300 lib/kobject.c:579 kobject_del+0x41/0x60 lib/kobject.c:611 btrfs_sysfs_del_qgroups+0x1d8/0x230 fs/btrfs/sysfs.c:2216 btrfs_sysfs_add_qgroups+0x3a8/0x3d0 fs/btrfs/sysfs.c:2255 btrfs_quota_enable+0x216/0x1cf0 fs/btrfs/qgroup.c:991 btrfs_ioctl_quota_ctl+0x141/0x180 fs/btrfs/ioctl.c:3681 vfs_ioctl fs/ioctl.c:51 [inline] __do_sys_ioctl fs/ioctl.c:870 [inline] __se_sys_ioctl+0xfb/0x170 fs/ioctl.c:856 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x3d/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7fd8159a7f49 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 c0 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007fff6eb37f88 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 0000000000000031 RCX: 00007fd8159a7f49 RDX: 0000000020000000 RSI: 00000000c0109428 RDI: 0000000000000004 RBP: 0000000000000001 R08: 0000000000000001 R09: 00007fff6eb30037 R10: 0000000000000000 R11: 0000000000000246 R12: 00007fff6eb37f90 R13: 00007fff6eb37ffa R14: 00007fd815a1c720 R15: 00007fff6eb38010