kobject: kobject_add_internal failed for qgroups (error: -12 parent: a6a605fc-d5f1-4e66-8595-3726e2b761d6) ------------[ cut here ]------------ kernfs: can not remove 'enabled', no directory WARNING: CPU: 1 PID: 15231 at fs/kernfs/dir.c:1674 kernfs_remove_by_name_ns+0x110/0x130 fs/kernfs/dir.c:1674 Modules linked in: CPU: 1 PID: 15231 Comm: syz-executor.3 Not tainted 6.8.0-rc7-syzkaller #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: 6b ff bb fe ff ff ff 89 d8 5b 5d 41 5c 41 5d c3 cc cc cc cc e8 f1 f0 6b ff 90 48 c7 c7 a0 98 20 8b 4c 89 e6 e8 91 15 30 ff 90 <0f> 0b 90 90 eb cd e8 85 1c c5 ff e9 54 ff ff ff e8 7b 1c c5 ff e9 RSP: 0018:ffffc90003a3f908 EFLAGS: 00010282 RAX: 0000000000000000 RBX: 0000000000000000 RCX: ffffc900062d4000 RDX: 0000000000040000 RSI: ffffffff814f74c6 RDI: 0000000000000001 RBP: ffffffff8df2a880 R08: 0000000000000001 R09: 0000000000000000 R10: 0000000000000001 R11: 0000000000000003 R12: ffffffff8b569f80 R13: 0000000000000000 R14: ffffffff8b569e60 R15: ffff88802f759798 FS: 00007f71311656c0(0000) GS:ffff88806b300000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000001b30d2a000 CR3: 000000002aafc000 CR4: 0000000000350ef0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 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+0x89/0x1f0 lib/kobject.c:595 kobject_del lib/kobject.c:627 [inline] kobject_del+0x3f/0x60 lib/kobject.c:619 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+0x4945/0x5920 fs/btrfs/ioctl.c:4690 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:0x7f713047dda9 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:00007f71311650c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 00007f71305abf80 RCX: 00007f713047dda9 RDX: 0000000020000080 RSI: 00000000c0109428 RDI: 0000000000000004 RBP: 00007f7131165120 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000001 R13: 000000000000000b R14: 00007f71305abf80 R15: 00007fff4b373588