kobject: kobject_add_internal failed for qgroups (error: -12 parent: c9fe44da-de57-406a-8241-57ec7d4412cf) ------------[ cut here ]------------ kernfs: can not remove 'enabled', no directory WARNING: CPU: 1 PID: 5024 at fs/kernfs/dir.c:1658 kernfs_remove_by_name_ns+0x106/0x120 fs/kernfs/dir.c:1658 Modules linked in: CPU: 1 PID: 5024 Comm: syz-executor401 Not tainted 6.5.0-rc4-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/12/2023 RIP: 0010:kernfs_remove_by_name_ns+0x106/0x120 fs/kernfs/dir.c:1658 Code: 20 54 ff e8 8c 96 74 ff bb fe ff ff ff 89 d8 5b 5d 41 5c 41 5d c3 e8 79 96 74 ff 4c 89 e6 48 c7 c7 a0 9d 7f 8a e8 aa 58 3b ff <0f> 0b eb d5 e8 f1 9c c8 ff e9 60 ff ff ff e8 e7 9c c8 ff e9 27 ff RSP: 0018:ffffc90003baf910 EFLAGS: 00010286 RAX: 0000000000000000 RBX: 0000000000000000 RCX: 0000000000000000 RDX: ffff8880286cd940 RSI: ffffffff814ccc06 RDI: 0000000000000001 RBP: ffffffff8d11cca0 R08: 0000000000000001 R09: 0000000000000000 R10: 0000000000000001 R11: 0000000000000001 R12: ffffffff8ab627e0 R13: 0000000000000000 R14: ffffffff8ab62700 R15: ffff88807e1c8038 FS: 0000555556f88480(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007ffb0ff54095 CR3: 0000000075903000 CR4: 0000000000350ee0 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:292 sysfs_remove_groups fs/sysfs/group.c:316 [inline] sysfs_remove_groups+0x60/0xa0 fs/sysfs/group.c:308 __kobject_del+0x89/0x1f0 lib/kobject.c:588 kobject_del lib/kobject.c:620 [inline] kobject_del+0x3f/0x60 lib/kobject.c:612 btrfs_sysfs_del_qgroups fs/btrfs/sysfs.c:2263 [inline] btrfs_sysfs_del_qgroups+0x119/0x1a0 fs/btrfs/sysfs.c:2251 btrfs_sysfs_add_qgroups+0x218/0x2a0 fs/btrfs/sysfs.c:2302 btrfs_quota_enable+0x31d/0x1c60 fs/btrfs/qgroup.c:991 btrfs_ioctl_quota_ctl fs/btrfs/ioctl.c:3694 [inline] btrfs_ioctl+0x4b24/0x5cf0 fs/btrfs/ioctl.c:4657 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+0x18f/0x210 fs/ioctl.c:856 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x38/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7f1c2a92faa9 Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 61 1a 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:00007ffc2ff88138 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 00007ffc2ff88140 RCX: 00007f1c2a92faa9 RDX: 0000000020000000 RSI: 00000000c0109428 RDI: 0000000000000004 RBP: 0000000000000001 R08: 00007ffc2ff87ed7 R09: 00007f1c2a9b0037 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000001 R13: 00007ffc2ff881a0 R14: 00007ffc2ff881d0 R15: 00007ffc2ff881d0