[ 465.806444][T14141] loop0: detected capacity change from 0 to 32768
[ 465.818697][T14141] BTRFS: device fsid 395ef67a-297e-477c-816d-cd80a5b93e5d devid 1 transid 8 /dev/loop0 (7:0) scanned by syz.0.476 (14141)
[ 465.851805][T14141] BTRFS info (device loop0): first mount of filesystem 395ef67a-297e-477c-816d-cd80a5b93e5d
[ 465.855788][T14141] BTRFS info (device loop0): using sha256 (sha256-avx2) checksum algorithm
[ 465.859164][T14141] BTRFS info (device loop0): using free-space-tree
[ 465.946202][T14141] FAULT_INJECTION: forcing a failure.
[ 465.946202][T14141] name failslab, interval 1, probability 0, space 0, times 0
[ 465.961753][T14141] CPU: 0 UID: 0 PID: 14141 Comm: syz.0.476 Not tainted 6.12.0-syzkaller-10296-gaaf20f870da0 #0
[ 465.965833][T14141] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2~bpo12+1 04/01/2014
[ 465.969968][T14141] Call Trace:
[ 465.971272][T14141]
[ 465.972392][T14141] dump_stack_lvl+0x241/0x360
[ 465.974200][T14141] ? __pfx_dump_stack_lvl+0x10/0x10
[ 465.976263][T14141] ? __pfx__printk+0x10/0x10
[ 465.978087][T14141] ? fs_reclaim_acquire+0x93/0x130
[ 465.980080][T14141] ? __pfx___might_resched+0x10/0x10
[ 465.982083][T14141] should_fail_ex+0x3b0/0x4e0
[ 465.983887][T14141] should_failslab+0xac/0x100
[ 465.985642][T14141] ? alloc_extent_state+0x25/0x310
[ 465.987599][T14141] kmem_cache_alloc_noprof+0x70/0x380
[ 465.989653][T14141] alloc_extent_state+0x25/0x310
[ 465.991732][T14141] __set_extent_bit+0x1fc/0x1ed0
[ 465.993647][T14141] set_extent_bit+0x3b/0x50
[ 465.995497][T14141] btrfs_alloc_tree_block+0x96b/0x1440
[ 465.997692][T14141] ? __pfx_btrfs_alloc_tree_block+0x10/0x10
[ 465.999978][T14141] ? __lock_acquire+0x1397/0x2100
[ 466.001913][T14141] ? read_extent_buffer+0x11b/0x440
[ 466.004004][T14141] btrfs_force_cow_block+0x526/0x1da0
[ 466.006073][T14141] ? __pfx_lock_acquire+0x10/0x10
[ 466.008017][T14141] ? __pfx_btrfs_force_cow_block+0x10/0x10
[ 466.010297][T14141] ? btrfs_qgroup_add_swapped_blocks+0x8e0/0x9b0
[ 466.012748][T14141] ? down_write_nested+0x195/0x220
[ 466.014834][T14141] ? __pfx_down_write_nested+0x10/0x10
[ 466.016925][T14141] btrfs_cow_block+0x35e/0xa40
[ 466.018823][T14141] btrfs_search_slot+0xbe3/0x3150
[ 466.020822][T14141] ? __pfx_btrfs_search_slot+0x10/0x10
[ 466.022943][T14141] ? btrfs_extent_root+0x2a1/0x3b0
[ 466.024901][T14141] ? __pfx_btrfs_extent_root+0x10/0x10
[ 466.027330][T14141] ? __btrfs_free_extent+0x35e/0x3a10
[ 466.029614][T14141] lookup_inline_extent_backref+0x404/0x1a00
[ 466.031959][T14141] ? btrfs_commit_transaction+0x4b6/0x3720
[ 466.034180][T14141] ? try_flush_qgroup+0x1ec/0x340
[ 466.036109][T14141] ? btrfs_qgroup_reserve_data+0x68/0xb0
[ 466.038247][T14141] ? btrfs_check_data_free_space+0x149/0x240
[ 466.040586][T14141] ? do_iter_readv_writev+0x600/0x880
[ 466.042654][T14141] ? vfs_writev+0x376/0xba0
[ 466.044397][T14141] ? __pfx_lookup_inline_extent_backref+0x10/0x10
[ 466.046869][T14141] ? trace_kmem_cache_alloc+0x1f/0xc0
[ 466.048949][T14141] __btrfs_free_extent+0x443/0x3a10
[ 466.050995][T14141] ? __pfx___btrfs_free_extent+0x10/0x10
[ 466.053178][T14141] ? __lock_acquire+0x20b0/0x2100
[ 466.055135][T14141] ? do_raw_read_unlock+0x3c/0x80
[ 466.057055][T14141] ? do_raw_spin_unlock+0x58/0x8b0
[ 466.059046][T14141] __btrfs_run_delayed_refs+0x102a/0x4350
[ 466.061522][T14141] ? validate_chain+0x11e/0x5920
[ 466.063875][T14141] ? unwind_next_frame+0x18e6/0x22d0
[ 466.065900][T14141] ? __pfx___btrfs_run_delayed_refs+0x10/0x10
[ 466.068221][T14141] ? unwind_get_return_address+0x4d/0x90
[ 466.070280][T14141] ? arch_stack_walk+0xfd/0x150
[ 466.072243][T14141] ? __pfx_lock_acquire+0x10/0x10
[ 466.074157][T14141] ? __lock_acquire+0x1397/0x2100
[ 466.076070][T14141] btrfs_run_delayed_refs+0xe3/0x2c0
[ 466.078143][T14141] btrfs_commit_transaction+0x4b6/0x3720
[ 466.080385][T14141] ? btrfs_commit_transaction+0x177/0x3720
[ 466.082577][T14141] ? __pfx_lock_acquire+0x10/0x10
[ 466.084527][T14141] ? __asan_memset+0x23/0x50
[ 466.086258][T14141] ? __pfx_btrfs_commit_transaction+0x10/0x10
[ 466.089411][T14141] ? __pfx_lockdep_init_map_type+0x10/0x10
[ 466.091732][T14141] ? do_raw_spin_unlock+0x58/0x8b0
[ 466.093664][T14141] ? join_transaction+0x405/0xda0
[ 466.095625][T14141] ? btrfs_record_root_in_trans+0x12d/0x190
[ 466.097900][T14141] ? start_transaction+0x455/0x1670
[ 466.099983][T14141] try_flush_qgroup+0x1ec/0x340
[ 466.101854][T14141] ? kfree+0x196/0x420
[ 466.103477][T14141] ? __pfx_try_flush_qgroup+0x10/0x10
[ 466.105576][T14141] ? qgroup_reserve_data+0x6ab/0x8d0
[ 466.107672][T14141] btrfs_qgroup_reserve_data+0x68/0xb0
[ 466.109812][T14141] btrfs_check_data_free_space+0x149/0x240
[ 466.112023][T14141] btrfs_buffered_write+0x501/0x1150
[ 466.114107][T14141] ? __pfx_btrfs_buffered_write+0x10/0x10
[ 466.116326][T14141] ? __lock_acquire+0x1397/0x2100
[ 466.118410][T14141] btrfs_do_write_iter+0x279/0x760
[ 466.120478][T14141] ? __pfx_btrfs_do_write_iter+0x10/0x10
[ 466.122697][T14141] do_iter_readv_writev+0x600/0x880
[ 466.124749][T14141] ? __pfx_do_iter_readv_writev+0x10/0x10
[ 466.126968][T14141] ? rcu_read_lock_any_held+0xb7/0x160
[ 466.129052][T14141] vfs_writev+0x376/0xba0
[ 466.130785][T14141] ? __pfx_lock_acquire+0x10/0x10
[ 466.132747][T14141] ? __pfx_vfs_writev+0x10/0x10
[ 466.134685][T14141] ? vfs_write+0x730/0xd30
[ 466.136435][T14141] ? __fget_files+0x2a/0x410
[ 466.138205][T14141] ? __fget_files+0x395/0x410
[ 466.140025][T14141] ? __fget_files+0x2a/0x410
[ 466.141965][T14141] __se_sys_pwritev2+0x196/0x2b0
[ 466.144238][T14141] ? __pfx___se_sys_pwritev2+0x10/0x10
[ 466.146608][T14141] ? do_syscall_64+0x100/0x230
[ 466.148777][T14141] ? __x64_sys_pwritev2+0x21/0xf0
[ 466.150818][T14141] do_syscall_64+0xf3/0x230
[ 466.152557][T14141] ? clear_bhb_loop+0x35/0x90
[ 466.154398][T14141] entry_SYSCALL_64_after_hwframe+0x77/0x7f
[ 466.156788][T14141] RIP: 0033:0x7feffe77e719
[ 466.158640][T14141] 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
[ 466.166160][T14141] RSP: 002b:00007fefff4e5038 EFLAGS: 00000246 ORIG_RAX: 0000000000000148
[ 466.169482][T14141] RAX: ffffffffffffffda RBX: 00007feffe935f80 RCX: 00007feffe77e719
[ 466.172622][T14141] RDX: 0000000000000001 RSI: 00000000200001c0 RDI: 0000000000000005
[ 466.175645][T14141] RBP: 00007fefff4e5090 R08: 0000000000000009 R09: 0000000000000008
[ 466.178744][T14141] R10: 0000000000000002 R11: 0000000000000246 R12: 0000000000000001
[ 466.181739][T14141] R13: 0000000000000000 R14: 00007feffe935f80 R15: 00007ffe9bc24bd8
[ 466.184801][T14141]
[ 466.287101][ T1033] BTRFS info (device loop0): qgroup scan completed (inconsistency flag cleared)
[ 466.302150][ T5774] BTRFS info (device loop0): last unmount of filesystem 395ef67a-297e-477c-816d-cd80a5b93e5d
[ 466.921971][T14162] loop0: detected capacity change from 0 to 32768
[ 466.949682][T14162] BTRFS: device fsid 395ef67a-297e-477c-816d-cd80a5b93e5d devid 1 transid 8 /dev/loop0 (7:0) scanned by syz.0.477 (14162)
[ 466.991276][T14162] BTRFS info (device loop0): first mount of filesystem 395ef67a-297e-477c-816d-cd80a5b93e5d
[ 467.002905][T14162] BTRFS info (device loop0): using sha256 (sha256-avx2) checksum algorithm
[ 467.006226][T14162] BTRFS info (device loop0): using free-space-tree
[ 467.071252][T14162] FAULT_INJECTION: forcing a failure.
[ 467.071252][T14162] name failslab, interval 1, probability 0, space 0, times 0
[ 467.075942][T14162] CPU: 0 UID: 0 PID: 14162 Comm: syz.0.477 Not tainted 6.12.0-syzkaller-10296-gaaf20f870da0 #0
[ 467.079778][T14162] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2~bpo12+1 04/01/2014
[ 467.083914][T14162] Call Trace:
[ 467.085224][T14162]
[ 467.086368][T14162] dump_stack_lvl+0x241/0x360
[ 467.088267][T14162] ? __pfx_dump_stack_lvl+0x10/0x10
[ 467.090236][T14162] ? __pfx__printk+0x10/0x10
[ 467.092021][T14162] ? fs_reclaim_acquire+0x93/0x130
[ 467.093925][T14162] ? __pfx___might_resched+0x10/0x10
[ 467.095973][T14162] should_fail_ex+0x3b0/0x4e0
[ 467.097792][T14162] should_failslab+0xac/0x100
[ 467.099607][T14162] ? add_to_free_space_tree+0xc7/0x2e0
[ 467.101715][T14162] kmem_cache_alloc_noprof+0x70/0x380
[ 467.103767][T14162] ? __pfx_btrfs_record_squota_delta+0x10/0x10
[ 467.106140][T14162] add_to_free_space_tree+0xc7/0x2e0
[ 467.108290][T14162] __btrfs_free_extent+0x1d65/0x3a10
[ 467.110311][T14162] ? __pfx___btrfs_free_extent+0x10/0x10
[ 467.112430][T14162] ? __lock_acquire+0x20b0/0x2100
[ 467.114313][T14162] ? do_raw_read_unlock+0x3c/0x80
[ 467.116197][T14162] ? do_raw_spin_unlock+0x58/0x8b0
[ 467.118141][T14162] __btrfs_run_delayed_refs+0x102a/0x4350
[ 467.120391][T14162] ? validate_chain+0x11e/0x5920
[ 467.122300][T14162] ? unwind_next_frame+0x18e6/0x22d0
[ 467.124414][T14162] ? __pfx___btrfs_run_delayed_refs+0x10/0x10
[ 467.126762][T14162] ? unwind_get_return_address+0x4d/0x90
[ 467.128926][T14162] ? arch_stack_walk+0xfd/0x150
[ 467.130783][T14162] ? __pfx_lock_acquire+0x10/0x10
[ 467.132691][T14162] ? __lock_acquire+0x1397/0x2100
[ 467.134613][T14162] btrfs_run_delayed_refs+0xe3/0x2c0
[ 467.136659][T14162] btrfs_commit_transaction+0x4b6/0x3720
[ 467.138812][T14162] ? btrfs_commit_transaction+0x177/0x3720
[ 467.141009][T14162] ? __pfx_lock_acquire+0x10/0x10
[ 467.142926][T14162] ? __asan_memset+0x23/0x50
[ 467.144688][T14162] ? __pfx_btrfs_commit_transaction+0x10/0x10
[ 467.147009][T14162] ? __pfx_lockdep_init_map_type+0x10/0x10
[ 467.149217][T14162] ? do_raw_spin_unlock+0x58/0x8b0
[ 467.151149][T14162] ? join_transaction+0x405/0xda0
[ 467.153058][T14162] ? btrfs_record_root_in_trans+0x12d/0x190
[ 467.155335][T14162] ? start_transaction+0x455/0x1670
[ 467.157320][T14162] try_flush_qgroup+0x1ec/0x340
[ 467.159222][T14162] ? kfree+0x196/0x420
[ 467.160821][T14162] ? __pfx_try_flush_qgroup+0x10/0x10
[ 467.162895][T14162] ? qgroup_reserve_data+0x6ab/0x8d0
[ 467.164930][T14162] btrfs_qgroup_reserve_data+0x68/0xb0
[ 467.166980][T14162] btrfs_check_data_free_space+0x149/0x240
[ 467.169193][T14162] btrfs_buffered_write+0x501/0x1150
[ 467.171219][T14162] ? __pfx_btrfs_buffered_write+0x10/0x10
[ 467.173413][T14162] ? __lock_acquire+0x1397/0x2100
[ 467.175378][T14162] btrfs_do_write_iter+0x279/0x760
[ 467.177352][T14162] ? __pfx_btrfs_do_write_iter+0x10/0x10
[ 467.179522][T14162] do_iter_readv_writev+0x600/0x880
[ 467.181532][T14162] ? __pfx_do_iter_readv_writev+0x10/0x10
[ 467.183743][T14162] ? rcu_read_lock_any_held+0xb7/0x160
[ 467.185912][T14162] vfs_writev+0x376/0xba0
[ 467.187747][T14162] ? __pfx_lock_acquire+0x10/0x10
[ 467.189719][T14162] ? __pfx_vfs_writev+0x10/0x10
[ 467.191577][T14162] ? vfs_write+0x730/0xd30
[ 467.193312][T14162] ? __fget_files+0x2a/0x410
[ 467.195114][T14162] ? __fget_files+0x395/0x410
[ 467.196966][T14162] ? __fget_files+0x2a/0x410
[ 467.198746][T14162] __se_sys_pwritev2+0x196/0x2b0
[ 467.200674][T14162] ? __pfx___se_sys_pwritev2+0x10/0x10
[ 467.202808][T14162] ? do_syscall_64+0x100/0x230
[ 467.204662][T14162] ? __x64_sys_pwritev2+0x21/0xf0
[ 467.206727][T14162] do_syscall_64+0xf3/0x230
[ 467.208468][T14162] ? clear_bhb_loop+0x35/0x90
[ 467.210253][T14162] entry_SYSCALL_64_after_hwframe+0x77/0x7f
[ 467.212551][T14162] RIP: 0033:0x7feffe77e719
[ 467.214239][T14162] 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
[ 467.221493][T14162] RSP: 002b:00007fefff4e5038 EFLAGS: 00000246 ORIG_RAX: 0000000000000148
[ 467.224678][T14162] RAX: ffffffffffffffda RBX: 00007feffe935f80 RCX: 00007feffe77e719
[ 467.227608][T14162] RDX: 0000000000000001 RSI: 00000000200001c0 RDI: 0000000000000005
[ 467.230573][T14162] RBP: 00007fefff4e5090 R08: 0000000000000009 R09: 0000000000000008
[ 467.233414][T14162] R10: 0000000000000002 R11: 0000000000000246 R12: 0000000000000001
[ 467.236377][T14162] R13: 0000000000000000 R14: 00007feffe935f80 R15: 00007ffe9bc24bd8
[ 467.239402][T14162]
[ 467.282422][ T12] BTRFS info (device loop0): qgroup scan completed (inconsistency flag cleared)
[ 467.286117][T14162] BTRFS error (device loop0 state A): Transaction aborted (error -12)
[ 467.289285][T14162] BTRFS: error (device loop0 state A) in add_to_free_space_tree:1057: errno=-12 Out of memory
[ 467.295549][T14162] BTRFS info (device loop0 state EA): forced readonly
[ 467.298328][T14162] BTRFS: error (device loop0 state EA) in do_free_extent_accounting:2970: errno=-12 Out of memory
[ 467.303054][T14162] BTRFS error (device loop0 state EA): failed to run delayed ref for logical 1052672 num_bytes 4096 type 176 action 2 ref_mod 1: -12
[ 467.308690][T14162] BTRFS: error (device loop0 state EA) in btrfs_run_delayed_refs:2191: errno=-12 Out of memory
[ 467.319740][ T5774] BTRFS info (device loop0 state EA): last unmount of filesystem 395ef67a-297e-477c-816d-cd80a5b93e5d
[ 467.326504][ T5774] BTRFS warning (device loop0 state EA): qgroup 0/5 has unreleased space, type 0 rsv 1052672
[ 467.330493][ T5774] BTRFS error (device loop0 state EA): qgroup reserved space leaked
[ 468.114429][ T1034] netdevsim netdevsim0 netdevsim3 (unregistering): unset [1, 0] type 2 family 0 port 6081 - 0
[ 468.174650][ T1034] netdevsim netdevsim0 netdevsim2 (unregistering): unset [1, 0] type 2 family 0 port 6081 - 0
[ 468.214009][ T1034] netdevsim netdevsim0 netdevsim1 (unregistering): unset [1, 0] type 2 family 0 port 6081 - 0
[ 468.264011][ T1034] netdevsim netdevsim0 netdevsim0 (unregistering): unset [1, 0] type 2 family 0 port 6081 - 0
[ 468.375423][ T1034] bridge_slave_1: left allmulticast mode
[ 468.377669][ T1034] bridge_slave_1: left promiscuous mode
[ 468.389791][ T1034] bridge0: port 2(bridge_slave_1) entered disabled state
[ 468.403838][ T1034] bridge_slave_0: left allmulticast mode
[ 468.405956][ T1034] bridge_slave_0: left promiscuous mode
[ 468.408143][ T1034] bridge0: port 1(bridge_slave_0) entered disabled state
[ 468.731236][ T1034] bond0 (unregistering): (slave bond_slave_0): Releasing backup interface
[ 468.736436][ T1034] bond0 (unregistering): (slave bond_slave_1): Releasing backup interface
[ 468.742460][ T1034] bond0 (unregistering): Released all slaves
[ 468.940120][ T1034] hsr_slave_0: left promiscuous mode
[ 468.952560][ T1034] hsr_slave_1: left promiscuous mode
[ 468.956225][ T1034] batman_adv: batadv0: Interface deactivated: batadv_slave_0
[ 468.958956][ T1034] batman_adv: batadv0: Removing interface: batadv_slave_0
[ 468.972611][ T1034] batman_adv: batadv0: Interface deactivated: batadv_slave_1
[ 468.975432][ T1034] batman_adv: batadv0: Removing interface: batadv_slave_1
[ 468.995765][ T1034] veth1_macvtap: left promiscuous mode
[ 468.998022][ T1034] veth0_macvtap: left promiscuous mode
[ 469.000286][ T1034] veth1_vlan: left promiscuous mode
[ 469.011830][ T1034] veth0_vlan: left promiscuous mode
[ 469.293378][ T1034] team0 (unregistering): Port device team_slave_1 removed
[ 469.317229][ T1034] team0 (unregistering): Port device team_slave_0 removed