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: CPU: 0 PID: 6641 at fs/kernfs/dir.c:1684 kernfs_remove_by_name_ns+0x10c/0x188 Modules linked in: CPU: 0 PID: 6641 Comm: syz.4.60 Not tainted 6.10.0-rc7-syzkaller-gc912bf709078 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/07/2024 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:1683 sp : ffff8000a00b7860 x29: ffff8000a00b7860 x28: ffff0000d9c19808 x27: 1fffe0001b3831f7 x26: dfff800000000000 x25: ffff80008f81bcc8 x24: 1ffff000116a9c14 x23: dfff800000000000 x22: 0000000000000000 x21: 0000000000000000 x20: 00000000fffffffe x19: ffff80008b54e0a0 x18: 1fffe000367ac9de x17: ffff80008f0fd000 x16: ffff80008032d32c x15: 0000000000000001 x14: 1fffe000367af600 x13: 0000000000000000 x12: 0000000000000003 x11: 0000000000000001 x10: 0000000000000003 x9 : c44e9c8cfa9d5f00 x8 : c44e9c8cfa9d5f00 x7 : ffff8000802a3bb0 x6 : 0000000000000000 x5 : 0000000000000001 x4 : 0000000000000001 x3 : 0000000000000000 x2 : 0000000000000006 x1 : ffff80008b140360 x0 : ffff800124d1e000 Call trace: kernfs_remove_by_name_ns+0x10c/0x188 kernfs_remove_by_name include/linux/kernfs.h:625 [inline] remove_files fs/sysfs/group.c:28 [inline] sysfs_remove_group+0xf8/0x29c fs/sysfs/group.c:319 sysfs_remove_groups+0x5c/0xb4 fs/sysfs/group.c:343 __kobject_del+0x90/0x2d4 lib/kobject.c:595 kobject_del+0x48/0x68 lib/kobject.c:627 btrfs_sysfs_del_qgroups+0x104/0x150 fs/btrfs/sysfs.c:2370 btrfs_sysfs_add_qgroups+0x248/0x2a0 fs/btrfs/sysfs.c:2409 btrfs_quota_enable+0x23c/0x1d2c fs/btrfs/qgroup.c:1057 btrfs_ioctl_quota_ctl+0x148/0x1cc fs/btrfs/ioctl.c:3765 btrfs_ioctl+0x6b8/0xaec fs/btrfs/ioctl.c:4762 vfs_ioctl fs/ioctl.c:51 [inline] __do_sys_ioctl fs/ioctl.c:907 [inline] __se_sys_ioctl fs/ioctl.c:893 [inline] __arm64_sys_ioctl+0x14c/0x1c8 fs/ioctl.c:893 __invoke_syscall arch/arm64/kernel/syscall.c:34 [inline] invoke_syscall+0x98/0x2b8 arch/arm64/kernel/syscall.c:48 el0_svc_common+0x130/0x23c arch/arm64/kernel/syscall.c:131 do_el0_svc+0x48/0x58 arch/arm64/kernel/syscall.c:150 el0_svc+0x54/0x168 arch/arm64/kernel/entry-common.c:712 el0t_64_sync_handler+0x84/0xfc arch/arm64/kernel/entry-common.c:730 el0t_64_sync+0x190/0x194 arch/arm64/kernel/entry.S:598 irq event stamp: 448 hardirqs last enabled at (447): [] raw_spin_rq_unlock_irq kernel/sched/sched.h:1418 [inline] hardirqs last enabled at (447): [] finish_lock_switch+0xbc/0x1e4 kernel/sched/core.c:5162 hardirqs last disabled at (448): [] el1_dbg+0x24/0x80 arch/arm64/kernel/entry-common.c:470 softirqs last enabled at (428): [] softirq_handle_end kernel/softirq.c:400 [inline] softirqs last enabled at (428): [] handle_softirqs+0xa3c/0xbfc kernel/softirq.c:582 softirqs last disabled at (401): [] __do_softirq+0x14/0x20 kernel/softirq.c:588 ---[ end trace 0000000000000000 ]--- ------------[ cut here ]------------ kernfs: can not remove 'inconsistent', no directory WARNING: CPU: 0 PID: 6641 at fs/kernfs/dir.c:1684 kernfs_remove_by_name_ns+0x10c/0x188 Modules linked in: CPU: 0 PID: 6641 Comm: syz.4.60 Tainted: G W 6.10.0-rc7-syzkaller-gc912bf709078 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/07/2024 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:1683 sp : ffff8000a00b7860 x29: ffff8000a00b7860 x28: ffff0000d9c19808 x27: 1fffe0001b3831f7 x26: dfff800000000000 x25: ffff80008f81bcd0 x24: 1ffff000116a9c14 x23: dfff800000000000 x22: 0000000000000000 x21: 0000000000000000 x20: 00000000fffffffe x19: ffff80008b54e0a0 x18: 1fffe000367ac9de x17: ffff80008f0fd000 x16: ffff80008032d32c x15: 0000000000000001 x14: 1fffe0001adc2b00 x13: 0000000000000000 x12: 0000000000000000 x11: ffff60001adc2b01 x10: 1fffe0001adc2b00 x9 : c44e9c8cfa9d5f00 x8 : c44e9c8cfa9d5f00 x7 : ffff8000802a3bb0 x6 : 0000000000000000 x5 : 0000000000000001 x4 : 0000000000000001 x3 : ffff8000802900f4 x2 : 0000000000000001 x1 : 0000000000000004 x0 : 0000000000000001 Call trace: kernfs_remove_by_name_ns+0x10c/0x188 kernfs_remove_by_name include/linux/kernfs.h:625 [inline] remove_files fs/sysfs/group.c:28 [inline] sysfs_remove_group+0xf8/0x29c fs/sysfs/group.c:319 sysfs_remove_groups+0x5c/0xb4 fs/sysfs/group.c:343 __kobject_del+0x90/0x2d4 lib/kobject.c:595 kobject_del+0x48/0x68 lib/kobject.c:627 btrfs_sysfs_del_qgroups+0x104/0x150 fs/btrfs/sysfs.c:2370 btrfs_sysfs_add_qgroups+0x248/0x2a0 fs/btrfs/sysfs.c:2409 btrfs_quota_enable+0x23c/0x1d2c fs/btrfs/qgroup.c:1057 btrfs_ioctl_quota_ctl+0x148/0x1cc fs/btrfs/ioctl.c:3765 btrfs_ioctl+0x6b8/0xaec fs/btrfs/ioctl.c:4762 vfs_ioctl fs/ioctl.c:51 [inline] __do_sys_ioctl fs/ioctl.c:907 [inline] __se_sys_ioctl fs/ioctl.c:893 [inline] __arm64_sys_ioctl+0x14c/0x1c8 fs/ioctl.c:893 __invoke_syscall arch/arm64/kernel/syscall.c:34 [inline] invoke_syscall+0x98/0x2b8 arch/arm64/kernel/syscall.c:48 el0_svc_common+0x130/0x23c arch/arm64/kernel/syscall.c:131 do_el0_svc+0x48/0x58 arch/arm64/kernel/syscall.c:150 el0_svc+0x54/0x168 arch/arm64/kernel/entry-common.c:712 el0t_64_sync_handler+0x84/0xfc arch/arm64/kernel/entry-common.c:730 el0t_64_sync+0x190/0x194 arch/arm64/kernel/entry.S:598 irq event stamp: 1298 hardirqs last enabled at (1297): [] raw_spin_rq_unlock_irq kernel/sched/sched.h:1418 [inline] hardirqs last enabled at (1297): [] finish_lock_switch+0xbc/0x1e4 kernel/sched/core.c:5162 hardirqs last disabled at (1298): [] el1_dbg+0x24/0x80 arch/arm64/kernel/entry-common.c:470 softirqs last enabled at (1290): [] softirq_handle_end kernel/softirq.c:400 [inline] softirqs last enabled at (1290): [] handle_softirqs+0xa3c/0xbfc kernel/softirq.c:582 softirqs last disabled at (1067): [] __do_softirq+0x14/0x20 kernel/softirq.c:588 ---[ end trace 0000000000000000 ]--- ------------[ cut here ]------------ kernfs: can not remove 'drop_subtree_threshold', no directory WARNING: CPU: 0 PID: 6641 at fs/kernfs/dir.c:1684 kernfs_remove_by_name_ns+0x10c/0x188 Modules linked in: CPU: 0 PID: 6641 Comm: syz.4.60 Tainted: G W 6.10.0-rc7-syzkaller-gc912bf709078 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/07/2024 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:1683 sp : ffff8000a00b7860 x29: ffff8000a00b7860 x28: ffff0000d9c19808 x27: 1fffe0001b3831f7 x26: dfff800000000000 x25: ffff80008f81bcd8 x24: 1ffff000116a9c14 x23: dfff800000000000 x22: 0000000000000000 x21: 0000000000000000 x20: 00000000fffffffe x19: ffff80008b54e0a0 x18: 1fffe000367ac9de x17: ffff80008f0fd000 x16: ffff80008032d32c x15: 0000000000000001 x14: 1fffe000367af600 x13: 0000000000000000 x12: 0000000000000003 x11: 0000000000000001 x10: 0000000000000003 x9 : c44e9c8cfa9d5f00 x8 : c44e9c8cfa9d5f00 x7 : ffff8000802a3bb0 x6 : 0000000000000000 x5 : 0000000000000001 x4 : 0000000000000001 x3 : 0000000000000000 x2 : 0000000000000006 x1 : ffff80008b140360 x0 : ffff800124d1e000 Call trace: kernfs_remove_by_name_ns+0x10c/0x188 kernfs_remove_by_name include/linux/kernfs.h:625 [inline] remove_files fs/sysfs/group.c:28 [inline] sysfs_remove_group+0xf8/0x29c fs/sysfs/group.c:319 sysfs_remove_groups+0x5c/0xb4 fs/sysfs/group.c:343 __kobject_del+0x90/0x2d4 lib/kobject.c:595 kobject_del+0x48/0x68 lib/kobject.c:627 btrfs_sysfs_del_qgroups+0x104/0x150 fs/btrfs/sysfs.c:2370 btrfs_sysfs_add_qgroups+0x248/0x2a0 fs/btrfs/sysfs.c:2409 btrfs_quota_enable+0x23c/0x1d2c fs/btrfs/qgroup.c:1057 btrfs_ioctl_quota_ctl+0x148/0x1cc fs/btrfs/ioctl.c:3765 btrfs_ioctl+0x6b8/0xaec fs/btrfs/ioctl.c:4762 vfs_ioctl fs/ioctl.c:51 [inline] __do_sys_ioctl fs/ioctl.c:907 [inline] __se_sys_ioctl fs/ioctl.c:893 [inline] __arm64_sys_ioctl+0x14c/0x1c8 fs/ioctl.c:893 __invoke_syscall arch/arm64/kernel/syscall.c:34 [inline] invoke_syscall+0x98/0x2b8 arch/arm64/kernel/syscall.c:48 el0_svc_common+0x130/0x23c arch/arm64/kernel/syscall.c:131 do_el0_svc+0x48/0x58 arch/arm64/kernel/syscall.c:150 el0_svc+0x54/0x168 arch/arm64/kernel/entry-common.c:712 el0t_64_sync_handler+0x84/0xfc arch/arm64/kernel/entry-common.c:730 el0t_64_sync+0x190/0x194 arch/arm64/kernel/entry.S:598 irq event stamp: 1518 hardirqs last enabled at (1517): [] raw_spin_rq_unlock_irq kernel/sched/sched.h:1418 [inline] hardirqs last enabled at (1517): [] finish_lock_switch+0xbc/0x1e4 kernel/sched/core.c:5162 hardirqs last disabled at (1518): [] el1_dbg+0x24/0x80 arch/arm64/kernel/entry-common.c:470 softirqs last enabled at (1488): [] softirq_handle_end kernel/softirq.c:400 [inline] softirqs last enabled at (1488): [] handle_softirqs+0xa3c/0xbfc kernel/softirq.c:582 softirqs last disabled at (1301): [] __do_softirq+0x14/0x20 kernel/softirq.c:588 ---[ end trace 0000000000000000 ]--- ------------[ cut here ]------------ kernfs: can not remove 'mode', no directory WARNING: CPU: 0 PID: 6641 at fs/kernfs/dir.c:1684 kernfs_remove_by_name_ns+0x10c/0x188 Modules linked in: CPU: 0 PID: 6641 Comm: syz.4.60 Tainted: G W 6.10.0-rc7-syzkaller-gc912bf709078 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/07/2024 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:1683 sp : ffff8000a00b7860 x29: ffff8000a00b7860 x28: ffff0000d9c19808 x27: 1fffe0001b3831f7 x26: dfff800000000000 x25: ffff80008f81bce0 x24: 1ffff000116a9c14 x23: dfff800000000000 x22: 0000000000000000 x21: 0000000000000000 x20: 00000000fffffffe x19: ffff80008b54e0a0 x18: 1fffe000367ac9de x17: ffff80008f0fd000 x16: ffff80008032d32c x15: 0000000000000001 x14: 1ffff00011f381ee x13: 0000000000000000 x12: 0000000000000003 x11: 0000000000000001 x10: 0000000000000003 x9 : c44e9c8cfa9d5f00 x8 : c44e9c8cfa9d5f00 x7 : ffff80008005dba0 x6 : ffff80008005dd9c x5 : ffff0000ebc83500 x4 : ffff8000a00b7210 x3 : 0000000000000000 x2 : 0000000000000006 x1 : ffff80008b140360 x0 : ffff800124d1e000 Call trace: kernfs_remove_by_name_ns+0x10c/0x188 kernfs_remove_by_name include/linux/kernfs.h:625 [inline] remove_files fs/sysfs/group.c:28 [inline] sysfs_remove_group+0xf8/0x29c fs/sysfs/group.c:319 sysfs_remove_groups+0x5c/0xb4 fs/sysfs/group.c:343 __kobject_del+0x90/0x2d4 lib/kobject.c:595 kobject_del+0x48/0x68 lib/kobject.c:627 btrfs_sysfs_del_qgroups+0x104/0x150 fs/btrfs/sysfs.c:2370 btrfs_sysfs_add_qgroups+0x248/0x2a0 fs/btrfs/sysfs.c:2409 btrfs_quota_enable+0x23c/0x1d2c fs/btrfs/qgroup.c:1057 btrfs_ioctl_quota_ctl+0x148/0x1cc fs/btrfs/ioctl.c:3765 btrfs_ioctl+0x6b8/0xaec fs/btrfs/ioctl.c:4762 vfs_ioctl fs/ioctl.c:51 [inline] __do_sys_ioctl fs/ioctl.c:907 [inline] __se_sys_ioctl fs/ioctl.c:893 [inline] __arm64_sys_ioctl+0x14c/0x1c8 fs/ioctl.c:893 __invoke_syscall arch/arm64/kernel/syscall.c:34 [inline] invoke_syscall+0x98/0x2b8 arch/arm64/kernel/syscall.c:48 el0_svc_common+0x130/0x23c arch/arm64/kernel/syscall.c:131 do_el0_svc+0x48/0x58 arch/arm64/kernel/syscall.c:150 el0_svc+0x54/0x168 arch/arm64/kernel/entry-common.c:712 el0t_64_sync_handler+0x84/0xfc arch/arm64/kernel/entry-common.c:730 el0t_64_sync+0x190/0x194 arch/arm64/kernel/entry.S:598 irq event stamp: 1830 hardirqs last enabled at (1829): [] __call_rcu_common kernel/rcu/tree.c:3094 [inline] hardirqs last enabled at (1829): [] call_rcu+0x648/0xb08 kernel/rcu/tree.c:3176 hardirqs last disabled at (1830): [] el1_dbg+0x24/0x80 arch/arm64/kernel/entry-common.c:470 softirqs last enabled at (1796): [] softirq_handle_end kernel/softirq.c:400 [inline] softirqs last enabled at (1796): [] handle_softirqs+0xa3c/0xbfc kernel/softirq.c:582 softirqs last disabled at (1773): [] __do_softirq+0x14/0x20 kernel/softirq.c:588 ---[ end trace 0000000000000000 ]---