BTRFS info (device loop4 state EA): last unmount of filesystem 395ef67a-297e-477c-816d-cd80a5b93e5d ------------[ cut here ]------------ WARNING: CPU: 1 PID: 6535 at fs/btrfs/space-info.h:265 btrfs_space_info_update_bytes_may_use+0x354/0x6a4 fs/btrfs/space-info.h:-1 Modules linked in: CPU: 1 UID: 0 PID: 6535 Comm: syz-executor Not tainted syzkaller #0 PREEMPT Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/30/2025 pstate: 83400005 (Nzcv daif +PAN -UAO +TCO +DIT -SSBS BTYPE=--) pc : btrfs_space_info_update_bytes_may_use+0x354/0x6a4 fs/btrfs/space-info.h:-1 lr : btrfs_space_info_update_bytes_may_use+0x350/0x6a4 fs/btrfs/space-info.h:265 sp : ffff8000a44b7850 x29: ffff8000a44b7870 x28: 1fffe00019e55810 x27: dfff800000000000 x26: ffff80008f7de768 x25: 0000000000000002 x24: ffff0000c1eb1e90 x23: 0000000000000005 x22: 00000000000ff000 x21: 0000000000100000 x20: ffff0000cf2ac080 x19: 0000000000000000 x18: 1fffe00033799a88 x17: ffff80008f7de000 x16: ffff80008b01d6e0 x15: ffff700014896f00 x14: 1ffff00014896f00 x13: 0000000000000004 x12: ffffffffffffffff x11: ffff700014896f00 x10: 0000000000ff0100 x9 : 0000000000000000 x8 : ffff0000c1eb1e80 x7 : ffff80008256251c x6 : 0000000000000000 x5 : 0000000000000000 x4 : 0000000000000001 x3 : ffff80008053702c x2 : 0000000000000001 x1 : 0000000000100000 x0 : 00000000000ff000 Call trace: btrfs_space_info_update_bytes_may_use+0x354/0x6a4 fs/btrfs/space-info.h:-1 (P) btrfs_space_info_free_bytes_may_use fs/btrfs/space-info.h:297 [inline] block_rsv_release_bytes fs/btrfs/block-rsv.c:153 [inline] btrfs_block_rsv_release+0x3a4/0x490 fs/btrfs/block-rsv.c:292 btrfs_release_global_block_rsv+0x38/0x22c fs/btrfs/block-rsv.c:457 btrfs_free_block_groups+0xa4c/0xd10 fs/btrfs/block-group.c:4567 close_ctree+0x644/0x1130 fs/btrfs/disk-io.c:4424 btrfs_put_super+0x1ac/0x1c0 fs/btrfs/super.c:74 generic_shutdown_super+0x12c/0x2b8 fs/super.c:643 kill_anon_super+0x4c/0x7c fs/super.c:1282 btrfs_kill_super+0x40/0x58 fs/btrfs/super.c:2120 deactivate_locked_super+0xc4/0x12c fs/super.c:474 deactivate_super+0xe0/0x100 fs/super.c:507 cleanup_mnt+0x31c/0x3ac fs/namespace.c:1375 __cleanup_mnt+0x20/0x30 fs/namespace.c:1382 task_work_run+0x1dc/0x260 kernel/task_work.c:227 resume_user_mode_work include/linux/resume_user_mode.h:50 [inline] exit_to_user_mode_loop+0xfc/0x168 kernel/entry/common.c:43 exit_to_user_mode_prepare include/linux/irq-entry-common.h:225 [inline] arm64_exit_to_user_mode arch/arm64/kernel/entry-common.c:103 [inline] el0_svc+0x170/0x254 arch/arm64/kernel/entry-common.c:745 el0t_64_sync_handler+0x84/0x12c arch/arm64/kernel/entry-common.c:763 el0t_64_sync+0x198/0x19c arch/arm64/kernel/entry.S:596 irq event stamp: 475740 hardirqs last enabled at (475739): [] kasan_quarantine_put+0x1a0/0x1c8 mm/kasan/quarantine.c:234 hardirqs last disabled at (475740): [] el1_brk64+0x20/0x54 arch/arm64/kernel/entry-common.c:434 softirqs last enabled at (473474): [] local_bh_enable+0x10/0x34 include/linux/bottom_half.h:32 softirqs last disabled at (473472): [] local_bh_disable+0x10/0x34 include/linux/bottom_half.h:19 ---[ end trace 0000000000000000 ]--- syz-executor invoked oom-killer: gfp_mask=0x100cca(GFP_HIGHUSER_MOVABLE), order=0, oom_score_adj=0 CPU: 0 UID: 0 PID: 6535 Comm: syz-executor Tainted: G W syzkaller #0 PREEMPT Tainted: [W]=WARN Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/30/2025 Call trace: show_stack+0x2c/0x3c arch/arm64/kernel/stacktrace.c:499 (C) __dump_stack+0x30/0x40 lib/dump_stack.c:94 dump_stack_lvl+0xd8/0x12c lib/dump_stack.c:120 dump_stack+0x1c/0x28 lib/dump_stack.c:129 dump_header+0xb8/0x3c8 mm/oom_kill.c:467 oom_kill_process+0x384/0xa00 mm/oom_kill.c:1040 out_of_memory+0xd60/0x105c mm/oom_kill.c:1178 mem_cgroup_out_of_memory+0x124/0x208 mm/memcontrol.c:1649 mem_cgroup_oom mm/memcontrol.c:1672 [inline] try_charge_memcg+0xa2c/0xea0 mm/memcontrol.c:2399 try_charge mm/memcontrol.c:2499 [inline] charge_memcg+0xa0/0x184 mm/memcontrol.c:4702 mem_cgroup_swapin_charge_folio+0x290/0x3f0 mm/memcontrol.c:4788 __read_swap_cache_async+0x24c/0x4e4 mm/swap_state.c:441 swap_vma_readahead mm/swap_state.c:782 [inline] swapin_readahead+0xa84/0xb78 mm/swap_state.c:810 do_swap_page+0x498/0x4794 mm/memory.c:4586 handle_pte_fault mm/memory.c:6055 [inline] __handle_mm_fault mm/memory.c:6195 [inline] handle_mm_fault+0xd40/0x4d34 mm/memory.c:6364 do_page_fault+0x410/0x13cc arch/arm64/mm/fault.c:653 do_translation_fault+0xc4/0x114 arch/arm64/mm/fault.c:789 do_mem_abort+0x70/0x194 arch/arm64/mm/fault.c:929 el0_da+0x64/0x230 arch/arm64/kernel/entry-common.c:562 el0t_64_sync_handler+0x90/0x12c arch/arm64/kernel/entry-common.c:766 el0t_64_sync+0x198/0x19c arch/arm64/kernel/entry.S:596 memory: usage 307200kB, limit 307200kB, failcnt 533 memory+swap: usage 307320kB, limit 9007199254740988kB, failcnt 0 kmem: usage 1140kB, limit 9007199254740988kB, failcnt 0 Memory cgroup stats for /syz4: cache 313393152 rss 0 rss_huge 0 shmem 313393152 mapped_file 0 dirty 0 writeback 0 workingset_refault_anon 8 workingset_refault_file 31 swap 122880 swapcached 8192 pgpgin 181906 pgpgout 105391 pgfault 103853 pgmajfault 21 inactive_anon 137052160 active_anon 0 inactive_file 4096 active_file 0 unevictable 176345088 hierarchical_memory_limit 314572800 hierarchical_memsw_limit 9223372036854771712 total_cache 313393152 total_rss 0 total_rss_huge 0 total_shmem 313393152 total_mapped_file 0 total_dirty 0 total_writeback 0 total_workingset_refault_anon 8 total_workingset_refault_file 31 total_swap 122880 total_swapcached 8192 total_pgpgin 181906 total_pgpgout 105391 total_pgfault 103853 total_pgmajfault 21 total_inactive_anon 137052160 total_active_anon 0 total_inactive_file 4096 total_active_file 0 total_unevictable 176345088 anon_cost 0 file_cost 0 oom-kill:constraint=CONSTRAINT_MEMCG,nodemask=(null),cpuset=/,mems_allowed=0,oom_memcg=/syz4,task_memcg=/syz4,task=syz.4.169,pid=7792,uid=0 Memory cgroup out of memory: Killed process 7792 (syz.4.169) total-vm:112040kB, anon-rss:1060kB, file-rss:21640kB, shmem-rss:0kB, UID:0 pgtables:116kB oom_score_adj:1000