kobject: kobject_add_internal failed for qgroups (error: -12 parent: 395ef67a-297e-477c-816d-cd80a5b93e5d) ------------[ 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#0: syz.0.15/5787 Modules linked in: CPU: 0 UID: 0 PID: 5787 Comm: syz.0.15 Not tainted syzkaller #0 PREEMPT(full) Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2~bpo12+1 04/01/2014 RIP: 0010:kernfs_remove_by_name_ns+0xca/0x130 fs/kernfs/dir.c:1711 Code: 55 c3 ff 3e 41 ff 06 4c 89 f7 e8 e1 f1 ff ff 4c 89 f7 e8 b9 97 ff ff 31 ed eb 25 e8 30 a5 5b ff 48 8d 3d 89 f6 42 0d 4c 89 f6 <67> 48 0f b9 3a bd fe ff ff ff eb 12 e8 15 a5 5b ff bd fe ff ff ff RSP: 0018:ffffc90003df7b10 EFLAGS: 00010293 RAX: ffffffff82657800 RBX: ffffffff8bd00680 RCX: ffff888033b4c980 RDX: 0000000000000000 RSI: ffffffff8bd006e0 RDI: ffffffff8fa86e90 RBP: dffffc0000000000 R08: ffffc90003df7867 R09: 1ffff920007bef0c R10: dffffc0000000000 R11: fffff520007bef0d R12: 0000000000000000 R13: ffffffff8e70cb00 R14: ffffffff8bd006e0 R15: 0000000000000000 FS: 00007f19066f96c0(0000) GS:ffff88808d212000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007ff23b4d5000 CR3: 000000004005f000 CR4: 0000000000352ef0 Call Trace: kernfs_remove_by_name include/linux/kernfs.h:633 [inline] remove_files fs/sysfs/group.c:28 [inline] sysfs_remove_group+0xfc/0x2f0 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+0x286/0x2b0 fs/btrfs/sysfs.c:2659 btrfs_quota_enable+0x25d/0x28f0 fs/btrfs/qgroup.c:1002 btrfs_ioctl_quota_ctl+0x183/0x1c0 fs/btrfs/ioctl.c:3613 vfs_ioctl fs/ioctl.c:51 [inline] __do_sys_ioctl fs/ioctl.c:597 [inline] __se_sys_ioctl+0xfc/0x170 fs/ioctl.c:583 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xec/0xf80 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f190597e719 Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 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 a8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f19066f9038 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 00007f1905b35f80 RCX: 00007f190597e719 RDX: 0000000020000200 RSI: 00000000c0109428 RDI: 0000000000000004 RBP: 00007f19066f9090 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000001 R13: 0000000000000000 R14: 00007f1905b35f80 R15: 00007fffe702c9b8 ---------------- Code disassembly (best guess), 3 bytes skipped: 0: 3e 41 ff 06 ds incl (%r14) 4: 4c 89 f7 mov %r14,%rdi 7: e8 e1 f1 ff ff call 0xfffff1ed c: 4c 89 f7 mov %r14,%rdi f: e8 b9 97 ff ff call 0xffff97cd 14: 31 ed xor %ebp,%ebp 16: eb 25 jmp 0x3d 18: e8 30 a5 5b ff call 0xff5ba54d 1d: 48 8d 3d 89 f6 42 0d lea 0xd42f689(%rip),%rdi # 0xd42f6ad 24: 4c 89 f6 mov %r14,%rsi * 27: 67 48 0f b9 3a ud1 (%edx),%rdi <-- trapping instruction 2c: bd fe ff ff ff mov $0xfffffffe,%ebp 31: eb 12 jmp 0x45 33: e8 15 a5 5b ff call 0xff5ba54d 38: bd fe ff ff ff mov $0xfffffffe,%ebp