kobject: kobject_add_internal failed for qgroups (error: -12 parent: ed167579-eb65-4e76-9a50-61ac97e9b59d) ------------[ cut here ]------------ kernfs: can not remove 'enabled', no directory WARNING: CPU: 1 PID: 10987 at fs/kernfs/dir.c:1674 kernfs_remove_by_name_ns+0x110/0x130 fs/kernfs/dir.c:1674 Modules linked in: CPU: 1 PID: 10987 Comm: syz-executor.1 Not tainted 6.8.0-rc2-syzkaller-00055-g6764c317b6bb #0 Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.2-debian-1.16.2-1 04/01/2014 RIP: 0010:kernfs_remove_by_name_ns+0x110/0x130 fs/kernfs/dir.c:1674 Code: 6c ff bb fe ff ff ff 89 d8 5b 5d 41 5c 41 5d c3 cc cc cc cc e8 91 01 6c ff 90 48 c7 c7 20 97 20 8b 4c 89 e6 e8 01 2f 30 ff 90 <0f> 0b 90 90 eb cd e8 35 29 c5 ff e9 54 ff ff ff e8 2b 29 c5 ff e9 RSP: 0018:ffffc9000b65f908 EFLAGS: 00010282 RAX: 0000000000000000 RBX: 0000000000000000 RCX: ffffc90003eb2000 RDX: 0000000000040000 RSI: ffffffff814f74a6 RDI: 0000000000000001 RBP: ffffffff8df2aa60 R08: 0000000000000001 R09: 0000000000000000 R10: 0000000000000001 R11: 0000000000000003 R12: ffffffff8b569ec0 R13: 0000000000000000 R14: ffffffff8b569da0 R15: ffff88811f3d5798 FS: 00007f121e33e6c0(0000) GS:ffff88806b300000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fd76ffad988 CR3: 0000000025738000 CR4: 0000000000352ef0 Call Trace: kernfs_remove_by_name include/linux/kernfs.h:623 [inline] remove_files+0x96/0x1c0 fs/sysfs/group.c:28 sysfs_remove_group+0x8b/0x180 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+0x83/0x1f0 lib/kobject.c:592 kobject_del lib/kobject.c:624 [inline] kobject_del+0x3f/0x60 lib/kobject.c:616 btrfs_sysfs_del_qgroups fs/btrfs/sysfs.c:2325 [inline] btrfs_sysfs_del_qgroups+0x119/0x1a0 fs/btrfs/sysfs.c:2313 btrfs_sysfs_add_qgroups+0x21c/0x2b0 fs/btrfs/sysfs.c:2364 btrfs_quota_enable+0x35d/0x1ef0 fs/btrfs/qgroup.c:1037 btrfs_ioctl_quota_ctl fs/btrfs/ioctl.c:3721 [inline] btrfs_ioctl+0x502a/0x61f0 fs/btrfs/ioctl.c:4685 vfs_ioctl fs/ioctl.c:51 [inline] __do_sys_ioctl fs/ioctl.c:871 [inline] __se_sys_ioctl fs/ioctl.c:857 [inline] __x64_sys_ioctl+0x193/0x220 fs/ioctl.c:857 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xd5/0x270 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x6f/0x77 RIP: 0033:0x7f121d67dda9 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:00007f121e33e0c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 00007f121d7abf80 RCX: 00007f121d67dda9 RDX: 0000000020000040 RSI: 00000000c0109428 RDI: 0000000000000005 RBP: 00007f121e33e120 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000001 R13: 000000000000000b R14: 00007f121d7abf80 R15: 00007ffc5e4dad68