------------[ cut here ]------------ WARNING: CPU: 0 PID: 4265 at fs/btrfs/space-info.h:122 btrfs_space_info_update_bytes_may_use+0x308/0x834 Modules linked in: CPU: 0 PID: 4265 Comm: syz-executor.2 Not tainted 6.1.79-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/25/2024 pstate: 80400005 (Nzcv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--) pc : btrfs_space_info_update_bytes_may_use+0x308/0x834 lr : btrfs_space_info_update_bytes_may_use+0x304/0x834 sp : ffff80001dee7540 x29: ffff80001dee7550 x28: 0000000000000000 x27: 1fffe0001aae8a0c x26: dfff800000000000 x25: ffff80001583d360 x24: 0000000000000001 x23: 0000000000000005 x22: 00000000000df000 x21: 00000000000e0000 x20: ffff0000d5745060 x19: 0000000000000000 x18: ffff00011b599448 x17: ffff80001583d000 x16: ffff80001215a28c x15: 0000000000000000 x14: 1ffff00002b080b0 x13: dfff800000000000 x12: ffff700003bdce9c x11: 0000000000ff0100 x10: 0000000000000000 x9 : ffff80000a303768 x8 : ffff0000c6371bc0 x7 : ffff80000a302860 x6 : 0000000000000000 x5 : 0000000000000000 x4 : 0000000000000001 x3 : ffff80000831d040 x2 : fffffffffff20000 x1 : 00000000000e0000 x0 : 00000000000df000 Call trace: btrfs_space_info_update_bytes_may_use+0x308/0x834 btrfs_space_info_free_bytes_may_use fs/btrfs/space-info.h:154 [inline] block_rsv_release_bytes fs/btrfs/block-rsv.c:152 [inline] btrfs_block_rsv_release+0x3dc/0x4a8 fs/btrfs/block-rsv.c:296 btrfs_release_global_block_rsv+0x38/0x22c fs/btrfs/block-rsv.c:469 btrfs_free_block_groups+0x938/0xc9c fs/btrfs/block-group.c:4182 close_ctree+0x5b8/0xad8 fs/btrfs/disk-io.c:4760 btrfs_put_super+0x70/0x80 fs/btrfs/super.c:397 generic_shutdown_super+0x130/0x328 fs/super.c:501 kill_anon_super+0x4c/0x74 fs/super.c:1117 btrfs_kill_super+0x40/0x58 fs/btrfs/super.c:2449 deactivate_locked_super+0xac/0x124 fs/super.c:332 deactivate_super+0xf0/0x110 fs/super.c:363 cleanup_mnt+0x394/0x41c fs/namespace.c:1186 __cleanup_mnt+0x20/0x30 fs/namespace.c:1193 task_work_run+0x240/0x2f0 kernel/task_work.c:179 resume_user_mode_work include/linux/resume_user_mode.h:49 [inline] do_notify_resume+0x2148/0x3474 arch/arm64/kernel/signal.c:1132 prepare_exit_to_user_mode arch/arm64/kernel/entry-common.c:137 [inline] exit_to_user_mode arch/arm64/kernel/entry-common.c:142 [inline] el0_svc+0x9c/0x168 arch/arm64/kernel/entry-common.c:638 el0t_64_sync_handler+0x84/0xf0 arch/arm64/kernel/entry-common.c:655 el0t_64_sync+0x18c/0x190 arch/arm64/kernel/entry.S:585 irq event stamp: 32722176 hardirqs last enabled at (32722175): [] kasan_quarantine_put+0xdc/0x204 mm/kasan/quarantine.c:242 hardirqs last disabled at (32722176): [] el1_dbg+0x24/0x80 arch/arm64/kernel/entry-common.c:405 softirqs last enabled at (32721712): [] softirq_handle_end kernel/softirq.c:414 [inline] softirqs last enabled at (32721712): [] __do_softirq+0xc1c/0xe38 kernel/softirq.c:600 softirqs last disabled at (32721679): [] ____do_softirq+0x14/0x20 arch/arm64/kernel/irq.c:80 ---[ end trace 0000000000000000 ]--- BTRFS info (device loop2): last unmount of filesystem a6a605fc-d5f1-4e66-8595-3726e2b761d6 ------------[ cut here ]------------ WARNING: CPU: 1 PID: 4265 at fs/btrfs/space-info.h:122 btrfs_space_info_update_bytes_may_use+0x308/0x834 Modules linked in: CPU: 1 PID: 4265 Comm: syz-executor.2 Tainted: G W 6.1.79-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/25/2024 pstate: 80400005 (Nzcv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--) pc : btrfs_space_info_update_bytes_may_use+0x308/0x834 lr : btrfs_space_info_update_bytes_may_use+0x304/0x834 sp : ffff80001dee7540 x29: ffff80001dee7550 x28: 0000000000000000 x27: 1fffe0001a86700c x26: dfff800000000000 x25: ffff80001583d360 x24: 0000000000000002 x23: 0000000000000005 x22: 00000000000df000 x21: 00000000000e0000 x20: ffff0000d4338060 x19: 0000000000000000 x18: ffff00011e999448 x17: ffff80001583d000 x16: ffff80001215a28c x15: 0000000000000000 x14: 1ffff00002b080b0 x13: dfff800000000000 x12: ffff700003bdce9c x11: 0000000000ff0100 x10: 0000000000000000 x9 : ffff80000a303768 x8 : ffff0000c6371bc0 x7 : ffff80000a302860 x6 : 0000000000000000 x5 : 0000000000000000 x4 : 0000000000000001 x3 : ffff80000831d040 x2 : fffffffffff20000 x1 : 00000000000e0000 x0 : 00000000000df000 Call trace: btrfs_space_info_update_bytes_may_use+0x308/0x834 btrfs_space_info_free_bytes_may_use fs/btrfs/space-info.h:154 [inline] block_rsv_release_bytes fs/btrfs/block-rsv.c:152 [inline] btrfs_block_rsv_release+0x3dc/0x4a8 fs/btrfs/block-rsv.c:296 btrfs_release_global_block_rsv+0x38/0x22c fs/btrfs/block-rsv.c:469 btrfs_free_block_groups+0x938/0xc9c fs/btrfs/block-group.c:4182 close_ctree+0x5b8/0xad8 fs/btrfs/disk-io.c:4760 btrfs_put_super+0x70/0x80 fs/btrfs/super.c:397 generic_shutdown_super+0x130/0x328 fs/super.c:501 kill_anon_super+0x4c/0x74 fs/super.c:1117 btrfs_kill_super+0x40/0x58 fs/btrfs/super.c:2449 deactivate_locked_super+0xac/0x124 fs/super.c:332 deactivate_super+0xf0/0x110 fs/super.c:363 cleanup_mnt+0x394/0x41c fs/namespace.c:1186 __cleanup_mnt+0x20/0x30 fs/namespace.c:1193 task_work_run+0x240/0x2f0 kernel/task_work.c:179 resume_user_mode_work include/linux/resume_user_mode.h:49 [inline] do_notify_resume+0x2148/0x3474 arch/arm64/kernel/signal.c:1132 prepare_exit_to_user_mode arch/arm64/kernel/entry-common.c:137 [inline] exit_to_user_mode arch/arm64/kernel/entry-common.c:142 [inline] el0_svc+0x9c/0x168 arch/arm64/kernel/entry-common.c:638 el0t_64_sync_handler+0x84/0xf0 arch/arm64/kernel/entry-common.c:655 el0t_64_sync+0x18c/0x190 arch/arm64/kernel/entry.S:585 irq event stamp: 32755216 hardirqs last enabled at (32755215): [] kasan_quarantine_put+0xdc/0x204 mm/kasan/quarantine.c:242 hardirqs last disabled at (32755216): [] el1_dbg+0x24/0x80 arch/arm64/kernel/entry-common.c:405 softirqs last enabled at (32752142): [] local_bh_enable+0x10/0x34 include/linux/bottom_half.h:32 softirqs last disabled at (32752140): [] local_bh_disable+0x10/0x34 include/linux/bottom_half.h:19 ---[ end trace 0000000000000000 ]--- BTRFS info (device loop2): last unmount of filesystem a6a605fc-d5f1-4e66-8595-3726e2b761d6 ------------[ cut here ]------------ WARNING: CPU: 1 PID: 4265 at fs/btrfs/space-info.h:122 btrfs_space_info_update_bytes_may_use+0x308/0x834 Modules linked in: CPU: 1 PID: 4265 Comm: syz-executor.2 Tainted: G W 6.1.79-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/25/2024 pstate: 80400005 (Nzcv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--) pc : btrfs_space_info_update_bytes_may_use+0x308/0x834 lr : btrfs_space_info_update_bytes_may_use+0x304/0x834 sp : ffff80001dee7540 x29: ffff80001dee7550 x28: 0000000000000000 x27: 1fffe0001a67ca0c x26: dfff800000000000 x25: ffff80001583d360 x24: 0000000000000002 x23: 0000000000000005 x22: 00000000000df000 x21: 00000000000e0000 x20: ffff0000d33e5060 x19: 0000000000000000 x18: ffff0000cbe64848 x17: ffff80001583d000 x16: ffff80001215a28c x15: 0000000000000000 x14: 1ffff00002b080b0 x13: dfff800000000000 x12: ffff700003bdce9c x11: 0000000000ff0100 x10: 0000000000000000 x9 : ffff80000a303768 x8 : ffff0000c6371bc0 x7 : ffff80000a302860 x6 : 0000000000000000 x5 : 0000000000000000 x4 : 0000000000000001 x3 : ffff80000831d040 x2 : fffffffffff20000 x1 : 00000000000e0000 x0 : 00000000000df000 Call trace: btrfs_space_info_update_bytes_may_use+0x308/0x834 btrfs_space_info_free_bytes_may_use fs/btrfs/space-info.h:154 [inline] block_rsv_release_bytes fs/btrfs/block-rsv.c:152 [inline] btrfs_block_rsv_release+0x3dc/0x4a8 fs/btrfs/block-rsv.c:296 btrfs_release_global_block_rsv+0x38/0x22c fs/btrfs/block-rsv.c:469 btrfs_free_block_groups+0x938/0xc9c fs/btrfs/block-group.c:4182 close_ctree+0x5b8/0xad8 fs/btrfs/disk-io.c:4760 btrfs_put_super+0x70/0x80 fs/btrfs/super.c:397 generic_shutdown_super+0x130/0x328 fs/super.c:501 kill_anon_super+0x4c/0x74 fs/super.c:1117 btrfs_kill_super+0x40/0x58 fs/btrfs/super.c:2449 deactivate_locked_super+0xac/0x124 fs/super.c:332 deactivate_super+0xf0/0x110 fs/super.c:363 cleanup_mnt+0x394/0x41c fs/namespace.c:1186 __cleanup_mnt+0x20/0x30 fs/namespace.c:1193 task_work_run+0x240/0x2f0 kernel/task_work.c:179 resume_user_mode_work include/linux/resume_user_mode.h:49 [inline] do_notify_resume+0x2148/0x3474 arch/arm64/kernel/signal.c:1132 prepare_exit_to_user_mode arch/arm64/kernel/entry-common.c:137 [inline] exit_to_user_mode arch/arm64/kernel/entry-common.c:142 [inline] el0_svc+0x9c/0x168 arch/arm64/kernel/entry-common.c:638 el0t_64_sync_handler+0x84/0xf0 arch/arm64/kernel/entry-common.c:655 el0t_64_sync+0x18c/0x190 arch/arm64/kernel/entry.S:585 irq event stamp: 32788786 hardirqs last enabled at (32788785): [] kasan_quarantine_put+0xdc/0x204 mm/kasan/quarantine.c:242 hardirqs last disabled at (32788786): [] el1_dbg+0x24/0x80 arch/arm64/kernel/entry-common.c:405 softirqs last enabled at (32786582): [] softirq_handle_end kernel/softirq.c:414 [inline] softirqs last enabled at (32786582): [] __do_softirq+0xc1c/0xe38 kernel/softirq.c:600 softirqs last disabled at (32786567): [] ____do_softirq+0x14/0x20 arch/arm64/kernel/irq.c:80 ---[ end trace 0000000000000000 ]--- BTRFS info (device loop2): last unmount of filesystem a6a605fc-d5f1-4e66-8595-3726e2b761d6 ------------[ cut here ]------------ WARNING: CPU: 1 PID: 4265 at fs/btrfs/space-info.h:122 btrfs_space_info_update_bytes_may_use+0x308/0x834 Modules linked in: CPU: 1 PID: 4265 Comm: syz-executor.2 Tainted: G W 6.1.79-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/25/2024 pstate: 80400005 (Nzcv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--) pc : btrfs_space_info_update_bytes_may_use+0x308/0x834 lr : btrfs_space_info_update_bytes_may_use+0x304/0x834 sp : ffff80001dee7540 x29: ffff80001dee7550 x28: 0000000000000000 x27: 1fffe0001984600c x26: dfff800000000000 x25: ffff80001583d360 x24: 0000000000000002 x23: 0000000000000005 x22: 00000000000df000 x21: 00000000000e0000 x20: ffff0000cc230060 x19: 0000000000000000 x18: ffff00011cb0a048 x17: ffff80001583d000 x16: ffff80001215a28c x15: 0000000000000000 x14: 1ffff00002b080b0 x13: dfff800000000000 x12: ffff700003bdce9c x11: 0000000000ff0100 x10: 0000000000000000 x9 : ffff80000a303768 x8 : ffff0000c6371bc0 x7 : ffff80000a302860 x6 : 0000000000000000 x5 : 0000000000000000 x4 : 0000000000000001 x3 : ffff80000831d040 x2 : fffffffffff20000 x1 : 00000000000e0000 x0 : 00000000000df000 Call trace: btrfs_space_info_update_bytes_may_use+0x308/0x834 btrfs_space_info_free_bytes_may_use fs/btrfs/space-info.h:154 [inline] block_rsv_release_bytes fs/btrfs/block-rsv.c:152 [inline] btrfs_block_rsv_release+0x3dc/0x4a8 fs/btrfs/block-rsv.c:296 btrfs_release_global_block_rsv+0x38/0x22c fs/btrfs/block-rsv.c:469 btrfs_free_block_groups+0x938/0xc9c fs/btrfs/block-group.c:4182 close_ctree+0x5b8/0xad8 fs/btrfs/disk-io.c:4760 btrfs_put_super+0x70/0x80 fs/btrfs/super.c:397 generic_shutdown_super+0x130/0x328 fs/super.c:501 kill_anon_super+0x4c/0x74 fs/super.c:1117 btrfs_kill_super+0x40/0x58 fs/btrfs/super.c:2449 deactivate_locked_super+0xac/0x124 fs/super.c:332 deactivate_super+0xf0/0x110 fs/super.c:363 cleanup_mnt+0x394/0x41c fs/namespace.c:1186 __cleanup_mnt+0x20/0x30 fs/namespace.c:1193 task_work_run+0x240/0x2f0 kernel/task_work.c:179 resume_user_mode_work include/linux/resume_user_mode.h:49 [inline] do_notify_resume+0x2148/0x3474 arch/arm64/kernel/signal.c:1132 prepare_exit_to_user_mode arch/arm64/kernel/entry-common.c:137 [inline] exit_to_user_mode arch/arm64/kernel/entry-common.c:142 [inline] el0_svc+0x9c/0x168 arch/arm64/kernel/entry-common.c:638 el0t_64_sync_handler+0x84/0xf0 arch/arm64/kernel/entry-common.c:655 el0t_64_sync+0x18c/0x190 arch/arm64/kernel/entry.S:585 irq event stamp: 32822096 hardirqs last enabled at (32822095): [] kasan_quarantine_put+0xdc/0x204 mm/kasan/quarantine.c:242 hardirqs last disabled at (32822096): [] el1_dbg+0x24/0x80 arch/arm64/kernel/entry-common.c:405 softirqs last enabled at (32821820): [] softirq_handle_end kernel/softirq.c:414 [inline] softirqs last enabled at (32821820): [] __do_softirq+0xc1c/0xe38 kernel/softirq.c:600 softirqs last disabled at (32821807): [] ____do_softirq+0x14/0x20 arch/arm64/kernel/irq.c:80 ---[ end trace 0000000000000000 ]---