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: 0 PID: 6090 at fs/kernfs/dir.c:1663 kernfs_remove_by_name_ns+0x10c/0x188 Modules linked in: CPU: 0 PID: 6090 Comm: syz-executor285 Not tainted 6.6.0-rc7-syzkaller-g8de1e7afcc1c #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/09/2023 pstate: 60400005 (nZCv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--) pc : kernfs_remove_by_name_ns+0x10c/0x188 lr : kernfs_remove_by_name_ns+0x108/0x188 fs/kernfs/dir.c:1662 sp : ffff800096ca7850 x29: ffff800096ca7850 x28: 1fffe00019a5cb3c x27: dfff800000000000 x26: ffff700012d94f60 x25: ffff80008ea33448 x24: 1ffff00011590908 x23: dfff800000000000 x22: 0000000000000000 x21: 0000000000000000 x20: 00000000fffffffe x19: ffff80008ac84840 x18: 1fffe0003682efce x17: ffff80008e33d000 x16: ffff800080316308 x15: 0000000000000001 x14: 1fffe0001a98e600 x13: 0000000000000000 x12: 0000000000000000 x11: ffff60001a98e601 x10: 1fffe0001a98e600 x9 : 636322db8c352f00 x8 : 636322db8c352f00 x7 : ffff80008028e628 x6 : 0000000000000000 x5 : 0000000000000001 x4 : 0000000000000001 x3 : ffff80008027b1b0 x2 : 0000000000000001 x1 : 0000000000000004 x0 : 0000000000000001 Call trace: kernfs_remove_by_name_ns+0x10c/0x188 kernfs_remove_by_name include/linux/kernfs.h:622 [inline] remove_files fs/sysfs/group.c:28 [inline] sysfs_remove_group+0xf8/0x288 fs/sysfs/group.c:292 sysfs_remove_groups+0x5c/0xb4 fs/sysfs/group.c:316 __kobject_del+0x88/0x2c4 lib/kobject.c:592 kobject_del+0x48/0x68 lib/kobject.c:624 btrfs_sysfs_del_qgroups+0x16c/0x1bc fs/btrfs/sysfs.c:2270 btrfs_sysfs_add_qgroups+0x2bc/0x314 fs/btrfs/sysfs.c:2309 btrfs_quota_enable+0x204/0x1af8 fs/btrfs/qgroup.c:991 btrfs_ioctl_quota_ctl+0x144/0x188 fs/btrfs/ioctl.c:3700 btrfs_ioctl+0x6d8/0xb08 fs/btrfs/ioctl.c:4663 vfs_ioctl fs/ioctl.c:51 [inline] __do_sys_ioctl fs/ioctl.c:871 [inline] __se_sys_ioctl fs/ioctl.c:857 [inline] __arm64_sys_ioctl+0x14c/0x1c8 fs/ioctl.c:857 __invoke_syscall arch/arm64/kernel/syscall.c:37 [inline] invoke_syscall+0x98/0x2b8 arch/arm64/kernel/syscall.c:51 el0_svc_common+0x130/0x23c arch/arm64/kernel/syscall.c:136 do_el0_svc+0x48/0x58 arch/arm64/kernel/syscall.c:155 el0_svc+0x54/0x158 arch/arm64/kernel/entry-common.c:678 el0t_64_sync_handler+0x84/0xfc arch/arm64/kernel/entry-common.c:696 el0t_64_sync+0x190/0x194 arch/arm64/kernel/entry.S:595 irq event stamp: 82232 hardirqs last enabled at (82231): [] raw_spin_rq_unlock_irq kernel/sched/sched.h:1384 [inline] hardirqs last enabled at (82231): [] finish_lock_switch+0xbc/0x1e4 kernel/sched/core.c:5134 hardirqs last disabled at (82232): [] el1_dbg+0x24/0x80 arch/arm64/kernel/entry-common.c:436 softirqs last enabled at (82212): [] softirq_handle_end kernel/softirq.c:399 [inline] softirqs last enabled at (82212): [] __do_softirq+0xac0/0xd54 kernel/softirq.c:582 softirqs last disabled at (82203): [] ____do_softirq+0x14/0x20 arch/arm64/kernel/irq.c:80 ---[ end trace 0000000000000000 ]--- ------------[ cut here ]------------ kernfs: can not remove 'inconsistent', no directory WARNING: CPU: 0 PID: 6090 at fs/kernfs/dir.c:1663 kernfs_remove_by_name_ns+0x10c/0x188 Modules linked in: CPU: 0 PID: 6090 Comm: syz-executor285 Tainted: G W 6.6.0-rc7-syzkaller-g8de1e7afcc1c #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/09/2023 pstate: 60400005 (nZCv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--) pc : kernfs_remove_by_name_ns+0x10c/0x188 lr : kernfs_remove_by_name_ns+0x108/0x188 fs/kernfs/dir.c:1662 sp : ffff800096ca7850 x29: ffff800096ca7850 x28: 1fffe00019a5cb3c x27: dfff800000000000 x26: ffff700012d94f60 x25: ffff80008ea33450 x24: 1ffff00011590908 x23: dfff800000000000 x22: 0000000000000000 x21: 0000000000000000 x20: 00000000fffffffe x19: ffff80008ac84840 x18: 1fffe0003682efce x17: 0000000000000000 x16: ffff80008a668900 x15: 0000000000000001 x14: 1ffff00012d94e24 x13: 0000000000000000 x12: 0000000000000000 x11: 0000000000000000 x10: 0000000000000000 x9 : 636322db8c352f00 x8 : 636322db8c352f00 x7 : 0000000000000001 x6 : 0000000000000001 x5 : ffff800096ca7138 x4 : ffff80008e4210a0 x3 : ffff8000803639bc x2 : 0000000000000001 x1 : 0000000100000000 x0 : 0000000000000000 Call trace: kernfs_remove_by_name_ns+0x10c/0x188 kernfs_remove_by_name include/linux/kernfs.h:622 [inline] remove_files fs/sysfs/group.c:28 [inline] sysfs_remove_group+0xf8/0x288 fs/sysfs/group.c:292 sysfs_remove_groups+0x5c/0xb4 fs/sysfs/group.c:316 __kobject_del+0x88/0x2c4 lib/kobject.c:592 kobject_del+0x48/0x68 lib/kobject.c:624 btrfs_sysfs_del_qgroups+0x16c/0x1bc fs/btrfs/sysfs.c:2270 btrfs_sysfs_add_qgroups+0x2bc/0x314 fs/btrfs/sysfs.c:2309 btrfs_quota_enable+0x204/0x1af8 fs/btrfs/qgroup.c:991 btrfs_ioctl_quota_ctl+0x144/0x188 fs/btrfs/ioctl.c:3700 btrfs_ioctl+0x6d8/0xb08 fs/btrfs/ioctl.c:4663 vfs_ioctl fs/ioctl.c:51 [inline] __do_sys_ioctl fs/ioctl.c:871 [inline] __se_sys_ioctl fs/ioctl.c:857 [inline] __arm64_sys_ioctl+0x14c/0x1c8 fs/ioctl.c:857 __invoke_syscall arch/arm64/kernel/syscall.c:37 [inline] invoke_syscall+0x98/0x2b8 arch/arm64/kernel/syscall.c:51 el0_svc_common+0x130/0x23c arch/arm64/kernel/syscall.c:136 do_el0_svc+0x48/0x58 arch/arm64/kernel/syscall.c:155 el0_svc+0x54/0x158 arch/arm64/kernel/entry-common.c:678 el0t_64_sync_handler+0x84/0xfc arch/arm64/kernel/entry-common.c:696 el0t_64_sync+0x190/0x194 arch/arm64/kernel/entry.S:595 irq event stamp: 82364 hardirqs last enabled at (82363): [] __up_console_sem kernel/printk/printk.c:347 [inline] hardirqs last enabled at (82363): [] __console_unlock kernel/printk/printk.c:2718 [inline] hardirqs last enabled at (82363): [] console_unlock+0x17c/0x3d4 kernel/printk/printk.c:3037 hardirqs last disabled at (82364): [] el1_dbg+0x24/0x80 arch/arm64/kernel/entry-common.c:436 softirqs last enabled at (82338): [] softirq_handle_end kernel/softirq.c:399 [inline] softirqs last enabled at (82338): [] __do_softirq+0xac0/0xd54 kernel/softirq.c:582 softirqs last disabled at (82235): [] ____do_softirq+0x14/0x20 arch/arm64/kernel/irq.c:80 ---[ end trace 0000000000000000 ]--- ------------[ cut here ]------------ kernfs: can not remove 'drop_subtree_threshold', no directory WARNING: CPU: 0 PID: 6090 at fs/kernfs/dir.c:1663 kernfs_remove_by_name_ns+0x10c/0x188 Modules linked in: CPU: 0 PID: 6090 Comm: syz-executor285 Tainted: G W 6.6.0-rc7-syzkaller-g8de1e7afcc1c #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/09/2023 pstate: 60400005 (nZCv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--) pc : kernfs_remove_by_name_ns+0x10c/0x188 lr : kernfs_remove_by_name_ns+0x108/0x188 fs/kernfs/dir.c:1662 sp : ffff800096ca7850 x29: ffff800096ca7850 x28: 1fffe00019a5cb3c x27: dfff800000000000 x26: ffff700012d94f60 x25: ffff80008ea33458 x24: 1ffff00011590908 x23: dfff800000000000 x22: 0000000000000000 x21: 0000000000000000 x20: 00000000fffffffe x19: ffff80008ac84840 x18: 1fffe0003682efce x17: 0000000000000000 x16: ffff80008a71b23c x15: 0000000000000001 x14: 1ffff00012d94e5c x13: 0000000000000000 x12: 0000000000000000 x11: 0000000000000000 x10: 0000000000000000 x9 : 636322db8c352f00 x8 : 636322db8c352f00 x7 : 0000000000000001 x6 : 0000000000000001 x5 : ffff800096ca7138 x4 : ffff80008e4210a0 x3 : ffff800082b180c4 x2 : 0000000000000001 x1 : 0000000100000000 x0 : 0000000000000000 Call trace: kernfs_remove_by_name_ns+0x10c/0x188 kernfs_remove_by_name include/linux/kernfs.h:622 [inline] remove_files fs/sysfs/group.c:28 [inline] sysfs_remove_group+0xf8/0x288 fs/sysfs/group.c:292 sysfs_remove_groups+0x5c/0xb4 fs/sysfs/group.c:316 __kobject_del+0x88/0x2c4 lib/kobject.c:592 kobject_del+0x48/0x68 lib/kobject.c:624 btrfs_sysfs_del_qgroups+0x16c/0x1bc fs/btrfs/sysfs.c:2270 btrfs_sysfs_add_qgroups+0x2bc/0x314 fs/btrfs/sysfs.c:2309 btrfs_quota_enable+0x204/0x1af8 fs/btrfs/qgroup.c:991 btrfs_ioctl_quota_ctl+0x144/0x188 fs/btrfs/ioctl.c:3700 btrfs_ioctl+0x6d8/0xb08 fs/btrfs/ioctl.c:4663 vfs_ioctl fs/ioctl.c:51 [inline] __do_sys_ioctl fs/ioctl.c:871 [inline] __se_sys_ioctl fs/ioctl.c:857 [inline] __arm64_sys_ioctl+0x14c/0x1c8 fs/ioctl.c:857 __invoke_syscall arch/arm64/kernel/syscall.c:37 [inline] invoke_syscall+0x98/0x2b8 arch/arm64/kernel/syscall.c:51 el0_svc_common+0x130/0x23c arch/arm64/kernel/syscall.c:136 do_el0_svc+0x48/0x58 arch/arm64/kernel/syscall.c:155 el0_svc+0x54/0x158 arch/arm64/kernel/entry-common.c:678 el0t_64_sync_handler+0x84/0xfc arch/arm64/kernel/entry-common.c:696 el0t_64_sync+0x190/0x194 arch/arm64/kernel/entry.S:595 irq event stamp: 82430 hardirqs last enabled at (82429): [] __up_console_sem kernel/printk/printk.c:347 [inline] hardirqs last enabled at (82429): [] __console_unlock kernel/printk/printk.c:2718 [inline] hardirqs last enabled at (82429): [] console_unlock+0x17c/0x3d4 kernel/printk/printk.c:3037 hardirqs last disabled at (82430): [] el1_dbg+0x24/0x80 arch/arm64/kernel/entry-common.c:436 softirqs last enabled at (82404): [] softirq_handle_end kernel/softirq.c:399 [inline] softirqs last enabled at (82404): [] __do_softirq+0xac0/0xd54 kernel/softirq.c:582 softirqs last disabled at (82367): [] ____do_softirq+0x14/0x20 arch/arm64/kernel/irq.c:80 ---[ end trace 0000000000000000 ]---