kobject: kobject_add_internal failed for qgroups (error: -12 parent: cbf97471-2e83-4307-a383-db7b96411857) ------------[ cut here ]------------ kernfs: can not remove 'enabled', no directory WARNING: fs/kernfs/dir.c:1712 at kernfs_remove_by_name_ns+0xc7/0x130 fs/kernfs/dir.c:1711, CPU#1: syz.1.37/6195 Modules linked in: CPU: 1 UID: 0 PID: 6195 Comm: syz.1.37 Not tainted syzkaller #0 PREEMPT_{RT,(full)} Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/24/2026 RIP: 0010:kernfs_remove_by_name_ns+0xca/0x130 fs/kernfs/dir.c:1711 Code: f8 c6 ff f0 41 ff 06 4c 89 f7 e8 d1 f1 ff ff 4c 89 f7 e8 89 93 ff ff 31 ed eb 25 e8 70 8e 62 ff 48 8d 3d d9 05 ed 0c 4c 89 f6 <67> 48 0f b9 3a bd fe ff ff ff eb 12 e8 55 8e 62 ff bd fe ff ff ff RSP: 0018:ffffc9000554fb10 EFLAGS: 00010293 RAX: ffffffff8260a8d0 RBX: ffffffff8b751960 RCX: ffff8880274d0000 RDX: 0000000000000000 RSI: ffffffff8b7519c0 RDI: ffffffff8f4daeb0 RBP: dffffc0000000000 R08: 0000000000000000 R09: 0000000000000000 R10: dffffc0000000000 R11: ffffed1017124923 R12: 0000000000000000 R13: ffffffff8e1b9540 R14: ffffffff8b7519c0 R15: 0000000000000000 FS: 00007fcf97d566c0(0000) GS:ffff8881266c9000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000000000000 CR3: 0000000031306000 CR4: 00000000003526f0 Call Trace: kernfs_remove_by_name include/linux/kernfs.h:633 [inline] remove_files fs/sysfs/group.c:28 [inline] sysfs_remove_group+0xfc/0x2e0 fs/sysfs/group.c:328 sysfs_remove_groups+0x54/0xb0 fs/sysfs/group.c:352 __kobject_del+0x84/0x330 lib/kobject.c:595 kobject_del+0x45/0x60 lib/kobject.c:627 btrfs_sysfs_del_qgroups+0x115/0x160 fs/btrfs/sysfs.c:2620 btrfs_sysfs_add_qgroups+0x28b/0x2e0 fs/btrfs/sysfs.c:2659 btrfs_quota_enable+0x281/0x2940 fs/btrfs/qgroup.c:1002 btrfs_ioctl_quota_ctl+0x186/0x1c0 fs/btrfs/ioctl.c:3613 vfs_ioctl fs/ioctl.c:51 [inline] __do_sys_ioctl fs/ioctl.c:597 [inline] __se_sys_ioctl+0xff/0x170 fs/ioctl.c:583 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xe2/0xf80 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7fcf99afaeb9 Code: ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 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 e8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007fcf97d56028 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 00007fcf99d75fa0 RCX: 00007fcf99afaeb9 RDX: 0000200000000580 RSI: 00000000c0109428 RDI: 0000000000000003 RBP: 00007fcf97d56090 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000001 R13: 00007fcf99d76038 R14: 00007fcf99d75fa0 R15: 00007fffca326f18 ---------------- Code disassembly (best guess), 2 bytes skipped: 0: ff f0 push %rax 2: 41 ff 06 incl (%r14) 5: 4c 89 f7 mov %r14,%rdi 8: e8 d1 f1 ff ff call 0xfffff1de d: 4c 89 f7 mov %r14,%rdi 10: e8 89 93 ff ff call 0xffff939e 15: 31 ed xor %ebp,%ebp 17: eb 25 jmp 0x3e 19: e8 70 8e 62 ff call 0xff628e8e 1e: 48 8d 3d d9 05 ed 0c lea 0xced05d9(%rip),%rdi # 0xced05fe 25: 4c 89 f6 mov %r14,%rsi * 28: 67 48 0f b9 3a ud1 (%edx),%rdi <-- trapping instruction 2d: bd fe ff ff ff mov $0xfffffffe,%ebp 32: eb 12 jmp 0x46 34: e8 55 8e 62 ff call 0xff628e8e 39: bd fe ff ff ff mov $0xfffffffe,%ebp