2fb0 [ 475.241012] xfs_alloc_fixup_trees+0x425/0x4f0 [ 475.245571] ? xfs_alloc_update+0x90/0x90 [ 475.249694] ? xfs_btree_rec_offset.isra.0+0x3b/0xa0 [ 475.254782] ? xfs_alloc_compute_diff+0x23c/0x3d0 [ 475.259614] xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 475.264696] ? xfs_alloc_fix_freelist+0x685/0xeb0 [ 475.269520] ? xfs_alloc_ag_vextent_size+0x1ea0/0x1ea0 [ 475.274778] ? xfs_alloc_read_agf+0xb10/0xb10 [ 475.279255] xfs_alloc_ag_vextent+0x579/0x750 [ 475.283724] ? xfs_perag_get+0x116/0x410 [ 475.287766] ? xfs_alloc_vextent+0x470/0x2010 [ 475.292244] xfs_alloc_vextent+0x10b0/0x2010 [ 475.296632] xfs_bmap_btalloc+0x9e5/0x1b20 [ 475.300844] ? xfs_bmap_adjacent+0x1480/0x1480 [ 475.305399] ? ret_from_fork+0x24/0x30 [ 475.309280] ? __xfs_bmbt_get_all+0x16/0x100 [ 475.313671] xfs_bmap_alloc+0x107/0x160 [ 475.317621] xfs_bmapi_write+0xa49/0x1d00 [ 475.321751] ? xfs_bmapi_reserve_delalloc+0x7c0/0x7c0 [ 475.326924] ? trace_hardirqs_on+0x10/0x10 [ 475.331146] ? xfs_iext_get_ext+0xeb/0x200 [ 475.335356] ? xfs_iext_idx_to_irec+0x340/0x340 [ 475.340006] ? xfs_bmap_last_extent+0x1d0/0x1d0 [ 475.344674] xfs_iomap_write_allocate+0x42b/0xa30 [ 475.349511] ? xfs_file_iomap_begin+0x1ed0/0x1ed0 [ 475.354336] ? xfs_iunlock+0x248/0x3b0 [ 475.358207] ? rcu_read_lock_sched_held+0x16c/0x1d0 [ 475.363196] ? xfs_iunlock+0x21a/0x3b0 [ 475.367067] xfs_map_blocks+0x548/0x940 [ 475.371025] ? xfs_vm_set_page_dirty+0x610/0x610 [ 475.375760] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 475.381194] xfs_do_writepage+0x422/0x13d0 [ 475.385408] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 475.389707] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 475.395148] write_cache_pages+0x505/0xd20 [ 475.399358] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 475.403659] ? clear_page_dirty_for_io+0xb80/0xb80 [ 475.408582] ? trace_hardirqs_on+0x10/0x10 [ 475.412801] xfs_vm_writepages+0x258/0x340 [ 475.417010] ? xfs_vm_writepage+0xd0/0xd0 [ 475.421140] ? xfs_vm_writepage+0xd0/0xd0 [ 475.425263] do_writepages+0xc3/0x240 [ 475.429053] ? page_writeback_cpu_online+0x10/0x10 [ 475.433967] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 475.439416] __writeback_single_inode+0xda/0x1010 [ 475.444235] writeback_sb_inodes+0x48b/0xd30 [ 475.448634] ? wbc_detach_inode+0x780/0x780 [ 475.452940] ? queue_io+0x400/0x5a0 [ 475.456553] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 475.462011] wb_writeback+0x243/0xb80 [ 475.465793] ? writeback_inodes_wb.constprop.0+0x1a0/0x1a0 [ 475.471395] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 475.476822] wb_workfn+0x2bd/0xf50 [ 475.480340] ? process_one_work+0x6c4/0x14a0 [ 475.484726] ? inode_wait_for_writeback+0x30/0x30 [ 475.489550] ? lock_acquire+0x170/0x3f0 [ 475.493507] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 475.498934] process_one_work+0x793/0x14a0 [ 475.503148] ? work_busy+0x320/0x320 [ 475.506842] ? worker_thread+0x158/0xff0 [ 475.510889] ? _raw_spin_unlock_irq+0x24/0x80 [ 475.515358] worker_thread+0x5cc/0xff0 [ 475.519227] ? rescuer_thread+0xc80/0xc80 [ 475.523349] kthread+0x30d/0x420 [ 475.526697] ? kthread_create_on_node+0xd0/0xd0 [ 475.531349] ret_from_fork+0x24/0x30 [ 475.535404] XFS (loop1): page discard on page ffffea0001283a00, inode 0x29, offset 851968. [ 475.544195] XFS (loop1): Internal error XFS_WANT_CORRUPTED_RETURN at line 431 of file fs/xfs/libxfs/xfs_alloc.c. Caller xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 475.558738] CPU: 1 PID: 2818 Comm: kworker/u4:3 Not tainted 4.14.303-syzkaller #0 [ 475.566345] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023 [ 475.575693] Workqueue: writeback wb_workfn (flush-7:1) [ 475.580947] Call Trace: [ 475.583510] dump_stack+0x1b2/0x281 [ 475.587123] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 475.592381] xfs_error_report+0x98/0xa0 [ 475.596329] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 475.601581] xfs_alloc_fixup_trees+0x425/0x4f0 [ 475.606145] ? xfs_alloc_update+0x90/0x90 [ 475.610273] ? xfs_btree_rec_offset.isra.0+0x3b/0xa0 [ 475.615350] ? xfs_alloc_compute_diff+0x23c/0x3d0 [ 475.620169] xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 475.625253] ? xfs_alloc_fix_freelist+0x685/0xeb0 [ 475.630073] ? xfs_alloc_ag_vextent_size+0x1ea0/0x1ea0 [ 475.635324] ? xfs_alloc_read_agf+0xb10/0xb10 [ 475.639803] xfs_alloc_ag_vextent+0x579/0x750 [ 475.644274] ? xfs_perag_get+0x116/0x410 [ 475.648311] ? xfs_alloc_vextent+0x470/0x2010 [ 475.652789] xfs_alloc_vextent+0x10b0/0x2010 [ 475.657177] xfs_bmap_btalloc+0x9e5/0x1b20 [ 475.661388] ? xfs_bmap_adjacent+0x1480/0x1480 [ 475.665946] ? ret_from_fork+0x24/0x30 [ 475.669815] ? __xfs_bmbt_get_all+0x16/0x100 [ 475.674199] xfs_bmap_alloc+0x107/0x160 [ 475.678167] xfs_bmapi_write+0xa49/0x1d00 [ 475.682295] ? xfs_bmapi_reserve_delalloc+0x7c0/0x7c0 [ 475.687469] ? trace_hardirqs_on+0x10/0x10 [ 475.691707] ? xfs_iext_get_ext+0xeb/0x200 [ 475.695915] ? xfs_iext_idx_to_irec+0x340/0x340 [ 475.700580] ? xfs_bmap_last_extent+0x1d0/0x1d0 [ 475.705246] xfs_iomap_write_allocate+0x42b/0xa30 [ 475.710077] ? xfs_file_iomap_begin+0x1ed0/0x1ed0 [ 475.714898] ? xfs_iunlock+0x248/0x3b0 [ 475.718767] ? rcu_read_lock_sched_held+0x16c/0x1d0 [ 475.723761] ? xfs_iunlock+0x21a/0x3b0 [ 475.727631] xfs_map_blocks+0x548/0x940 [ 475.731590] ? xfs_vm_set_page_dirty+0x610/0x610 [ 475.736325] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 475.741751] xfs_do_writepage+0x422/0x13d0 [ 475.745971] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 475.750273] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 475.755703] write_cache_pages+0x505/0xd20 [ 475.759916] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 475.764215] ? clear_page_dirty_for_io+0xb80/0xb80 [ 475.769135] ? trace_hardirqs_on+0x10/0x10 [ 475.773376] xfs_vm_writepages+0x258/0x340 [ 475.777597] ? xfs_vm_writepage+0xd0/0xd0 [ 475.781727] ? xfs_vm_writepage+0xd0/0xd0 [ 475.785854] do_writepages+0xc3/0x240 [ 475.789644] ? page_writeback_cpu_online+0x10/0x10 [ 475.794569] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 475.800005] __writeback_single_inode+0xda/0x1010 [ 475.804825] writeback_sb_inodes+0x48b/0xd30 [ 475.809248] ? wbc_detach_inode+0x780/0x780 [ 475.813565] ? queue_io+0x400/0x5a0 [ 475.817173] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 475.822606] wb_writeback+0x243/0xb80 [ 475.826397] ? writeback_inodes_wb.constprop.0+0x1a0/0x1a0 [ 475.832031] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 475.837459] wb_workfn+0x2bd/0xf50 [ 475.840980] ? process_one_work+0x6c4/0x14a0 [ 475.845362] ? inode_wait_for_writeback+0x30/0x30 [ 475.850184] ? lock_acquire+0x170/0x3f0 [ 475.854136] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 475.859564] process_one_work+0x793/0x14a0 [ 475.863779] ? work_busy+0x320/0x320 [ 475.867471] ? worker_thread+0x158/0xff0 [ 475.871515] ? _raw_spin_unlock_irq+0x24/0x80 [ 475.876005] worker_thread+0x5cc/0xff0 [ 475.879875] ? rescuer_thread+0xc80/0xc80 [ 475.883998] kthread+0x30d/0x420 [ 475.887356] ? kthread_create_on_node+0xd0/0xd0 [ 475.892011] ret_from_fork+0x24/0x30 [ 475.896363] XFS (loop1): page discard on page ffffea000124cd40, inode 0x29, offset 856064. [ 475.905155] XFS (loop1): Internal error XFS_WANT_CORRUPTED_RETURN at line 431 of file fs/xfs/libxfs/xfs_alloc.c. Caller xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 475.919699] CPU: 1 PID: 2818 Comm: kworker/u4:3 Not tainted 4.14.303-syzkaller #0 [ 475.927306] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023 [ 475.936655] Workqueue: writeback wb_workfn (flush-7:1) [ 475.941908] Call Trace: [ 475.944475] dump_stack+0x1b2/0x281 [ 475.948089] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 475.953367] xfs_error_report+0x98/0xa0 [ 475.957319] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 475.962577] xfs_alloc_fixup_trees+0x425/0x4f0 [ 475.967144] ? xfs_alloc_update+0x90/0x90 [ 475.971275] ? xfs_btree_rec_offset.isra.0+0x3b/0xa0 [ 475.976382] ? xfs_alloc_compute_diff+0x23c/0x3d0 [ 475.981210] xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 475.986305] ? xfs_alloc_fix_freelist+0x685/0xeb0 [ 475.991130] ? xfs_alloc_ag_vextent_size+0x1ea0/0x1ea0 [ 475.996400] ? xfs_alloc_read_agf+0xb10/0xb10 [ 476.000880] xfs_alloc_ag_vextent+0x579/0x750 [ 476.005349] ? xfs_perag_get+0x116/0x410 [ 476.009402] ? xfs_alloc_vextent+0x470/0x2010 [ 476.013888] xfs_alloc_vextent+0x10b0/0x2010 [ 476.018286] xfs_bmap_btalloc+0x9e5/0x1b20 [ 476.022504] ? xfs_bmap_adjacent+0x1480/0x1480 [ 476.027067] ? ret_from_fork+0x24/0x30 [ 476.030967] ? __xfs_bmbt_get_all+0x16/0x100 [ 476.035370] xfs_bmap_alloc+0x107/0x160 [ 476.039342] xfs_bmapi_write+0xa49/0x1d00 [ 476.043472] ? xfs_bmapi_reserve_delalloc+0x7c0/0x7c0 [ 476.048648] ? trace_hardirqs_on+0x10/0x10 [ 476.052871] ? xfs_iext_get_ext+0xeb/0x200 [ 476.057080] ? xfs_iext_idx_to_irec+0x340/0x340 [ 476.061726] ? xfs_bmap_last_extent+0x1d0/0x1d0 [ 476.066383] xfs_iomap_write_allocate+0x42b/0xa30 [ 476.071217] ? xfs_file_iomap_begin+0x1ed0/0x1ed0 [ 476.076040] ? xfs_iunlock+0x248/0x3b0 [ 476.079916] ? rcu_read_lock_sched_held+0x16c/0x1d0 [ 476.084904] ? xfs_iunlock+0x21a/0x3b0 [ 476.088774] xfs_map_blocks+0x548/0x940 [ 476.092733] ? xfs_vm_set_page_dirty+0x610/0x610 [ 476.097469] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 476.102903] xfs_do_writepage+0x422/0x13d0 [ 476.107136] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 476.111442] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 476.116867] write_cache_pages+0x505/0xd20 [ 476.121080] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 476.125397] ? clear_page_dirty_for_io+0xb80/0xb80 [ 476.130309] ? trace_hardirqs_on+0x10/0x10 [ 476.134520] xfs_vm_writepages+0x258/0x340 [ 476.138730] ? xfs_vm_writepage+0xd0/0xd0 [ 476.142858] ? xfs_vm_writepage+0xd0/0xd0 [ 476.146993] do_writepages+0xc3/0x240 [ 476.150799] ? page_writeback_cpu_online+0x10/0x10 [ 476.155705] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 476.161134] __writeback_single_inode+0xda/0x1010 [ 476.165953] writeback_sb_inodes+0x48b/0xd30 [ 476.170348] ? wbc_detach_inode+0x780/0x780 [ 476.174651] ? queue_io+0x400/0x5a0 [ 476.178254] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 476.183679] wb_writeback+0x243/0xb80 [ 476.187465] ? writeback_inodes_wb.constprop.0+0x1a0/0x1a0 [ 476.193075] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 476.198501] wb_workfn+0x2bd/0xf50 [ 476.202020] ? process_one_work+0x6c4/0x14a0 [ 476.206413] ? inode_wait_for_writeback+0x30/0x30 [ 476.211241] ? lock_acquire+0x170/0x3f0 [ 476.215191] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 476.220618] process_one_work+0x793/0x14a0 [ 476.224829] ? work_busy+0x320/0x320 [ 476.228523] ? worker_thread+0x158/0xff0 [ 476.232569] ? _raw_spin_unlock_irq+0x24/0x80 [ 476.237040] worker_thread+0x5cc/0xff0 [ 476.240906] ? rescuer_thread+0xc80/0xc80 [ 476.245033] kthread+0x30d/0x420 [ 476.248380] ? kthread_create_on_node+0xd0/0xd0 [ 476.253030] ret_from_fork+0x24/0x30 [ 476.257117] XFS (loop1): page discard on page ffffea00010d2080, inode 0x29, offset 860160. [ 476.265894] XFS (loop1): Internal error XFS_WANT_CORRUPTED_RETURN at line 431 of file fs/xfs/libxfs/xfs_alloc.c. Caller xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 476.280445] CPU: 1 PID: 2818 Comm: kworker/u4:3 Not tainted 4.14.303-syzkaller #0 [ 476.288055] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023 [ 476.297401] Workqueue: writeback wb_workfn (flush-7:1) [ 476.302663] Call Trace: [ 476.305228] dump_stack+0x1b2/0x281 [ 476.308845] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 476.314103] xfs_error_report+0x98/0xa0 [ 476.318052] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 476.323306] xfs_alloc_fixup_trees+0x425/0x4f0 [ 476.327872] ? xfs_alloc_update+0x90/0x90 [ 476.332006] ? xfs_btree_rec_offset.isra.0+0x3b/0xa0 [ 476.337087] ? xfs_alloc_compute_diff+0x23c/0x3d0 [ 476.341906] xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 476.347010] ? xfs_alloc_fix_freelist+0x685/0xeb0 [ 476.351834] ? xfs_alloc_ag_vextent_size+0x1ea0/0x1ea0 [ 476.357088] ? xfs_alloc_read_agf+0xb10/0xb10 [ 476.361570] xfs_alloc_ag_vextent+0x579/0x750 [ 476.366046] ? xfs_perag_get+0x116/0x410 [ 476.370090] ? xfs_alloc_vextent+0x470/0x2010 [ 476.374562] xfs_alloc_vextent+0x10b0/0x2010 [ 476.378951] xfs_bmap_btalloc+0x9e5/0x1b20 [ 476.383163] ? xfs_bmap_adjacent+0x1480/0x1480 [ 476.387731] ? ret_from_fork+0x24/0x30 [ 476.391608] ? __xfs_bmbt_get_all+0x16/0x100 [ 476.395993] xfs_bmap_alloc+0x107/0x160 [ 476.399955] xfs_bmapi_write+0xa49/0x1d00 [ 476.404083] ? xfs_bmapi_reserve_delalloc+0x7c0/0x7c0 [ 476.409256] ? trace_hardirqs_on+0x10/0x10 [ 476.413475] ? xfs_iext_get_ext+0xeb/0x200 [ 476.418492] ? xfs_iext_idx_to_irec+0x340/0x340 [ 476.423142] ? xfs_bmap_last_extent+0x1d0/0x1d0 [ 476.427799] xfs_iomap_write_allocate+0x42b/0xa30 [ 476.432630] ? xfs_file_iomap_begin+0x1ed0/0x1ed0 [ 476.437448] ? xfs_iunlock+0x248/0x3b0 [ 476.441317] ? rcu_read_lock_sched_held+0x16c/0x1d0 [ 476.446316] ? xfs_iunlock+0x21a/0x3b0 [ 476.450189] xfs_map_blocks+0x548/0x940 [ 476.454139] ? xfs_vm_set_page_dirty+0x610/0x610 [ 476.458880] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 476.464315] xfs_do_writepage+0x422/0x13d0 [ 476.468545] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 476.472860] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 476.478295] write_cache_pages+0x505/0xd20 [ 476.482524] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 476.486831] ? clear_page_dirty_for_io+0xb80/0xb80 [ 476.491750] ? trace_hardirqs_on+0x10/0x10 [ 476.495960] xfs_vm_writepages+0x258/0x340 [ 476.500173] ? xfs_vm_writepage+0xd0/0xd0 [ 476.504300] ? xfs_vm_writepage+0xd0/0xd0 [ 476.508429] do_writepages+0xc3/0x240 [ 476.512218] ? page_writeback_cpu_online+0x10/0x10 [ 476.517127] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 476.522554] __writeback_single_inode+0xda/0x1010 [ 476.527383] writeback_sb_inodes+0x48b/0xd30 [ 476.531777] ? wbc_detach_inode+0x780/0x780 [ 476.536085] ? queue_io+0x400/0x5a0 [ 476.539685] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 476.545111] wb_writeback+0x243/0xb80 [ 476.548898] ? writeback_inodes_wb.constprop.0+0x1a0/0x1a0 [ 476.554507] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 476.559936] wb_workfn+0x2bd/0xf50 [ 476.563455] ? process_one_work+0x6c4/0x14a0 [ 476.567843] ? inode_wait_for_writeback+0x30/0x30 [ 476.572681] ? lock_acquire+0x170/0x3f0 [ 476.576637] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 476.582078] process_one_work+0x793/0x14a0 [ 476.586308] ? work_busy+0x320/0x320 [ 476.590020] ? worker_thread+0x158/0xff0 [ 476.594075] ? _raw_spin_unlock_irq+0x24/0x80 [ 476.598569] worker_thread+0x5cc/0xff0 [ 476.602443] ? rescuer_thread+0xc80/0xc80 [ 476.606576] kthread+0x30d/0x420 [ 476.609929] ? kthread_create_on_node+0xd0/0xd0 [ 476.614575] ret_from_fork+0x24/0x30 [ 476.618668] XFS (loop1): page discard on page ffffea00012b57c0, inode 0x29, offset 864256. [ 476.627482] XFS (loop1): Internal error XFS_WANT_CORRUPTED_RETURN at line 431 of file fs/xfs/libxfs/xfs_alloc.c. Caller xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 476.642033] CPU: 1 PID: 2818 Comm: kworker/u4:3 Not tainted 4.14.303-syzkaller #0 [ 476.649640] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023 [ 476.659015] Workqueue: writeback wb_workfn (flush-7:1) [ 476.664269] Call Trace: [ 476.666842] dump_stack+0x1b2/0x281 [ 476.670474] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 476.675724] xfs_error_report+0x98/0xa0 [ 476.679670] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 476.684924] xfs_alloc_fixup_trees+0x425/0x4f0 [ 476.689490] ? xfs_alloc_update+0x90/0x90 [ 476.693617] ? xfs_btree_rec_offset.isra.0+0x3b/0xa0 [ 476.698696] ? xfs_alloc_compute_diff+0x23c/0x3d0 [ 476.703517] xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 476.708610] ? xfs_alloc_fix_freelist+0x685/0xeb0 [ 476.713432] ? xfs_alloc_ag_vextent_size+0x1ea0/0x1ea0 [ 476.718687] ? xfs_alloc_read_agf+0xb10/0xb10 [ 476.723165] xfs_alloc_ag_vextent+0x579/0x750 [ 476.727639] ? xfs_perag_get+0x116/0x410 [ 476.731705] ? xfs_alloc_vextent+0x470/0x2010 [ 476.736179] xfs_alloc_vextent+0x10b0/0x2010 [ 476.740586] xfs_bmap_btalloc+0x9e5/0x1b20 [ 476.744806] ? xfs_bmap_adjacent+0x1480/0x1480 [ 476.749368] ? ret_from_fork+0x24/0x30 [ 476.753246] ? __xfs_bmbt_get_all+0x16/0x100 [ 476.757630] xfs_bmap_alloc+0x107/0x160 [ 476.761579] xfs_bmapi_write+0xa49/0x1d00 [ 476.765709] ? xfs_bmapi_reserve_delalloc+0x7c0/0x7c0 [ 476.770877] ? trace_hardirqs_on+0x10/0x10 [ 476.775092] ? xfs_iext_get_ext+0xeb/0x200 [ 476.779301] ? xfs_iext_idx_to_irec+0x340/0x340 [ 476.783957] ? xfs_bmap_last_extent+0x1d0/0x1d0 [ 476.788701] xfs_iomap_write_allocate+0x42b/0xa30 [ 476.793532] ? xfs_file_iomap_begin+0x1ed0/0x1ed0 [ 476.798349] ? xfs_iunlock+0x248/0x3b0 [ 476.802219] ? rcu_read_lock_sched_held+0x16c/0x1d0 [ 476.807213] ? xfs_iunlock+0x21a/0x3b0 [ 476.811086] xfs_map_blocks+0x548/0x940 [ 476.815061] ? xfs_vm_set_page_dirty+0x610/0x610 [ 476.819795] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 476.825221] xfs_do_writepage+0x422/0x13d0 [ 476.829446] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 476.833751] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 476.839181] write_cache_pages+0x505/0xd20 [ 476.843390] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 476.847707] ? clear_page_dirty_for_io+0xb80/0xb80 [ 476.852634] ? trace_hardirqs_on+0x10/0x10 [ 476.856851] xfs_vm_writepages+0x258/0x340 [ 476.861067] ? xfs_vm_writepage+0xd0/0xd0 [ 476.865196] ? xfs_vm_writepage+0xd0/0xd0 [ 476.869329] do_writepages+0xc3/0x240 [ 476.873114] ? page_writeback_cpu_online+0x10/0x10 [ 476.878024] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 476.883451] __writeback_single_inode+0xda/0x1010 [ 476.888279] writeback_sb_inodes+0x48b/0xd30 [ 476.892684] ? wbc_detach_inode+0x780/0x780 [ 476.896990] ? queue_io+0x400/0x5a0 [ 476.900591] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 476.906023] wb_writeback+0x243/0xb80 [ 476.909808] ? writeback_inodes_wb.constprop.0+0x1a0/0x1a0 [ 476.915424] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 476.920858] wb_workfn+0x2bd/0xf50 [ 476.924384] ? process_one_work+0x6c4/0x14a0 [ 476.928778] ? inode_wait_for_writeback+0x30/0x30 [ 476.933614] ? lock_acquire+0x170/0x3f0 [ 476.937570] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 476.943001] process_one_work+0x793/0x14a0 [ 476.947223] ? work_busy+0x320/0x320 [ 476.950922] ? worker_thread+0x158/0xff0 [ 476.954965] ? _raw_spin_unlock_irq+0x24/0x80 [ 476.959439] worker_thread+0x5cc/0xff0 [ 476.963313] ? rescuer_thread+0xc80/0xc80 [ 476.967446] kthread+0x30d/0x420 [ 476.970797] ? kthread_create_on_node+0xd0/0xd0 [ 476.975446] ret_from_fork+0x24/0x30 [ 476.980146] XFS (loop1): page discard on page ffffea00012d8fc0, inode 0x29, offset 868352. [ 476.988975] XFS (loop1): Internal error XFS_WANT_CORRUPTED_RETURN at line 431 of file fs/xfs/libxfs/xfs_alloc.c. Caller xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 477.003523] CPU: 1 PID: 2818 Comm: kworker/u4:3 Not tainted 4.14.303-syzkaller #0 [ 477.011133] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023 [ 477.020478] Workqueue: writeback wb_workfn (flush-7:1) [ 477.025755] Call Trace: [ 477.028324] dump_stack+0x1b2/0x281 [ 477.031929] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 477.037189] xfs_error_report+0x98/0xa0 [ 477.041146] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 477.046406] xfs_alloc_fixup_trees+0x425/0x4f0 [ 477.050974] ? xfs_alloc_update+0x90/0x90 [ 477.055098] ? xfs_btree_rec_offset.isra.0+0x3b/0xa0 [ 477.060179] ? xfs_alloc_compute_diff+0x23c/0x3d0 [ 477.064999] xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 477.070084] ? xfs_alloc_fix_freelist+0x685/0xeb0 [ 477.074903] ? xfs_alloc_ag_vextent_size+0x1ea0/0x1ea0 [ 477.080163] ? xfs_alloc_read_agf+0xb10/0xb10 [ 477.084647] xfs_alloc_ag_vextent+0x579/0x750 [ 477.089142] ? xfs_perag_get+0x116/0x410 [ 477.093181] ? xfs_alloc_vextent+0x470/0x2010 [ 477.097657] xfs_alloc_vextent+0x10b0/0x2010 [ 477.102055] xfs_bmap_btalloc+0x9e5/0x1b20 [ 477.106281] ? xfs_bmap_adjacent+0x1480/0x1480 [ 477.110848] ? ret_from_fork+0x24/0x30 [ 477.114717] ? __xfs_bmbt_get_all+0x16/0x100 [ 477.119121] xfs_bmap_alloc+0x107/0x160 [ 477.123071] xfs_bmapi_write+0xa49/0x1d00 [ 477.127211] ? xfs_bmapi_reserve_delalloc+0x7c0/0x7c0 [ 477.132385] ? trace_hardirqs_on+0x10/0x10 [ 477.136607] ? xfs_iext_get_ext+0xeb/0x200 [ 477.140827] ? xfs_iext_idx_to_irec+0x340/0x340 [ 477.145478] ? xfs_bmap_last_extent+0x1d0/0x1d0 [ 477.150126] xfs_iomap_write_allocate+0x42b/0xa30 [ 477.154948] ? xfs_file_iomap_begin+0x1ed0/0x1ed0 [ 477.159764] ? xfs_iunlock+0x248/0x3b0 [ 477.163632] ? rcu_read_lock_sched_held+0x16c/0x1d0 [ 477.168623] ? xfs_iunlock+0x21a/0x3b0 [ 477.172484] xfs_map_blocks+0x548/0x940 [ 477.176442] ? xfs_vm_set_page_dirty+0x610/0x610 [ 477.181178] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 477.186612] xfs_do_writepage+0x422/0x13d0 [ 477.190833] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 477.195133] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 477.200561] write_cache_pages+0x505/0xd20 [ 477.204771] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 477.209070] ? clear_page_dirty_for_io+0xb80/0xb80 [ 477.213979] ? trace_hardirqs_on+0x10/0x10 [ 477.218192] xfs_vm_writepages+0x258/0x340 [ 477.222400] ? xfs_vm_writepage+0xd0/0xd0 [ 477.226535] ? xfs_vm_writepage+0xd0/0xd0 [ 477.230666] do_writepages+0xc3/0x240 [ 477.234577] ? page_writeback_cpu_online+0x10/0x10 [ 477.239488] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 477.244922] __writeback_single_inode+0xda/0x1010 [ 477.249746] writeback_sb_inodes+0x48b/0xd30 [ 477.254136] ? wbc_detach_inode+0x780/0x780 [ 477.258436] ? queue_io+0x400/0x5a0 [ 477.262042] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 477.267476] wb_writeback+0x243/0xb80 [ 477.271263] ? writeback_inodes_wb.constprop.0+0x1a0/0x1a0 [ 477.276876] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 477.282312] wb_workfn+0x2bd/0xf50 [ 477.285831] ? process_one_work+0x6c4/0x14a0 [ 477.290219] ? inode_wait_for_writeback+0x30/0x30 [ 477.295039] ? lock_acquire+0x170/0x3f0 [ 477.298988] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 477.304415] process_one_work+0x793/0x14a0 [ 477.308627] ? work_busy+0x320/0x320 [ 477.312315] ? worker_thread+0x158/0xff0 [ 477.316357] ? _raw_spin_unlock_irq+0x24/0x80 [ 477.320832] worker_thread+0x5cc/0xff0 [ 477.324704] ? rescuer_thread+0xc80/0xc80 [ 477.328830] kthread+0x30d/0x420 [ 477.332171] ? kthread_create_on_node+0xd0/0xd0 [ 477.336820] ret_from_fork+0x24/0x30 [ 477.341033] XFS (loop1): page discard on page ffffea00010eec00, inode 0x29, offset 872448. [ 477.349851] XFS (loop1): Internal error XFS_WANT_CORRUPTED_RETURN at line 431 of file fs/xfs/libxfs/xfs_alloc.c. Caller xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 477.364406] CPU: 1 PID: 2818 Comm: kworker/u4:3 Not tainted 4.14.303-syzkaller #0 [ 477.372015] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023 [ 477.381360] Workqueue: writeback wb_workfn (flush-7:1) [ 477.386613] Call Trace: [ 477.389177] dump_stack+0x1b2/0x281 [ 477.392782] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 477.398036] xfs_error_report+0x98/0xa0 [ 477.401994] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 477.407248] xfs_alloc_fixup_trees+0x425/0x4f0 [ 477.411807] ? xfs_alloc_update+0x90/0x90 [ 477.415933] ? xfs_btree_rec_offset.isra.0+0x3b/0xa0 [ 477.421017] ? xfs_alloc_compute_diff+0x23c/0x3d0 [ 477.425837] xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 477.430923] ? xfs_alloc_fix_freelist+0x685/0xeb0 [ 477.435741] ? xfs_alloc_ag_vextent_size+0x1ea0/0x1ea0 [ 477.440996] ? xfs_alloc_read_agf+0xb10/0xb10 [ 477.445475] xfs_alloc_ag_vextent+0x579/0x750 [ 477.449948] ? xfs_perag_get+0x116/0x410 [ 477.453985] ? xfs_alloc_vextent+0x470/0x2010 [ 477.458465] xfs_alloc_vextent+0x10b0/0x2010 [ 477.462866] xfs_bmap_btalloc+0x9e5/0x1b20 [ 477.467084] ? xfs_bmap_adjacent+0x1480/0x1480 [ 477.471644] ? ret_from_fork+0x24/0x30 [ 477.475511] ? __xfs_bmbt_get_all+0x16/0x100 [ 477.479901] xfs_bmap_alloc+0x107/0x160 [ 477.483855] xfs_bmapi_write+0xa49/0x1d00 [ 477.488004] ? xfs_bmapi_reserve_delalloc+0x7c0/0x7c0 [ 477.493169] ? trace_hardirqs_on+0x10/0x10 [ 477.497388] ? xfs_iext_get_ext+0xeb/0x200 [ 477.501604] ? xfs_iext_idx_to_irec+0x340/0x340 [ 477.506254] ? xfs_bmap_last_extent+0x1d0/0x1d0 [ 477.510900] xfs_iomap_write_allocate+0x42b/0xa30 [ 477.515723] ? xfs_file_iomap_begin+0x1ed0/0x1ed0 [ 477.520542] ? xfs_iunlock+0x248/0x3b0 [ 477.524429] ? rcu_read_lock_sched_held+0x16c/0x1d0 [ 477.529422] ? xfs_iunlock+0x21a/0x3b0 [ 477.533284] xfs_map_blocks+0x548/0x940 [ 477.537242] ? xfs_vm_set_page_dirty+0x610/0x610 [ 477.541983] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 477.547426] xfs_do_writepage+0x422/0x13d0 [ 477.551640] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 477.555941] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 477.561370] write_cache_pages+0x505/0xd20 [ 477.565600] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 477.569905] ? clear_page_dirty_for_io+0xb80/0xb80 [ 477.574816] ? trace_hardirqs_on+0x10/0x10 [ 477.579035] xfs_vm_writepages+0x258/0x340 [ 477.583270] ? xfs_vm_writepage+0xd0/0xd0 [ 477.587394] ? xfs_vm_writepage+0xd0/0xd0 [ 477.591519] do_writepages+0xc3/0x240 [ 477.595297] ? page_writeback_cpu_online+0x10/0x10 [ 477.600205] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 477.605632] __writeback_single_inode+0xda/0x1010 [ 477.610453] writeback_sb_inodes+0x48b/0xd30 [ 477.614839] ? wbc_detach_inode+0x780/0x780 [ 477.619156] ? queue_io+0x400/0x5a0 [ 477.622773] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 477.628201] wb_writeback+0x243/0xb80 [ 477.631983] ? writeback_inodes_wb.constprop.0+0x1a0/0x1a0 [ 477.637590] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 477.643021] wb_workfn+0x2bd/0xf50 [ 477.646539] ? process_one_work+0x6c4/0x14a0 [ 477.650926] ? inode_wait_for_writeback+0x30/0x30 [ 477.655743] ? lock_acquire+0x170/0x3f0 [ 477.659692] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 477.665138] process_one_work+0x793/0x14a0 [ 477.669351] ? work_busy+0x320/0x320 [ 477.673040] ? worker_thread+0x158/0xff0 [ 477.677086] ? _raw_spin_unlock_irq+0x24/0x80 [ 477.681566] worker_thread+0x5cc/0xff0 [ 477.685436] ? rescuer_thread+0xc80/0xc80 [ 477.689558] kthread+0x30d/0x420 [ 477.692897] ? kthread_create_on_node+0xd0/0xd0 [ 477.697548] ret_from_fork+0x24/0x30 [ 477.701707] XFS (loop1): page discard on page ffffea000127eb40, inode 0x29, offset 876544. [ 477.710551] XFS (loop1): Internal error XFS_WANT_CORRUPTED_RETURN at line 431 of file fs/xfs/libxfs/xfs_alloc.c. Caller xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 477.725093] CPU: 1 PID: 2818 Comm: kworker/u4:3 Not tainted 4.14.303-syzkaller #0 [ 477.732725] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023 [ 477.742067] Workqueue: writeback wb_workfn (flush-7:1) [ 477.747320] Call Trace: [ 477.749887] dump_stack+0x1b2/0x281 [ 477.753489] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 477.758746] xfs_error_report+0x98/0xa0 [ 477.762702] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 477.767959] xfs_alloc_fixup_trees+0x425/0x4f0 [ 477.772517] ? xfs_alloc_update+0x90/0x90 [ 477.776648] ? xfs_btree_rec_offset.isra.0+0x3b/0xa0 [ 477.781742] ? xfs_alloc_compute_diff+0x23c/0x3d0 [ 477.786567] xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 477.791649] ? xfs_alloc_fix_freelist+0x685/0xeb0 [ 477.796474] ? xfs_alloc_ag_vextent_size+0x1ea0/0x1ea0 [ 477.801732] ? xfs_alloc_read_agf+0xb10/0xb10 [ 477.806212] xfs_alloc_ag_vextent+0x579/0x750 [ 477.810681] ? xfs_perag_get+0x116/0x410 [ 477.814713] ? xfs_alloc_vextent+0x470/0x2010 [ 477.819193] xfs_alloc_vextent+0x10b0/0x2010 [ 477.823588] xfs_bmap_btalloc+0x9e5/0x1b20 [ 477.827801] ? xfs_bmap_adjacent+0x1480/0x1480 [ 477.832355] ? ret_from_fork+0x24/0x30 [ 477.836240] ? __xfs_bmbt_get_all+0x16/0x100 [ 477.840630] xfs_bmap_alloc+0x107/0x160 [ 477.844580] xfs_bmapi_write+0xa49/0x1d00 [ 477.848707] ? xfs_bmapi_reserve_delalloc+0x7c0/0x7c0 [ 477.853873] ? trace_hardirqs_on+0x10/0x10 [ 477.858093] ? xfs_iext_get_ext+0xeb/0x200 [ 477.862312] ? xfs_iext_idx_to_irec+0x340/0x340 [ 477.866961] ? xfs_bmap_last_extent+0x1d0/0x1d0 [ 477.871621] xfs_iomap_write_allocate+0x42b/0xa30 [ 477.876462] ? xfs_file_iomap_begin+0x1ed0/0x1ed0 [ 477.881288] ? xfs_iunlock+0x248/0x3b0 [ 477.885215] ? rcu_read_lock_sched_held+0x16c/0x1d0 [ 477.890211] ? xfs_iunlock+0x21a/0x3b0 [ 477.894075] xfs_map_blocks+0x548/0x940 [ 477.898038] ? xfs_vm_set_page_dirty+0x610/0x610 [ 477.902775] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 477.908202] xfs_do_writepage+0x422/0x13d0 [ 477.912418] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 477.916729] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 477.922164] write_cache_pages+0x505/0xd20 [ 477.926376] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 477.930679] ? clear_page_dirty_for_io+0xb80/0xb80 [ 477.935589] ? trace_hardirqs_on+0x10/0x10 [ 477.939809] xfs_vm_writepages+0x258/0x340 [ 477.944031] ? xfs_vm_writepage+0xd0/0xd0 [ 477.948158] ? xfs_vm_writepage+0xd0/0xd0 [ 477.952287] do_writepages+0xc3/0x240 [ 477.956075] ? page_writeback_cpu_online+0x10/0x10 [ 477.960989] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 477.966417] __writeback_single_inode+0xda/0x1010 [ 477.971234] writeback_sb_inodes+0x48b/0xd30 [ 477.975620] ? wbc_detach_inode+0x780/0x780 [ 477.979920] ? queue_io+0x400/0x5a0 [ 477.983521] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 477.988950] wb_writeback+0x243/0xb80 [ 477.992728] ? writeback_inodes_wb.constprop.0+0x1a0/0x1a0 [ 477.998337] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 478.003769] wb_workfn+0x2bd/0xf50 [ 478.007287] ? process_one_work+0x6c4/0x14a0 [ 478.011692] ? inode_wait_for_writeback+0x30/0x30 [ 478.016519] ? lock_acquire+0x170/0x3f0 [ 478.020478] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 478.025907] process_one_work+0x793/0x14a0 [ 478.030144] ? work_busy+0x320/0x320 [ 478.033835] ? worker_thread+0x158/0xff0 [ 478.037879] ? _raw_spin_unlock_irq+0x24/0x80 [ 478.042357] worker_thread+0x5cc/0xff0 [ 478.046240] ? rescuer_thread+0xc80/0xc80 [ 478.050361] kthread+0x30d/0x420 [ 478.053700] ? kthread_create_on_node+0xd0/0xd0 [ 478.058353] ret_from_fork+0x24/0x30 [ 478.062635] XFS (loop1): page discard on page ffffea00012413c0, inode 0x29, offset 880640. [ 478.071448] XFS (loop1): Internal error XFS_WANT_CORRUPTED_RETURN at line 431 of file fs/xfs/libxfs/xfs_alloc.c. Caller xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 478.086010] CPU: 1 PID: 2818 Comm: kworker/u4:3 Not tainted 4.14.303-syzkaller #0 [ 478.093617] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023 [ 478.102958] Workqueue: writeback wb_workfn (flush-7:1) [ 478.108210] Call Trace: [ 478.110776] dump_stack+0x1b2/0x281 [ 478.114380] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 478.119632] xfs_error_report+0x98/0xa0 [ 478.123579] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 478.128833] xfs_alloc_fixup_trees+0x425/0x4f0 [ 478.133390] ? xfs_alloc_update+0x90/0x90 [ 478.137518] ? xfs_btree_rec_offset.isra.0+0x3b/0xa0 [ 478.142604] ? xfs_alloc_compute_diff+0x23c/0x3d0 [ 478.147421] xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 478.152501] ? xfs_alloc_fix_freelist+0x685/0xeb0 [ 478.157324] ? xfs_alloc_ag_vextent_size+0x1ea0/0x1ea0 [ 478.162580] ? xfs_alloc_read_agf+0xb10/0xb10 [ 478.167056] xfs_alloc_ag_vextent+0x579/0x750 [ 478.171526] ? xfs_perag_get+0x116/0x410 [ 478.175559] ? xfs_alloc_vextent+0x470/0x2010 [ 478.180039] xfs_alloc_vextent+0x10b0/0x2010 [ 478.184435] xfs_bmap_btalloc+0x9e5/0x1b20 [ 478.188649] ? xfs_bmap_adjacent+0x1480/0x1480 [ 478.193203] ? ret_from_fork+0x24/0x30 [ 478.197082] ? __xfs_bmbt_get_all+0x16/0x100 [ 478.201474] xfs_bmap_alloc+0x107/0x160 [ 478.205425] xfs_bmapi_write+0xa49/0x1d00 [ 478.209551] ? xfs_bmapi_reserve_delalloc+0x7c0/0x7c0 [ 478.214716] ? trace_hardirqs_on+0x10/0x10 [ 478.218936] ? xfs_iext_get_ext+0xeb/0x200 [ 478.223153] ? xfs_iext_idx_to_irec+0x340/0x340 [ 478.227811] ? xfs_bmap_last_extent+0x1d0/0x1d0 [ 478.232476] xfs_iomap_write_allocate+0x42b/0xa30 [ 478.237313] ? xfs_file_iomap_begin+0x1ed0/0x1ed0 [ 478.242140] ? xfs_iunlock+0x248/0x3b0 [ 478.246015] ? rcu_read_lock_sched_held+0x16c/0x1d0 [ 478.251008] ? xfs_iunlock+0x21a/0x3b0 [ 478.254878] xfs_map_blocks+0x548/0x940 [ 478.258853] ? xfs_vm_set_page_dirty+0x610/0x610 [ 478.263598] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 478.269025] xfs_do_writepage+0x422/0x13d0 [ 478.273238] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 478.277546] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 478.282982] write_cache_pages+0x505/0xd20 [ 478.287192] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 478.291508] ? clear_page_dirty_for_io+0xb80/0xb80 [ 478.296431] ? trace_hardirqs_on+0x10/0x10 [ 478.300651] xfs_vm_writepages+0x258/0x340 [ 478.304860] ? xfs_vm_writepage+0xd0/0xd0 [ 478.308987] ? xfs_vm_writepage+0xd0/0xd0 [ 478.313110] do_writepages+0xc3/0x240 [ 478.316894] ? page_writeback_cpu_online+0x10/0x10 [ 478.321812] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 478.327237] __writeback_single_inode+0xda/0x1010 [ 478.332058] writeback_sb_inodes+0x48b/0xd30 [ 478.336455] ? wbc_detach_inode+0x780/0x780 [ 478.340761] ? queue_io+0x400/0x5a0 [ 478.344364] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 478.349799] wb_writeback+0x243/0xb80 [ 478.353578] ? writeback_inodes_wb.constprop.0+0x1a0/0x1a0 [ 478.359191] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 478.364644] wb_workfn+0x2bd/0xf50 [ 478.368162] ? process_one_work+0x6c4/0x14a0 [ 478.372542] ? inode_wait_for_writeback+0x30/0x30 [ 478.377370] ? lock_acquire+0x170/0x3f0 [ 478.381345] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 478.386773] process_one_work+0x793/0x14a0 [ 478.390989] ? work_busy+0x320/0x320 [ 478.394676] ? worker_thread+0x158/0xff0 [ 478.398720] ? _raw_spin_unlock_irq+0x24/0x80 [ 478.403199] worker_thread+0x5cc/0xff0 [ 478.407087] ? rescuer_thread+0xc80/0xc80 [ 478.411210] kthread+0x30d/0x420 [ 478.414548] ? kthread_create_on_node+0xd0/0xd0 [ 478.419198] ret_from_fork+0x24/0x30 [ 478.423264] XFS (loop1): page discard on page ffffea0001240d40, inode 0x29, offset 884736. [ 478.432085] XFS (loop1): Internal error XFS_WANT_CORRUPTED_RETURN at line 431 of file fs/xfs/libxfs/xfs_alloc.c. Caller xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 478.446650] CPU: 1 PID: 2818 Comm: kworker/u4:3 Not tainted 4.14.303-syzkaller #0 [ 478.454262] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023 [ 478.463612] Workqueue: writeback wb_workfn (flush-7:1) [ 478.468868] Call Trace: [ 478.471434] dump_stack+0x1b2/0x281 [ 478.475038] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 478.480292] xfs_error_report+0x98/0xa0 [ 478.484242] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 478.489498] xfs_alloc_fixup_trees+0x425/0x4f0 [ 478.494074] ? xfs_alloc_update+0x90/0x90 [ 478.498208] ? xfs_btree_rec_offset.isra.0+0x3b/0xa0 [ 478.503299] ? xfs_alloc_compute_diff+0x23c/0x3d0 [ 478.508140] xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 478.513223] ? xfs_alloc_fix_freelist+0x685/0xeb0 [ 478.518046] ? xfs_alloc_ag_vextent_size+0x1ea0/0x1ea0 [ 478.523304] ? xfs_alloc_read_agf+0xb10/0xb10 [ 478.527791] xfs_alloc_ag_vextent+0x579/0x750 [ 478.532279] ? xfs_perag_get+0x116/0x410 [ 478.536318] ? xfs_alloc_vextent+0x470/0x2010 [ 478.540804] xfs_alloc_vextent+0x10b0/0x2010 [ 478.545195] xfs_bmap_btalloc+0x9e5/0x1b20 [ 478.549410] ? xfs_bmap_adjacent+0x1480/0x1480 [ 478.553965] ? ret_from_fork+0x24/0x30 [ 478.557846] ? __xfs_bmbt_get_all+0x16/0x100 [ 478.562237] xfs_bmap_alloc+0x107/0x160 [ 478.566191] xfs_bmapi_write+0xa49/0x1d00 [ 478.570325] ? xfs_bmapi_reserve_delalloc+0x7c0/0x7c0 [ 478.575489] ? trace_hardirqs_on+0x10/0x10 [ 478.579715] ? xfs_iext_get_ext+0xeb/0x200 [ 478.583936] ? xfs_iext_idx_to_irec+0x340/0x340 [ 478.588606] ? xfs_bmap_last_extent+0x1d0/0x1d0 [ 478.593252] xfs_iomap_write_allocate+0x42b/0xa30 [ 478.598088] ? xfs_file_iomap_begin+0x1ed0/0x1ed0 [ 478.602912] ? xfs_iunlock+0x248/0x3b0 [ 478.606785] ? rcu_read_lock_sched_held+0x16c/0x1d0 [ 478.611780] ? xfs_iunlock+0x21a/0x3b0 [ 478.615642] xfs_map_blocks+0x548/0x940 [ 478.619593] ? xfs_vm_set_page_dirty+0x610/0x610 [ 478.624323] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 478.629749] xfs_do_writepage+0x422/0x13d0 [ 478.633964] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 478.638268] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 478.643703] write_cache_pages+0x505/0xd20 [ 478.647917] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 478.652215] ? clear_page_dirty_for_io+0xb80/0xb80 [ 478.657138] ? trace_hardirqs_on+0x10/0x10 [ 478.661357] xfs_vm_writepages+0x258/0x340 [ 478.665565] ? xfs_vm_writepage+0xd0/0xd0 [ 478.669693] ? xfs_vm_writepage+0xd0/0xd0 [ 478.673817] do_writepages+0xc3/0x240 [ 478.677603] ? page_writeback_cpu_online+0x10/0x10 [ 478.682519] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 478.687946] __writeback_single_inode+0xda/0x1010 [ 478.692775] writeback_sb_inodes+0x48b/0xd30 [ 478.697173] ? wbc_detach_inode+0x780/0x780 [ 478.701478] ? queue_io+0x400/0x5a0 [ 478.705083] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 478.710508] wb_writeback+0x243/0xb80 [ 478.714284] ? writeback_inodes_wb.constprop.0+0x1a0/0x1a0 [ 478.720009] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 478.725436] wb_workfn+0x2bd/0xf50 [ 478.728957] ? process_one_work+0x6c4/0x14a0 [ 478.733343] ? inode_wait_for_writeback+0x30/0x30 [ 478.738169] ? lock_acquire+0x170/0x3f0 [ 478.742134] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 478.747562] process_one_work+0x793/0x14a0 [ 478.751779] ? work_busy+0x320/0x320 [ 478.755470] ? worker_thread+0x158/0xff0 [ 478.759509] ? _raw_spin_unlock_irq+0x24/0x80 [ 478.763983] worker_thread+0x5cc/0xff0 [ 478.767853] ? rescuer_thread+0xc80/0xc80 [ 478.771975] kthread+0x30d/0x420 [ 478.775319] ? kthread_create_on_node+0xd0/0xd0 [ 478.779965] ret_from_fork+0x24/0x30 [ 478.784091] XFS (loop1): page discard on page ffffea0001280740, inode 0x29, offset 888832. [ 478.792926] XFS (loop1): Internal error XFS_WANT_CORRUPTED_RETURN at line 431 of file fs/xfs/libxfs/xfs_alloc.c. Caller xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 478.807468] CPU: 1 PID: 2818 Comm: kworker/u4:3 Not tainted 4.14.303-syzkaller #0 [ 478.815073] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023 [ 478.824416] Workqueue: writeback wb_workfn (flush-7:1) [ 478.829671] Call Trace: [ 478.832236] dump_stack+0x1b2/0x281 [ 478.835843] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 478.841102] xfs_error_report+0x98/0xa0 [ 478.845061] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 478.850318] xfs_alloc_fixup_trees+0x425/0x4f0 [ 478.854883] ? xfs_alloc_update+0x90/0x90 [ 478.859014] ? xfs_btree_rec_offset.isra.0+0x3b/0xa0 [ 478.864106] ? xfs_alloc_compute_diff+0x23c/0x3d0 [ 478.868926] xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 478.874009] ? xfs_alloc_fix_freelist+0x685/0xeb0 [ 478.878832] ? xfs_alloc_ag_vextent_size+0x1ea0/0x1ea0 [ 478.884093] ? xfs_alloc_read_agf+0xb10/0xb10 [ 478.888574] xfs_alloc_ag_vextent+0x579/0x750 [ 478.893048] ? xfs_perag_get+0x116/0x410 [ 478.897099] ? xfs_alloc_vextent+0x470/0x2010 [ 478.901579] xfs_alloc_vextent+0x10b0/0x2010 [ 478.905981] xfs_bmap_btalloc+0x9e5/0x1b20 [ 478.910202] ? xfs_bmap_adjacent+0x1480/0x1480 [ 478.914761] ? ret_from_fork+0x24/0x30 [ 478.918644] ? __xfs_bmbt_get_all+0x16/0x100 [ 478.923037] xfs_bmap_alloc+0x107/0x160 [ 478.926989] xfs_bmapi_write+0xa49/0x1d00 [ 478.931119] ? xfs_bmapi_reserve_delalloc+0x7c0/0x7c0 [ 478.936292] ? trace_hardirqs_on+0x10/0x10 [ 478.940513] ? xfs_iext_get_ext+0xeb/0x200 [ 478.944724] ? xfs_iext_idx_to_irec+0x340/0x340 [ 478.949381] ? xfs_bmap_last_extent+0x1d0/0x1d0 [ 478.954026] xfs_iomap_write_allocate+0x42b/0xa30 [ 478.958874] ? xfs_file_iomap_begin+0x1ed0/0x1ed0 [ 478.963696] ? xfs_iunlock+0x248/0x3b0 [ 478.967563] ? rcu_read_lock_sched_held+0x16c/0x1d0 [ 478.972552] ? xfs_iunlock+0x21a/0x3b0 [ 478.976425] xfs_map_blocks+0x548/0x940 [ 478.980381] ? xfs_vm_set_page_dirty+0x610/0x610 [ 478.985111] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 478.990552] xfs_do_writepage+0x422/0x13d0 [ 478.994766] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 478.999072] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 479.004505] write_cache_pages+0x505/0xd20 [ 479.008719] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 479.013015] ? clear_page_dirty_for_io+0xb80/0xb80 [ 479.017934] ? trace_hardirqs_on+0x10/0x10 [ 479.022153] xfs_vm_writepages+0x258/0x340 [ 479.026378] ? xfs_vm_writepage+0xd0/0xd0 [ 479.030502] ? xfs_vm_writepage+0xd0/0xd0 [ 479.034627] do_writepages+0xc3/0x240 [ 479.038418] ? page_writeback_cpu_online+0x10/0x10 [ 479.043332] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 479.048760] __writeback_single_inode+0xda/0x1010 [ 479.053577] writeback_sb_inodes+0x48b/0xd30 [ 479.057974] ? wbc_detach_inode+0x780/0x780 [ 479.062279] ? queue_io+0x400/0x5a0 [ 479.065884] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 479.071313] wb_writeback+0x243/0xb80 [ 479.075091] ? writeback_inodes_wb.constprop.0+0x1a0/0x1a0 [ 479.080695] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 479.086121] wb_workfn+0x2bd/0xf50 [ 479.089641] ? process_one_work+0x6c4/0x14a0 [ 479.094022] ? inode_wait_for_writeback+0x30/0x30 [ 479.098852] ? lock_acquire+0x170/0x3f0 [ 479.102814] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 479.108240] process_one_work+0x793/0x14a0 [ 479.112454] ? work_busy+0x320/0x320 [ 479.116148] ? worker_thread+0x158/0xff0 [ 479.120193] ? _raw_spin_unlock_irq+0x24/0x80 [ 479.124682] worker_thread+0x5cc/0xff0 [ 479.128555] ? rescuer_thread+0xc80/0xc80 [ 479.132678] kthread+0x30d/0x420 [ 479.136033] ? kthread_create_on_node+0xd0/0xd0 [ 479.140685] ret_from_fork+0x24/0x30 [ 479.145371] XFS (loop1): page discard on page ffffea000147b100, inode 0x29, offset 892928. [ 479.154181] XFS (loop1): Internal error XFS_WANT_CORRUPTED_RETURN at line 431 of file fs/xfs/libxfs/xfs_alloc.c. Caller xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 479.168722] CPU: 1 PID: 2818 Comm: kworker/u4:3 Not tainted 4.14.303-syzkaller #0 [ 479.176328] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023 [ 479.185675] Workqueue: writeback wb_workfn (flush-7:1) [ 479.190949] Call Trace: [ 479.193517] dump_stack+0x1b2/0x281 [ 479.197131] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 479.202389] xfs_error_report+0x98/0xa0 [ 479.206339] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 479.211589] xfs_alloc_fixup_trees+0x425/0x4f0 [ 479.216158] ? xfs_alloc_update+0x90/0x90 [ 479.220293] ? xfs_btree_rec_offset.isra.0+0x3b/0xa0 [ 479.225380] ? xfs_alloc_compute_diff+0x23c/0x3d0 [ 479.230196] xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 479.235306] ? xfs_alloc_fix_freelist+0x685/0xeb0 [ 479.240125] ? xfs_alloc_ag_vextent_size+0x1ea0/0x1ea0 [ 479.245376] ? xfs_alloc_read_agf+0xb10/0xb10 [ 479.249858] xfs_alloc_ag_vextent+0x579/0x750 [ 479.254326] ? xfs_perag_get+0x116/0x410 [ 479.258365] ? xfs_alloc_vextent+0x470/0x2010 [ 479.262847] xfs_alloc_vextent+0x10b0/0x2010 [ 479.267234] xfs_bmap_btalloc+0x9e5/0x1b20 [ 479.271445] ? xfs_bmap_adjacent+0x1480/0x1480 [ 479.276007] ? ret_from_fork+0x24/0x30 [ 479.279885] ? __xfs_bmbt_get_all+0x16/0x100 [ 479.284290] xfs_bmap_alloc+0x107/0x160 [ 479.288238] xfs_bmapi_write+0xa49/0x1d00 [ 479.292364] ? xfs_bmapi_reserve_delalloc+0x7c0/0x7c0 [ 479.297533] ? trace_hardirqs_on+0x10/0x10 [ 479.301750] ? xfs_iext_get_ext+0xeb/0x200 [ 479.305962] ? xfs_iext_idx_to_irec+0x340/0x340 [ 479.310610] ? xfs_bmap_last_extent+0x1d0/0x1d0 [ 479.315259] xfs_iomap_write_allocate+0x42b/0xa30 [ 479.320084] ? xfs_file_iomap_begin+0x1ed0/0x1ed0 [ 479.324902] ? xfs_iunlock+0x248/0x3b0 [ 479.328773] ? rcu_read_lock_sched_held+0x16c/0x1d0 [ 479.333762] ? xfs_iunlock+0x21a/0x3b0 [ 479.337635] xfs_map_blocks+0x548/0x940 [ 479.341592] ? xfs_vm_set_page_dirty+0x610/0x610 [ 479.346321] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 479.351744] xfs_do_writepage+0x422/0x13d0 [ 479.355968] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 479.360271] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 479.365713] write_cache_pages+0x505/0xd20 [ 479.369925] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 479.374227] ? clear_page_dirty_for_io+0xb80/0xb80 [ 479.379147] ? trace_hardirqs_on+0x10/0x10 [ 479.383365] xfs_vm_writepages+0x258/0x340 [ 479.387575] ? xfs_vm_writepage+0xd0/0xd0 [ 479.391719] ? xfs_vm_writepage+0xd0/0xd0 [ 479.395844] do_writepages+0xc3/0x240 [ 479.399620] ? page_writeback_cpu_online+0x10/0x10 [ 479.404531] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 479.409956] __writeback_single_inode+0xda/0x1010 [ 479.414778] writeback_sb_inodes+0x48b/0xd30 [ 479.419172] ? wbc_detach_inode+0x780/0x780 [ 479.423480] ? queue_io+0x400/0x5a0 [ 479.427086] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 479.432510] wb_writeback+0x243/0xb80 [ 479.436297] ? writeback_inodes_wb.constprop.0+0x1a0/0x1a0 [ 479.441906] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 479.447330] wb_workfn+0x2bd/0xf50 [ 479.450849] ? process_one_work+0x6c4/0x14a0 [ 479.455232] ? inode_wait_for_writeback+0x30/0x30 [ 479.460052] ? lock_acquire+0x170/0x3f0 [ 479.464004] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 479.469431] process_one_work+0x793/0x14a0 [ 479.473645] ? work_busy+0x320/0x320 [ 479.477341] ? worker_thread+0x158/0xff0 [ 479.481387] ? _raw_spin_unlock_irq+0x24/0x80 [ 479.485861] worker_thread+0x5cc/0xff0 [ 479.489726] ? rescuer_thread+0xc80/0xc80 [ 479.493868] kthread+0x30d/0x420 [ 479.497216] ? kthread_create_on_node+0xd0/0xd0 [ 479.501871] ret_from_fork+0x24/0x30 [ 479.506124] XFS (loop1): page discard on page ffffea000147b140, inode 0x29, offset 897024. [ 479.514903] XFS (loop1): Internal error XFS_WANT_CORRUPTED_RETURN at line 431 of file fs/xfs/libxfs/xfs_alloc.c. Caller xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 479.529447] CPU: 1 PID: 2818 Comm: kworker/u4:3 Not tainted 4.14.303-syzkaller #0 [ 479.537055] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023 [ 479.546422] Workqueue: writeback wb_workfn (flush-7:1) [ 479.551676] Call Trace: [ 479.554242] dump_stack+0x1b2/0x281 [ 479.557855] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 479.563114] xfs_error_report+0x98/0xa0 [ 479.567063] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 479.572314] xfs_alloc_fixup_trees+0x425/0x4f0 [ 479.576879] ? xfs_alloc_update+0x90/0x90 [ 479.581009] ? xfs_btree_rec_offset.isra.0+0x3b/0xa0 [ 479.586098] ? xfs_alloc_compute_diff+0x23c/0x3d0 [ 479.590923] xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 479.596011] ? xfs_alloc_fix_freelist+0x685/0xeb0 [ 479.600840] ? xfs_alloc_ag_vextent_size+0x1ea0/0x1ea0 [ 479.606091] ? xfs_alloc_read_agf+0xb10/0xb10 [ 479.610569] xfs_alloc_ag_vextent+0x579/0x750 [ 479.615037] ? xfs_perag_get+0x116/0x410 [ 479.619080] ? xfs_alloc_vextent+0x470/0x2010 [ 479.623558] xfs_alloc_vextent+0x10b0/0x2010 [ 479.627947] xfs_bmap_btalloc+0x9e5/0x1b20 [ 479.632174] ? xfs_bmap_adjacent+0x1480/0x1480 [ 479.636738] ? ret_from_fork+0x24/0x30 [ 479.640615] ? __xfs_bmbt_get_all+0x16/0x100 [ 479.645001] xfs_bmap_alloc+0x107/0x160 [ 479.648950] xfs_bmapi_write+0xa49/0x1d00 [ 479.653079] ? xfs_bmapi_reserve_delalloc+0x7c0/0x7c0 [ 479.658250] ? trace_hardirqs_on+0x10/0x10 [ 479.662484] ? xfs_iext_get_ext+0xeb/0x200 [ 479.666693] ? xfs_iext_idx_to_irec+0x340/0x340 [ 479.671341] ? xfs_bmap_last_extent+0x1d0/0x1d0 [ 479.675995] xfs_iomap_write_allocate+0x42b/0xa30 [ 479.680832] ? xfs_file_iomap_begin+0x1ed0/0x1ed0 [ 479.685666] ? xfs_iunlock+0x248/0x3b0 [ 479.689534] ? rcu_read_lock_sched_held+0x16c/0x1d0 [ 479.694523] ? xfs_iunlock+0x21a/0x3b0 [ 479.698391] xfs_map_blocks+0x548/0x940 [ 479.702349] ? xfs_vm_set_page_dirty+0x610/0x610 [ 479.707084] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 479.712508] xfs_do_writepage+0x422/0x13d0 [ 479.716736] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 479.721044] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 479.726472] write_cache_pages+0x505/0xd20 [ 479.730686] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 479.734983] ? clear_page_dirty_for_io+0xb80/0xb80 [ 479.739891] ? trace_hardirqs_on+0x10/0x10 [ 479.744102] xfs_vm_writepages+0x258/0x340 [ 479.748324] ? xfs_vm_writepage+0xd0/0xd0 [ 479.752451] ? xfs_vm_writepage+0xd0/0xd0 [ 479.756578] do_writepages+0xc3/0x240 [ 479.760365] ? page_writeback_cpu_online+0x10/0x10 [ 479.765273] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 479.770702] __writeback_single_inode+0xda/0x1010 [ 479.775521] writeback_sb_inodes+0x48b/0xd30 [ 479.779909] ? wbc_detach_inode+0x780/0x780 [ 479.784210] ? queue_io+0x400/0x5a0 [ 479.787814] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 479.793237] wb_writeback+0x243/0xb80 [ 479.797027] ? writeback_inodes_wb.constprop.0+0x1a0/0x1a0 [ 479.802636] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 479.808061] wb_workfn+0x2bd/0xf50 [ 479.811575] ? process_one_work+0x6c4/0x14a0 [ 479.815966] ? inode_wait_for_writeback+0x30/0x30 [ 479.820801] ? lock_acquire+0x170/0x3f0 [ 479.824752] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 479.830177] process_one_work+0x793/0x14a0 [ 479.834391] ? work_busy+0x320/0x320 [ 479.838170] ? worker_thread+0x158/0xff0 [ 479.842214] ? _raw_spin_unlock_irq+0x24/0x80 [ 479.846690] worker_thread+0x5cc/0xff0 [ 479.850556] ? rescuer_thread+0xc80/0xc80 [ 479.854871] kthread+0x30d/0x420 [ 479.858233] ? kthread_create_on_node+0xd0/0xd0 [ 479.862905] ret_from_fork+0x24/0x30 [ 479.867060] XFS (loop1): page discard on page ffffea0001247680, inode 0x29, offset 901120. [ 479.876948] XFS (loop1): Internal error XFS_WANT_CORRUPTED_RETURN at line 431 of file fs/xfs/libxfs/xfs_alloc.c. Caller xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 479.891579] CPU: 1 PID: 2818 Comm: kworker/u4:3 Not tainted 4.14.303-syzkaller #0 [ 479.899187] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023 [ 479.908534] Workqueue: writeback wb_workfn (flush-7:1) [ 479.913789] Call Trace: [ 479.916362] dump_stack+0x1b2/0x281 [ 479.919978] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 479.925231] xfs_error_report+0x98/0xa0 [ 479.929178] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 479.934446] xfs_alloc_fixup_trees+0x425/0x4f0 [ 479.939016] ? xfs_alloc_update+0x90/0x90 [ 479.943146] ? xfs_btree_rec_offset.isra.0+0x3b/0xa0 [ 479.948244] ? xfs_alloc_compute_diff+0x23c/0x3d0 [ 479.953062] xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 479.958153] ? xfs_alloc_fix_freelist+0x685/0xeb0 [ 479.962979] ? xfs_alloc_ag_vextent_size+0x1ea0/0x1ea0 [ 479.968232] ? xfs_alloc_read_agf+0xb10/0xb10 [ 479.972715] xfs_alloc_ag_vextent+0x579/0x750 [ 479.977192] ? xfs_perag_get+0x116/0x410 [ 479.981251] ? xfs_alloc_vextent+0x470/0x2010 [ 479.985720] xfs_alloc_vextent+0x10b0/0x2010 [ 479.990108] xfs_bmap_btalloc+0x9e5/0x1b20 [ 479.994341] ? xfs_bmap_adjacent+0x1480/0x1480 [ 479.998905] ? ret_from_fork+0x24/0x30 [ 480.002782] ? __xfs_bmbt_get_all+0x16/0x100 [ 480.007167] xfs_bmap_alloc+0x107/0x160 [ 480.011118] xfs_bmapi_write+0xa49/0x1d00 [ 480.015242] ? xfs_bmapi_reserve_delalloc+0x7c0/0x7c0 [ 480.020415] ? trace_hardirqs_on+0x10/0x10 [ 480.024630] ? xfs_iext_get_ext+0xeb/0x200 [ 480.028840] ? xfs_iext_idx_to_irec+0x340/0x340 [ 480.033492] ? xfs_bmap_last_extent+0x1d0/0x1d0 [ 480.038153] xfs_iomap_write_allocate+0x42b/0xa30 [ 480.042986] ? xfs_file_iomap_begin+0x1ed0/0x1ed0 [ 480.047803] ? xfs_iunlock+0x248/0x3b0 [ 480.051695] ? rcu_read_lock_sched_held+0x16c/0x1d0 [ 480.056698] ? xfs_iunlock+0x21a/0x3b0 [ 480.060571] xfs_map_blocks+0x548/0x940 [ 480.064521] ? xfs_vm_set_page_dirty+0x610/0x610 [ 480.069271] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 480.074699] xfs_do_writepage+0x422/0x13d0 [ 480.078923] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 480.083228] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 480.088656] write_cache_pages+0x505/0xd20 [ 480.092870] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 480.097179] ? clear_page_dirty_for_io+0xb80/0xb80 [ 480.102096] ? trace_hardirqs_on+0x10/0x10 [ 480.106313] xfs_vm_writepages+0x258/0x340 [ 480.110526] ? xfs_vm_writepage+0xd0/0xd0 [ 480.114653] ? xfs_vm_writepage+0xd0/0xd0 [ 480.118784] do_writepages+0xc3/0x240 [ 480.122568] ? page_writeback_cpu_online+0x10/0x10 [ 480.127494] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 480.132920] __writeback_single_inode+0xda/0x1010 [ 480.137746] writeback_sb_inodes+0x48b/0xd30 [ 480.142139] ? wbc_detach_inode+0x780/0x780 [ 480.146437] ? queue_io+0x400/0x5a0 [ 480.150039] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 480.155463] wb_writeback+0x243/0xb80 [ 480.159249] ? writeback_inodes_wb.constprop.0+0x1a0/0x1a0 [ 480.164858] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 480.170284] wb_workfn+0x2bd/0xf50 [ 480.173800] ? process_one_work+0x6c4/0x14a0 [ 480.178189] ? inode_wait_for_writeback+0x30/0x30 [ 480.183013] ? lock_acquire+0x170/0x3f0 [ 480.186961] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 480.192387] process_one_work+0x793/0x14a0 [ 480.196607] ? work_busy+0x320/0x320 [ 480.200302] ? worker_thread+0x158/0xff0 [ 480.204341] ? _raw_spin_unlock_irq+0x24/0x80 [ 480.208819] worker_thread+0x5cc/0xff0 [ 480.212685] ? rescuer_thread+0xc80/0xc80 [ 480.216814] kthread+0x30d/0x420 [ 480.220165] ? kthread_create_on_node+0xd0/0xd0 [ 480.224830] ret_from_fork+0x24/0x30 [ 480.229097] XFS (loop1): page discard on page ffffea0001270c80, inode 0x29, offset 905216. [ 480.237933] XFS (loop1): Internal error XFS_WANT_CORRUPTED_RETURN at line 431 of file fs/xfs/libxfs/xfs_alloc.c. Caller xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 480.252480] CPU: 1 PID: 2818 Comm: kworker/u4:3 Not tainted 4.14.303-syzkaller #0 [ 480.260089] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023 [ 480.269444] Workqueue: writeback wb_workfn (flush-7:1) [ 480.274697] Call Trace: [ 480.277269] dump_stack+0x1b2/0x281 [ 480.280882] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 480.286137] xfs_error_report+0x98/0xa0 [ 480.290090] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 480.295347] xfs_alloc_fixup_trees+0x425/0x4f0 [ 480.299909] ? xfs_alloc_update+0x90/0x90 [ 480.304035] ? xfs_btree_rec_offset.isra.0+0x3b/0xa0 [ 480.309114] ? xfs_alloc_compute_diff+0x23c/0x3d0 [ 480.313932] xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 480.319015] ? xfs_alloc_fix_freelist+0x685/0xeb0 [ 480.323834] ? xfs_alloc_ag_vextent_size+0x1ea0/0x1ea0 [ 480.329087] ? xfs_alloc_read_agf+0xb10/0xb10 [ 480.333564] xfs_alloc_ag_vextent+0x579/0x750 [ 480.338033] ? xfs_perag_get+0x116/0x410 [ 480.342068] ? xfs_alloc_vextent+0x470/0x2010 [ 480.346546] xfs_alloc_vextent+0x10b0/0x2010 [ 480.350949] xfs_bmap_btalloc+0x9e5/0x1b20 [ 480.355159] ? xfs_bmap_adjacent+0x1480/0x1480 [ 480.359718] ? ret_from_fork+0x24/0x30 [ 480.363605] ? __xfs_bmbt_get_all+0x16/0x100 [ 480.367990] xfs_bmap_alloc+0x107/0x160 [ 480.371940] xfs_bmapi_write+0xa49/0x1d00 [ 480.376080] ? xfs_bmapi_reserve_delalloc+0x7c0/0x7c0 [ 480.381252] ? trace_hardirqs_on+0x10/0x10 [ 480.385462] ? xfs_iext_get_ext+0xeb/0x200 [ 480.389673] ? xfs_iext_idx_to_irec+0x340/0x340 [ 480.394320] ? xfs_bmap_last_extent+0x1d0/0x1d0 [ 480.398966] xfs_iomap_write_allocate+0x42b/0xa30 [ 480.403791] ? xfs_file_iomap_begin+0x1ed0/0x1ed0 [ 480.408609] ? xfs_iunlock+0x248/0x3b0 [ 480.412480] ? rcu_read_lock_sched_held+0x16c/0x1d0 [ 480.417476] ? xfs_iunlock+0x21a/0x3b0 [ 480.421344] xfs_map_blocks+0x548/0x940 [ 480.425295] ? xfs_vm_set_page_dirty+0x610/0x610 [ 480.430024] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 480.435446] xfs_do_writepage+0x422/0x13d0 [ 480.439668] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 480.443968] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 480.449395] write_cache_pages+0x505/0xd20 [ 480.453604] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 480.457905] ? clear_page_dirty_for_io+0xb80/0xb80 [ 480.462815] ? trace_hardirqs_on+0x10/0x10 [ 480.467032] xfs_vm_writepages+0x258/0x340 [ 480.471250] ? xfs_vm_writepage+0xd0/0xd0 [ 480.475375] ? xfs_vm_writepage+0xd0/0xd0 [ 480.479497] do_writepages+0xc3/0x240 [ 480.483276] ? page_writeback_cpu_online+0x10/0x10 [ 480.488187] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 480.493614] __writeback_single_inode+0xda/0x1010 [ 480.498436] writeback_sb_inodes+0x48b/0xd30 [ 480.502842] ? wbc_detach_inode+0x780/0x780 [ 480.507151] ? queue_io+0x400/0x5a0 [ 480.510762] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 480.516195] wb_writeback+0x243/0xb80 [ 480.519982] ? writeback_inodes_wb.constprop.0+0x1a0/0x1a0 [ 480.525583] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 480.531008] wb_workfn+0x2bd/0xf50 [ 480.534528] ? process_one_work+0x6c4/0x14a0 [ 480.538910] ? inode_wait_for_writeback+0x30/0x30 [ 480.543728] ? lock_acquire+0x170/0x3f0 [ 480.547680] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 480.553103] process_one_work+0x793/0x14a0 [ 480.557325] ? work_busy+0x320/0x320 [ 480.561021] ? worker_thread+0x158/0xff0 [ 480.565059] ? _raw_spin_unlock_irq+0x24/0x80 [ 480.569531] worker_thread+0x5cc/0xff0 [ 480.573396] ? rescuer_thread+0xc80/0xc80 [ 480.577528] kthread+0x30d/0x420 [ 480.580900] ? kthread_create_on_node+0xd0/0xd0 [ 480.585543] ret_from_fork+0x24/0x30 [ 480.589608] XFS (loop1): page discard on page ffffea0001293b40, inode 0x29, offset 909312. [ 480.598405] XFS (loop1): Internal error XFS_WANT_CORRUPTED_RETURN at line 431 of file fs/xfs/libxfs/xfs_alloc.c. Caller xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 480.612947] CPU: 1 PID: 2818 Comm: kworker/u4:3 Not tainted 4.14.303-syzkaller #0 [ 480.620555] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023 [ 480.629902] Workqueue: writeback wb_workfn (flush-7:1) [ 480.635155] Call Trace: [ 480.637720] dump_stack+0x1b2/0x281 [ 480.641325] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 480.646582] xfs_error_report+0x98/0xa0 [ 480.650540] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 480.655808] xfs_alloc_fixup_trees+0x425/0x4f0 [ 480.660372] ? xfs_alloc_update+0x90/0x90 [ 480.664495] ? xfs_btree_rec_offset.isra.0+0x3b/0xa0 [ 480.669576] ? xfs_alloc_compute_diff+0x23c/0x3d0 [ 480.674411] xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 480.679492] ? xfs_alloc_fix_freelist+0x685/0xeb0 [ 480.684310] ? xfs_alloc_ag_vextent_size+0x1ea0/0x1ea0 [ 480.689572] ? xfs_alloc_read_agf+0xb10/0xb10 [ 480.694065] xfs_alloc_ag_vextent+0x579/0x750 [ 480.698572] ? xfs_perag_get+0x116/0x410 [ 480.702629] ? xfs_alloc_vextent+0x470/0x2010 [ 480.707112] xfs_alloc_vextent+0x10b0/0x2010 [ 480.711510] xfs_bmap_btalloc+0x9e5/0x1b20 [ 480.715725] ? xfs_bmap_adjacent+0x1480/0x1480 [ 480.720285] ? ret_from_fork+0x24/0x30 [ 480.724160] ? __xfs_bmbt_get_all+0x16/0x100 [ 480.728550] xfs_bmap_alloc+0x107/0x160 [ 480.732500] xfs_bmapi_write+0xa49/0x1d00 [ 480.736640] ? xfs_bmapi_reserve_delalloc+0x7c0/0x7c0 [ 480.741821] ? trace_hardirqs_on+0x10/0x10 [ 480.746039] ? xfs_iext_get_ext+0xeb/0x200 [ 480.750261] ? xfs_iext_idx_to_irec+0x340/0x340 [ 480.754911] ? xfs_bmap_last_extent+0x1d0/0x1d0 [ 480.759579] xfs_iomap_write_allocate+0x42b/0xa30 [ 480.764403] ? xfs_file_iomap_begin+0x1ed0/0x1ed0 [ 480.769224] ? xfs_iunlock+0x248/0x3b0 [ 480.773094] ? rcu_read_lock_sched_held+0x16c/0x1d0 [ 480.778089] ? xfs_iunlock+0x21a/0x3b0 [ 480.781958] xfs_map_blocks+0x548/0x940 [ 480.785915] ? xfs_vm_set_page_dirty+0x610/0x610 [ 480.790672] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 480.796104] xfs_do_writepage+0x422/0x13d0 [ 480.800323] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 480.804623] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 480.810050] write_cache_pages+0x505/0xd20 [ 480.814262] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 480.818560] ? clear_page_dirty_for_io+0xb80/0xb80 [ 480.823471] ? trace_hardirqs_on+0x10/0x10 [ 480.827693] xfs_vm_writepages+0x258/0x340 [ 480.831909] ? xfs_vm_writepage+0xd0/0xd0 [ 480.836048] ? xfs_vm_writepage+0xd0/0xd0 [ 480.840177] do_writepages+0xc3/0x240 [ 480.843954] ? page_writeback_cpu_online+0x10/0x10 [ 480.848862] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 480.854309] __writeback_single_inode+0xda/0x1010 [ 480.859132] writeback_sb_inodes+0x48b/0xd30 [ 480.863525] ? wbc_detach_inode+0x780/0x780 [ 480.867831] ? queue_io+0x400/0x5a0 [ 480.871440] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 480.876872] wb_writeback+0x243/0xb80 [ 480.880673] ? writeback_inodes_wb.constprop.0+0x1a0/0x1a0 [ 480.886294] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 480.891739] wb_workfn+0x2bd/0xf50 [ 480.895259] ? process_one_work+0x6c4/0x14a0 [ 480.899654] ? inode_wait_for_writeback+0x30/0x30 [ 480.904482] ? lock_acquire+0x170/0x3f0 [ 480.908434] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 480.913867] process_one_work+0x793/0x14a0 [ 480.918086] ? work_busy+0x320/0x320 [ 480.921778] ? worker_thread+0x158/0xff0 [ 480.925822] ? _raw_spin_unlock_irq+0x24/0x80 [ 480.930297] worker_thread+0x5cc/0xff0 [ 480.934168] ? rescuer_thread+0xc80/0xc80 [ 480.938295] kthread+0x30d/0x420 [ 480.941640] ? kthread_create_on_node+0xd0/0xd0 [ 480.946294] ret_from_fork+0x24/0x30 [ 480.950493] XFS (loop1): page discard on page ffffea0001247700, inode 0x29, offset 913408. [ 480.959356] XFS (loop1): Internal error XFS_WANT_CORRUPTED_RETURN at line 431 of file fs/xfs/libxfs/xfs_alloc.c. Caller xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 480.973915] CPU: 1 PID: 2818 Comm: kworker/u4:3 Not tainted 4.14.303-syzkaller #0 [ 480.981528] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023 [ 480.990876] Workqueue: writeback wb_workfn (flush-7:1) [ 480.996132] Call Trace: [ 480.998696] dump_stack+0x1b2/0x281 [ 481.002308] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 481.007566] xfs_error_report+0x98/0xa0 [ 481.011520] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 481.016773] xfs_alloc_fixup_trees+0x425/0x4f0 [ 481.021331] ? xfs_alloc_update+0x90/0x90 [ 481.025456] ? xfs_btree_rec_offset.isra.0+0x3b/0xa0 [ 481.030562] ? xfs_alloc_compute_diff+0x23c/0x3d0 [ 481.035380] xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 481.040460] ? xfs_alloc_fix_freelist+0x685/0xeb0 [ 481.045297] ? xfs_alloc_ag_vextent_size+0x1ea0/0x1ea0 [ 481.050549] ? xfs_alloc_read_agf+0xb10/0xb10 [ 481.055031] xfs_alloc_ag_vextent+0x579/0x750 [ 481.059500] ? xfs_perag_get+0x116/0x410 [ 481.063534] ? xfs_alloc_vextent+0x470/0x2010 [ 481.068013] xfs_alloc_vextent+0x10b0/0x2010 [ 481.072432] xfs_bmap_btalloc+0x9e5/0x1b20 [ 481.076666] ? xfs_bmap_adjacent+0x1480/0x1480 [ 481.081223] ? ret_from_fork+0x24/0x30 [ 481.085091] ? __xfs_bmbt_get_all+0x16/0x100 [ 481.089475] xfs_bmap_alloc+0x107/0x160 [ 481.093424] xfs_bmapi_write+0xa49/0x1d00 [ 481.097551] ? xfs_bmapi_reserve_delalloc+0x7c0/0x7c0 [ 481.102717] ? trace_hardirqs_on+0x10/0x10 [ 481.106954] ? xfs_iext_get_ext+0xeb/0x200 [ 481.111176] ? xfs_iext_idx_to_irec+0x340/0x340 [ 481.115828] ? xfs_bmap_last_extent+0x1d0/0x1d0 [ 481.120479] xfs_iomap_write_allocate+0x42b/0xa30 [ 481.125301] ? xfs_file_iomap_begin+0x1ed0/0x1ed0 [ 481.130141] ? xfs_iunlock+0x248/0x3b0 [ 481.134009] ? rcu_read_lock_sched_held+0x16c/0x1d0 [ 481.139010] ? xfs_iunlock+0x21a/0x3b0 [ 481.142874] xfs_map_blocks+0x548/0x940 [ 481.146833] ? xfs_vm_set_page_dirty+0x610/0x610 [ 481.151572] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 481.157019] xfs_do_writepage+0x422/0x13d0 [ 481.161252] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 481.165552] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 481.170980] write_cache_pages+0x505/0xd20 [ 481.175191] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 481.179489] ? clear_page_dirty_for_io+0xb80/0xb80 [ 481.184398] ? trace_hardirqs_on+0x10/0x10 [ 481.188618] xfs_vm_writepages+0x258/0x340 [ 481.192837] ? xfs_vm_writepage+0xd0/0xd0 [ 481.196964] ? xfs_vm_writepage+0xd0/0xd0 [ 481.201085] do_writepages+0xc3/0x240 [ 481.204862] ? page_writeback_cpu_online+0x10/0x10 [ 481.209770] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 481.215195] __writeback_single_inode+0xda/0x1010 [ 481.220015] writeback_sb_inodes+0x48b/0xd30 [ 481.224402] ? wbc_detach_inode+0x780/0x780 [ 481.228734] ? queue_io+0x400/0x5a0 [ 481.232346] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 481.237773] wb_writeback+0x243/0xb80 [ 481.241554] ? writeback_inodes_wb.constprop.0+0x1a0/0x1a0 [ 481.247170] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 481.252605] wb_workfn+0x2bd/0xf50 [ 481.256129] ? process_one_work+0x6c4/0x14a0 [ 481.260522] ? inode_wait_for_writeback+0x30/0x30 [ 481.265352] ? lock_acquire+0x170/0x3f0 [ 481.269323] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 481.274761] process_one_work+0x793/0x14a0 [ 481.278975] ? work_busy+0x320/0x320 [ 481.282667] ? worker_thread+0x158/0xff0 [ 481.286716] ? _raw_spin_unlock_irq+0x24/0x80 [ 481.291196] worker_thread+0x5cc/0xff0 [ 481.295087] ? rescuer_thread+0xc80/0xc80 [ 481.299212] kthread+0x30d/0x420 [ 481.302553] ? kthread_create_on_node+0xd0/0xd0 [ 481.307219] ret_from_fork+0x24/0x30 [ 481.311842] XFS (loop1): page discard on page ffffea0001281200, inode 0x29, offset 917504. [ 481.320649] XFS (loop1): Internal error XFS_WANT_CORRUPTED_RETURN at line 431 of file fs/xfs/libxfs/xfs_alloc.c. Caller xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 481.335200] CPU: 1 PID: 2818 Comm: kworker/u4:3 Not tainted 4.14.303-syzkaller #0 [ 481.342809] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023 [ 481.352152] Workqueue: writeback wb_workfn (flush-7:1) [ 481.357405] Call Trace: [ 481.359971] dump_stack+0x1b2/0x281 [ 481.363578] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 481.368838] xfs_error_report+0x98/0xa0 [ 481.372811] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 481.378064] xfs_alloc_fixup_trees+0x425/0x4f0 [ 481.382641] ? xfs_alloc_update+0x90/0x90 [ 481.386773] ? xfs_btree_rec_offset.isra.0+0x3b/0xa0 [ 481.391857] ? xfs_alloc_compute_diff+0x23c/0x3d0 [ 481.396675] xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 481.401757] ? xfs_alloc_fix_freelist+0x685/0xeb0 [ 481.406580] ? xfs_alloc_ag_vextent_size+0x1ea0/0x1ea0 [ 481.411843] ? xfs_alloc_read_agf+0xb10/0xb10 [ 481.416325] xfs_alloc_ag_vextent+0x579/0x750 [ 481.420813] ? xfs_perag_get+0x116/0x410 [ 481.424849] ? xfs_alloc_vextent+0x470/0x2010 [ 481.429329] xfs_alloc_vextent+0x10b0/0x2010 [ 481.433728] xfs_bmap_btalloc+0x9e5/0x1b20 [ 481.437941] ? xfs_bmap_adjacent+0x1480/0x1480 [ 481.442496] ? ret_from_fork+0x24/0x30 [ 481.446380] ? __xfs_bmbt_get_all+0x16/0x100 [ 481.450773] xfs_bmap_alloc+0x107/0x160 [ 481.454723] xfs_bmapi_write+0xa49/0x1d00 [ 481.458853] ? xfs_bmapi_reserve_delalloc+0x7c0/0x7c0 [ 481.464017] ? trace_hardirqs_on+0x10/0x10 [ 481.468238] ? xfs_iext_get_ext+0xeb/0x200 [ 481.472454] ? xfs_iext_idx_to_irec+0x340/0x340 [ 481.477102] ? xfs_bmap_last_extent+0x1d0/0x1d0 [ 481.481750] xfs_iomap_write_allocate+0x42b/0xa30 [ 481.486583] ? xfs_file_iomap_begin+0x1ed0/0x1ed0 [ 481.491409] ? xfs_iunlock+0x248/0x3b0 [ 481.495277] ? rcu_read_lock_sched_held+0x16c/0x1d0 [ 481.500266] ? xfs_iunlock+0x21a/0x3b0 [ 481.504130] xfs_map_blocks+0x548/0x940 [ 481.508089] ? xfs_vm_set_page_dirty+0x610/0x610 [ 481.512828] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 481.518253] xfs_do_writepage+0x422/0x13d0 [ 481.522468] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 481.526776] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 481.532219] write_cache_pages+0x505/0xd20 [ 481.536441] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 481.540750] ? clear_page_dirty_for_io+0xb80/0xb80 [ 481.545663] ? trace_hardirqs_on+0x10/0x10 [ 481.549879] xfs_vm_writepages+0x258/0x340 [ 481.554090] ? xfs_vm_writepage+0xd0/0xd0 [ 481.558215] ? xfs_vm_writepage+0xd0/0xd0 [ 481.562336] do_writepages+0xc3/0x240 [ 481.566122] ? page_writeback_cpu_online+0x10/0x10 [ 481.571041] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 481.576469] __writeback_single_inode+0xda/0x1010 [ 481.581288] writeback_sb_inodes+0x48b/0xd30 [ 481.585697] ? wbc_detach_inode+0x780/0x780 [ 481.590003] ? queue_io+0x400/0x5a0 [ 481.593608] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 481.599034] wb_writeback+0x243/0xb80 [ 481.602833] ? writeback_inodes_wb.constprop.0+0x1a0/0x1a0 [ 481.608444] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 481.613878] wb_workfn+0x2bd/0xf50 [ 481.617399] ? process_one_work+0x6c4/0x14a0 [ 481.621783] ? inode_wait_for_writeback+0x30/0x30 [ 481.626610] ? lock_acquire+0x170/0x3f0 [ 481.630567] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 481.636038] process_one_work+0x793/0x14a0 [ 481.640251] ? work_busy+0x320/0x320 [ 481.643940] ? worker_thread+0x158/0xff0 [ 481.647985] ? _raw_spin_unlock_irq+0x24/0x80 [ 481.652461] worker_thread+0x5cc/0xff0 [ 481.656347] ? rescuer_thread+0xc80/0xc80 [ 481.660480] kthread+0x30d/0x420 [ 481.663819] ? kthread_create_on_node+0xd0/0xd0 [ 481.668470] ret_from_fork+0x24/0x30 [ 481.672694] XFS (loop1): page discard on page ffffea0001231540, inode 0x29, offset 921600. [ 481.681508] XFS (loop1): Internal error XFS_WANT_CORRUPTED_RETURN at line 431 of file fs/xfs/libxfs/xfs_alloc.c. Caller xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 481.696134] CPU: 1 PID: 2818 Comm: kworker/u4:3 Not tainted 4.14.303-syzkaller #0 [ 481.703754] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023 [ 481.713110] Workqueue: writeback wb_workfn (flush-7:1) [ 481.718381] Call Trace: [ 481.720950] dump_stack+0x1b2/0x281 [ 481.724582] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 481.729860] xfs_error_report+0x98/0xa0 [ 481.733813] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 481.739072] xfs_alloc_fixup_trees+0x425/0x4f0 [ 481.743633] ? xfs_alloc_update+0x90/0x90 [ 481.747760] ? xfs_btree_rec_offset.isra.0+0x3b/0xa0 [ 481.752848] ? xfs_alloc_compute_diff+0x23c/0x3d0 [ 481.757667] xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 481.762751] ? xfs_alloc_fix_freelist+0x685/0xeb0 [ 481.767576] ? xfs_alloc_ag_vextent_size+0x1ea0/0x1ea0 [ 481.772838] ? xfs_alloc_read_agf+0xb10/0xb10 [ 481.777320] xfs_alloc_ag_vextent+0x579/0x750 [ 481.781794] ? xfs_perag_get+0x116/0x410 [ 481.785834] ? xfs_alloc_vextent+0x470/0x2010 [ 481.790311] xfs_alloc_vextent+0x10b0/0x2010 [ 481.794703] xfs_bmap_btalloc+0x9e5/0x1b20 [ 481.798920] ? xfs_bmap_adjacent+0x1480/0x1480 [ 481.803477] ? ret_from_fork+0x24/0x30 [ 481.807358] ? __xfs_bmbt_get_all+0x16/0x100 [ 481.811752] xfs_bmap_alloc+0x107/0x160 [ 481.815704] xfs_bmapi_write+0xa49/0x1d00 [ 481.819848] ? xfs_bmapi_reserve_delalloc+0x7c0/0x7c0 [ 481.825011] ? trace_hardirqs_on+0x10/0x10 [ 481.829231] ? xfs_iext_get_ext+0xeb/0x200 [ 481.833451] ? xfs_iext_idx_to_irec+0x340/0x340 [ 481.838102] ? xfs_bmap_last_extent+0x1d0/0x1d0 [ 481.842749] xfs_iomap_write_allocate+0x42b/0xa30 [ 481.847592] ? xfs_file_iomap_begin+0x1ed0/0x1ed0 [ 481.852420] ? xfs_iunlock+0x248/0x3b0 [ 481.856292] ? rcu_read_lock_sched_held+0x16c/0x1d0 [ 481.861286] ? xfs_iunlock+0x21a/0x3b0 [ 481.865152] xfs_map_blocks+0x548/0x940 [ 481.869112] ? xfs_vm_set_page_dirty+0x610/0x610 [ 481.873851] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 481.879275] xfs_do_writepage+0x422/0x13d0 [ 481.883490] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 481.887798] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 481.893252] write_cache_pages+0x505/0xd20 [ 481.897463] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 481.901780] ? clear_page_dirty_for_io+0xb80/0xb80 [ 481.906714] ? trace_hardirqs_on+0x10/0x10 [ 481.910939] xfs_vm_writepages+0x258/0x340 [ 481.915155] ? xfs_vm_writepage+0xd0/0xd0 [ 481.919283] ? xfs_vm_writepage+0xd0/0xd0 [ 481.923409] do_writepages+0xc3/0x240 [ 481.927194] ? page_writeback_cpu_online+0x10/0x10 [ 481.932110] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 481.937547] __writeback_single_inode+0xda/0x1010 [ 481.942377] writeback_sb_inodes+0x48b/0xd30 [ 481.946781] ? wbc_detach_inode+0x780/0x780 [ 481.951088] ? queue_io+0x400/0x5a0 [ 481.954688] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 481.960112] wb_writeback+0x243/0xb80 [ 481.963899] ? writeback_inodes_wb.constprop.0+0x1a0/0x1a0 [ 481.969502] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 481.974925] wb_workfn+0x2bd/0xf50 [ 481.978444] ? process_one_work+0x6c4/0x14a0 [ 481.982829] ? inode_wait_for_writeback+0x30/0x30 [ 481.987655] ? lock_acquire+0x170/0x3f0 [ 481.991612] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 481.997038] process_one_work+0x793/0x14a0 [ 482.001251] ? work_busy+0x320/0x320 [ 482.004965] ? worker_thread+0x158/0xff0 [ 482.009011] ? _raw_spin_unlock_irq+0x24/0x80 [ 482.013488] worker_thread+0x5cc/0xff0 [ 482.017357] ? rescuer_thread+0xc80/0xc80 [ 482.021483] kthread+0x30d/0x420 [ 482.024825] ? kthread_create_on_node+0xd0/0xd0 [ 482.029471] ret_from_fork+0x24/0x30 [ 482.033564] XFS (loop1): page discard on page ffffea00010db240, inode 0x29, offset 925696. [ 482.042383] XFS (loop1): Internal error XFS_WANT_CORRUPTED_RETURN at line 431 of file fs/xfs/libxfs/xfs_alloc.c. Caller xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 482.056920] CPU: 1 PID: 2818 Comm: kworker/u4:3 Not tainted 4.14.303-syzkaller #0 [ 482.064530] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023 [ 482.073904] Workqueue: writeback wb_workfn (flush-7:1) [ 482.079158] Call Trace: [ 482.081722] dump_stack+0x1b2/0x281 [ 482.085323] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 482.090578] xfs_error_report+0x98/0xa0 [ 482.094528] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 482.099779] xfs_alloc_fixup_trees+0x425/0x4f0 [ 482.104336] ? xfs_alloc_update+0x90/0x90 [ 482.108466] ? xfs_btree_rec_offset.isra.0+0x3b/0xa0 [ 482.113555] ? xfs_alloc_compute_diff+0x23c/0x3d0 [ 482.118371] xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 482.123452] ? xfs_alloc_fix_freelist+0x685/0xeb0 [ 482.128273] ? xfs_alloc_ag_vextent_size+0x1ea0/0x1ea0 [ 482.133531] ? xfs_alloc_read_agf+0xb10/0xb10 [ 482.138007] xfs_alloc_ag_vextent+0x579/0x750 [ 482.142474] ? xfs_perag_get+0x116/0x410 [ 482.146511] ? xfs_alloc_vextent+0x470/0x2010 [ 482.150987] xfs_alloc_vextent+0x10b0/0x2010 [ 482.155379] xfs_bmap_btalloc+0x9e5/0x1b20 [ 482.159597] ? xfs_bmap_adjacent+0x1480/0x1480 [ 482.164155] ? ret_from_fork+0x24/0x30 [ 482.168035] ? __xfs_bmbt_get_all+0x16/0x100 [ 482.172424] xfs_bmap_alloc+0x107/0x160 [ 482.176380] xfs_bmapi_write+0xa49/0x1d00 [ 482.180505] ? xfs_bmapi_reserve_delalloc+0x7c0/0x7c0 [ 482.185669] ? trace_hardirqs_on+0x10/0x10 [ 482.189883] ? xfs_iext_get_ext+0xeb/0x200 [ 482.194094] ? xfs_iext_idx_to_irec+0x340/0x340 [ 482.198743] ? xfs_bmap_last_extent+0x1d0/0x1d0 [ 482.203391] xfs_iomap_write_allocate+0x42b/0xa30 [ 482.208228] ? xfs_file_iomap_begin+0x1ed0/0x1ed0 [ 482.213050] ? xfs_iunlock+0x248/0x3b0 [ 482.216922] ? rcu_read_lock_sched_held+0x16c/0x1d0 [ 482.221913] ? xfs_iunlock+0x21a/0x3b0 [ 482.225777] xfs_map_blocks+0x548/0x940 [ 482.229727] ? xfs_vm_set_page_dirty+0x610/0x610 [ 482.234456] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 482.239881] xfs_do_writepage+0x422/0x13d0 [ 482.244093] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 482.248399] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 482.253831] write_cache_pages+0x505/0xd20 [ 482.258042] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 482.262342] ? clear_page_dirty_for_io+0xb80/0xb80 [ 482.267261] ? trace_hardirqs_on+0x10/0x10 [ 482.271481] xfs_vm_writepages+0x258/0x340 [ 482.275692] ? xfs_vm_writepage+0xd0/0xd0 [ 482.279816] ? xfs_vm_writepage+0xd0/0xd0 [ 482.283938] do_writepages+0xc3/0x240 [ 482.287727] ? page_writeback_cpu_online+0x10/0x10 [ 482.292662] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 482.298088] __writeback_single_inode+0xda/0x1010 [ 482.302908] writeback_sb_inodes+0x48b/0xd30 [ 482.307306] ? wbc_detach_inode+0x780/0x780 [ 482.311610] ? queue_io+0x400/0x5a0 [ 482.315210] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 482.320634] wb_writeback+0x243/0xb80 [ 482.324412] ? writeback_inodes_wb.constprop.0+0x1a0/0x1a0 [ 482.330012] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 482.335436] wb_workfn+0x2bd/0xf50 [ 482.338956] ? process_one_work+0x6c4/0x14a0 [ 482.343340] ? inode_wait_for_writeback+0x30/0x30 [ 482.348168] ? lock_acquire+0x170/0x3f0 [ 482.352125] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 482.357551] process_one_work+0x793/0x14a0 [ 482.361767] ? work_busy+0x320/0x320 [ 482.365454] ? worker_thread+0x158/0xff0 [ 482.369492] ? _raw_spin_unlock_irq+0x24/0x80 [ 482.373965] worker_thread+0x5cc/0xff0 [ 482.377830] ? rescuer_thread+0xc80/0xc80 [ 482.381955] kthread+0x30d/0x420 [ 482.385294] ? kthread_create_on_node+0xd0/0xd0 [ 482.389958] ret_from_fork+0x24/0x30 [ 482.394188] XFS (loop1): page discard on page ffffea0001294840, inode 0x29, offset 929792. [ 482.402992] XFS (loop1): Internal error XFS_WANT_CORRUPTED_RETURN at line 431 of file fs/xfs/libxfs/xfs_alloc.c. Caller xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 482.417568] CPU: 1 PID: 2818 Comm: kworker/u4:3 Not tainted 4.14.303-syzkaller #0 [ 482.425169] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023 [ 482.434508] Workqueue: writeback wb_workfn (flush-7:1) [ 482.439761] Call Trace: [ 482.442326] dump_stack+0x1b2/0x281 [ 482.445939] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 482.451195] xfs_error_report+0x98/0xa0 [ 482.455143] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 482.460397] xfs_alloc_fixup_trees+0x425/0x4f0 [ 482.464957] ? xfs_alloc_update+0x90/0x90 [ 482.469088] ? xfs_btree_rec_offset.isra.0+0x3b/0xa0 [ 482.474178] ? xfs_alloc_compute_diff+0x23c/0x3d0 [ 482.478996] xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 482.484077] ? xfs_alloc_fix_freelist+0x685/0xeb0 [ 482.488901] ? xfs_alloc_ag_vextent_size+0x1ea0/0x1ea0 [ 482.494160] ? xfs_alloc_read_agf+0xb10/0xb10 [ 482.498638] xfs_alloc_ag_vextent+0x579/0x750 [ 482.503129] ? xfs_perag_get+0x116/0x410 [ 482.507168] ? xfs_alloc_vextent+0x470/0x2010 [ 482.511644] xfs_alloc_vextent+0x10b0/0x2010 [ 482.516034] xfs_bmap_btalloc+0x9e5/0x1b20 [ 482.520244] ? xfs_bmap_adjacent+0x1480/0x1480 [ 482.524820] ? ret_from_fork+0x24/0x30 [ 482.528701] ? __xfs_bmbt_get_all+0x16/0x100 [ 482.533091] xfs_bmap_alloc+0x107/0x160 [ 482.537040] xfs_bmapi_write+0xa49/0x1d00 [ 482.541179] ? xfs_bmapi_reserve_delalloc+0x7c0/0x7c0 [ 482.546350] ? trace_hardirqs_on+0x10/0x10 [ 482.550568] ? xfs_iext_get_ext+0xeb/0x200 [ 482.554778] ? xfs_iext_idx_to_irec+0x340/0x340 [ 482.559425] ? xfs_bmap_last_extent+0x1d0/0x1d0 [ 482.564073] xfs_iomap_write_allocate+0x42b/0xa30 [ 482.568906] ? xfs_file_iomap_begin+0x1ed0/0x1ed0 [ 482.573728] ? xfs_iunlock+0x248/0x3b0 [ 482.577598] ? rcu_read_lock_sched_held+0x16c/0x1d0 [ 482.582590] ? xfs_iunlock+0x21a/0x3b0 [ 482.586459] xfs_map_blocks+0x548/0x940 [ 482.590417] ? xfs_vm_set_page_dirty+0x610/0x610 [ 482.595148] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 482.600573] xfs_do_writepage+0x422/0x13d0 [ 482.604788] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 482.609094] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 482.614527] write_cache_pages+0x505/0xd20 [ 482.618743] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 482.623045] ? clear_page_dirty_for_io+0xb80/0xb80 [ 482.627966] ? trace_hardirqs_on+0x10/0x10 [ 482.632185] xfs_vm_writepages+0x258/0x340 [ 482.636395] ? xfs_vm_writepage+0xd0/0xd0 [ 482.640518] ? xfs_vm_writepage+0xd0/0xd0 [ 482.644644] do_writepages+0xc3/0x240 [ 482.648428] ? page_writeback_cpu_online+0x10/0x10 [ 482.653340] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 482.658770] __writeback_single_inode+0xda/0x1010 [ 482.663590] writeback_sb_inodes+0x48b/0xd30 [ 482.667988] ? wbc_detach_inode+0x780/0x780 [ 482.672292] ? queue_io+0x400/0x5a0 [ 482.675894] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 482.681321] wb_writeback+0x243/0xb80 [ 482.685098] ? writeback_inodes_wb.constprop.0+0x1a0/0x1a0 [ 482.690704] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 482.696136] wb_workfn+0x2bd/0xf50 [ 482.699680] ? process_one_work+0x6c4/0x14a0 [ 482.704061] ? inode_wait_for_writeback+0x30/0x30 [ 482.708886] ? lock_acquire+0x170/0x3f0 [ 482.712842] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 482.718268] process_one_work+0x793/0x14a0 [ 482.722495] ? work_busy+0x320/0x320 [ 482.726186] ? worker_thread+0x158/0xff0 [ 482.730232] ? _raw_spin_unlock_irq+0x24/0x80 [ 482.734706] worker_thread+0x5cc/0xff0 [ 482.738577] ? rescuer_thread+0xc80/0xc80 [ 482.742700] kthread+0x30d/0x420 [ 482.746047] ? kthread_create_on_node+0xd0/0xd0 [ 482.750700] ret_from_fork+0x24/0x30 [ 482.754863] XFS (loop1): page discard on page ffffea00012956c0, inode 0x29, offset 933888. [ 482.763688] XFS (loop1): Internal error XFS_WANT_CORRUPTED_RETURN at line 431 of file fs/xfs/libxfs/xfs_alloc.c. Caller xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 482.778230] CPU: 1 PID: 2818 Comm: kworker/u4:3 Not tainted 4.14.303-syzkaller #0 [ 482.785840] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023 [ 482.795189] Workqueue: writeback wb_workfn (flush-7:1) [ 482.800442] Call Trace: [ 482.803010] dump_stack+0x1b2/0x281 [ 482.806620] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 482.811880] xfs_error_report+0x98/0xa0 [ 482.815835] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 482.821093] xfs_alloc_fixup_trees+0x425/0x4f0 [ 482.825651] ? xfs_alloc_update+0x90/0x90 [ 482.829779] ? xfs_btree_rec_offset.isra.0+0x3b/0xa0 [ 482.834864] ? xfs_alloc_compute_diff+0x23c/0x3d0 [ 482.839683] xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 482.844765] ? xfs_alloc_fix_freelist+0x685/0xeb0 [ 482.849585] ? xfs_alloc_ag_vextent_size+0x1ea0/0x1ea0 [ 482.854840] ? xfs_alloc_read_agf+0xb10/0xb10 [ 482.859321] xfs_alloc_ag_vextent+0x579/0x750 [ 482.863799] ? xfs_perag_get+0x116/0x410 [ 482.867844] ? xfs_alloc_vextent+0x470/0x2010 [ 482.872323] xfs_alloc_vextent+0x10b0/0x2010 [ 482.876715] xfs_bmap_btalloc+0x9e5/0x1b20 [ 482.880930] ? xfs_bmap_adjacent+0x1480/0x1480 [ 482.885489] ? ret_from_fork+0x24/0x30 [ 482.889377] ? __xfs_bmbt_get_all+0x16/0x100 [ 482.893772] xfs_bmap_alloc+0x107/0x160 [ 482.897726] xfs_bmapi_write+0xa49/0x1d00 [ 482.901854] ? xfs_bmapi_reserve_delalloc+0x7c0/0x7c0 [ 482.907025] ? trace_hardirqs_on+0x10/0x10 [ 482.911248] ? xfs_iext_get_ext+0xeb/0x200 [ 482.915459] ? xfs_iext_idx_to_irec+0x340/0x340 [ 482.920112] ? xfs_bmap_last_extent+0x1d0/0x1d0 [ 482.924762] xfs_iomap_write_allocate+0x42b/0xa30 [ 482.929588] ? xfs_file_iomap_begin+0x1ed0/0x1ed0 [ 482.934405] ? xfs_iunlock+0x248/0x3b0 [ 482.938294] ? rcu_read_lock_sched_held+0x16c/0x1d0 [ 482.943286] ? xfs_iunlock+0x21a/0x3b0 [ 482.947156] xfs_map_blocks+0x548/0x940 [ 482.951113] ? xfs_vm_set_page_dirty+0x610/0x610 [ 482.955849] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 482.961280] xfs_do_writepage+0x422/0x13d0 [ 482.965498] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 482.969801] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 482.975227] write_cache_pages+0x505/0xd20 [ 482.979450] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 482.983761] ? clear_page_dirty_for_io+0xb80/0xb80 [ 482.988685] ? trace_hardirqs_on+0x10/0x10 [ 482.992903] xfs_vm_writepages+0x258/0x340 [ 482.997112] ? xfs_vm_writepage+0xd0/0xd0 [ 483.001237] ? xfs_vm_writepage+0xd0/0xd0 [ 483.005359] do_writepages+0xc3/0x240 [ 483.009142] ? page_writeback_cpu_online+0x10/0x10 [ 483.014057] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 483.019488] __writeback_single_inode+0xda/0x1010 [ 483.024305] writeback_sb_inodes+0x48b/0xd30 [ 483.028702] ? wbc_detach_inode+0x780/0x780 [ 483.033007] ? queue_io+0x400/0x5a0 [ 483.036610] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 483.042033] wb_writeback+0x243/0xb80 [ 483.045822] ? writeback_inodes_wb.constprop.0+0x1a0/0x1a0 [ 483.051431] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 483.056864] wb_workfn+0x2bd/0xf50 [ 483.060387] ? process_one_work+0x6c4/0x14a0 [ 483.064772] ? inode_wait_for_writeback+0x30/0x30 [ 483.069594] ? lock_acquire+0x170/0x3f0 [ 483.073546] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 483.078971] process_one_work+0x793/0x14a0 [ 483.083185] ? work_busy+0x320/0x320 [ 483.086878] ? worker_thread+0x158/0xff0 [ 483.090923] ? _raw_spin_unlock_irq+0x24/0x80 [ 483.095392] worker_thread+0x5cc/0xff0 [ 483.099258] ? rescuer_thread+0xc80/0xc80 [ 483.103381] kthread+0x30d/0x420 [ 483.106730] ? kthread_create_on_node+0xd0/0xd0 [ 483.111379] ret_from_fork+0x24/0x30 [ 483.115472] XFS (loop1): page discard on page ffffea00012ddd00, inode 0x29, offset 937984. [ 483.124281] XFS (loop1): Internal error XFS_WANT_CORRUPTED_RETURN at line 431 of file fs/xfs/libxfs/xfs_alloc.c. Caller xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 483.138827] CPU: 1 PID: 2818 Comm: kworker/u4:3 Not tainted 4.14.303-syzkaller #0 [ 483.146438] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023 [ 483.155787] Workqueue: writeback wb_workfn (flush-7:1) [ 483.161050] Call Trace: [ 483.163613] dump_stack+0x1b2/0x281 [ 483.167223] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 483.172485] xfs_error_report+0x98/0xa0 [ 483.176456] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 483.181720] xfs_alloc_fixup_trees+0x425/0x4f0 [ 483.186286] ? xfs_alloc_update+0x90/0x90 [ 483.190417] ? xfs_btree_rec_offset.isra.0+0x3b/0xa0 [ 483.195498] ? xfs_alloc_compute_diff+0x23c/0x3d0 [ 483.200319] xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 483.205401] ? xfs_alloc_fix_freelist+0x685/0xeb0 [ 483.210217] ? xfs_alloc_ag_vextent_size+0x1ea0/0x1ea0 [ 483.215469] ? xfs_alloc_read_agf+0xb10/0xb10 [ 483.219951] xfs_alloc_ag_vextent+0x579/0x750 [ 483.224418] ? xfs_perag_get+0x116/0x410 [ 483.228459] ? xfs_alloc_vextent+0x470/0x2010 [ 483.232941] xfs_alloc_vextent+0x10b0/0x2010 [ 483.237347] xfs_bmap_btalloc+0x9e5/0x1b20 [ 483.241564] ? xfs_bmap_adjacent+0x1480/0x1480 [ 483.246128] ? ret_from_fork+0x24/0x30 [ 483.250004] ? __xfs_bmbt_get_all+0x16/0x100 [ 483.254387] xfs_bmap_alloc+0x107/0x160 [ 483.258351] xfs_bmapi_write+0xa49/0x1d00 [ 483.262483] ? xfs_bmapi_reserve_delalloc+0x7c0/0x7c0 [ 483.267658] ? trace_hardirqs_on+0x10/0x10 [ 483.271874] ? xfs_iext_get_ext+0xeb/0x200 [ 483.276085] ? xfs_iext_idx_to_irec+0x340/0x340 [ 483.280734] ? xfs_bmap_last_extent+0x1d0/0x1d0 [ 483.285379] xfs_iomap_write_allocate+0x42b/0xa30 [ 483.290205] ? xfs_file_iomap_begin+0x1ed0/0x1ed0 [ 483.295021] ? xfs_iunlock+0x248/0x3b0 [ 483.298888] ? rcu_read_lock_sched_held+0x16c/0x1d0 [ 483.303878] ? xfs_iunlock+0x21a/0x3b0 [ 483.307750] xfs_map_blocks+0x548/0x940 [ 483.311707] ? xfs_vm_set_page_dirty+0x610/0x610 [ 483.316436] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 483.321884] xfs_do_writepage+0x422/0x13d0 [ 483.326109] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 483.330435] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 483.335873] write_cache_pages+0x505/0xd20 [ 483.340083] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 483.344380] ? clear_page_dirty_for_io+0xb80/0xb80 [ 483.349299] ? trace_hardirqs_on+0x10/0x10 [ 483.353518] xfs_vm_writepages+0x258/0x340 [ 483.357730] ? xfs_vm_writepage+0xd0/0xd0 [ 483.361857] ? xfs_vm_writepage+0xd0/0xd0 [ 483.365988] do_writepages+0xc3/0x240 [ 483.369775] ? page_writeback_cpu_online+0x10/0x10 [ 483.374683] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 483.380111] __writeback_single_inode+0xda/0x1010 [ 483.384932] writeback_sb_inodes+0x48b/0xd30 [ 483.389327] ? wbc_detach_inode+0x780/0x780 [ 483.393633] ? queue_io+0x400/0x5a0 [ 483.397236] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 483.402660] wb_writeback+0x243/0xb80 [ 483.406487] ? writeback_inodes_wb.constprop.0+0x1a0/0x1a0 [ 483.412108] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 483.417535] wb_workfn+0x2bd/0xf50 [ 483.421056] ? process_one_work+0x6c4/0x14a0 [ 483.425450] ? inode_wait_for_writeback+0x30/0x30 [ 483.430272] ? lock_acquire+0x170/0x3f0 [ 483.434227] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 483.439657] process_one_work+0x793/0x14a0 [ 483.443869] ? work_busy+0x320/0x320 [ 483.447561] ? worker_thread+0x158/0xff0 [ 483.451605] ? _raw_spin_unlock_irq+0x24/0x80 [ 483.456076] worker_thread+0x5cc/0xff0 [ 483.459942] ? rescuer_thread+0xc80/0xc80 [ 483.464065] kthread+0x30d/0x420 [ 483.467413] ? kthread_create_on_node+0xd0/0xd0 [ 483.472067] ret_from_fork+0x24/0x30 [ 483.476416] XFS (loop1): page discard on page ffffea0001281f40, inode 0x29, offset 942080. [ 483.485196] XFS (loop1): Internal error XFS_WANT_CORRUPTED_RETURN at line 431 of file fs/xfs/libxfs/xfs_alloc.c. Caller xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 483.499746] CPU: 1 PID: 2818 Comm: kworker/u4:3 Not tainted 4.14.303-syzkaller #0 [ 483.507358] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023 [ 483.516708] Workqueue: writeback wb_workfn (flush-7:1) [ 483.521960] Call Trace: [ 483.524526] dump_stack+0x1b2/0x281 [ 483.528136] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 483.533396] xfs_error_report+0x98/0xa0 [ 483.537349] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 483.542600] xfs_alloc_fixup_trees+0x425/0x4f0 [ 483.547165] ? xfs_alloc_update+0x90/0x90 [ 483.551293] ? xfs_btree_rec_offset.isra.0+0x3b/0xa0 [ 483.556371] ? xfs_alloc_compute_diff+0x23c/0x3d0 [ 483.561189] xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 483.566280] ? xfs_alloc_fix_freelist+0x685/0xeb0 [ 483.571102] ? xfs_alloc_ag_vextent_size+0x1ea0/0x1ea0 [ 483.576353] ? xfs_alloc_read_agf+0xb10/0xb10 [ 483.580832] xfs_alloc_ag_vextent+0x579/0x750 [ 483.585301] ? xfs_perag_get+0x116/0x410 [ 483.589334] ? xfs_alloc_vextent+0x470/0x2010 [ 483.593803] xfs_alloc_vextent+0x10b0/0x2010 [ 483.598190] xfs_bmap_btalloc+0x9e5/0x1b20 [ 483.602412] ? xfs_bmap_adjacent+0x1480/0x1480 [ 483.606975] ? ret_from_fork+0x24/0x30 [ 483.610850] ? __xfs_bmbt_get_all+0x16/0x100 [ 483.615233] xfs_bmap_alloc+0x107/0x160 [ 483.619183] xfs_bmapi_write+0xa49/0x1d00 [ 483.623313] ? xfs_bmapi_reserve_delalloc+0x7c0/0x7c0 [ 483.628483] ? trace_hardirqs_on+0x10/0x10 [ 483.632702] ? xfs_iext_get_ext+0xeb/0x200 [ 483.636909] ? xfs_iext_idx_to_irec+0x340/0x340 [ 483.641559] ? xfs_bmap_last_extent+0x1d0/0x1d0 [ 483.646221] xfs_iomap_write_allocate+0x42b/0xa30 [ 483.651050] ? xfs_file_iomap_begin+0x1ed0/0x1ed0 [ 483.655866] ? xfs_iunlock+0x248/0x3b0 [ 483.659733] ? rcu_read_lock_sched_held+0x16c/0x1d0 [ 483.664724] ? xfs_iunlock+0x21a/0x3b0 [ 483.668597] xfs_map_blocks+0x548/0x940 [ 483.672557] ? xfs_vm_set_page_dirty+0x610/0x610 [ 483.677289] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 483.682735] xfs_do_writepage+0x422/0x13d0 [ 483.686962] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 483.691271] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 483.696700] write_cache_pages+0x505/0xd20 [ 483.700913] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 483.705212] ? clear_page_dirty_for_io+0xb80/0xb80 [ 483.710125] ? trace_hardirqs_on+0x10/0x10 [ 483.714335] xfs_vm_writepages+0x258/0x340 [ 483.718548] ? xfs_vm_writepage+0xd0/0xd0 [ 483.722673] ? xfs_vm_writepage+0xd0/0xd0 [ 483.726802] do_writepages+0xc3/0x240 [ 483.730585] ? page_writeback_cpu_online+0x10/0x10 [ 483.735492] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 483.740919] __writeback_single_inode+0xda/0x1010 [ 483.745738] writeback_sb_inodes+0x48b/0xd30 [ 483.750133] ? wbc_detach_inode+0x780/0x780 [ 483.754436] ? queue_io+0x400/0x5a0 [ 483.758036] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 483.763462] wb_writeback+0x243/0xb80 [ 483.767251] ? writeback_inodes_wb.constprop.0+0x1a0/0x1a0 [ 483.772858] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 483.778285] wb_workfn+0x2bd/0xf50 [ 483.781803] ? process_one_work+0x6c4/0x14a0 [ 483.786192] ? inode_wait_for_writeback+0x30/0x30 [ 483.791041] ? lock_acquire+0x170/0x3f0 [ 483.794992] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 483.800418] process_one_work+0x793/0x14a0 [ 483.804633] ? work_busy+0x320/0x320 [ 483.808327] ? worker_thread+0x158/0xff0 [ 483.812368] ? _raw_spin_unlock_irq+0x24/0x80 [ 483.816842] worker_thread+0x5cc/0xff0 [ 483.820724] ? rescuer_thread+0xc80/0xc80 [ 483.824851] kthread+0x30d/0x420 [ 483.828200] ? kthread_create_on_node+0xd0/0xd0 [ 483.832870] ret_from_fork+0x24/0x30 [ 483.837177] XFS (loop1): page discard on page ffffea0001231140, inode 0x29, offset 946176. [ 483.846010] XFS (loop1): Internal error XFS_WANT_CORRUPTED_RETURN at line 431 of file fs/xfs/libxfs/xfs_alloc.c. Caller xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 483.860533] CPU: 1 PID: 2818 Comm: kworker/u4:3 Not tainted 4.14.303-syzkaller #0 [ 483.868143] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023 [ 483.877494] Workqueue: writeback wb_workfn (flush-7:1) [ 483.882749] Call Trace: [ 483.885336] dump_stack+0x1b2/0x281 [ 483.889127] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 483.894393] xfs_error_report+0x98/0xa0 [ 483.898346] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 483.903606] xfs_alloc_fixup_trees+0x425/0x4f0 [ 483.908177] ? xfs_alloc_update+0x90/0x90 [ 483.912310] ? xfs_btree_rec_offset.isra.0+0x3b/0xa0 [ 483.917389] ? xfs_alloc_compute_diff+0x23c/0x3d0 [ 483.922208] xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 483.927310] ? xfs_alloc_fix_freelist+0x685/0xeb0 [ 483.932139] ? xfs_alloc_ag_vextent_size+0x1ea0/0x1ea0 [ 483.937396] ? xfs_alloc_read_agf+0xb10/0xb10 [ 483.941876] xfs_alloc_ag_vextent+0x579/0x750 [ 483.946355] ? xfs_perag_get+0x116/0x410 [ 483.950430] ? xfs_alloc_vextent+0x470/0x2010 [ 483.954902] xfs_alloc_vextent+0x10b0/0x2010 [ 483.959308] xfs_bmap_btalloc+0x9e5/0x1b20 [ 483.963522] ? xfs_bmap_adjacent+0x1480/0x1480 [ 483.968087] ? ret_from_fork+0x24/0x30 [ 483.971964] ? __xfs_bmbt_get_all+0x16/0x100 [ 483.976349] xfs_bmap_alloc+0x107/0x160 [ 483.980298] xfs_bmapi_write+0xa49/0x1d00 [ 483.984444] ? xfs_bmapi_reserve_delalloc+0x7c0/0x7c0 [ 483.989631] ? trace_hardirqs_on+0x10/0x10 [ 483.993846] ? xfs_iext_get_ext+0xeb/0x200 [ 483.998075] ? xfs_iext_idx_to_irec+0x340/0x340 [ 484.002727] ? xfs_bmap_last_extent+0x1d0/0x1d0 [ 484.007411] xfs_iomap_write_allocate+0x42b/0xa30 [ 484.012240] ? xfs_file_iomap_begin+0x1ed0/0x1ed0 [ 484.017067] ? xfs_iunlock+0x248/0x3b0 [ 484.020957] ? rcu_read_lock_sched_held+0x16c/0x1d0 [ 484.025962] ? xfs_iunlock+0x21a/0x3b0 [ 484.029842] xfs_map_blocks+0x548/0x940 [ 484.033815] ? xfs_vm_set_page_dirty+0x610/0x610 [ 484.038601] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 484.044035] xfs_do_writepage+0x422/0x13d0 [ 484.048260] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 484.052568] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 484.057995] write_cache_pages+0x505/0xd20 [ 484.062209] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 484.066518] ? clear_page_dirty_for_io+0xb80/0xb80 [ 484.071438] ? trace_hardirqs_on+0x10/0x10 [ 484.075655] xfs_vm_writepages+0x258/0x340 [ 484.079869] ? xfs_vm_writepage+0xd0/0xd0 [ 484.084002] ? xfs_vm_writepage+0xd0/0xd0 [ 484.088132] do_writepages+0xc3/0x240 [ 484.091939] ? page_writeback_cpu_online+0x10/0x10 [ 484.096861] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 484.102295] __writeback_single_inode+0xda/0x1010 [ 484.107125] writeback_sb_inodes+0x48b/0xd30 [ 484.111525] ? wbc_detach_inode+0x780/0x780 [ 484.115827] ? queue_io+0x400/0x5a0 [ 484.119430] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 484.124854] wb_writeback+0x243/0xb80 [ 484.128640] ? writeback_inodes_wb.constprop.0+0x1a0/0x1a0 [ 484.134248] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 484.139673] wb_workfn+0x2bd/0xf50 [ 484.143190] ? process_one_work+0x6c4/0x14a0 [ 484.147586] ? inode_wait_for_writeback+0x30/0x30 [ 484.152412] ? lock_acquire+0x170/0x3f0 [ 484.156361] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 484.161790] process_one_work+0x793/0x14a0 [ 484.166010] ? work_busy+0x320/0x320 [ 484.169705] ? worker_thread+0x158/0xff0 [ 484.173743] ? _raw_spin_unlock_irq+0x24/0x80 [ 484.178216] worker_thread+0x5cc/0xff0 [ 484.182079] ? rescuer_thread+0xc80/0xc80 [ 484.186212] kthread+0x30d/0x420 [ 484.189562] ? kthread_create_on_node+0xd0/0xd0 [ 484.194207] ret_from_fork+0x24/0x30 [ 484.198574] XFS (loop1): page discard on page ffffea00012dc100, inode 0x29, offset 950272. [ 484.207407] XFS (loop1): Internal error XFS_WANT_CORRUPTED_RETURN at line 431 of file fs/xfs/libxfs/xfs_alloc.c. Caller xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 484.221960] CPU: 1 PID: 2818 Comm: kworker/u4:3 Not tainted 4.14.303-syzkaller #0 [ 484.229571] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023 [ 484.238923] Workqueue: writeback wb_workfn (flush-7:1) [ 484.244179] Call Trace: [ 484.246752] dump_stack+0x1b2/0x281 [ 484.250366] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 484.255629] xfs_error_report+0x98/0xa0 [ 484.259585] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 484.264845] xfs_alloc_fixup_trees+0x425/0x4f0 [ 484.269419] ? xfs_alloc_update+0x90/0x90 [ 484.273550] ? xfs_btree_rec_offset.isra.0+0x3b/0xa0 [ 484.278628] ? xfs_alloc_compute_diff+0x23c/0x3d0 [ 484.283450] xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 484.288543] ? xfs_alloc_fix_freelist+0x685/0xeb0 [ 484.293398] ? xfs_alloc_ag_vextent_size+0x1ea0/0x1ea0 [ 484.298652] ? xfs_alloc_read_agf+0xb10/0xb10 [ 484.303129] xfs_alloc_ag_vextent+0x579/0x750 [ 484.307607] ? xfs_perag_get+0x116/0x410 [ 484.311649] ? xfs_alloc_vextent+0x470/0x2010 [ 484.316118] xfs_alloc_vextent+0x10b0/0x2010 [ 484.320508] xfs_bmap_btalloc+0x9e5/0x1b20 [ 484.324719] ? xfs_bmap_adjacent+0x1480/0x1480 [ 484.329274] ? ret_from_fork+0x24/0x30 [ 484.333147] ? __xfs_bmbt_get_all+0x16/0x100 [ 484.337533] xfs_bmap_alloc+0x107/0x160 [ 484.341484] xfs_bmapi_write+0xa49/0x1d00 [ 484.345612] ? xfs_bmapi_reserve_delalloc+0x7c0/0x7c0 [ 484.350779] ? trace_hardirqs_on+0x10/0x10 [ 484.354989] ? xfs_iext_get_ext+0xeb/0x200 [ 484.359198] ? xfs_iext_idx_to_irec+0x340/0x340 [ 484.363934] ? xfs_bmap_last_extent+0x1d0/0x1d0 [ 484.368593] xfs_iomap_write_allocate+0x42b/0xa30 [ 484.373425] ? xfs_file_iomap_begin+0x1ed0/0x1ed0 [ 484.378241] ? xfs_iunlock+0x248/0x3b0 [ 484.382111] ? rcu_read_lock_sched_held+0x16c/0x1d0 [ 484.387108] ? xfs_iunlock+0x21a/0x3b0 [ 484.390980] xfs_map_blocks+0x548/0x940 [ 484.394929] ? xfs_vm_set_page_dirty+0x610/0x610 [ 484.399661] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 484.405086] xfs_do_writepage+0x422/0x13d0 [ 484.409309] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 484.413631] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 484.419062] write_cache_pages+0x505/0xd20 [ 484.423294] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 484.427599] ? clear_page_dirty_for_io+0xb80/0xb80 [ 484.432515] ? trace_hardirqs_on+0x10/0x10 [ 484.436727] xfs_vm_writepages+0x258/0x340 [ 484.440935] ? xfs_vm_writepage+0xd0/0xd0 [ 484.445060] ? xfs_vm_writepage+0xd0/0xd0 [ 484.449186] do_writepages+0xc3/0x240 [ 484.452971] ? page_writeback_cpu_online+0x10/0x10 [ 484.457877] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 484.463305] __writeback_single_inode+0xda/0x1010 [ 484.468135] writeback_sb_inodes+0x48b/0xd30 [ 484.472528] ? wbc_detach_inode+0x780/0x780 [ 484.476825] ? queue_io+0x400/0x5a0 [ 484.480443] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 484.485891] wb_writeback+0x243/0xb80 [ 484.489686] ? writeback_inodes_wb.constprop.0+0x1a0/0x1a0 [ 484.495401] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 484.500834] wb_workfn+0x2bd/0xf50 [ 484.504359] ? process_one_work+0x6c4/0x14a0 [ 484.508754] ? inode_wait_for_writeback+0x30/0x30 [ 484.513588] ? lock_acquire+0x170/0x3f0 [ 484.517546] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 484.522976] process_one_work+0x793/0x14a0 [ 484.527202] ? work_busy+0x320/0x320 [ 484.530897] ? worker_thread+0x158/0xff0 [ 484.534933] ? _raw_spin_unlock_irq+0x24/0x80 [ 484.539406] worker_thread+0x5cc/0xff0 [ 484.543273] ? rescuer_thread+0xc80/0xc80 [ 484.547401] kthread+0x30d/0x420 [ 484.550749] ? kthread_create_on_node+0xd0/0xd0 [ 484.555411] ret_from_fork+0x24/0x30 [ 484.559666] XFS (loop1): page discard on page ffffea000147f040, inode 0x29, offset 954368. [ 484.568525] XFS (loop1): Internal error XFS_WANT_CORRUPTED_RETURN at line 431 of file fs/xfs/libxfs/xfs_alloc.c. Caller xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 484.583076] CPU: 1 PID: 2818 Comm: kworker/u4:3 Not tainted 4.14.303-syzkaller #0 [ 484.590687] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023 [ 484.600035] Workqueue: writeback wb_workfn (flush-7:1) [ 484.605289] Call Trace: [ 484.607856] dump_stack+0x1b2/0x281 [ 484.611466] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 484.616725] xfs_error_report+0x98/0xa0 [ 484.620684] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 484.626645] xfs_alloc_fixup_trees+0x425/0x4f0 [ 484.631210] ? xfs_alloc_update+0x90/0x90 [ 484.635333] ? xfs_btree_rec_offset.isra.0+0x3b/0xa0 [ 484.640423] ? xfs_alloc_compute_diff+0x23c/0x3d0 [ 484.645242] xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 484.650323] ? xfs_alloc_fix_freelist+0x685/0xeb0 [ 484.655140] ? xfs_alloc_ag_vextent_size+0x1ea0/0x1ea0 [ 484.660393] ? xfs_alloc_read_agf+0xb10/0xb10 [ 484.664873] xfs_alloc_ag_vextent+0x579/0x750 [ 484.669343] ? xfs_perag_get+0x116/0x410 [ 484.673380] ? xfs_alloc_vextent+0x470/0x2010 [ 484.677851] xfs_alloc_vextent+0x10b0/0x2010 [ 484.682240] xfs_bmap_btalloc+0x9e5/0x1b20 [ 484.686466] ? xfs_bmap_adjacent+0x1480/0x1480 [ 484.691029] ? ret_from_fork+0x24/0x30 [ 484.694897] ? __xfs_bmbt_get_all+0x16/0x100 [ 484.699283] xfs_bmap_alloc+0x107/0x160 [ 484.703248] xfs_bmapi_write+0xa49/0x1d00 [ 484.707389] ? xfs_bmapi_reserve_delalloc+0x7c0/0x7c0 [ 484.712562] ? trace_hardirqs_on+0x10/0x10 [ 484.716783] ? xfs_iext_get_ext+0xeb/0x200 [ 484.721011] ? xfs_iext_idx_to_irec+0x340/0x340 [ 484.725664] ? xfs_bmap_last_extent+0x1d0/0x1d0 [ 484.730315] xfs_iomap_write_allocate+0x42b/0xa30 [ 484.735164] ? xfs_file_iomap_begin+0x1ed0/0x1ed0 [ 484.739988] ? xfs_iunlock+0x248/0x3b0 [ 484.743882] ? rcu_read_lock_sched_held+0x16c/0x1d0 [ 484.748875] ? xfs_iunlock+0x21a/0x3b0 [ 484.752738] xfs_map_blocks+0x548/0x940 [ 484.756698] ? xfs_vm_set_page_dirty+0x610/0x610 [ 484.761438] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 484.766872] xfs_do_writepage+0x422/0x13d0 [ 484.771092] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 484.775397] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 484.780828] write_cache_pages+0x505/0xd20 [ 484.785058] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 484.789358] ? clear_page_dirty_for_io+0xb80/0xb80 [ 484.794267] ? trace_hardirqs_on+0x10/0x10 [ 484.798480] xfs_vm_writepages+0x258/0x340 [ 484.802689] ? xfs_vm_writepage+0xd0/0xd0 [ 484.806825] ? xfs_vm_writepage+0xd0/0xd0 [ 484.810953] do_writepages+0xc3/0x240 [ 484.814728] ? page_writeback_cpu_online+0x10/0x10 [ 484.819643] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 484.825069] __writeback_single_inode+0xda/0x1010 [ 484.829908] writeback_sb_inodes+0x48b/0xd30 [ 484.834296] ? wbc_detach_inode+0x780/0x780 [ 484.838597] ? queue_io+0x400/0x5a0 [ 484.842202] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 484.847645] wb_writeback+0x243/0xb80 [ 484.851447] ? writeback_inodes_wb.constprop.0+0x1a0/0x1a0 [ 484.857068] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 484.862508] wb_workfn+0x2bd/0xf50 [ 484.866048] ? process_one_work+0x6c4/0x14a0 [ 484.870447] ? inode_wait_for_writeback+0x30/0x30 [ 484.875271] ? lock_acquire+0x170/0x3f0 [ 484.879227] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 484.884654] process_one_work+0x793/0x14a0 [ 484.888868] ? work_busy+0x320/0x320 [ 484.892555] ? worker_thread+0x158/0xff0 [ 484.896602] ? _raw_spin_unlock_irq+0x24/0x80 [ 484.901091] worker_thread+0x5cc/0xff0 [ 484.904964] ? rescuer_thread+0xc80/0xc80 [ 484.909090] kthread+0x30d/0x420 [ 484.912448] ? kthread_create_on_node+0xd0/0xd0 [ 484.917112] ret_from_fork+0x24/0x30 [ 484.921274] XFS (loop1): page discard on page ffffea00012b35c0, inode 0x29, offset 958464. [ 484.930066] XFS (loop1): Internal error XFS_WANT_CORRUPTED_RETURN at line 431 of file fs/xfs/libxfs/xfs_alloc.c. Caller xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 484.944620] CPU: 1 PID: 2818 Comm: kworker/u4:3 Not tainted 4.14.303-syzkaller #0 [ 484.952227] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023 [ 484.961572] Workqueue: writeback wb_workfn (flush-7:1) [ 484.966828] Call Trace: [ 484.969395] dump_stack+0x1b2/0x281 [ 484.973014] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 484.978273] xfs_error_report+0x98/0xa0 [ 484.982254] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 484.987513] xfs_alloc_fixup_trees+0x425/0x4f0 [ 484.992070] ? xfs_alloc_update+0x90/0x90 [ 484.996206] ? xfs_btree_rec_offset.isra.0+0x3b/0xa0 [ 485.001288] ? xfs_alloc_compute_diff+0x23c/0x3d0 [ 485.006109] xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 485.011193] ? xfs_alloc_fix_freelist+0x685/0xeb0 [ 485.016014] ? xfs_alloc_ag_vextent_size+0x1ea0/0x1ea0 [ 485.021271] ? xfs_alloc_read_agf+0xb10/0xb10 [ 485.025766] xfs_alloc_ag_vextent+0x579/0x750 [ 485.030235] ? xfs_perag_get+0x116/0x410 [ 485.034283] ? xfs_alloc_vextent+0x470/0x2010 [ 485.038763] xfs_alloc_vextent+0x10b0/0x2010 [ 485.043159] xfs_bmap_btalloc+0x9e5/0x1b20 [ 485.047372] ? xfs_bmap_adjacent+0x1480/0x1480 [ 485.051928] ? ret_from_fork+0x24/0x30 [ 485.055807] ? __xfs_bmbt_get_all+0x16/0x100 [ 485.060213] xfs_bmap_alloc+0x107/0x160 [ 485.064174] xfs_bmapi_write+0xa49/0x1d00 [ 485.068308] ? xfs_bmapi_reserve_delalloc+0x7c0/0x7c0 [ 485.073477] ? trace_hardirqs_on+0x10/0x10 [ 485.077701] ? xfs_iext_get_ext+0xeb/0x200 [ 485.081923] ? xfs_iext_idx_to_irec+0x340/0x340 [ 485.086573] ? xfs_bmap_last_extent+0x1d0/0x1d0 [ 485.091220] xfs_iomap_write_allocate+0x42b/0xa30 [ 485.096057] ? xfs_file_iomap_begin+0x1ed0/0x1ed0 [ 485.100881] ? xfs_iunlock+0x248/0x3b0 [ 485.104750] ? rcu_read_lock_sched_held+0x16c/0x1d0 [ 485.109742] ? xfs_iunlock+0x21a/0x3b0 [ 485.113608] xfs_map_blocks+0x548/0x940 [ 485.117567] ? xfs_vm_set_page_dirty+0x610/0x610 [ 485.122313] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 485.127745] xfs_do_writepage+0x422/0x13d0 [ 485.131964] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 485.136275] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 485.141708] write_cache_pages+0x505/0xd20 [ 485.145934] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 485.150234] ? clear_page_dirty_for_io+0xb80/0xb80 [ 485.155141] ? trace_hardirqs_on+0x10/0x10 [ 485.159368] xfs_vm_writepages+0x258/0x340 [ 485.163579] ? xfs_vm_writepage+0xd0/0xd0 [ 485.167711] ? xfs_vm_writepage+0xd0/0xd0 [ 485.171834] do_writepages+0xc3/0x240 [ 485.175630] ? page_writeback_cpu_online+0x10/0x10 [ 485.180544] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 485.185970] __writeback_single_inode+0xda/0x1010 [ 485.190790] writeback_sb_inodes+0x48b/0xd30 [ 485.195175] ? wbc_detach_inode+0x780/0x780 [ 485.199480] ? queue_io+0x400/0x5a0 [ 485.203083] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 485.208508] wb_writeback+0x243/0xb80 [ 485.212285] ? writeback_inodes_wb.constprop.0+0x1a0/0x1a0 [ 485.217898] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 485.223358] wb_workfn+0x2bd/0xf50 [ 485.226894] ? process_one_work+0x6c4/0x14a0 [ 485.231292] ? inode_wait_for_writeback+0x30/0x30 [ 485.236120] ? lock_acquire+0x170/0x3f0 [ 485.240082] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 485.245511] process_one_work+0x793/0x14a0 [ 485.249724] ? work_busy+0x320/0x320 [ 485.253412] ? worker_thread+0x158/0xff0 [ 485.257462] ? _raw_spin_unlock_irq+0x24/0x80 [ 485.261941] worker_thread+0x5cc/0xff0 [ 485.265806] ? rescuer_thread+0xc80/0xc80 [ 485.269930] kthread+0x30d/0x420 [ 485.273274] ? kthread_create_on_node+0xd0/0xd0 [ 485.277923] ret_from_fork+0x24/0x30 [ 485.281985] XFS (loop1): page discard on page ffffea000129d3c0, inode 0x29, offset 962560. [ 485.290799] XFS (loop1): Internal error XFS_WANT_CORRUPTED_RETURN at line 431 of file fs/xfs/libxfs/xfs_alloc.c. Caller xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 485.305355] CPU: 1 PID: 2818 Comm: kworker/u4:3 Not tainted 4.14.303-syzkaller #0 [ 485.312970] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023 [ 485.322329] Workqueue: writeback wb_workfn (flush-7:1) [ 485.327587] Call Trace: [ 485.330154] dump_stack+0x1b2/0x281 [ 485.333760] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 485.339015] xfs_error_report+0x98/0xa0 [ 485.342971] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 485.348228] xfs_alloc_fixup_trees+0x425/0x4f0 [ 485.352787] ? xfs_alloc_update+0x90/0x90 [ 485.356916] ? xfs_btree_rec_offset.isra.0+0x3b/0xa0 [ 485.362002] ? xfs_alloc_compute_diff+0x23c/0x3d0 [ 485.366820] xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 485.371904] ? xfs_alloc_fix_freelist+0x685/0xeb0 [ 485.376727] ? xfs_alloc_ag_vextent_size+0x1ea0/0x1ea0 [ 485.381985] ? xfs_alloc_read_agf+0xb10/0xb10 [ 485.386464] xfs_alloc_ag_vextent+0x579/0x750 [ 485.390935] ? xfs_perag_get+0x116/0x410 [ 485.394966] ? xfs_alloc_vextent+0x470/0x2010 [ 485.399436] xfs_alloc_vextent+0x10b0/0x2010 [ 485.403826] xfs_bmap_btalloc+0x9e5/0x1b20 [ 485.408038] ? xfs_bmap_adjacent+0x1480/0x1480 [ 485.412594] ? ret_from_fork+0x24/0x30 [ 485.416478] ? __xfs_bmbt_get_all+0x16/0x100 [ 485.420869] xfs_bmap_alloc+0x107/0x160 [ 485.424819] xfs_bmapi_write+0xa49/0x1d00 [ 485.428946] ? xfs_bmapi_reserve_delalloc+0x7c0/0x7c0 [ 485.434111] ? trace_hardirqs_on+0x10/0x10 [ 485.438339] ? xfs_iext_get_ext+0xeb/0x200 [ 485.442554] ? xfs_iext_idx_to_irec+0x340/0x340 [ 485.447204] ? xfs_bmap_last_extent+0x1d0/0x1d0 [ 485.451850] xfs_iomap_write_allocate+0x42b/0xa30 [ 485.456687] ? xfs_file_iomap_begin+0x1ed0/0x1ed0 [ 485.461521] ? xfs_iunlock+0x248/0x3b0 [ 485.465399] ? rcu_read_lock_sched_held+0x16c/0x1d0 [ 485.470390] ? xfs_iunlock+0x21a/0x3b0 [ 485.474256] xfs_map_blocks+0x548/0x940 [ 485.478215] ? xfs_vm_set_page_dirty+0x610/0x610 [ 485.482954] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 485.488380] xfs_do_writepage+0x422/0x13d0 [ 485.492595] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 485.496902] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 485.502337] write_cache_pages+0x505/0xd20 [ 485.506555] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 485.510869] ? clear_page_dirty_for_io+0xb80/0xb80 [ 485.515791] ? trace_hardirqs_on+0x10/0x10 [ 485.520009] xfs_vm_writepages+0x258/0x340 [ 485.524219] ? xfs_vm_writepage+0xd0/0xd0 [ 485.528349] ? xfs_vm_writepage+0xd0/0xd0 [ 485.532471] do_writepages+0xc3/0x240 [ 485.536259] ? page_writeback_cpu_online+0x10/0x10 [ 485.541173] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 485.546602] __writeback_single_inode+0xda/0x1010 [ 485.551440] writeback_sb_inodes+0x48b/0xd30 [ 485.555834] ? wbc_detach_inode+0x780/0x780 [ 485.560142] ? queue_io+0x400/0x5a0 [ 485.563745] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 485.569169] wb_writeback+0x243/0xb80 [ 485.572946] ? writeback_inodes_wb.constprop.0+0x1a0/0x1a0 [ 485.578555] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 485.583989] wb_workfn+0x2bd/0xf50 [ 485.587507] ? process_one_work+0x6c4/0x14a0 [ 485.591911] ? inode_wait_for_writeback+0x30/0x30 [ 485.596737] ? lock_acquire+0x170/0x3f0 [ 485.600693] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 485.606119] process_one_work+0x793/0x14a0 [ 485.610331] ? work_busy+0x320/0x320 [ 485.614021] ? worker_thread+0x158/0xff0 [ 485.618072] ? _raw_spin_unlock_irq+0x24/0x80 [ 485.622551] worker_thread+0x5cc/0xff0 [ 485.626419] ? rescuer_thread+0xc80/0xc80 [ 485.630540] kthread+0x30d/0x420 [ 485.633883] ? kthread_create_on_node+0xd0/0xd0 [ 485.638535] ret_from_fork+0x24/0x30 [ 485.642912] XFS (loop1): page discard on page ffffea00010b5180, inode 0x29, offset 966656. [ 485.651730] XFS (loop1): Internal error XFS_WANT_CORRUPTED_RETURN at line 431 of file fs/xfs/libxfs/xfs_alloc.c. Caller xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 485.666271] CPU: 1 PID: 2818 Comm: kworker/u4:3 Not tainted 4.14.303-syzkaller #0 [ 485.673884] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023 [ 485.683226] Workqueue: writeback wb_workfn (flush-7:1) [ 485.688481] Call Trace: [ 485.691049] dump_stack+0x1b2/0x281 [ 485.694652] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 485.699906] xfs_error_report+0x98/0xa0 [ 485.703855] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 485.709111] xfs_alloc_fixup_trees+0x425/0x4f0 [ 485.713667] ? xfs_alloc_update+0x90/0x90 [ 485.717793] ? xfs_btree_rec_offset.isra.0+0x3b/0xa0 [ 485.722879] ? xfs_alloc_compute_diff+0x23c/0x3d0 [ 485.727700] xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 485.732780] ? xfs_alloc_fix_freelist+0x685/0xeb0 [ 485.737601] ? xfs_alloc_ag_vextent_size+0x1ea0/0x1ea0 [ 485.742859] ? xfs_alloc_read_agf+0xb10/0xb10 [ 485.747336] xfs_alloc_ag_vextent+0x579/0x750 [ 485.751807] ? xfs_perag_get+0x116/0x410 [ 485.755844] ? xfs_alloc_vextent+0x470/0x2010 [ 485.760322] xfs_alloc_vextent+0x10b0/0x2010 [ 485.764710] xfs_bmap_btalloc+0x9e5/0x1b20 [ 485.768926] ? xfs_bmap_adjacent+0x1480/0x1480 [ 485.773480] ? ret_from_fork+0x24/0x30 [ 485.777363] ? __xfs_bmbt_get_all+0x16/0x100 [ 485.781755] xfs_bmap_alloc+0x107/0x160 [ 485.785708] xfs_bmapi_write+0xa49/0x1d00 [ 485.789838] ? xfs_bmapi_reserve_delalloc+0x7c0/0x7c0 [ 485.795002] ? trace_hardirqs_on+0x10/0x10 [ 485.799224] ? xfs_iext_get_ext+0xeb/0x200 [ 485.803440] ? xfs_iext_idx_to_irec+0x340/0x340 [ 485.808089] ? xfs_bmap_last_extent+0x1d0/0x1d0 [ 485.812735] xfs_iomap_write_allocate+0x42b/0xa30 [ 485.817572] ? xfs_file_iomap_begin+0x1ed0/0x1ed0 [ 485.822399] ? xfs_iunlock+0x248/0x3b0 [ 485.826277] ? rcu_read_lock_sched_held+0x16c/0x1d0 [ 485.831297] ? xfs_iunlock+0x21a/0x3b0 [ 485.835158] xfs_map_blocks+0x548/0x940 [ 485.839118] ? xfs_vm_set_page_dirty+0x610/0x610 [ 485.843857] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 485.849287] xfs_do_writepage+0x422/0x13d0 [ 485.853505] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 485.857819] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 485.863267] write_cache_pages+0x505/0xd20 [ 485.867480] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 485.871798] ? clear_page_dirty_for_io+0xb80/0xb80 [ 485.876734] ? trace_hardirqs_on+0x10/0x10 [ 485.880958] xfs_vm_writepages+0x258/0x340 [ 485.885170] ? xfs_vm_writepage+0xd0/0xd0 [ 485.889303] ? xfs_vm_writepage+0xd0/0xd0 [ 485.893428] do_writepages+0xc3/0x240 [ 485.897215] ? page_writeback_cpu_online+0x10/0x10 [ 485.902132] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 485.907559] __writeback_single_inode+0xda/0x1010 [ 485.912380] writeback_sb_inodes+0x48b/0xd30 [ 485.916789] ? wbc_detach_inode+0x780/0x780 [ 485.921107] ? queue_io+0x400/0x5a0 [ 485.924716] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 485.930151] wb_writeback+0x243/0xb80 [ 485.933936] ? writeback_inodes_wb.constprop.0+0x1a0/0x1a0 [ 485.939541] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 485.944971] wb_workfn+0x2bd/0xf50 [ 485.948489] ? process_one_work+0x6c4/0x14a0 [ 485.952875] ? inode_wait_for_writeback+0x30/0x30 [ 485.957699] ? lock_acquire+0x170/0x3f0 [ 485.961656] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 485.967082] process_one_work+0x793/0x14a0 [ 485.971315] ? work_busy+0x320/0x320 [ 485.975014] ? worker_thread+0x158/0xff0 [ 485.979073] ? _raw_spin_unlock_irq+0x24/0x80 [ 485.983565] worker_thread+0x5cc/0xff0 [ 485.987437] ? rescuer_thread+0xc80/0xc80 [ 485.991560] kthread+0x30d/0x420 [ 485.994904] ? kthread_create_on_node+0xd0/0xd0 [ 485.999551] ret_from_fork+0x24/0x30 [ 486.003864] XFS (loop1): page discard on page ffffea00010ec680, inode 0x29, offset 970752. [ 486.012691] XFS (loop1): Internal error XFS_WANT_CORRUPTED_RETURN at line 431 of file fs/xfs/libxfs/xfs_alloc.c. Caller xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 486.027286] CPU: 1 PID: 2818 Comm: kworker/u4:3 Not tainted 4.14.303-syzkaller #0 [ 486.034909] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023 [ 486.044255] Workqueue: writeback wb_workfn (flush-7:1) [ 486.049508] Call Trace: [ 486.052085] dump_stack+0x1b2/0x281 [ 486.055695] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 486.060954] xfs_error_report+0x98/0xa0 [ 486.064902] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 486.070155] xfs_alloc_fixup_trees+0x425/0x4f0 [ 486.074711] ? xfs_alloc_update+0x90/0x90 [ 486.078840] ? xfs_btree_rec_offset.isra.0+0x3b/0xa0 [ 486.083923] ? xfs_alloc_compute_diff+0x23c/0x3d0 [ 486.088743] xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 486.093824] ? xfs_alloc_fix_freelist+0x685/0xeb0 [ 486.098647] ? xfs_alloc_ag_vextent_size+0x1ea0/0x1ea0 [ 486.103921] ? xfs_alloc_read_agf+0xb10/0xb10 [ 486.108407] xfs_alloc_ag_vextent+0x579/0x750 [ 486.112879] ? xfs_perag_get+0x116/0x410 [ 486.116918] ? xfs_alloc_vextent+0x470/0x2010 [ 486.121398] xfs_alloc_vextent+0x10b0/0x2010 [ 486.125795] xfs_bmap_btalloc+0x9e5/0x1b20 [ 486.130007] ? xfs_bmap_adjacent+0x1480/0x1480 [ 486.134564] ? ret_from_fork+0x24/0x30 [ 486.138446] ? __xfs_bmbt_get_all+0x16/0x100 [ 486.142838] xfs_bmap_alloc+0x107/0x160 [ 486.146809] xfs_bmapi_write+0xa49/0x1d00 [ 486.150936] ? xfs_bmapi_reserve_delalloc+0x7c0/0x7c0 [ 486.156106] ? trace_hardirqs_on+0x10/0x10 [ 486.160329] ? xfs_iext_get_ext+0xeb/0x200 [ 486.164539] ? xfs_iext_idx_to_irec+0x340/0x340 [ 486.169191] ? xfs_bmap_last_extent+0x1d0/0x1d0 [ 486.173860] xfs_iomap_write_allocate+0x42b/0xa30 [ 486.178704] ? xfs_file_iomap_begin+0x1ed0/0x1ed0 [ 486.183536] ? xfs_iunlock+0x248/0x3b0 [ 486.187409] ? rcu_read_lock_sched_held+0x16c/0x1d0 [ 486.192402] ? xfs_iunlock+0x21a/0x3b0 [ 486.196277] xfs_map_blocks+0x548/0x940 [ 486.200239] ? xfs_vm_set_page_dirty+0x610/0x610 [ 486.204971] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 486.210398] xfs_do_writepage+0x422/0x13d0 [ 486.214612] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 486.218929] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 486.224366] write_cache_pages+0x505/0xd20 [ 486.228582] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 486.232881] ? clear_page_dirty_for_io+0xb80/0xb80 [ 486.237805] ? trace_hardirqs_on+0x10/0x10 [ 486.242025] xfs_vm_writepages+0x258/0x340 [ 486.246236] ? xfs_vm_writepage+0xd0/0xd0 [ 486.250365] ? xfs_vm_writepage+0xd0/0xd0 [ 486.254487] do_writepages+0xc3/0x240 [ 486.258277] ? page_writeback_cpu_online+0x10/0x10 [ 486.263190] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 486.268618] __writeback_single_inode+0xda/0x1010 [ 486.273437] writeback_sb_inodes+0x48b/0xd30 [ 486.277834] ? wbc_detach_inode+0x780/0x780 [ 486.282140] ? queue_io+0x400/0x5a0 [ 486.285744] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 486.291171] wb_writeback+0x243/0xb80 [ 486.294950] ? writeback_inodes_wb.constprop.0+0x1a0/0x1a0 [ 486.300575] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 486.306006] wb_workfn+0x2bd/0xf50 [ 486.309546] ? process_one_work+0x6c4/0x14a0 [ 486.314018] ? inode_wait_for_writeback+0x30/0x30 [ 486.318844] ? lock_acquire+0x170/0x3f0 [ 486.322801] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 486.328228] process_one_work+0x793/0x14a0 [ 486.332446] ? work_busy+0x320/0x320 [ 486.336146] ? worker_thread+0x158/0xff0 [ 486.340217] ? _raw_spin_unlock_irq+0x24/0x80 [ 486.344692] worker_thread+0x5cc/0xff0 [ 486.348561] ? rescuer_thread+0xc80/0xc80 [ 486.352684] kthread+0x30d/0x420 [ 486.356035] ? kthread_create_on_node+0xd0/0xd0 [ 486.360688] ret_from_fork+0x24/0x30 [ 486.364751] XFS (loop1): page discard on page ffffea0001476780, inode 0x29, offset 974848. [ 486.373563] XFS (loop1): Internal error XFS_WANT_CORRUPTED_RETURN at line 431 of file fs/xfs/libxfs/xfs_alloc.c. Caller xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 486.388112] CPU: 1 PID: 2818 Comm: kworker/u4:3 Not tainted 4.14.303-syzkaller #0 [ 486.395728] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023 [ 486.405077] Workqueue: writeback wb_workfn (flush-7:1) [ 486.410332] Call Trace: [ 486.412897] dump_stack+0x1b2/0x281 [ 486.416511] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 486.421777] xfs_error_report+0x98/0xa0 [ 486.425727] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 486.430980] xfs_alloc_fixup_trees+0x425/0x4f0 [ 486.435537] ? xfs_alloc_update+0x90/0x90 [ 486.439662] ? xfs_btree_rec_offset.isra.0+0x3b/0xa0 [ 486.444746] ? xfs_alloc_compute_diff+0x23c/0x3d0 [ 486.449568] xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 486.454652] ? xfs_alloc_fix_freelist+0x685/0xeb0 [ 486.459484] ? xfs_alloc_ag_vextent_size+0x1ea0/0x1ea0 [ 486.464760] ? xfs_alloc_read_agf+0xb10/0xb10 [ 486.469241] xfs_alloc_ag_vextent+0x579/0x750 [ 486.473712] ? xfs_perag_get+0x116/0x410 [ 486.477758] ? xfs_alloc_vextent+0x470/0x2010 [ 486.482260] xfs_alloc_vextent+0x10b0/0x2010 [ 486.486651] xfs_bmap_btalloc+0x9e5/0x1b20 [ 486.490867] ? xfs_bmap_adjacent+0x1480/0x1480 [ 486.495423] ? ret_from_fork+0x24/0x30 [ 486.499311] ? __xfs_bmbt_get_all+0x16/0x100 [ 486.503708] xfs_bmap_alloc+0x107/0x160 [ 486.507656] xfs_bmapi_write+0xa49/0x1d00 [ 486.511784] ? xfs_bmapi_reserve_delalloc+0x7c0/0x7c0 [ 486.516956] ? trace_hardirqs_on+0x10/0x10 [ 486.521176] ? xfs_iext_get_ext+0xeb/0x200 [ 486.525388] ? xfs_iext_idx_to_irec+0x340/0x340 [ 486.530042] ? xfs_bmap_last_extent+0x1d0/0x1d0 [ 486.534690] xfs_iomap_write_allocate+0x42b/0xa30 [ 486.539516] ? xfs_file_iomap_begin+0x1ed0/0x1ed0 [ 486.544356] ? xfs_iunlock+0x248/0x3b0 [ 486.548233] ? rcu_read_lock_sched_held+0x16c/0x1d0 [ 486.553313] ? xfs_iunlock+0x21a/0x3b0 [ 486.557183] xfs_map_blocks+0x548/0x940 [ 486.561141] ? xfs_vm_set_page_dirty+0x610/0x610 [ 486.565872] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 486.571315] xfs_do_writepage+0x422/0x13d0 [ 486.575530] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 486.579846] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 486.585284] write_cache_pages+0x505/0xd20 [ 486.589500] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 486.593799] ? clear_page_dirty_for_io+0xb80/0xb80 [ 486.598720] ? trace_hardirqs_on+0x10/0x10 [ 486.602945] xfs_vm_writepages+0x258/0x340 [ 486.607154] ? xfs_vm_writepage+0xd0/0xd0 [ 486.611301] ? xfs_vm_writepage+0xd0/0xd0 [ 486.615427] do_writepages+0xc3/0x240 [ 486.619216] ? page_writeback_cpu_online+0x10/0x10 [ 486.624152] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 486.629578] __writeback_single_inode+0xda/0x1010 [ 486.634396] writeback_sb_inodes+0x48b/0xd30 [ 486.638794] ? wbc_detach_inode+0x780/0x780 [ 486.643100] ? queue_io+0x400/0x5a0 [ 486.646703] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 486.652130] wb_writeback+0x243/0xb80 [ 486.655920] ? writeback_inodes_wb.constprop.0+0x1a0/0x1a0 [ 486.661552] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 486.666980] wb_workfn+0x2bd/0xf50 [ 486.670495] ? process_one_work+0x6c4/0x14a0 [ 486.674876] ? inode_wait_for_writeback+0x30/0x30 [ 486.679695] ? lock_acquire+0x170/0x3f0 [ 486.683648] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 486.689073] process_one_work+0x793/0x14a0 [ 486.693288] ? work_busy+0x320/0x320 [ 486.696983] ? worker_thread+0x158/0xff0 [ 486.701032] ? _raw_spin_unlock_irq+0x24/0x80 [ 486.705506] worker_thread+0x5cc/0xff0 [ 486.709374] ? rescuer_thread+0xc80/0xc80 [ 486.713496] kthread+0x30d/0x420 [ 486.716845] ? kthread_create_on_node+0xd0/0xd0 [ 486.721494] ret_from_fork+0x24/0x30 [ 486.725835] XFS (loop1): page discard on page ffffea0001476700, inode 0x29, offset 978944. [ 486.734621] XFS (loop1): Internal error XFS_WANT_CORRUPTED_RETURN at line 431 of file fs/xfs/libxfs/xfs_alloc.c. Caller xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 486.749174] CPU: 1 PID: 2818 Comm: kworker/u4:3 Not tainted 4.14.303-syzkaller #0 [ 486.756785] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023 [ 486.766135] Workqueue: writeback wb_workfn (flush-7:1) [ 486.771388] Call Trace: [ 486.773959] dump_stack+0x1b2/0x281 [ 486.777576] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 486.782834] xfs_error_report+0x98/0xa0 [ 486.786786] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 486.792039] xfs_alloc_fixup_trees+0x425/0x4f0 [ 486.796606] ? xfs_alloc_update+0x90/0x90 [ 486.800740] ? xfs_btree_rec_offset.isra.0+0x3b/0xa0 [ 486.805821] ? xfs_alloc_compute_diff+0x23c/0x3d0 [ 486.810639] xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 486.815734] ? xfs_alloc_fix_freelist+0x685/0xeb0 [ 486.820562] ? xfs_alloc_ag_vextent_size+0x1ea0/0x1ea0 [ 486.825817] ? xfs_alloc_read_agf+0xb10/0xb10 [ 486.830295] xfs_alloc_ag_vextent+0x579/0x750 [ 486.834766] ? xfs_perag_get+0x116/0x410 [ 486.838817] ? xfs_alloc_vextent+0x470/0x2010 [ 486.843313] xfs_alloc_vextent+0x10b0/0x2010 [ 486.847714] xfs_bmap_btalloc+0x9e5/0x1b20 [ 486.851927] ? xfs_bmap_adjacent+0x1480/0x1480 [ 486.856494] ? ret_from_fork+0x24/0x30 [ 486.860382] ? __xfs_bmbt_get_all+0x16/0x100 [ 486.864773] xfs_bmap_alloc+0x107/0x160 [ 486.868730] xfs_bmapi_write+0xa49/0x1d00 [ 486.872877] ? xfs_bmapi_reserve_delalloc+0x7c0/0x7c0 [ 486.878056] ? trace_hardirqs_on+0x10/0x10 [ 486.882278] ? xfs_iext_get_ext+0xeb/0x200 [ 486.886491] ? xfs_iext_idx_to_irec+0x340/0x340 [ 486.891164] ? xfs_bmap_last_extent+0x1d0/0x1d0 [ 486.895834] xfs_iomap_write_allocate+0x42b/0xa30 [ 486.900676] ? xfs_file_iomap_begin+0x1ed0/0x1ed0 [ 486.905498] ? xfs_iunlock+0x248/0x3b0 [ 486.909394] ? rcu_read_lock_sched_held+0x16c/0x1d0 [ 486.914388] ? xfs_iunlock+0x21a/0x3b0 [ 486.918260] xfs_map_blocks+0x548/0x940 [ 486.922293] ? xfs_vm_set_page_dirty+0x610/0x610 [ 486.927027] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 486.932453] xfs_do_writepage+0x422/0x13d0 [ 486.936679] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 486.940987] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 486.946414] write_cache_pages+0x505/0xd20 [ 486.950627] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 486.954925] ? clear_page_dirty_for_io+0xb80/0xb80 [ 486.959839] ? trace_hardirqs_on+0x10/0x10 [ 486.964052] xfs_vm_writepages+0x258/0x340 [ 486.968263] ? xfs_vm_writepage+0xd0/0xd0 [ 486.972391] ? xfs_vm_writepage+0xd0/0xd0 [ 486.976520] do_writepages+0xc3/0x240 [ 486.980309] ? page_writeback_cpu_online+0x10/0x10 [ 486.985239] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 486.990664] __writeback_single_inode+0xda/0x1010 [ 486.995504] writeback_sb_inodes+0x48b/0xd30 [ 486.999894] ? wbc_detach_inode+0x780/0x780 [ 487.004215] ? queue_io+0x400/0x5a0 [ 487.007836] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 487.013281] wb_writeback+0x243/0xb80 [ 487.017070] ? writeback_inodes_wb.constprop.0+0x1a0/0x1a0 [ 487.022695] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 487.028124] wb_workfn+0x2bd/0xf50 [ 487.031641] ? process_one_work+0x6c4/0x14a0 [ 487.036030] ? inode_wait_for_writeback+0x30/0x30 [ 487.040856] ? lock_acquire+0x170/0x3f0 [ 487.044832] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 487.050281] process_one_work+0x793/0x14a0 [ 487.054496] ? work_busy+0x320/0x320 [ 487.058191] ? worker_thread+0x158/0xff0 [ 487.062241] ? _raw_spin_unlock_irq+0x24/0x80 [ 487.066713] worker_thread+0x5cc/0xff0 [ 487.070581] ? rescuer_thread+0xc80/0xc80 [ 487.074705] kthread+0x30d/0x420 [ 487.078051] ? kthread_create_on_node+0xd0/0xd0 [ 487.082702] ret_from_fork+0x24/0x30 [ 487.087065] XFS (loop1): page discard on page ffffea0001476740, inode 0x29, offset 983040. [ 487.095885] XFS (loop1): Internal error XFS_WANT_CORRUPTED_RETURN at line 431 of file fs/xfs/libxfs/xfs_alloc.c. Caller xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 487.110425] CPU: 1 PID: 2818 Comm: kworker/u4:3 Not tainted 4.14.303-syzkaller #0 [ 487.118037] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023 [ 487.127390] Workqueue: writeback wb_workfn (flush-7:1) [ 487.132643] Call Trace: [ 487.135210] dump_stack+0x1b2/0x281 [ 487.138827] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 487.144115] xfs_error_report+0x98/0xa0 [ 487.148066] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 487.153320] xfs_alloc_fixup_trees+0x425/0x4f0 [ 487.157885] ? xfs_alloc_update+0x90/0x90 [ 487.162014] ? xfs_btree_rec_offset.isra.0+0x3b/0xa0 [ 487.167113] ? xfs_alloc_compute_diff+0x23c/0x3d0 [ 487.171932] xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 487.177023] ? xfs_alloc_fix_freelist+0x685/0xeb0 [ 487.181845] ? xfs_alloc_ag_vextent_size+0x1ea0/0x1ea0 [ 487.187098] ? xfs_alloc_read_agf+0xb10/0xb10 [ 487.191580] xfs_alloc_ag_vextent+0x579/0x750 [ 487.196055] ? xfs_perag_get+0x116/0x410 [ 487.200097] ? xfs_alloc_vextent+0x470/0x2010 [ 487.204569] xfs_alloc_vextent+0x10b0/0x2010 [ 487.208960] xfs_bmap_btalloc+0x9e5/0x1b20 [ 487.213173] ? xfs_bmap_adjacent+0x1480/0x1480 [ 487.217743] ? ret_from_fork+0x24/0x30 [ 487.221622] ? __xfs_bmbt_get_all+0x16/0x100 [ 487.226008] xfs_bmap_alloc+0x107/0x160 [ 487.229956] xfs_bmapi_write+0xa49/0x1d00 [ 487.234082] ? xfs_bmapi_reserve_delalloc+0x7c0/0x7c0 [ 487.239256] ? trace_hardirqs_on+0x10/0x10 [ 487.243501] ? xfs_iext_get_ext+0xeb/0x200 [ 487.247711] ? xfs_iext_idx_to_irec+0x340/0x340 [ 487.252367] ? xfs_bmap_last_extent+0x1d0/0x1d0 [ 487.257028] xfs_iomap_write_allocate+0x42b/0xa30 [ 487.261880] ? xfs_file_iomap_begin+0x1ed0/0x1ed0 [ 487.266712] ? xfs_iunlock+0x248/0x3b0 [ 487.270583] ? rcu_read_lock_sched_held+0x16c/0x1d0 [ 487.275575] ? xfs_iunlock+0x21a/0x3b0 [ 487.279443] xfs_map_blocks+0x548/0x940 [ 487.283393] ? xfs_vm_set_page_dirty+0x610/0x610 [ 487.288123] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 487.293549] xfs_do_writepage+0x422/0x13d0 [ 487.297771] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 487.302078] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 487.307503] write_cache_pages+0x505/0xd20 [ 487.311713] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 487.316019] ? clear_page_dirty_for_io+0xb80/0xb80 [ 487.320934] ? trace_hardirqs_on+0x10/0x10 [ 487.325146] xfs_vm_writepages+0x258/0x340 [ 487.329356] ? xfs_vm_writepage+0xd0/0xd0 [ 487.333483] ? xfs_vm_writepage+0xd0/0xd0 [ 487.337614] do_writepages+0xc3/0x240 [ 487.341397] ? page_writeback_cpu_online+0x10/0x10 [ 487.346306] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 487.351734] __writeback_single_inode+0xda/0x1010 [ 487.356564] writeback_sb_inodes+0x48b/0xd30 [ 487.360961] ? wbc_detach_inode+0x780/0x780 [ 487.365265] ? queue_io+0x400/0x5a0 [ 487.368866] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 487.374291] wb_writeback+0x243/0xb80 [ 487.378079] ? writeback_inodes_wb.constprop.0+0x1a0/0x1a0 [ 487.383687] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 487.389111] wb_workfn+0x2bd/0xf50 [ 487.392629] ? process_one_work+0x6c4/0x14a0 [ 487.397018] ? inode_wait_for_writeback+0x30/0x30 [ 487.401840] ? lock_acquire+0x170/0x3f0 [ 487.405792] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 487.411221] process_one_work+0x793/0x14a0 [ 487.415431] ? work_busy+0x320/0x320 [ 487.419123] ? worker_thread+0x158/0xff0 [ 487.423166] ? _raw_spin_unlock_irq+0x24/0x80 [ 487.427636] worker_thread+0x5cc/0xff0 [ 487.431504] ? rescuer_thread+0xc80/0xc80 [ 487.435630] kthread+0x30d/0x420 [ 487.438982] ? kthread_create_on_node+0xd0/0xd0 [ 487.443634] ret_from_fork+0x24/0x30 [ 487.447702] XFS (loop1): page discard on page ffffea00010ec600, inode 0x29, offset 987136. [ 487.456527] XFS (loop1): Internal error XFS_WANT_CORRUPTED_RETURN at line 431 of file fs/xfs/libxfs/xfs_alloc.c. Caller xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 487.471081] CPU: 1 PID: 2818 Comm: kworker/u4:3 Not tainted 4.14.303-syzkaller #0 [ 487.478695] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023 [ 487.488044] Workqueue: writeback wb_workfn (flush-7:1) [ 487.493301] Call Trace: [ 487.495875] dump_stack+0x1b2/0x281 [ 487.499488] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 487.504745] xfs_error_report+0x98/0xa0 [ 487.508696] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 487.513950] xfs_alloc_fixup_trees+0x425/0x4f0 [ 487.518522] ? xfs_alloc_update+0x90/0x90 [ 487.522653] ? xfs_btree_rec_offset.isra.0+0x3b/0xa0 [ 487.527729] ? xfs_alloc_compute_diff+0x23c/0x3d0 [ 487.532545] xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 487.537640] ? xfs_alloc_fix_freelist+0x685/0xeb0 [ 487.542465] ? xfs_alloc_ag_vextent_size+0x1ea0/0x1ea0 [ 487.547718] ? xfs_alloc_read_agf+0xb10/0xb10 [ 487.552196] xfs_alloc_ag_vextent+0x579/0x750 [ 487.556671] ? xfs_perag_get+0x116/0x410 [ 487.560713] ? xfs_alloc_vextent+0x470/0x2010 [ 487.565183] xfs_alloc_vextent+0x10b0/0x2010 [ 487.569592] xfs_bmap_btalloc+0x9e5/0x1b20 [ 487.573805] ? xfs_bmap_adjacent+0x1480/0x1480 [ 487.578368] ? ret_from_fork+0x24/0x30 [ 487.582247] ? __xfs_bmbt_get_all+0x16/0x100 [ 487.586632] xfs_bmap_alloc+0x107/0x160 [ 487.590583] xfs_bmapi_write+0xa49/0x1d00 [ 487.594731] ? xfs_bmapi_reserve_delalloc+0x7c0/0x7c0 [ 487.599898] ? trace_hardirqs_on+0x10/0x10 [ 487.604109] ? xfs_iext_get_ext+0xeb/0x200 [ 487.608336] ? xfs_iext_idx_to_irec+0x340/0x340 [ 487.612986] ? xfs_bmap_last_extent+0x1d0/0x1d0 [ 487.617641] xfs_iomap_write_allocate+0x42b/0xa30 [ 487.622471] ? xfs_file_iomap_begin+0x1ed0/0x1ed0 [ 487.627308] ? xfs_iunlock+0x248/0x3b0 [ 487.631192] ? rcu_read_lock_sched_held+0x16c/0x1d0 [ 487.636188] ? xfs_iunlock+0x21a/0x3b0 [ 487.640065] xfs_map_blocks+0x548/0x940 [ 487.644035] ? xfs_vm_set_page_dirty+0x610/0x610 [ 487.648766] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 487.654193] xfs_do_writepage+0x422/0x13d0 [ 487.658424] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 487.662730] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 487.668174] write_cache_pages+0x505/0xd20 [ 487.672389] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 487.676696] ? clear_page_dirty_for_io+0xb80/0xb80 [ 487.681615] ? trace_hardirqs_on+0x10/0x10 [ 487.685828] xfs_vm_writepages+0x258/0x340 [ 487.690037] ? xfs_vm_writepage+0xd0/0xd0 [ 487.694161] ? xfs_vm_writepage+0xd0/0xd0 [ 487.698289] do_writepages+0xc3/0x240 [ 487.702075] ? page_writeback_cpu_online+0x10/0x10 [ 487.706983] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 487.712417] __writeback_single_inode+0xda/0x1010 [ 487.717247] writeback_sb_inodes+0x48b/0xd30 [ 487.721639] ? wbc_detach_inode+0x780/0x780 [ 487.725954] ? queue_io+0x400/0x5a0 [ 487.729554] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 487.734979] wb_writeback+0x243/0xb80 [ 487.738766] ? writeback_inodes_wb.constprop.0+0x1a0/0x1a0 [ 487.744374] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 487.749797] wb_workfn+0x2bd/0xf50 [ 487.753318] ? process_one_work+0x6c4/0x14a0 [ 487.757706] ? inode_wait_for_writeback+0x30/0x30 [ 487.762535] ? lock_acquire+0x170/0x3f0 [ 487.766487] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 487.771915] process_one_work+0x793/0x14a0 [ 487.776135] ? work_busy+0x320/0x320 [ 487.779835] ? worker_thread+0x158/0xff0 [ 487.783877] ? _raw_spin_unlock_irq+0x24/0x80 [ 487.788357] worker_thread+0x5cc/0xff0 [ 487.792229] ? rescuer_thread+0xc80/0xc80 [ 487.796360] kthread+0x30d/0x420 [ 487.799710] ? kthread_create_on_node+0xd0/0xd0 [ 487.804355] ret_from_fork+0x24/0x30 [ 487.809217] XFS (loop1): page discard on page ffffea00010ec640, inode 0x29, offset 991232. [ 487.818070] XFS (loop1): Internal error XFS_WANT_CORRUPTED_RETURN at line 431 of file fs/xfs/libxfs/xfs_alloc.c. Caller xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 487.832611] CPU: 1 PID: 2818 Comm: kworker/u4:3 Not tainted 4.14.303-syzkaller #0 [ 487.840228] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023 [ 487.849576] Workqueue: writeback wb_workfn (flush-7:1) [ 487.854840] Call Trace: [ 487.857414] dump_stack+0x1b2/0x281 [ 487.861040] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 487.866295] xfs_error_report+0x98/0xa0 [ 487.870247] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 487.875504] xfs_alloc_fixup_trees+0x425/0x4f0 [ 487.880068] ? xfs_alloc_update+0x90/0x90 [ 487.884194] ? xfs_btree_rec_offset.isra.0+0x3b/0xa0 [ 487.889274] ? xfs_alloc_compute_diff+0x23c/0x3d0 [ 487.894106] xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 487.899206] ? xfs_alloc_fix_freelist+0x685/0xeb0 [ 487.904040] ? xfs_alloc_ag_vextent_size+0x1ea0/0x1ea0 [ 487.909299] ? xfs_alloc_read_agf+0xb10/0xb10 [ 487.913781] xfs_alloc_ag_vextent+0x579/0x750 [ 487.918259] ? xfs_perag_get+0x116/0x410 [ 487.922305] ? xfs_alloc_vextent+0x470/0x2010 [ 487.926777] xfs_alloc_vextent+0x10b0/0x2010 [ 487.931169] xfs_bmap_btalloc+0x9e5/0x1b20 [ 487.935402] ? xfs_bmap_adjacent+0x1480/0x1480 [ 487.939972] ? ret_from_fork+0x24/0x30 [ 487.943853] ? __xfs_bmbt_get_all+0x16/0x100 [ 487.948239] xfs_bmap_alloc+0x107/0x160 [ 487.952189] xfs_bmapi_write+0xa49/0x1d00 [ 487.956337] ? xfs_bmapi_reserve_delalloc+0x7c0/0x7c0 [ 487.961511] ? trace_hardirqs_on+0x10/0x10 [ 487.965743] ? xfs_iext_get_ext+0xeb/0x200 [ 487.969958] ? xfs_iext_idx_to_irec+0x340/0x340 [ 487.974605] ? xfs_bmap_last_extent+0x1d0/0x1d0 [ 487.979256] xfs_iomap_write_allocate+0x42b/0xa30 [ 487.984080] ? xfs_file_iomap_begin+0x1ed0/0x1ed0 [ 487.988900] ? xfs_iunlock+0x248/0x3b0 [ 487.992767] ? rcu_read_lock_sched_held+0x16c/0x1d0 [ 487.997765] ? xfs_iunlock+0x21a/0x3b0 [ 488.001634] xfs_map_blocks+0x548/0x940 [ 488.005584] ? xfs_vm_set_page_dirty+0x610/0x610 [ 488.010319] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 488.015751] xfs_do_writepage+0x422/0x13d0 [ 488.019990] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 488.024300] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 488.029727] write_cache_pages+0x505/0xd20 [ 488.033941] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 488.038252] ? clear_page_dirty_for_io+0xb80/0xb80 [ 488.043170] ? trace_hardirqs_on+0x10/0x10 [ 488.047392] xfs_vm_writepages+0x258/0x340 [ 488.051603] ? xfs_vm_writepage+0xd0/0xd0 [ 488.055736] ? xfs_vm_writepage+0xd0/0xd0 [ 488.059869] do_writepages+0xc3/0x240 [ 488.063647] ? page_writeback_cpu_online+0x10/0x10 [ 488.068571] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 488.073996] __writeback_single_inode+0xda/0x1010 [ 488.078826] writeback_sb_inodes+0x48b/0xd30 [ 488.083221] ? wbc_detach_inode+0x780/0x780 [ 488.087521] ? queue_io+0x400/0x5a0 [ 488.091131] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 488.096565] wb_writeback+0x243/0xb80 [ 488.100350] ? writeback_inodes_wb.constprop.0+0x1a0/0x1a0 [ 488.105968] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 488.111394] wb_workfn+0x2bd/0xf50 [ 488.114910] ? process_one_work+0x6c4/0x14a0 [ 488.119298] ? inode_wait_for_writeback+0x30/0x30 [ 488.124119] ? lock_acquire+0x170/0x3f0 [ 488.128070] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 488.133500] process_one_work+0x793/0x14a0 [ 488.137719] ? work_busy+0x320/0x320 [ 488.141413] ? worker_thread+0x158/0xff0 [ 488.145451] ? _raw_spin_unlock_irq+0x24/0x80 [ 488.149921] worker_thread+0x5cc/0xff0 [ 488.153788] ? rescuer_thread+0xc80/0xc80 [ 488.157918] kthread+0x30d/0x420 [ 488.161288] ? kthread_create_on_node+0xd0/0xd0 [ 488.165941] ret_from_fork+0x24/0x30 [ 488.170224] XFS (loop1): page discard on page ffffea000147b900, inode 0x29, offset 995328. [ 488.179061] XFS (loop1): Internal error XFS_WANT_CORRUPTED_RETURN at line 431 of file fs/xfs/libxfs/xfs_alloc.c. Caller xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 488.193611] CPU: 1 PID: 2818 Comm: kworker/u4:3 Not tainted 4.14.303-syzkaller #0 [ 488.201227] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023 [ 488.210596] Workqueue: writeback wb_workfn (flush-7:1) [ 488.215860] Call Trace: [ 488.218432] dump_stack+0x1b2/0x281 [ 488.222036] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 488.227295] xfs_error_report+0x98/0xa0 [ 488.231250] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 488.236525] xfs_alloc_fixup_trees+0x425/0x4f0 [ 488.241084] ? xfs_alloc_update+0x90/0x90 [ 488.245211] ? xfs_btree_rec_offset.isra.0+0x3b/0xa0 [ 488.250291] ? xfs_alloc_compute_diff+0x23c/0x3d0 [ 488.255112] xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 488.260199] ? xfs_alloc_fix_freelist+0x685/0xeb0 [ 488.265014] ? xfs_alloc_ag_vextent_size+0x1ea0/0x1ea0 [ 488.270266] ? xfs_alloc_read_agf+0xb10/0xb10 [ 488.274745] xfs_alloc_ag_vextent+0x579/0x750 [ 488.279213] ? xfs_perag_get+0x116/0x410 [ 488.283248] ? xfs_alloc_vextent+0x470/0x2010 [ 488.287726] xfs_alloc_vextent+0x10b0/0x2010 [ 488.292126] xfs_bmap_btalloc+0x9e5/0x1b20 [ 488.296339] ? xfs_bmap_adjacent+0x1480/0x1480 [ 488.300897] ? ret_from_fork+0x24/0x30 [ 488.304766] ? __xfs_bmbt_get_all+0x16/0x100 [ 488.309155] xfs_bmap_alloc+0x107/0x160 [ 488.313107] xfs_bmapi_write+0xa49/0x1d00 [ 488.317237] ? xfs_bmapi_reserve_delalloc+0x7c0/0x7c0 [ 488.322400] ? trace_hardirqs_on+0x10/0x10 [ 488.326621] ? xfs_iext_get_ext+0xeb/0x200 [ 488.330836] ? xfs_iext_idx_to_irec+0x340/0x340 [ 488.335487] ? xfs_bmap_last_extent+0x1d0/0x1d0 [ 488.340139] xfs_iomap_write_allocate+0x42b/0xa30 [ 488.344964] ? xfs_file_iomap_begin+0x1ed0/0x1ed0 [ 488.349782] ? xfs_iunlock+0x248/0x3b0 [ 488.353653] ? rcu_read_lock_sched_held+0x16c/0x1d0 [ 488.358644] ? xfs_iunlock+0x21a/0x3b0 [ 488.362509] xfs_map_blocks+0x548/0x940 [ 488.366469] ? xfs_vm_set_page_dirty+0x610/0x610 [ 488.371211] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 488.376637] xfs_do_writepage+0x422/0x13d0 [ 488.380849] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 488.385148] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 488.390574] write_cache_pages+0x505/0xd20 [ 488.394785] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 488.399082] ? clear_page_dirty_for_io+0xb80/0xb80 [ 488.403997] ? trace_hardirqs_on+0x10/0x10 [ 488.408217] xfs_vm_writepages+0x258/0x340 [ 488.412453] ? xfs_vm_writepage+0xd0/0xd0 [ 488.416594] ? xfs_vm_writepage+0xd0/0xd0 [ 488.420718] do_writepages+0xc3/0x240 [ 488.424495] ? page_writeback_cpu_online+0x10/0x10 [ 488.429411] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 488.434865] __writeback_single_inode+0xda/0x1010 [ 488.439684] writeback_sb_inodes+0x48b/0xd30 [ 488.444074] ? wbc_detach_inode+0x780/0x780 [ 488.448396] ? queue_io+0x400/0x5a0 [ 488.452005] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 488.457431] wb_writeback+0x243/0xb80 [ 488.461211] ? writeback_inodes_wb.constprop.0+0x1a0/0x1a0 [ 488.466820] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 488.472273] wb_workfn+0x2bd/0xf50 [ 488.475792] ? process_one_work+0x6c4/0x14a0 [ 488.480175] ? inode_wait_for_writeback+0x30/0x30 [ 488.484993] ? lock_acquire+0x170/0x3f0 [ 488.488956] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 488.494390] process_one_work+0x793/0x14a0 [ 488.498601] ? work_busy+0x320/0x320 [ 488.502289] ? worker_thread+0x158/0xff0 [ 488.506331] ? _raw_spin_unlock_irq+0x24/0x80 [ 488.510807] worker_thread+0x5cc/0xff0 [ 488.514674] ? rescuer_thread+0xc80/0xc80 [ 488.518812] kthread+0x30d/0x420 [ 488.522154] ? kthread_create_on_node+0xd0/0xd0 [ 488.526805] ret_from_fork+0x24/0x30 [ 488.530883] XFS (loop1): page discard on page ffffea000147b940, inode 0x29, offset 999424. [ 488.539673] XFS (loop1): Internal error XFS_WANT_CORRUPTED_RETURN at line 431 of file fs/xfs/libxfs/xfs_alloc.c. Caller xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 488.554215] CPU: 1 PID: 2818 Comm: kworker/u4:3 Not tainted 4.14.303-syzkaller #0 [ 488.561817] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023 [ 488.571158] Workqueue: writeback wb_workfn (flush-7:1) [ 488.576420] Call Trace: [ 488.579018] dump_stack+0x1b2/0x281 [ 488.582625] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 488.587885] xfs_error_report+0x98/0xa0 [ 488.591839] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 488.597095] xfs_alloc_fixup_trees+0x425/0x4f0 [ 488.601651] ? xfs_alloc_update+0x90/0x90 [ 488.605784] ? xfs_btree_rec_offset.isra.0+0x3b/0xa0 [ 488.610868] ? xfs_alloc_compute_diff+0x23c/0x3d0 [ 488.615689] xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 488.620786] ? xfs_alloc_fix_freelist+0x685/0xeb0 [ 488.625612] ? xfs_alloc_ag_vextent_size+0x1ea0/0x1ea0 [ 488.630872] ? xfs_alloc_read_agf+0xb10/0xb10 [ 488.635350] xfs_alloc_ag_vextent+0x579/0x750 [ 488.639819] ? xfs_perag_get+0x116/0x410 [ 488.643854] ? xfs_alloc_vextent+0x470/0x2010 [ 488.648328] xfs_alloc_vextent+0x10b0/0x2010 [ 488.652723] xfs_bmap_btalloc+0x9e5/0x1b20 [ 488.656937] ? xfs_bmap_adjacent+0x1480/0x1480 [ 488.661491] ? ret_from_fork+0x24/0x30 [ 488.665361] ? __xfs_bmbt_get_all+0x16/0x100 [ 488.669745] xfs_bmap_alloc+0x107/0x160 [ 488.673695] xfs_bmapi_write+0xa49/0x1d00 [ 488.677821] ? xfs_bmapi_reserve_delalloc+0x7c0/0x7c0 [ 488.682988] ? trace_hardirqs_on+0x10/0x10 [ 488.687222] ? xfs_iext_get_ext+0xeb/0x200 [ 488.691446] ? xfs_iext_idx_to_irec+0x340/0x340 [ 488.696100] ? xfs_bmap_last_extent+0x1d0/0x1d0 [ 488.700755] xfs_iomap_write_allocate+0x42b/0xa30 [ 488.705587] ? xfs_file_iomap_begin+0x1ed0/0x1ed0 [ 488.710417] ? xfs_iunlock+0x248/0x3b0 [ 488.714291] ? rcu_read_lock_sched_held+0x16c/0x1d0 [ 488.719284] ? xfs_iunlock+0x21a/0x3b0 [ 488.723154] xfs_map_blocks+0x548/0x940 [ 488.727111] ? xfs_vm_set_page_dirty+0x610/0x610 [ 488.731850] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 488.737275] xfs_do_writepage+0x422/0x13d0 [ 488.741488] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 488.745796] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 488.751234] write_cache_pages+0x505/0xd20 [ 488.755470] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 488.759787] ? clear_page_dirty_for_io+0xb80/0xb80 [ 488.764696] ? trace_hardirqs_on+0x10/0x10 [ 488.768913] xfs_vm_writepages+0x258/0x340 [ 488.773130] ? xfs_vm_writepage+0xd0/0xd0 [ 488.777257] ? xfs_vm_writepage+0xd0/0xd0 [ 488.781379] do_writepages+0xc3/0x240 [ 488.785155] ? page_writeback_cpu_online+0x10/0x10 [ 488.790062] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 488.795497] __writeback_single_inode+0xda/0x1010 [ 488.800318] writeback_sb_inodes+0x48b/0xd30 [ 488.804705] ? wbc_detach_inode+0x780/0x780 [ 488.809012] ? queue_io+0x400/0x5a0 [ 488.812696] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 488.818190] wb_writeback+0x243/0xb80 [ 488.821974] ? writeback_inodes_wb.constprop.0+0x1a0/0x1a0 [ 488.827585] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 488.833021] wb_workfn+0x2bd/0xf50 [ 488.836541] ? process_one_work+0x6c4/0x14a0 [ 488.840926] ? inode_wait_for_writeback+0x30/0x30 [ 488.845754] ? lock_acquire+0x170/0x3f0 [ 488.849710] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 488.855139] process_one_work+0x793/0x14a0 [ 488.859356] ? work_busy+0x320/0x320 [ 488.863042] ? worker_thread+0x158/0xff0 [ 488.867090] ? _raw_spin_unlock_irq+0x24/0x80 [ 488.871570] worker_thread+0x5cc/0xff0 [ 488.875434] ? rescuer_thread+0xc80/0xc80 [ 488.879569] kthread+0x30d/0x420 [ 488.882915] ? kthread_create_on_node+0xd0/0xd0 [ 488.887567] ret_from_fork+0x24/0x30 [ 488.891905] XFS (loop1): page discard on page ffffea000109ea80, inode 0x29, offset 1003520. [ 488.900820] XFS (loop1): Internal error XFS_WANT_CORRUPTED_RETURN at line 431 of file fs/xfs/libxfs/xfs_alloc.c. Caller xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 488.915375] CPU: 1 PID: 2818 Comm: kworker/u4:3 Not tainted 4.14.303-syzkaller #0 [ 488.922988] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023 [ 488.932340] Workqueue: writeback wb_workfn (flush-7:1) [ 488.937593] Call Trace: [ 488.940156] dump_stack+0x1b2/0x281 [ 488.943763] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 488.949021] xfs_error_report+0x98/0xa0 [ 488.952980] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 488.958238] xfs_alloc_fixup_trees+0x425/0x4f0 [ 488.962794] ? xfs_alloc_update+0x90/0x90 [ 488.966921] ? xfs_btree_rec_offset.isra.0+0x3b/0xa0 [ 488.972006] ? xfs_alloc_compute_diff+0x23c/0x3d0 [ 488.976825] xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 488.981908] ? xfs_alloc_fix_freelist+0x685/0xeb0 [ 488.986729] ? xfs_alloc_ag_vextent_size+0x1ea0/0x1ea0 [ 488.991988] ? xfs_alloc_read_agf+0xb10/0xb10 [ 488.996466] xfs_alloc_ag_vextent+0x579/0x750 [ 489.000932] ? xfs_perag_get+0x116/0x410 [ 489.004966] ? xfs_alloc_vextent+0x470/0x2010 [ 489.009435] xfs_alloc_vextent+0x10b0/0x2010 [ 489.013822] xfs_bmap_btalloc+0x9e5/0x1b20 [ 489.018033] ? xfs_bmap_adjacent+0x1480/0x1480 [ 489.022590] ? ret_from_fork+0x24/0x30 [ 489.026472] ? __xfs_bmbt_get_all+0x16/0x100 [ 489.030863] xfs_bmap_alloc+0x107/0x160 [ 489.034812] xfs_bmapi_write+0xa49/0x1d00 [ 489.038938] ? xfs_bmapi_reserve_delalloc+0x7c0/0x7c0 [ 489.044102] ? trace_hardirqs_on+0x10/0x10 [ 489.048325] ? xfs_iext_get_ext+0xeb/0x200 [ 489.052541] ? xfs_iext_idx_to_irec+0x340/0x340 [ 489.057195] ? xfs_bmap_last_extent+0x1d0/0x1d0 [ 489.061847] xfs_iomap_write_allocate+0x42b/0xa30 [ 489.066683] ? xfs_file_iomap_begin+0x1ed0/0x1ed0 [ 489.071506] ? xfs_iunlock+0x248/0x3b0 [ 489.075373] ? rcu_read_lock_sched_held+0x16c/0x1d0 [ 489.080364] ? xfs_iunlock+0x21a/0x3b0 [ 489.084225] xfs_map_blocks+0x548/0x940 [ 489.088186] ? xfs_vm_set_page_dirty+0x610/0x610 [ 489.092924] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 489.098348] xfs_do_writepage+0x422/0x13d0 [ 489.102564] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 489.106873] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 489.112305] write_cache_pages+0x505/0xd20 [ 489.116517] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 489.120814] ? clear_page_dirty_for_io+0xb80/0xb80 [ 489.125735] ? trace_hardirqs_on+0x10/0x10 [ 489.129953] xfs_vm_writepages+0x258/0x340 [ 489.134165] ? xfs_vm_writepage+0xd0/0xd0 [ 489.138291] ? xfs_vm_writepage+0xd0/0xd0 [ 489.142414] do_writepages+0xc3/0x240 [ 489.146201] ? page_writeback_cpu_online+0x10/0x10 [ 489.151114] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 489.156543] __writeback_single_inode+0xda/0x1010 [ 489.161361] writeback_sb_inodes+0x48b/0xd30 [ 489.165761] ? wbc_detach_inode+0x780/0x780 [ 489.170066] ? queue_io+0x400/0x5a0 [ 489.173667] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 489.179093] wb_writeback+0x243/0xb80 [ 489.182871] ? writeback_inodes_wb.constprop.0+0x1a0/0x1a0 [ 489.188479] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 489.193913] wb_workfn+0x2bd/0xf50 [ 489.197428] ? process_one_work+0x6c4/0x14a0 [ 489.201811] ? inode_wait_for_writeback+0x30/0x30 [ 489.206638] ? lock_acquire+0x170/0x3f0 [ 489.210593] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 489.216025] process_one_work+0x793/0x14a0 [ 489.220254] ? work_busy+0x320/0x320 [ 489.223947] ? worker_thread+0x158/0xff0 [ 489.227989] ? _raw_spin_unlock_irq+0x24/0x80 [ 489.232466] worker_thread+0x5cc/0xff0 [ 489.236331] ? rescuer_thread+0xc80/0xc80 [ 489.240455] kthread+0x30d/0x420 [ 489.243796] ? kthread_create_on_node+0xd0/0xd0 [ 489.248448] ret_from_fork+0x24/0x30 [ 489.252793] XFS (loop1): page discard on page ffffea000109eac0, inode 0x29, offset 1007616. [ 489.261687] XFS (loop1): Internal error XFS_WANT_CORRUPTED_RETURN at line 431 of file fs/xfs/libxfs/xfs_alloc.c. Caller xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 489.276220] CPU: 1 PID: 2818 Comm: kworker/u4:3 Not tainted 4.14.303-syzkaller #0 [ 489.283825] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023 [ 489.293162] Workqueue: writeback wb_workfn (flush-7:1) [ 489.298416] Call Trace: [ 489.300980] dump_stack+0x1b2/0x281 [ 489.304583] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 489.309833] xfs_error_report+0x98/0xa0 [ 489.313783] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 489.319035] xfs_alloc_fixup_trees+0x425/0x4f0 [ 489.323595] ? xfs_alloc_update+0x90/0x90 [ 489.327722] ? xfs_btree_rec_offset.isra.0+0x3b/0xa0 [ 489.332806] ? xfs_alloc_compute_diff+0x23c/0x3d0 [ 489.337625] xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 489.342707] ? xfs_alloc_fix_freelist+0x685/0xeb0 [ 489.347533] ? xfs_alloc_ag_vextent_size+0x1ea0/0x1ea0 [ 489.352792] ? xfs_alloc_read_agf+0xb10/0xb10 [ 489.357271] xfs_alloc_ag_vextent+0x579/0x750 [ 489.361742] ? xfs_perag_get+0x116/0x410 [ 489.365782] ? xfs_alloc_vextent+0x470/0x2010 [ 489.370257] xfs_alloc_vextent+0x10b0/0x2010 [ 489.374643] xfs_bmap_btalloc+0x9e5/0x1b20 [ 489.378860] ? xfs_bmap_adjacent+0x1480/0x1480 [ 489.383414] ? ret_from_fork+0x24/0x30 [ 489.387296] ? __xfs_bmbt_get_all+0x16/0x100 [ 489.391689] xfs_bmap_alloc+0x107/0x160 [ 489.395645] xfs_bmapi_write+0xa49/0x1d00 [ 489.399776] ? xfs_bmapi_reserve_delalloc+0x7c0/0x7c0 [ 489.404938] ? trace_hardirqs_on+0x10/0x10 [ 489.409155] ? xfs_iext_get_ext+0xeb/0x200 [ 489.413364] ? xfs_iext_idx_to_irec+0x340/0x340 [ 489.418013] ? xfs_bmap_last_extent+0x1d0/0x1d0 [ 489.422662] xfs_iomap_write_allocate+0x42b/0xa30 [ 489.427498] ? xfs_file_iomap_begin+0x1ed0/0x1ed0 [ 489.432326] ? xfs_iunlock+0x248/0x3b0 [ 489.436196] ? rcu_read_lock_sched_held+0x16c/0x1d0 [ 489.441184] ? xfs_iunlock+0x21a/0x3b0 [ 489.445047] xfs_map_blocks+0x548/0x940 [ 489.449005] ? xfs_vm_set_page_dirty+0x610/0x610 [ 489.453743] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 489.459169] xfs_do_writepage+0x422/0x13d0 [ 489.463383] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 489.467692] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 489.473124] write_cache_pages+0x505/0xd20 [ 489.477336] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 489.481635] ? clear_page_dirty_for_io+0xb80/0xb80 [ 489.486554] ? trace_hardirqs_on+0x10/0x10 [ 489.490771] xfs_vm_writepages+0x258/0x340 [ 489.494981] ? xfs_vm_writepage+0xd0/0xd0 [ 489.499106] ? xfs_vm_writepage+0xd0/0xd0 [ 489.503227] do_writepages+0xc3/0x240 [ 489.507012] ? page_writeback_cpu_online+0x10/0x10 [ 489.511925] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 489.517350] __writeback_single_inode+0xda/0x1010 [ 489.522168] writeback_sb_inodes+0x48b/0xd30 [ 489.526566] ? wbc_detach_inode+0x780/0x780 [ 489.530871] ? queue_io+0x400/0x5a0 [ 489.534472] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 489.539898] wb_writeback+0x243/0xb80 [ 489.543675] ? writeback_inodes_wb.constprop.0+0x1a0/0x1a0 [ 489.549277] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 489.554704] wb_workfn+0x2bd/0xf50 [ 489.558222] ? process_one_work+0x6c4/0x14a0 [ 489.562604] ? inode_wait_for_writeback+0x30/0x30 [ 489.567453] ? lock_acquire+0x170/0x3f0 [ 489.571411] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 489.576838] process_one_work+0x793/0x14a0 [ 489.581051] ? work_busy+0x320/0x320 [ 489.584738] ? worker_thread+0x158/0xff0 [ 489.588783] ? _raw_spin_unlock_irq+0x24/0x80 [ 489.593263] worker_thread+0x5cc/0xff0 [ 489.597131] ? rescuer_thread+0xc80/0xc80 [ 489.601252] kthread+0x30d/0x420 [ 489.604592] ? kthread_create_on_node+0xd0/0xd0 [ 489.609239] ret_from_fork+0x24/0x30 [ 489.613527] XFS (loop1): page discard on page ffffea0001274300, inode 0x29, offset 1011712. [ 489.622406] XFS (loop1): Internal error XFS_WANT_CORRUPTED_RETURN at line 431 of file fs/xfs/libxfs/xfs_alloc.c. Caller xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 489.636950] CPU: 1 PID: 2818 Comm: kworker/u4:3 Not tainted 4.14.303-syzkaller #0 [ 489.644567] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023 [ 489.653917] Workqueue: writeback wb_workfn (flush-7:1) [ 489.659171] Call Trace: [ 489.661735] dump_stack+0x1b2/0x281 [ 489.665340] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 489.670597] xfs_error_report+0x98/0xa0 [ 489.674547] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 489.679799] xfs_alloc_fixup_trees+0x425/0x4f0 [ 489.684359] ? xfs_alloc_update+0x90/0x90 [ 489.688487] ? xfs_btree_rec_offset.isra.0+0x3b/0xa0 [ 489.693575] ? xfs_alloc_compute_diff+0x23c/0x3d0 [ 489.698394] xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 489.703475] ? xfs_alloc_fix_freelist+0x685/0xeb0 [ 489.708298] ? xfs_alloc_ag_vextent_size+0x1ea0/0x1ea0 [ 489.713555] ? xfs_alloc_read_agf+0xb10/0xb10 [ 489.718033] xfs_alloc_ag_vextent+0x579/0x750 [ 489.722504] ? xfs_perag_get+0x116/0x410 [ 489.726546] ? xfs_alloc_vextent+0x470/0x2010 [ 489.731023] xfs_alloc_vextent+0x10b0/0x2010 [ 489.735413] xfs_bmap_btalloc+0x9e5/0x1b20 [ 489.739625] ? xfs_bmap_adjacent+0x1480/0x1480 [ 489.744180] ? ret_from_fork+0x24/0x30 [ 489.748063] ? __xfs_bmbt_get_all+0x16/0x100 [ 489.752454] xfs_bmap_alloc+0x107/0x160 [ 489.756406] xfs_bmapi_write+0xa49/0x1d00 [ 489.760534] ? xfs_bmapi_reserve_delalloc+0x7c0/0x7c0 [ 489.765703] ? trace_hardirqs_on+0x10/0x10 [ 489.769921] ? xfs_iext_get_ext+0xeb/0x200 [ 489.774133] ? xfs_iext_idx_to_irec+0x340/0x340 [ 489.778781] ? xfs_bmap_last_extent+0x1d0/0x1d0 [ 489.783431] xfs_iomap_write_allocate+0x42b/0xa30 [ 489.788266] ? xfs_file_iomap_begin+0x1ed0/0x1ed0 [ 489.793091] ? xfs_iunlock+0x248/0x3b0 [ 489.796961] ? rcu_read_lock_sched_held+0x16c/0x1d0 [ 489.801956] ? xfs_iunlock+0x21a/0x3b0 [ 489.805839] xfs_map_blocks+0x548/0x940 [ 489.809799] ? xfs_vm_set_page_dirty+0x610/0x610 [ 489.814533] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 489.819957] xfs_do_writepage+0x422/0x13d0 [ 489.824170] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 489.828477] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 489.833914] write_cache_pages+0x505/0xd20 [ 489.838129] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 489.842429] ? clear_page_dirty_for_io+0xb80/0xb80 [ 489.847356] ? trace_hardirqs_on+0x10/0x10 [ 489.851581] xfs_vm_writepages+0x258/0x340 [ 489.855802] ? xfs_vm_writepage+0xd0/0xd0 [ 489.859940] ? xfs_vm_writepage+0xd0/0xd0 [ 489.864070] do_writepages+0xc3/0x240 [ 489.867860] ? page_writeback_cpu_online+0x10/0x10 [ 489.872774] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 489.878199] __writeback_single_inode+0xda/0x1010 [ 489.883021] writeback_sb_inodes+0x48b/0xd30 [ 489.887416] ? wbc_detach_inode+0x780/0x780 [ 489.891724] ? queue_io+0x400/0x5a0 [ 489.895324] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 489.900749] wb_writeback+0x243/0xb80 [ 489.904544] ? writeback_inodes_wb.constprop.0+0x1a0/0x1a0 [ 489.910155] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 489.915589] wb_workfn+0x2bd/0xf50 [ 489.919118] ? process_one_work+0x6c4/0x14a0 [ 489.923502] ? inode_wait_for_writeback+0x30/0x30 [ 489.928330] ? lock_acquire+0x170/0x3f0 [ 489.932289] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 489.937722] process_one_work+0x793/0x14a0 [ 489.941937] ? work_busy+0x320/0x320 [ 489.945639] ? worker_thread+0x158/0xff0 [ 489.949684] ? _raw_spin_unlock_irq+0x24/0x80 [ 489.954162] worker_thread+0x5cc/0xff0 [ 489.958028] ? rescuer_thread+0xc80/0xc80 [ 489.962154] kthread+0x30d/0x420 [ 489.965500] ? kthread_create_on_node+0xd0/0xd0 [ 489.970155] ret_from_fork+0x24/0x30 [ 489.974597] XFS (loop1): page discard on page ffffea0001274340, inode 0x29, offset 1015808. [ 489.983513] XFS (loop1): Internal error XFS_WANT_CORRUPTED_RETURN at line 431 of file fs/xfs/libxfs/xfs_alloc.c. Caller xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 489.998102] CPU: 1 PID: 2818 Comm: kworker/u4:3 Not tainted 4.14.303-syzkaller #0 [ 490.005717] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023 [ 490.015066] Workqueue: writeback wb_workfn (flush-7:1) [ 490.020325] Call Trace: [ 490.022892] dump_stack+0x1b2/0x281 [ 490.026504] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 490.032070] xfs_error_report+0x98/0xa0 [ 490.036022] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 490.041273] xfs_alloc_fixup_trees+0x425/0x4f0 [ 490.045836] ? xfs_alloc_update+0x90/0x90 [ 490.049967] ? xfs_btree_rec_offset.isra.0+0x3b/0xa0 [ 490.055047] ? xfs_alloc_compute_diff+0x23c/0x3d0 [ 490.059864] xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 490.064945] ? xfs_alloc_fix_freelist+0x685/0xeb0 [ 490.069765] ? xfs_alloc_ag_vextent_size+0x1ea0/0x1ea0 [ 490.075017] ? xfs_alloc_read_agf+0xb10/0xb10 [ 490.079494] xfs_alloc_ag_vextent+0x579/0x750 [ 490.083965] ? xfs_perag_get+0x116/0x410 [ 490.088004] ? xfs_alloc_vextent+0x470/0x2010 [ 490.092483] xfs_alloc_vextent+0x10b0/0x2010 [ 490.096872] xfs_bmap_btalloc+0x9e5/0x1b20 [ 490.101088] ? xfs_bmap_adjacent+0x1480/0x1480 [ 490.105647] ? ret_from_fork+0x24/0x30 [ 490.109523] ? __xfs_bmbt_get_all+0x16/0x100 [ 490.113908] xfs_bmap_alloc+0x107/0x160 [ 490.117879] xfs_bmapi_write+0xa49/0x1d00 [ 490.122006] ? xfs_bmapi_reserve_delalloc+0x7c0/0x7c0 [ 490.127179] ? trace_hardirqs_on+0x10/0x10 [ 490.131396] ? xfs_iext_get_ext+0xeb/0x200 [ 490.135610] ? xfs_iext_idx_to_irec+0x340/0x340 [ 490.140279] ? xfs_bmap_last_extent+0x1d0/0x1d0 [ 490.144925] xfs_iomap_write_allocate+0x42b/0xa30 [ 490.149749] ? xfs_file_iomap_begin+0x1ed0/0x1ed0 [ 490.154567] ? xfs_iunlock+0x248/0x3b0 [ 490.158436] ? rcu_read_lock_sched_held+0x16c/0x1d0 [ 490.163427] ? xfs_iunlock+0x21a/0x3b0 [ 490.167298] xfs_map_blocks+0x548/0x940 [ 490.171255] ? xfs_vm_set_page_dirty+0x610/0x610 [ 490.175987] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 490.181411] xfs_do_writepage+0x422/0x13d0 [ 490.185631] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 490.189940] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 490.195385] write_cache_pages+0x505/0xd20 [ 490.199596] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 490.203893] ? clear_page_dirty_for_io+0xb80/0xb80 [ 490.208813] ? trace_hardirqs_on+0x10/0x10 [ 490.213033] xfs_vm_writepages+0x258/0x340 [ 490.217242] ? xfs_vm_writepage+0xd0/0xd0 [ 490.221370] ? xfs_vm_writepage+0xd0/0xd0 [ 490.225492] do_writepages+0xc3/0x240 [ 490.229269] ? page_writeback_cpu_online+0x10/0x10 [ 490.234197] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 490.239630] __writeback_single_inode+0xda/0x1010 [ 490.244447] writeback_sb_inodes+0x48b/0xd30 [ 490.248845] ? wbc_detach_inode+0x780/0x780 [ 490.253152] ? queue_io+0x400/0x5a0 [ 490.256764] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 490.262225] wb_writeback+0x243/0xb80 [ 490.266018] ? writeback_inodes_wb.constprop.0+0x1a0/0x1a0 [ 490.271626] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 490.277077] wb_workfn+0x2bd/0xf50 [ 490.280595] ? process_one_work+0x6c4/0x14a0 [ 490.284980] ? inode_wait_for_writeback+0x30/0x30 [ 490.289803] ? lock_acquire+0x170/0x3f0 [ 490.293753] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 490.299179] process_one_work+0x793/0x14a0 [ 490.303394] ? work_busy+0x320/0x320 [ 490.307095] ? worker_thread+0x158/0xff0 [ 490.311143] ? _raw_spin_unlock_irq+0x24/0x80 [ 490.315616] worker_thread+0x5cc/0xff0 [ 490.319500] ? rescuer_thread+0xc80/0xc80 [ 490.323641] kthread+0x30d/0x420 [ 490.326991] ? kthread_create_on_node+0xd0/0xd0 [ 490.331664] ret_from_fork+0x24/0x30 [ 490.335919] XFS (loop1): page discard on page ffffea0001092780, inode 0x29, offset 1019904. [ 490.344810] XFS (loop1): Internal error XFS_WANT_CORRUPTED_RETURN at line 431 of file fs/xfs/libxfs/xfs_alloc.c. Caller xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 490.359359] CPU: 1 PID: 2818 Comm: kworker/u4:3 Not tainted 4.14.303-syzkaller #0 [ 490.366968] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023 [ 490.376321] Workqueue: writeback wb_workfn (flush-7:1) [ 490.381577] Call Trace: [ 490.384143] dump_stack+0x1b2/0x281 [ 490.387759] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 490.393016] xfs_error_report+0x98/0xa0 [ 490.396966] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 490.402250] xfs_alloc_fixup_trees+0x425/0x4f0 [ 490.406817] ? xfs_alloc_update+0x90/0x90 [ 490.410964] ? xfs_btree_rec_offset.isra.0+0x3b/0xa0 [ 490.416042] ? xfs_alloc_compute_diff+0x23c/0x3d0 [ 490.420887] xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 490.425979] ? xfs_alloc_fix_freelist+0x685/0xeb0 [ 490.430803] ? xfs_alloc_ag_vextent_size+0x1ea0/0x1ea0 [ 490.436059] ? xfs_alloc_read_agf+0xb10/0xb10 [ 490.440537] xfs_alloc_ag_vextent+0x579/0x750 [ 490.445007] ? xfs_perag_get+0x116/0x410 [ 490.449050] ? xfs_alloc_vextent+0x470/0x2010 [ 490.453541] xfs_alloc_vextent+0x10b0/0x2010 [ 490.457931] xfs_bmap_btalloc+0x9e5/0x1b20 [ 490.462145] ? xfs_bmap_adjacent+0x1480/0x1480 [ 490.466708] ? ret_from_fork+0x24/0x30 [ 490.470583] ? __xfs_bmbt_get_all+0x16/0x100 [ 490.474970] xfs_bmap_alloc+0x107/0x160 [ 490.478922] xfs_bmapi_write+0xa49/0x1d00 [ 490.483049] ? xfs_bmapi_reserve_delalloc+0x7c0/0x7c0 [ 490.488219] ? trace_hardirqs_on+0x10/0x10 [ 490.492439] ? xfs_iext_get_ext+0xeb/0x200 [ 490.496647] ? xfs_iext_idx_to_irec+0x340/0x340 [ 490.501297] ? xfs_bmap_last_extent+0x1d0/0x1d0 [ 490.505955] xfs_iomap_write_allocate+0x42b/0xa30 [ 490.510785] ? xfs_file_iomap_begin+0x1ed0/0x1ed0 [ 490.515603] ? xfs_iunlock+0x248/0x3b0 [ 490.519471] ? rcu_read_lock_sched_held+0x16c/0x1d0 [ 490.524460] ? xfs_iunlock+0x21a/0x3b0 [ 490.528332] xfs_map_blocks+0x548/0x940 [ 490.532293] ? xfs_vm_set_page_dirty+0x610/0x610 [ 490.537028] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 490.542452] xfs_do_writepage+0x422/0x13d0 [ 490.546673] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 490.550981] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 490.556403] write_cache_pages+0x505/0xd20 [ 490.560612] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 490.564909] ? clear_page_dirty_for_io+0xb80/0xb80 [ 490.569819] ? trace_hardirqs_on+0x10/0x10 [ 490.574031] xfs_vm_writepages+0x258/0x340 [ 490.578249] ? xfs_vm_writepage+0xd0/0xd0 [ 490.582377] ? xfs_vm_writepage+0xd0/0xd0 [ 490.586504] do_writepages+0xc3/0x240 [ 490.590288] ? page_writeback_cpu_online+0x10/0x10 [ 490.595198] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 490.600624] __writeback_single_inode+0xda/0x1010 [ 490.605441] writeback_sb_inodes+0x48b/0xd30 [ 490.609852] ? wbc_detach_inode+0x780/0x780 [ 490.614150] ? queue_io+0x400/0x5a0 [ 490.617754] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 490.623178] wb_writeback+0x243/0xb80 [ 490.626967] ? writeback_inodes_wb.constprop.0+0x1a0/0x1a0 [ 490.632576] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 490.638002] wb_workfn+0x2bd/0xf50 [ 490.641521] ? process_one_work+0x6c4/0x14a0 [ 490.645911] ? inode_wait_for_writeback+0x30/0x30 [ 490.650735] ? lock_acquire+0x170/0x3f0 [ 490.654686] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 490.660119] process_one_work+0x793/0x14a0 [ 490.664331] ? work_busy+0x320/0x320 [ 490.668023] ? worker_thread+0x158/0xff0 [ 490.672069] ? _raw_spin_unlock_irq+0x24/0x80 [ 490.676540] worker_thread+0x5cc/0xff0 [ 490.680405] ? rescuer_thread+0xc80/0xc80 [ 490.684532] kthread+0x30d/0x420 [ 490.687887] ? kthread_create_on_node+0xd0/0xd0 [ 490.692555] ret_from_fork+0x24/0x30 [ 490.697771] XFS (loop1): page discard on page ffffea00010927c0, inode 0x29, offset 1024000. [ 490.706676] XFS (loop1): Internal error XFS_WANT_CORRUPTED_RETURN at line 431 of file fs/xfs/libxfs/xfs_alloc.c. Caller xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 490.721232] CPU: 1 PID: 2818 Comm: kworker/u4:3 Not tainted 4.14.303-syzkaller #0 [ 490.728839] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023 [ 490.738185] Workqueue: writeback wb_workfn (flush-7:1) [ 490.743437] Call Trace: [ 490.746010] dump_stack+0x1b2/0x281 [ 490.749620] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 490.754871] xfs_error_report+0x98/0xa0 [ 490.758827] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 490.764084] xfs_alloc_fixup_trees+0x425/0x4f0 [ 490.768652] ? xfs_alloc_update+0x90/0x90 [ 490.772784] ? xfs_btree_rec_offset.isra.0+0x3b/0xa0 [ 490.777862] ? xfs_alloc_compute_diff+0x23c/0x3d0 [ 490.782679] xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 490.787772] ? xfs_alloc_fix_freelist+0x685/0xeb0 [ 490.792597] ? xfs_alloc_ag_vextent_size+0x1ea0/0x1ea0 [ 490.797850] ? xfs_alloc_read_agf+0xb10/0xb10 [ 490.802344] xfs_alloc_ag_vextent+0x579/0x750 [ 490.806820] ? xfs_perag_get+0x116/0x410 [ 490.810862] ? xfs_alloc_vextent+0x470/0x2010 [ 490.815332] xfs_alloc_vextent+0x10b0/0x2010 [ 490.819724] xfs_bmap_btalloc+0x9e5/0x1b20 [ 490.823937] ? xfs_bmap_adjacent+0x1480/0x1480 [ 490.828503] ? ret_from_fork+0x24/0x30 [ 490.832379] ? __xfs_bmbt_get_all+0x16/0x100 [ 490.836761] xfs_bmap_alloc+0x107/0x160 [ 490.840710] xfs_bmapi_write+0xa49/0x1d00 [ 490.844841] ? xfs_bmapi_reserve_delalloc+0x7c0/0x7c0 [ 490.850025] ? trace_hardirqs_on+0x10/0x10 [ 490.854236] ? xfs_iext_get_ext+0xeb/0x200 [ 490.858446] ? xfs_iext_idx_to_irec+0x340/0x340 [ 490.863097] ? xfs_bmap_last_extent+0x1d0/0x1d0 [ 490.867755] xfs_iomap_write_allocate+0x42b/0xa30 [ 490.872599] ? xfs_file_iomap_begin+0x1ed0/0x1ed0 [ 490.877419] ? xfs_iunlock+0x248/0x3b0 [ 490.881288] ? rcu_read_lock_sched_held+0x16c/0x1d0 [ 490.886282] ? xfs_iunlock+0x21a/0x3b0 [ 490.890151] xfs_map_blocks+0x548/0x940 [ 490.894103] ? xfs_vm_set_page_dirty+0x610/0x610 [ 490.898834] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 490.904277] xfs_do_writepage+0x422/0x13d0 [ 490.908499] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 490.912806] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 490.918230] write_cache_pages+0x505/0xd20 [ 490.922441] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 490.926750] ? clear_page_dirty_for_io+0xb80/0xb80 [ 490.931665] ? trace_hardirqs_on+0x10/0x10 [ 490.935875] xfs_vm_writepages+0x258/0x340 [ 490.940085] ? xfs_vm_writepage+0xd0/0xd0 [ 490.944213] ? xfs_vm_writepage+0xd0/0xd0 [ 490.948338] do_writepages+0xc3/0x240 [ 490.952123] ? page_writeback_cpu_online+0x10/0x10 [ 490.957031] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 490.962457] __writeback_single_inode+0xda/0x1010 [ 490.967284] writeback_sb_inodes+0x48b/0xd30 [ 490.971675] ? wbc_detach_inode+0x780/0x780 [ 490.975983] ? queue_io+0x400/0x5a0 [ 490.979594] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 490.985020] wb_writeback+0x243/0xb80 [ 490.988808] ? writeback_inodes_wb.constprop.0+0x1a0/0x1a0 [ 490.994418] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 490.999842] wb_workfn+0x2bd/0xf50 [ 491.003359] ? process_one_work+0x6c4/0x14a0 [ 491.007747] ? inode_wait_for_writeback+0x30/0x30 [ 491.012570] ? lock_acquire+0x170/0x3f0 [ 491.016521] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 491.021948] process_one_work+0x793/0x14a0 [ 491.026171] ? work_busy+0x320/0x320 [ 491.029866] ? worker_thread+0x158/0xff0 [ 491.033907] ? _raw_spin_unlock_irq+0x24/0x80 [ 491.038380] worker_thread+0x5cc/0xff0 [ 491.042245] ? rescuer_thread+0xc80/0xc80 [ 491.046371] kthread+0x30d/0x420 [ 491.049737] ? kthread_create_on_node+0xd0/0xd0 [ 491.054379] ret_from_fork+0x24/0x30 [ 491.058625] XFS (loop1): page discard on page ffffea0001272680, inode 0x29, offset 1028096. [ 491.067533] XFS (loop1): Internal error XFS_WANT_CORRUPTED_RETURN at line 431 of file fs/xfs/libxfs/xfs_alloc.c. Caller xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 491.082080] CPU: 1 PID: 2818 Comm: kworker/u4:3 Not tainted 4.14.303-syzkaller #0 [ 491.089679] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023 [ 491.099016] Workqueue: writeback wb_workfn (flush-7:1) [ 491.104271] Call Trace: [ 491.106836] dump_stack+0x1b2/0x281 [ 491.110439] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 491.115697] xfs_error_report+0x98/0xa0 [ 491.119651] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 491.124930] xfs_alloc_fixup_trees+0x425/0x4f0 [ 491.129487] ? xfs_alloc_update+0x90/0x90 [ 491.133610] ? xfs_btree_rec_offset.isra.0+0x3b/0xa0 [ 491.138686] ? xfs_alloc_compute_diff+0x23c/0x3d0 [ 491.143501] xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 491.148584] ? xfs_alloc_fix_freelist+0x685/0xeb0 [ 491.153399] ? xfs_alloc_ag_vextent_size+0x1ea0/0x1ea0 [ 491.158661] ? xfs_alloc_read_agf+0xb10/0xb10 [ 491.163146] xfs_alloc_ag_vextent+0x579/0x750 [ 491.167616] ? xfs_perag_get+0x116/0x410 [ 491.171652] ? xfs_alloc_vextent+0x470/0x2010 [ 491.176129] xfs_alloc_vextent+0x10b0/0x2010 [ 491.180525] xfs_bmap_btalloc+0x9e5/0x1b20 [ 491.184740] ? xfs_bmap_adjacent+0x1480/0x1480 [ 491.189296] ? ret_from_fork+0x24/0x30 [ 491.193165] ? __xfs_bmbt_get_all+0x16/0x100 [ 491.197557] xfs_bmap_alloc+0x107/0x160 [ 491.201512] xfs_bmapi_write+0xa49/0x1d00 [ 491.205647] ? xfs_bmapi_reserve_delalloc+0x7c0/0x7c0 [ 491.210817] ? trace_hardirqs_on+0x10/0x10 [ 491.215031] ? xfs_iext_get_ext+0xeb/0x200 [ 491.219252] ? xfs_iext_idx_to_irec+0x340/0x340 [ 491.223908] ? xfs_bmap_last_extent+0x1d0/0x1d0 [ 491.228555] xfs_iomap_write_allocate+0x42b/0xa30 [ 491.233377] ? xfs_file_iomap_begin+0x1ed0/0x1ed0 [ 491.238201] ? xfs_iunlock+0x248/0x3b0 [ 491.242078] ? rcu_read_lock_sched_held+0x16c/0x1d0 [ 491.247068] ? xfs_iunlock+0x21a/0x3b0 [ 491.250931] xfs_map_blocks+0x548/0x940 [ 491.254897] ? xfs_vm_set_page_dirty+0x610/0x610 [ 491.259626] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 491.265057] xfs_do_writepage+0x422/0x13d0 [ 491.269270] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 491.273568] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 491.278999] write_cache_pages+0x505/0xd20 [ 491.283213] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 491.287512] ? clear_page_dirty_for_io+0xb80/0xb80 [ 491.292421] ? trace_hardirqs_on+0x10/0x10 [ 491.296637] xfs_vm_writepages+0x258/0x340 [ 491.300858] ? xfs_vm_writepage+0xd0/0xd0 [ 491.304995] ? xfs_vm_writepage+0xd0/0xd0 [ 491.309116] do_writepages+0xc3/0x240 [ 491.312892] ? page_writeback_cpu_online+0x10/0x10 [ 491.317808] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 491.323262] __writeback_single_inode+0xda/0x1010 [ 491.328080] writeback_sb_inodes+0x48b/0xd30 [ 491.332465] ? wbc_detach_inode+0x780/0x780 [ 491.336774] ? queue_io+0x400/0x5a0 [ 491.340384] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 491.345817] wb_writeback+0x243/0xb80 [ 491.349602] ? writeback_inodes_wb.constprop.0+0x1a0/0x1a0 [ 491.355208] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 491.360634] wb_workfn+0x2bd/0xf50 [ 491.364167] ? process_one_work+0x6c4/0x14a0 [ 491.368550] ? inode_wait_for_writeback+0x30/0x30 [ 491.373368] ? lock_acquire+0x170/0x3f0 [ 491.377327] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 491.382761] process_one_work+0x793/0x14a0 [ 491.386974] ? work_busy+0x320/0x320 [ 491.390661] ? worker_thread+0x158/0xff0 [ 491.394696] ? _raw_spin_unlock_irq+0x24/0x80 [ 491.399165] worker_thread+0x5cc/0xff0 [ 491.403035] ? rescuer_thread+0xc80/0xc80 [ 491.407157] kthread+0x30d/0x420 [ 491.410500] ? kthread_create_on_node+0xd0/0xd0 [ 491.415146] ret_from_fork+0x24/0x30 [ 491.419225] XFS (loop1): page discard on page ffffea00012726c0, inode 0x29, offset 1032192. [ 491.428123] XFS (loop1): Internal error XFS_WANT_CORRUPTED_RETURN at line 431 of file fs/xfs/libxfs/xfs_alloc.c. Caller xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 491.442675] CPU: 1 PID: 2818 Comm: kworker/u4:3 Not tainted 4.14.303-syzkaller #0 [ 491.450292] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023 [ 491.459638] Workqueue: writeback wb_workfn (flush-7:1) [ 491.464893] Call Trace: [ 491.467458] dump_stack+0x1b2/0x281 [ 491.471064] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 491.476320] xfs_error_report+0x98/0xa0 [ 491.480277] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 491.485557] xfs_alloc_fixup_trees+0x425/0x4f0 [ 491.490125] ? xfs_alloc_update+0x90/0x90 [ 491.494267] ? xfs_btree_rec_offset.isra.0+0x3b/0xa0 [ 491.499347] ? xfs_alloc_compute_diff+0x23c/0x3d0 [ 491.504165] xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 491.509245] ? xfs_alloc_fix_freelist+0x685/0xeb0 [ 491.514062] ? xfs_alloc_ag_vextent_size+0x1ea0/0x1ea0 [ 491.519315] ? xfs_alloc_read_agf+0xb10/0xb10 [ 491.523794] xfs_alloc_ag_vextent+0x579/0x750 [ 491.528261] ? xfs_perag_get+0x116/0x410 [ 491.532294] ? xfs_alloc_vextent+0x470/0x2010 [ 491.536772] xfs_alloc_vextent+0x10b0/0x2010 [ 491.541166] xfs_bmap_btalloc+0x9e5/0x1b20 [ 491.545381] ? xfs_bmap_adjacent+0x1480/0x1480 [ 491.549940] ? ret_from_fork+0x24/0x30 [ 491.553831] ? __xfs_bmbt_get_all+0x16/0x100 [ 491.558218] xfs_bmap_alloc+0x107/0x160 [ 491.562167] xfs_bmapi_write+0xa49/0x1d00 [ 491.566304] ? xfs_bmapi_reserve_delalloc+0x7c0/0x7c0 [ 491.571478] ? trace_hardirqs_on+0x10/0x10 [ 491.575702] ? xfs_iext_get_ext+0xeb/0x200 [ 491.579918] ? xfs_iext_idx_to_irec+0x340/0x340 [ 491.584568] ? xfs_bmap_last_extent+0x1d0/0x1d0 [ 491.589217] xfs_iomap_write_allocate+0x42b/0xa30 [ 491.594041] ? xfs_file_iomap_begin+0x1ed0/0x1ed0 [ 491.598857] ? xfs_iunlock+0x248/0x3b0 [ 491.602727] ? rcu_read_lock_sched_held+0x16c/0x1d0 [ 491.607717] ? xfs_iunlock+0x21a/0x3b0 [ 491.611580] xfs_map_blocks+0x548/0x940 [ 491.615542] ? xfs_vm_set_page_dirty+0x610/0x610 [ 491.620282] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 491.625719] xfs_do_writepage+0x422/0x13d0 [ 491.629940] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 491.634237] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 491.639661] write_cache_pages+0x505/0xd20 [ 491.643874] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 491.648171] ? clear_page_dirty_for_io+0xb80/0xb80 [ 491.653081] ? trace_hardirqs_on+0x10/0x10 [ 491.657300] xfs_vm_writepages+0x258/0x340 [ 491.661514] ? xfs_vm_writepage+0xd0/0xd0 [ 491.665649] ? xfs_vm_writepage+0xd0/0xd0 [ 491.669777] do_writepages+0xc3/0x240 [ 491.673552] ? page_writeback_cpu_online+0x10/0x10 [ 491.678462] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 491.683889] __writeback_single_inode+0xda/0x1010 [ 491.688707] writeback_sb_inodes+0x48b/0xd30 [ 491.693093] ? wbc_detach_inode+0x780/0x780 [ 491.697404] ? queue_io+0x400/0x5a0 [ 491.701018] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 491.706456] wb_writeback+0x243/0xb80 [ 491.710242] ? writeback_inodes_wb.constprop.0+0x1a0/0x1a0 [ 491.715857] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 491.721291] wb_workfn+0x2bd/0xf50 [ 491.724806] ? process_one_work+0x6c4/0x14a0 [ 491.729192] ? inode_wait_for_writeback+0x30/0x30 [ 491.734015] ? lock_acquire+0x170/0x3f0 [ 491.737968] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 491.743396] process_one_work+0x793/0x14a0 [ 491.747626] ? work_busy+0x320/0x320 [ 491.751313] ? worker_thread+0x158/0xff0 [ 491.755350] ? _raw_spin_unlock_irq+0x24/0x80 [ 491.759820] worker_thread+0x5cc/0xff0 [ 491.763687] ? rescuer_thread+0xc80/0xc80 [ 491.767814] kthread+0x30d/0x420 [ 491.771153] ? kthread_create_on_node+0xd0/0xd0 [ 491.775801] ret_from_fork+0x24/0x30 [ 491.780022] XFS (loop1): page discard on page ffffea000129d300, inode 0x29, offset 1036288. [ 491.788911] XFS (loop1): Internal error XFS_WANT_CORRUPTED_RETURN at line 431 of file fs/xfs/libxfs/xfs_alloc.c. Caller xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 491.803453] CPU: 1 PID: 2818 Comm: kworker/u4:3 Not tainted 4.14.303-syzkaller #0 [ 491.811060] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023 [ 491.820428] Workqueue: writeback wb_workfn (flush-7:1) [ 491.825696] Call Trace: [ 491.828275] dump_stack+0x1b2/0x281 [ 491.831881] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 491.837144] xfs_error_report+0x98/0xa0 [ 491.841103] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 491.846369] xfs_alloc_fixup_trees+0x425/0x4f0 [ 491.850937] ? xfs_alloc_update+0x90/0x90 [ 491.855062] ? xfs_btree_rec_offset.isra.0+0x3b/0xa0 [ 491.860141] ? xfs_alloc_compute_diff+0x23c/0x3d0 [ 491.864960] xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 491.870042] ? xfs_alloc_fix_freelist+0x685/0xeb0 [ 491.874863] ? xfs_alloc_ag_vextent_size+0x1ea0/0x1ea0 [ 491.880116] ? xfs_alloc_read_agf+0xb10/0xb10 [ 491.884594] xfs_alloc_ag_vextent+0x579/0x750 [ 491.889068] ? xfs_perag_get+0x116/0x410 [ 491.893109] ? xfs_alloc_vextent+0x470/0x2010 [ 491.897585] xfs_alloc_vextent+0x10b0/0x2010 [ 491.901982] xfs_bmap_btalloc+0x9e5/0x1b20 [ 491.906205] ? xfs_bmap_adjacent+0x1480/0x1480 [ 491.910769] ? ret_from_fork+0x24/0x30 [ 491.914641] ? __xfs_bmbt_get_all+0x16/0x100 [ 491.919032] xfs_bmap_alloc+0x107/0x160 [ 491.922987] xfs_bmapi_write+0xa49/0x1d00 [ 491.927117] ? xfs_bmapi_reserve_delalloc+0x7c0/0x7c0 [ 491.932295] ? trace_hardirqs_on+0x10/0x10 [ 491.936519] ? xfs_iext_get_ext+0xeb/0x200 [ 491.940741] ? xfs_iext_idx_to_irec+0x340/0x340 [ 491.945415] ? xfs_bmap_last_extent+0x1d0/0x1d0 [ 491.950110] xfs_iomap_write_allocate+0x42b/0xa30 [ 491.954937] ? xfs_file_iomap_begin+0x1ed0/0x1ed0 [ 491.959773] ? xfs_iunlock+0x248/0x3b0 [ 491.963662] ? rcu_read_lock_sched_held+0x16c/0x1d0 [ 491.968672] ? xfs_iunlock+0x21a/0x3b0 [ 491.972537] xfs_map_blocks+0x548/0x940 [ 491.976495] ? xfs_vm_set_page_dirty+0x610/0x610 [ 491.981248] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 491.986682] xfs_do_writepage+0x422/0x13d0 [ 491.990902] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 491.995202] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 492.000648] write_cache_pages+0x505/0xd20 [ 492.004860] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 492.009158] ? clear_page_dirty_for_io+0xb80/0xb80 [ 492.014071] ? trace_hardirqs_on+0x10/0x10 [ 492.018298] xfs_vm_writepages+0x258/0x340 [ 492.022516] ? xfs_vm_writepage+0xd0/0xd0 [ 492.026653] ? xfs_vm_writepage+0xd0/0xd0 [ 492.030781] do_writepages+0xc3/0x240 [ 492.034556] ? page_writeback_cpu_online+0x10/0x10 [ 492.039464] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 492.044896] __writeback_single_inode+0xda/0x1010 [ 492.049714] writeback_sb_inodes+0x48b/0xd30 [ 492.054101] ? wbc_detach_inode+0x780/0x780 [ 492.058424] ? queue_io+0x400/0x5a0 [ 492.062027] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 492.067468] wb_writeback+0x243/0xb80 [ 492.071256] ? writeback_inodes_wb.constprop.0+0x1a0/0x1a0 [ 492.076877] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 492.082315] wb_workfn+0x2bd/0xf50 [ 492.085852] ? process_one_work+0x6c4/0x14a0 [ 492.090249] ? inode_wait_for_writeback+0x30/0x30 [ 492.095071] ? lock_acquire+0x170/0x3f0 [ 492.099031] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 492.104468] process_one_work+0x793/0x14a0 [ 492.108694] ? work_busy+0x320/0x320 [ 492.112380] ? worker_thread+0x158/0xff0 [ 492.116427] ? _raw_spin_unlock_irq+0x24/0x80 [ 492.120907] worker_thread+0x5cc/0xff0 [ 492.124772] ? rescuer_thread+0xc80/0xc80 [ 492.128895] kthread+0x30d/0x420 [ 492.132239] ? kthread_create_on_node+0xd0/0xd0 [ 492.136888] ret_from_fork+0x24/0x30 [ 492.141557] XFS (loop1): page discard on page ffffea000129d340, inode 0x29, offset 1040384. [ 492.150464] XFS (loop1): Internal error XFS_WANT_CORRUPTED_RETURN at line 431 of file fs/xfs/libxfs/xfs_alloc.c. Caller xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 492.165017] CPU: 1 PID: 2818 Comm: kworker/u4:3 Not tainted 4.14.303-syzkaller #0 [ 492.172617] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023 [ 492.181956] Workqueue: writeback wb_workfn (flush-7:1) [ 492.187210] Call Trace: [ 492.189773] dump_stack+0x1b2/0x281 [ 492.193376] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 492.198634] xfs_error_report+0x98/0xa0 [ 492.202589] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 492.207848] xfs_alloc_fixup_trees+0x425/0x4f0 [ 492.212403] ? xfs_alloc_update+0x90/0x90 [ 492.216530] ? xfs_btree_rec_offset.isra.0+0x3b/0xa0 [ 492.221619] ? xfs_alloc_compute_diff+0x23c/0x3d0 [ 492.226437] xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 492.231517] ? xfs_alloc_fix_freelist+0x685/0xeb0 [ 492.236340] ? xfs_alloc_ag_vextent_size+0x1ea0/0x1ea0 [ 492.241599] ? xfs_alloc_read_agf+0xb10/0xb10 [ 492.246078] xfs_alloc_ag_vextent+0x579/0x750 [ 492.250549] ? xfs_perag_get+0x116/0x410 [ 492.254599] ? xfs_alloc_vextent+0x470/0x2010 [ 492.259080] xfs_alloc_vextent+0x10b0/0x2010 [ 492.263474] xfs_bmap_btalloc+0x9e5/0x1b20 [ 492.267687] ? xfs_bmap_adjacent+0x1480/0x1480 [ 492.272242] ? ret_from_fork+0x24/0x30 [ 492.276123] ? __xfs_bmbt_get_all+0x16/0x100 [ 492.280515] xfs_bmap_alloc+0x107/0x160 [ 492.284464] xfs_bmapi_write+0xa49/0x1d00 [ 492.288594] ? xfs_bmapi_reserve_delalloc+0x7c0/0x7c0 [ 492.293761] ? trace_hardirqs_on+0x10/0x10 [ 492.297984] ? xfs_iext_get_ext+0xeb/0x200 [ 492.302199] ? xfs_iext_idx_to_irec+0x340/0x340 [ 492.306850] ? xfs_bmap_last_extent+0x1d0/0x1d0 [ 492.311497] xfs_iomap_write_allocate+0x42b/0xa30 [ 492.316331] ? xfs_file_iomap_begin+0x1ed0/0x1ed0 [ 492.321156] ? xfs_iunlock+0x248/0x3b0 [ 492.325029] ? rcu_read_lock_sched_held+0x16c/0x1d0 [ 492.330020] ? xfs_iunlock+0x21a/0x3b0 [ 492.333882] xfs_map_blocks+0x548/0x940 [ 492.337843] ? xfs_vm_set_page_dirty+0x610/0x610 [ 492.342590] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 492.348025] xfs_do_writepage+0x422/0x13d0 [ 492.352238] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 492.356547] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 492.361981] write_cache_pages+0x505/0xd20 [ 492.366196] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 492.370493] ? clear_page_dirty_for_io+0xb80/0xb80 [ 492.375404] ? trace_hardirqs_on+0x10/0x10 [ 492.379619] xfs_vm_writepages+0x258/0x340 [ 492.383834] ? xfs_vm_writepage+0xd0/0xd0 [ 492.387959] ? xfs_vm_writepage+0xd0/0xd0 [ 492.392080] do_writepages+0xc3/0x240 [ 492.395863] ? page_writeback_cpu_online+0x10/0x10 [ 492.400778] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 492.406207] __writeback_single_inode+0xda/0x1010 [ 492.411026] writeback_sb_inodes+0x48b/0xd30 [ 492.415414] ? wbc_detach_inode+0x780/0x780 [ 492.419723] ? queue_io+0x400/0x5a0 [ 492.423332] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 492.428785] wb_writeback+0x243/0xb80 [ 492.432564] ? writeback_inodes_wb.constprop.0+0x1a0/0x1a0 [ 492.438176] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 492.443609] wb_workfn+0x2bd/0xf50 [ 492.447131] ? process_one_work+0x6c4/0x14a0 [ 492.451534] ? inode_wait_for_writeback+0x30/0x30 [ 492.456360] ? lock_acquire+0x170/0x3f0 [ 492.460318] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 492.465746] process_one_work+0x793/0x14a0 [ 492.469960] ? work_busy+0x320/0x320 [ 492.473647] ? worker_thread+0x158/0xff0 [ 492.477689] ? _raw_spin_unlock_irq+0x24/0x80 [ 492.482169] worker_thread+0x5cc/0xff0 [ 492.486039] ? rescuer_thread+0xc80/0xc80 [ 492.490163] kthread+0x30d/0x420 [ 492.493504] ? kthread_create_on_node+0xd0/0xd0 [ 492.498166] ret_from_fork+0x24/0x30 [ 492.502386] XFS (loop1): page discard on page ffffea00012b3700, inode 0x29, offset 1044480. [ 492.511278] XFS (loop1): Internal error XFS_WANT_CORRUPTED_RETURN at line 431 of file fs/xfs/libxfs/xfs_alloc.c. Caller xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 492.525829] CPU: 1 PID: 2818 Comm: kworker/u4:3 Not tainted 4.14.303-syzkaller #0 [ 492.533434] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023 [ 492.542773] Workqueue: writeback wb_workfn (flush-7:1) [ 492.548895] Call Trace: [ 492.551463] dump_stack+0x1b2/0x281 [ 492.555066] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 492.560317] xfs_error_report+0x98/0xa0 [ 492.564265] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 492.569515] xfs_alloc_fixup_trees+0x425/0x4f0 [ 492.574074] ? xfs_alloc_update+0x90/0x90 [ 492.578201] ? xfs_btree_rec_offset.isra.0+0x3b/0xa0 [ 492.583284] ? xfs_alloc_compute_diff+0x23c/0x3d0 [ 492.588102] xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 492.593183] ? xfs_alloc_fix_freelist+0x685/0xeb0 [ 492.598004] ? xfs_alloc_ag_vextent_size+0x1ea0/0x1ea0 [ 492.603261] ? xfs_alloc_read_agf+0xb10/0xb10 [ 492.607741] xfs_alloc_ag_vextent+0x579/0x750 [ 492.612210] ? xfs_perag_get+0x116/0x410 [ 492.616247] ? xfs_alloc_vextent+0x470/0x2010 [ 492.620741] xfs_alloc_vextent+0x10b0/0x2010 [ 492.625130] xfs_bmap_btalloc+0x9e5/0x1b20 [ 492.629344] ? xfs_bmap_adjacent+0x1480/0x1480 [ 492.633908] ? ret_from_fork+0x24/0x30 [ 492.637790] ? __xfs_bmbt_get_all+0x16/0x100 [ 492.642189] xfs_bmap_alloc+0x107/0x160 [ 492.646138] xfs_bmapi_write+0xa49/0x1d00 [ 492.650285] ? xfs_bmapi_reserve_delalloc+0x7c0/0x7c0 [ 492.655453] ? trace_hardirqs_on+0x10/0x10 [ 492.659671] ? xfs_iext_get_ext+0xeb/0x200 [ 492.663897] ? xfs_iext_idx_to_irec+0x340/0x340 [ 492.668548] ? xfs_bmap_last_extent+0x1d0/0x1d0 [ 492.673197] xfs_iomap_write_allocate+0x42b/0xa30 [ 492.678029] ? xfs_file_iomap_begin+0x1ed0/0x1ed0 [ 492.682857] ? xfs_iunlock+0x248/0x3b0 [ 492.686724] ? rcu_read_lock_sched_held+0x16c/0x1d0 [ 492.691712] ? xfs_iunlock+0x21a/0x3b0 [ 492.695582] xfs_map_blocks+0x548/0x940 [ 492.699539] ? xfs_vm_set_page_dirty+0x610/0x610 [ 492.704270] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 492.709696] xfs_do_writepage+0x422/0x13d0 [ 492.713910] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 492.718228] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 492.723665] write_cache_pages+0x505/0xd20 [ 492.727885] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 492.732193] ? clear_page_dirty_for_io+0xb80/0xb80 [ 492.737117] ? trace_hardirqs_on+0x10/0x10 [ 492.741342] xfs_vm_writepages+0x258/0x340 [ 492.745559] ? xfs_vm_writepage+0xd0/0xd0 [ 492.749688] ? xfs_vm_writepage+0xd0/0xd0 [ 492.753812] do_writepages+0xc3/0x240 [ 492.757598] ? page_writeback_cpu_online+0x10/0x10 [ 492.762538] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 492.767970] __writeback_single_inode+0xda/0x1010 [ 492.772822] writeback_sb_inodes+0x48b/0xd30 [ 492.777219] ? wbc_detach_inode+0x780/0x780 [ 492.781528] ? queue_io+0x400/0x5a0 [ 492.785130] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 492.790556] wb_writeback+0x243/0xb80 [ 492.794337] ? writeback_inodes_wb.constprop.0+0x1a0/0x1a0 [ 492.799939] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 492.805365] wb_workfn+0x2bd/0xf50 [ 492.808884] ? process_one_work+0x6c4/0x14a0 [ 492.813265] ? inode_wait_for_writeback+0x30/0x30 [ 492.818097] ? lock_acquire+0x170/0x3f0 [ 492.822053] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 492.827479] process_one_work+0x793/0x14a0 [ 492.831690] ? work_busy+0x320/0x320 [ 492.835376] ? worker_thread+0x158/0xff0 [ 492.839417] ? _raw_spin_unlock_irq+0x24/0x80 [ 492.843909] worker_thread+0x5cc/0xff0 [ 492.847792] ? rescuer_thread+0xc80/0xc80 [ 492.851925] kthread+0x30d/0x420 [ 492.855270] ? kthread_create_on_node+0xd0/0xd0 [ 492.859929] ret_from_fork+0x24/0x30 [ 492.864082] XFS (loop1): page discard on page ffffea00012b3740, inode 0x29, offset 1048576. [ 492.872987] XFS (loop1): Internal error XFS_WANT_CORRUPTED_RETURN at line 431 of file fs/xfs/libxfs/xfs_alloc.c. Caller xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 492.887524] CPU: 1 PID: 2818 Comm: kworker/u4:3 Not tainted 4.14.303-syzkaller #0 [ 492.895128] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023 [ 492.904467] Workqueue: writeback wb_workfn (flush-7:1) [ 492.909729] Call Trace: [ 492.912301] dump_stack+0x1b2/0x281 [ 492.915914] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 492.921176] xfs_error_report+0x98/0xa0 [ 492.925126] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 492.930381] xfs_alloc_fixup_trees+0x425/0x4f0 [ 492.934951] ? xfs_alloc_update+0x90/0x90 [ 492.939084] ? xfs_btree_rec_offset.isra.0+0x3b/0xa0 [ 492.944166] ? xfs_alloc_compute_diff+0x23c/0x3d0 [ 492.948985] xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 492.954088] ? xfs_alloc_fix_freelist+0x685/0xeb0 [ 492.958914] ? xfs_alloc_ag_vextent_size+0x1ea0/0x1ea0 [ 492.964194] ? xfs_alloc_read_agf+0xb10/0xb10 [ 492.968692] xfs_alloc_ag_vextent+0x579/0x750 [ 492.973161] ? xfs_perag_get+0x116/0x410 [ 492.977201] ? xfs_alloc_vextent+0x470/0x2010 [ 492.981678] xfs_alloc_vextent+0x10b0/0x2010 [ 492.986068] xfs_bmap_btalloc+0x9e5/0x1b20 [ 492.990300] ? xfs_bmap_adjacent+0x1480/0x1480 [ 492.994858] ? ret_from_fork+0x24/0x30 [ 492.998739] ? __xfs_bmbt_get_all+0x16/0x100 [ 493.003140] xfs_bmap_alloc+0x107/0x160 [ 493.007090] xfs_bmapi_write+0xa49/0x1d00 [ 493.011237] ? xfs_bmapi_reserve_delalloc+0x7c0/0x7c0 [ 493.016408] ? trace_hardirqs_on+0x10/0x10 [ 493.020627] ? xfs_iext_get_ext+0xeb/0x200 [ 493.024837] ? xfs_iext_idx_to_irec+0x340/0x340 [ 493.029486] ? xfs_bmap_last_extent+0x1d0/0x1d0 [ 493.034133] xfs_iomap_write_allocate+0x42b/0xa30 [ 493.038965] ? xfs_file_iomap_begin+0x1ed0/0x1ed0 [ 493.043786] ? xfs_iunlock+0x248/0x3b0 [ 493.047654] ? rcu_read_lock_sched_held+0x16c/0x1d0 [ 493.052643] ? xfs_iunlock+0x21a/0x3b0 [ 493.056522] xfs_map_blocks+0x548/0x940 [ 493.060493] ? xfs_vm_set_page_dirty+0x610/0x610 [ 493.065231] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 493.070655] xfs_do_writepage+0x422/0x13d0 [ 493.074872] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 493.079198] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 493.084629] write_cache_pages+0x505/0xd20 [ 493.088844] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 493.093146] ? clear_page_dirty_for_io+0xb80/0xb80 [ 493.098077] ? trace_hardirqs_on+0x10/0x10 [ 493.102297] xfs_vm_writepages+0x258/0x340 [ 493.106529] ? xfs_vm_writepage+0xd0/0xd0 [ 493.110657] ? xfs_vm_writepage+0xd0/0xd0 [ 493.114780] do_writepages+0xc3/0x240 [ 493.118568] ? page_writeback_cpu_online+0x10/0x10 [ 493.123481] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 493.128914] __writeback_single_inode+0xda/0x1010 [ 493.133738] writeback_sb_inodes+0x48b/0xd30 [ 493.138152] ? wbc_detach_inode+0x780/0x780 [ 493.142463] ? queue_io+0x400/0x5a0 [ 493.146070] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 493.151501] wb_writeback+0x243/0xb80 [ 493.155282] ? writeback_inodes_wb.constprop.0+0x1a0/0x1a0 [ 493.160889] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 493.166320] wb_workfn+0x2bd/0xf50 [ 493.169839] ? process_one_work+0x6c4/0x14a0 [ 493.174224] ? inode_wait_for_writeback+0x30/0x30 [ 493.179051] ? lock_acquire+0x170/0x3f0 [ 493.183012] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 493.188439] process_one_work+0x793/0x14a0 [ 493.192671] ? work_busy+0x320/0x320 [ 493.196366] ? worker_thread+0x158/0xff0 [ 493.200412] ? _raw_spin_unlock_irq+0x24/0x80 [ 493.204884] worker_thread+0x5cc/0xff0 [ 493.208750] ? rescuer_thread+0xc80/0xc80 [ 493.212875] kthread+0x30d/0x420 [ 493.216223] ? kthread_create_on_node+0xd0/0xd0 [ 493.220888] ret_from_fork+0x24/0x30 [ 493.225150] XFS (loop1): page discard on page ffffea00012b3500, inode 0x29, offset 1052672. [ 493.234041] XFS (loop1): Internal error XFS_WANT_CORRUPTED_RETURN at line 431 of file fs/xfs/libxfs/xfs_alloc.c. Caller xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 493.248576] CPU: 1 PID: 2818 Comm: kworker/u4:3 Not tainted 4.14.303-syzkaller #0 [ 493.256185] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023 [ 493.265533] Workqueue: writeback wb_workfn (flush-7:1) [ 493.270803] Call Trace: [ 493.273367] dump_stack+0x1b2/0x281 [ 493.276982] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 493.282280] xfs_error_report+0x98/0xa0 [ 493.286229] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 493.291484] xfs_alloc_fixup_trees+0x425/0x4f0 [ 493.296058] ? xfs_alloc_update+0x90/0x90 [ 493.300218] ? xfs_btree_rec_offset.isra.0+0x3b/0xa0 [ 493.305303] ? xfs_alloc_compute_diff+0x23c/0x3d0 [ 493.310124] xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 493.315211] ? xfs_alloc_fix_freelist+0x685/0xeb0 [ 493.320055] ? xfs_alloc_ag_vextent_size+0x1ea0/0x1ea0 [ 493.325310] ? xfs_alloc_read_agf+0xb10/0xb10 [ 493.329792] xfs_alloc_ag_vextent+0x579/0x750 [ 493.334263] ? xfs_perag_get+0x116/0x410 [ 493.338304] ? xfs_alloc_vextent+0x470/0x2010 [ 493.342786] xfs_alloc_vextent+0x10b0/0x2010 [ 493.347173] xfs_bmap_btalloc+0x9e5/0x1b20 [ 493.351385] ? xfs_bmap_adjacent+0x1480/0x1480 [ 493.355947] ? ret_from_fork+0x24/0x30 [ 493.359825] ? __xfs_bmbt_get_all+0x16/0x100 [ 493.364208] xfs_bmap_alloc+0x107/0x160 [ 493.368157] xfs_bmapi_write+0xa49/0x1d00 [ 493.372283] ? xfs_bmapi_reserve_delalloc+0x7c0/0x7c0 [ 493.377456] ? trace_hardirqs_on+0x10/0x10 [ 493.381686] ? xfs_iext_get_ext+0xeb/0x200 [ 493.385904] ? xfs_iext_idx_to_irec+0x340/0x340 [ 493.390576] ? xfs_bmap_last_extent+0x1d0/0x1d0 [ 493.395224] xfs_iomap_write_allocate+0x42b/0xa30 [ 493.400049] ? xfs_file_iomap_begin+0x1ed0/0x1ed0 [ 493.404872] ? xfs_iunlock+0x248/0x3b0 [ 493.408748] ? rcu_read_lock_sched_held+0x16c/0x1d0 [ 493.413743] ? xfs_iunlock+0x21a/0x3b0 [ 493.417615] xfs_map_blocks+0x548/0x940 [ 493.421572] ? xfs_vm_set_page_dirty+0x610/0x610 [ 493.426304] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 493.431727] xfs_do_writepage+0x422/0x13d0 [ 493.435956] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 493.440264] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 493.445689] write_cache_pages+0x505/0xd20 [ 493.449901] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 493.454198] ? clear_page_dirty_for_io+0xb80/0xb80 [ 493.459120] ? trace_hardirqs_on+0x10/0x10 [ 493.463339] xfs_vm_writepages+0x258/0x340 [ 493.467549] ? xfs_vm_writepage+0xd0/0xd0 [ 493.471676] ? xfs_vm_writepage+0xd0/0xd0 [ 493.475807] do_writepages+0xc3/0x240 [ 493.479591] ? page_writeback_cpu_online+0x10/0x10 [ 493.484499] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 493.489928] __writeback_single_inode+0xda/0x1010 [ 493.494754] writeback_sb_inodes+0x48b/0xd30 [ 493.499157] ? wbc_detach_inode+0x780/0x780 [ 493.503462] ? queue_io+0x400/0x5a0 [ 493.507064] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 493.512504] wb_writeback+0x243/0xb80 [ 493.516294] ? writeback_inodes_wb.constprop.0+0x1a0/0x1a0 [ 493.521915] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 493.527345] wb_workfn+0x2bd/0xf50 [ 493.530868] ? process_one_work+0x6c4/0x14a0 [ 493.535262] ? inode_wait_for_writeback+0x30/0x30 [ 493.540089] ? lock_acquire+0x170/0x3f0 [ 493.544049] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 493.549478] process_one_work+0x793/0x14a0 [ 493.553695] ? work_busy+0x320/0x320 [ 493.557393] ? worker_thread+0x158/0xff0 [ 493.561444] ? _raw_spin_unlock_irq+0x24/0x80 [ 493.565924] worker_thread+0x5cc/0xff0 [ 493.569796] ? rescuer_thread+0xc80/0xc80 [ 493.573925] kthread+0x30d/0x420 [ 493.577272] ? kthread_create_on_node+0xd0/0xd0 [ 493.581928] ret_from_fork+0x24/0x30 [ 493.585996] XFS (loop1): page discard on page ffffea00012b3540, inode 0x29, offset 1056768. [ 493.594867] XFS (loop1): Internal error XFS_WANT_CORRUPTED_RETURN at line 431 of file fs/xfs/libxfs/xfs_alloc.c. Caller xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 493.609413] CPU: 1 PID: 2818 Comm: kworker/u4:3 Not tainted 4.14.303-syzkaller #0 [ 493.617028] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023 [ 493.626376] Workqueue: writeback wb_workfn (flush-7:1) [ 493.631629] Call Trace: [ 493.634190] dump_stack+0x1b2/0x281 [ 493.637802] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 493.643060] xfs_error_report+0x98/0xa0 [ 493.647007] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 493.652260] xfs_alloc_fixup_trees+0x425/0x4f0 [ 493.656825] ? xfs_alloc_update+0x90/0x90 [ 493.660960] ? xfs_btree_rec_offset.isra.0+0x3b/0xa0 [ 493.666039] ? xfs_alloc_compute_diff+0x23c/0x3d0 [ 493.670859] xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 493.675951] ? xfs_alloc_fix_freelist+0x685/0xeb0 [ 493.680798] ? xfs_alloc_ag_vextent_size+0x1ea0/0x1ea0 [ 493.686053] ? xfs_alloc_read_agf+0xb10/0xb10 [ 493.690538] xfs_alloc_ag_vextent+0x579/0x750 [ 493.695012] ? xfs_perag_get+0x116/0x410 [ 493.699062] ? xfs_alloc_vextent+0x470/0x2010 [ 493.703544] xfs_alloc_vextent+0x10b0/0x2010 [ 493.707937] xfs_bmap_btalloc+0x9e5/0x1b20 [ 493.712151] ? xfs_bmap_adjacent+0x1480/0x1480 [ 493.716713] ? ret_from_fork+0x24/0x30 [ 493.720592] ? __xfs_bmbt_get_all+0x16/0x100 [ 493.724980] xfs_bmap_alloc+0x107/0x160 [ 493.728932] xfs_bmapi_write+0xa49/0x1d00 [ 493.733062] ? xfs_bmapi_reserve_delalloc+0x7c0/0x7c0 [ 493.738243] ? trace_hardirqs_on+0x10/0x10 [ 493.742478] ? xfs_iext_get_ext+0xeb/0x200 [ 493.746693] ? xfs_iext_idx_to_irec+0x340/0x340 [ 493.751352] ? xfs_bmap_last_extent+0x1d0/0x1d0 [ 493.756015] xfs_iomap_write_allocate+0x42b/0xa30 [ 493.760855] ? xfs_file_iomap_begin+0x1ed0/0x1ed0 [ 493.765672] ? xfs_iunlock+0x248/0x3b0 [ 493.769543] ? rcu_read_lock_sched_held+0x16c/0x1d0 [ 493.774534] ? xfs_iunlock+0x21a/0x3b0 [ 493.778408] xfs_map_blocks+0x548/0x940 [ 493.782367] ? xfs_vm_set_page_dirty+0x610/0x610 [ 493.787099] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 493.792531] xfs_do_writepage+0x422/0x13d0 [ 493.796754] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 493.801071] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 493.806507] write_cache_pages+0x505/0xd20 [ 493.810746] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 493.815065] ? clear_page_dirty_for_io+0xb80/0xb80 [ 493.819981] ? trace_hardirqs_on+0x10/0x10 [ 493.824208] xfs_vm_writepages+0x258/0x340 [ 493.828422] ? xfs_vm_writepage+0xd0/0xd0 [ 493.832556] ? xfs_vm_writepage+0xd0/0xd0 [ 493.836688] do_writepages+0xc3/0x240 [ 493.840476] ? page_writeback_cpu_online+0x10/0x10 [ 493.845384] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 493.850831] __writeback_single_inode+0xda/0x1010 [ 493.855660] writeback_sb_inodes+0x48b/0xd30 [ 493.860057] ? wbc_detach_inode+0x780/0x780 [ 493.864357] ? queue_io+0x400/0x5a0 [ 493.867959] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 493.873396] wb_writeback+0x243/0xb80 [ 493.877189] ? writeback_inodes_wb.constprop.0+0x1a0/0x1a0 [ 493.882804] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 493.888234] wb_workfn+0x2bd/0xf50 [ 493.891756] ? process_one_work+0x6c4/0x14a0 [ 493.896150] ? inode_wait_for_writeback+0x30/0x30 [ 493.900984] ? lock_acquire+0x170/0x3f0 [ 493.904941] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 493.910370] process_one_work+0x793/0x14a0 [ 493.914586] ? work_busy+0x320/0x320 [ 493.918280] ? worker_thread+0x158/0xff0 [ 493.922325] ? _raw_spin_unlock_irq+0x24/0x80 [ 493.926796] worker_thread+0x5cc/0xff0 [ 493.930662] ? rescuer_thread+0xc80/0xc80 [ 493.934787] kthread+0x30d/0x420 [ 493.938135] ? kthread_create_on_node+0xd0/0xd0 [ 493.942790] ret_from_fork+0x24/0x30 [ 493.946970] XFS (loop1): page discard on page ffffea000147f080, inode 0x29, offset 1060864. [ 493.955847] XFS (loop1): Internal error XFS_WANT_CORRUPTED_RETURN at line 431 of file fs/xfs/libxfs/xfs_alloc.c. Caller xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 493.970394] CPU: 1 PID: 2818 Comm: kworker/u4:3 Not tainted 4.14.303-syzkaller #0 [ 493.978001] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023 [ 493.987349] Workqueue: writeback wb_workfn (flush-7:1) [ 493.992601] Call Trace: [ 493.995164] dump_stack+0x1b2/0x281 [ 493.998778] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 494.004035] xfs_error_report+0x98/0xa0 [ 494.007984] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 494.013237] xfs_alloc_fixup_trees+0x425/0x4f0 [ 494.017806] ? xfs_alloc_update+0x90/0x90 [ 494.021938] ? xfs_btree_rec_offset.isra.0+0x3b/0xa0 [ 494.027016] ? xfs_alloc_compute_diff+0x23c/0x3d0 [ 494.031837] xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 494.036930] ? xfs_alloc_fix_freelist+0x685/0xeb0 [ 494.041755] ? xfs_alloc_ag_vextent_size+0x1ea0/0x1ea0 [ 494.047008] ? xfs_alloc_read_agf+0xb10/0xb10 [ 494.051489] xfs_alloc_ag_vextent+0x579/0x750 [ 494.055964] ? xfs_perag_get+0x116/0x410 [ 494.060006] ? xfs_alloc_vextent+0x470/0x2010 [ 494.064477] xfs_alloc_vextent+0x10b0/0x2010 [ 494.068863] xfs_bmap_btalloc+0x9e5/0x1b20 [ 494.073077] ? xfs_bmap_adjacent+0x1480/0x1480 [ 494.077638] ? ret_from_fork+0x24/0x30 [ 494.081513] ? __xfs_bmbt_get_all+0x16/0x100 [ 494.085898] xfs_bmap_alloc+0x107/0x160 [ 494.089864] xfs_bmapi_write+0xa49/0x1d00 [ 494.093992] ? xfs_bmapi_reserve_delalloc+0x7c0/0x7c0 [ 494.099169] ? trace_hardirqs_on+0x10/0x10 [ 494.103387] ? xfs_iext_get_ext+0xeb/0x200 [ 494.107596] ? xfs_iext_idx_to_irec+0x340/0x340 [ 494.112247] ? xfs_bmap_last_extent+0x1d0/0x1d0 [ 494.116903] xfs_iomap_write_allocate+0x42b/0xa30 [ 494.121732] ? xfs_file_iomap_begin+0x1ed0/0x1ed0 [ 494.126569] ? xfs_iunlock+0x248/0x3b0 [ 494.130438] ? rcu_read_lock_sched_held+0x16c/0x1d0 [ 494.135436] ? xfs_iunlock+0x21a/0x3b0 [ 494.139308] xfs_map_blocks+0x548/0x940 [ 494.143257] ? xfs_vm_set_page_dirty+0x610/0x610 [ 494.147991] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 494.153415] xfs_do_writepage+0x422/0x13d0 [ 494.157637] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 494.161950] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 494.167376] write_cache_pages+0x505/0xd20 [ 494.171586] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 494.175892] ? clear_page_dirty_for_io+0xb80/0xb80 [ 494.180809] ? trace_hardirqs_on+0x10/0x10 [ 494.185024] xfs_vm_writepages+0x258/0x340 [ 494.189232] ? xfs_vm_writepage+0xd0/0xd0 [ 494.193355] ? xfs_vm_writepage+0xd0/0xd0 [ 494.197484] do_writepages+0xc3/0x240 [ 494.201269] ? page_writeback_cpu_online+0x10/0x10 [ 494.206179] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 494.211604] __writeback_single_inode+0xda/0x1010 [ 494.216432] writeback_sb_inodes+0x48b/0xd30 [ 494.220828] ? wbc_detach_inode+0x780/0x780 [ 494.225126] ? queue_io+0x400/0x5a0 [ 494.228728] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 494.234159] wb_writeback+0x243/0xb80 [ 494.237957] ? writeback_inodes_wb.constprop.0+0x1a0/0x1a0 [ 494.243566] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 494.249008] wb_workfn+0x2bd/0xf50 [ 494.252525] ? process_one_work+0x6c4/0x14a0 [ 494.256915] ? inode_wait_for_writeback+0x30/0x30 [ 494.261738] ? lock_acquire+0x170/0x3f0 [ 494.265687] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 494.271118] process_one_work+0x793/0x14a0 [ 494.275333] ? work_busy+0x320/0x320 [ 494.279026] ? worker_thread+0x158/0xff0 [ 494.283091] ? _raw_spin_unlock_irq+0x24/0x80 [ 494.287566] worker_thread+0x5cc/0xff0 [ 494.291433] ? rescuer_thread+0xc80/0xc80 [ 494.295565] kthread+0x30d/0x420 [ 494.298919] ? kthread_create_on_node+0xd0/0xd0 [ 494.303568] ret_from_fork+0x24/0x30 [ 494.308244] XFS (loop1): page discard on page ffffea000147f0c0, inode 0x29, offset 1064960. [ 494.317168] XFS (loop1): Internal error XFS_WANT_CORRUPTED_RETURN at line 431 of file fs/xfs/libxfs/xfs_alloc.c. Caller xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 494.331708] CPU: 1 PID: 2818 Comm: kworker/u4:3 Not tainted 4.14.303-syzkaller #0 [ 494.339317] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023 [ 494.348660] Workqueue: writeback wb_workfn (flush-7:1) [ 494.353911] Call Trace: [ 494.356481] dump_stack+0x1b2/0x281 [ 494.360092] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 494.365344] xfs_error_report+0x98/0xa0 [ 494.369290] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 494.374542] xfs_alloc_fixup_trees+0x425/0x4f0 [ 494.379102] ? xfs_alloc_update+0x90/0x90 [ 494.383244] ? xfs_btree_rec_offset.isra.0+0x3b/0xa0 [ 494.388322] ? xfs_alloc_compute_diff+0x23c/0x3d0 [ 494.393139] xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 494.398231] ? xfs_alloc_fix_freelist+0x685/0xeb0 [ 494.403055] ? xfs_alloc_ag_vextent_size+0x1ea0/0x1ea0 [ 494.408310] ? xfs_alloc_read_agf+0xb10/0xb10 [ 494.412789] xfs_alloc_ag_vextent+0x579/0x750 [ 494.417267] ? xfs_perag_get+0x116/0x410 [ 494.421315] ? xfs_alloc_vextent+0x470/0x2010 [ 494.425799] xfs_alloc_vextent+0x10b0/0x2010 [ 494.430187] xfs_bmap_btalloc+0x9e5/0x1b20 [ 494.434398] ? xfs_bmap_adjacent+0x1480/0x1480 [ 494.438957] ? ret_from_fork+0x24/0x30 [ 494.442835] ? __xfs_bmbt_get_all+0x16/0x100 [ 494.447221] xfs_bmap_alloc+0x107/0x160 [ 494.451170] xfs_bmapi_write+0xa49/0x1d00 [ 494.455297] ? xfs_bmapi_reserve_delalloc+0x7c0/0x7c0 [ 494.460461] ? trace_hardirqs_on+0x10/0x10 [ 494.464674] ? xfs_iext_get_ext+0xeb/0x200 [ 494.468885] ? xfs_iext_idx_to_irec+0x340/0x340 [ 494.473533] ? xfs_bmap_last_extent+0x1d0/0x1d0 [ 494.478195] xfs_iomap_write_allocate+0x42b/0xa30 [ 494.483028] ? xfs_file_iomap_begin+0x1ed0/0x1ed0 [ 494.487844] ? xfs_iunlock+0x248/0x3b0 [ 494.491713] ? rcu_read_lock_sched_held+0x16c/0x1d0 [ 494.496711] ? xfs_iunlock+0x21a/0x3b0 [ 494.500581] xfs_map_blocks+0x548/0x940 [ 494.504555] ? xfs_vm_set_page_dirty+0x610/0x610 [ 494.509286] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 494.514711] xfs_do_writepage+0x422/0x13d0 [ 494.518936] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 494.523243] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 494.528670] write_cache_pages+0x505/0xd20 [ 494.532881] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 494.537185] ? clear_page_dirty_for_io+0xb80/0xb80 [ 494.542099] ? trace_hardirqs_on+0x10/0x10 [ 494.546308] xfs_vm_writepages+0x258/0x340 [ 494.550516] ? xfs_vm_writepage+0xd0/0xd0 [ 494.554642] ? xfs_vm_writepage+0xd0/0xd0 [ 494.558773] do_writepages+0xc3/0x240 [ 494.562558] ? page_writeback_cpu_online+0x10/0x10 [ 494.567463] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 494.572889] __writeback_single_inode+0xda/0x1010 [ 494.577713] writeback_sb_inodes+0x48b/0xd30 [ 494.582108] ? wbc_detach_inode+0x780/0x780 [ 494.586408] ? queue_io+0x400/0x5a0 [ 494.590013] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 494.595447] wb_writeback+0x243/0xb80 [ 494.599236] ? writeback_inodes_wb.constprop.0+0x1a0/0x1a0 [ 494.604837] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 494.610263] wb_workfn+0x2bd/0xf50 [ 494.613779] ? process_one_work+0x6c4/0x14a0 [ 494.618171] ? inode_wait_for_writeback+0x30/0x30 [ 494.622996] ? lock_acquire+0x170/0x3f0 [ 494.626943] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 494.632370] process_one_work+0x793/0x14a0 [ 494.636591] ? work_busy+0x320/0x320 [ 494.640296] ? worker_thread+0x158/0xff0 [ 494.644350] ? _raw_spin_unlock_irq+0x24/0x80 [ 494.648829] worker_thread+0x5cc/0xff0 [ 494.652703] ? rescuer_thread+0xc80/0xc80 [ 494.656834] kthread+0x30d/0x420 [ 494.660187] ? kthread_create_on_node+0xd0/0xd0 [ 494.664839] ret_from_fork+0x24/0x30 [ 494.670148] XFS (loop1): page discard on page ffffea00010db300, inode 0x29, offset 1069056. [ 494.679047] XFS (loop1): Internal error XFS_WANT_CORRUPTED_RETURN at line 431 of file fs/xfs/libxfs/xfs_alloc.c. Caller xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 494.693695] CPU: 1 PID: 2818 Comm: kworker/u4:3 Not tainted 4.14.303-syzkaller #0 [ 494.701312] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023 [ 494.710668] Workqueue: writeback wb_workfn (flush-7:1) [ 494.715928] Call Trace: [ 494.718502] dump_stack+0x1b2/0x281 [ 494.722108] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 494.727362] xfs_error_report+0x98/0xa0 [ 494.731314] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 494.736577] xfs_alloc_fixup_trees+0x425/0x4f0 [ 494.741143] ? xfs_alloc_update+0x90/0x90 [ 494.745266] ? xfs_btree_rec_offset.isra.0+0x3b/0xa0 [ 494.750346] ? xfs_alloc_compute_diff+0x23c/0x3d0 [ 494.755166] xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 494.760251] ? xfs_alloc_fix_freelist+0x685/0xeb0 [ 494.765071] ? xfs_alloc_ag_vextent_size+0x1ea0/0x1ea0 [ 494.770322] ? xfs_alloc_read_agf+0xb10/0xb10 [ 494.774817] xfs_alloc_ag_vextent+0x579/0x750 [ 494.779290] ? xfs_perag_get+0x116/0x410 [ 494.783323] ? xfs_alloc_vextent+0x470/0x2010 [ 494.787794] xfs_alloc_vextent+0x10b0/0x2010 [ 494.792180] xfs_bmap_btalloc+0x9e5/0x1b20 [ 494.796409] ? xfs_bmap_adjacent+0x1480/0x1480 [ 494.800973] ? ret_from_fork+0x24/0x30 [ 494.804839] ? __xfs_bmbt_get_all+0x16/0x100 [ 494.809222] xfs_bmap_alloc+0x107/0x160 [ 494.813173] xfs_bmapi_write+0xa49/0x1d00 [ 494.817318] ? xfs_bmapi_reserve_delalloc+0x7c0/0x7c0 [ 494.822493] ? trace_hardirqs_on+0x10/0x10 [ 494.826708] ? xfs_iext_get_ext+0xeb/0x200 [ 494.830923] ? xfs_iext_idx_to_irec+0x340/0x340 [ 494.835585] ? xfs_bmap_last_extent+0x1d0/0x1d0 [ 494.840241] xfs_iomap_write_allocate+0x42b/0xa30 [ 494.845063] ? xfs_file_iomap_begin+0x1ed0/0x1ed0 [ 494.849877] ? xfs_iunlock+0x248/0x3b0 [ 494.853747] ? rcu_read_lock_sched_held+0x16c/0x1d0 [ 494.858740] ? xfs_iunlock+0x21a/0x3b0 [ 494.862601] xfs_map_blocks+0x548/0x940 [ 494.866561] ? xfs_vm_set_page_dirty+0x610/0x610 [ 494.871300] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 494.876733] xfs_do_writepage+0x422/0x13d0 [ 494.880954] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 494.885253] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 494.890680] write_cache_pages+0x505/0xd20 [ 494.894922] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 494.899255] ? clear_page_dirty_for_io+0xb80/0xb80 [ 494.904171] ? trace_hardirqs_on+0x10/0x10 [ 494.908389] xfs_vm_writepages+0x258/0x340 [ 494.912601] ? xfs_vm_writepage+0xd0/0xd0 [ 494.916741] ? xfs_vm_writepage+0xd0/0xd0 [ 494.920874] do_writepages+0xc3/0x240 [ 494.924660] ? page_writeback_cpu_online+0x10/0x10 [ 494.929569] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 494.934995] __writeback_single_inode+0xda/0x1010 [ 494.939818] writeback_sb_inodes+0x48b/0xd30 [ 494.944209] ? wbc_detach_inode+0x780/0x780 [ 494.948513] ? queue_io+0x400/0x5a0 [ 494.952115] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 494.957547] wb_writeback+0x243/0xb80 [ 494.961351] ? writeback_inodes_wb.constprop.0+0x1a0/0x1a0 [ 494.966954] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 494.972378] wb_workfn+0x2bd/0xf50 [ 494.975901] ? process_one_work+0x6c4/0x14a0 [ 494.980292] ? inode_wait_for_writeback+0x30/0x30 [ 494.985111] ? lock_acquire+0x170/0x3f0 [ 494.989061] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 494.994488] process_one_work+0x793/0x14a0 [ 494.998705] ? work_busy+0x320/0x320 [ 495.002393] ? worker_thread+0x158/0xff0 [ 495.006436] ? _raw_spin_unlock_irq+0x24/0x80 [ 495.010916] worker_thread+0x5cc/0xff0 [ 495.014785] ? rescuer_thread+0xc80/0xc80 [ 495.018917] kthread+0x30d/0x420 [ 495.022259] ? kthread_create_on_node+0xd0/0xd0 [ 495.026903] ret_from_fork+0x24/0x30 [ 495.031018] XFS (loop1): page discard on page ffffea00010db340, inode 0x29, offset 1073152. [ 495.040050] XFS (loop1): Internal error XFS_WANT_CORRUPTED_RETURN at line 431 of file fs/xfs/libxfs/xfs_alloc.c. Caller xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 495.054615] CPU: 1 PID: 2818 Comm: kworker/u4:3 Not tainted 4.14.303-syzkaller #0 [ 495.062235] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023 [ 495.071584] Workqueue: writeback wb_workfn (flush-7:1) [ 495.076837] Call Trace: [ 495.079403] dump_stack+0x1b2/0x281 [ 495.083010] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 495.088304] xfs_error_report+0x98/0xa0 [ 495.092260] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 495.097516] xfs_alloc_fixup_trees+0x425/0x4f0 [ 495.102076] ? xfs_alloc_update+0x90/0x90 [ 495.106204] ? xfs_btree_rec_offset.isra.0+0x3b/0xa0 [ 495.111290] ? xfs_alloc_compute_diff+0x23c/0x3d0 [ 495.116110] xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 495.121190] ? xfs_alloc_fix_freelist+0x685/0xeb0 [ 495.126017] ? xfs_alloc_ag_vextent_size+0x1ea0/0x1ea0 [ 495.131276] ? xfs_alloc_read_agf+0xb10/0xb10 [ 495.135775] xfs_alloc_ag_vextent+0x579/0x750 [ 495.140261] ? xfs_perag_get+0x116/0x410 [ 495.144324] ? xfs_alloc_vextent+0x470/0x2010 [ 495.148808] xfs_alloc_vextent+0x10b0/0x2010 [ 495.153204] xfs_bmap_btalloc+0x9e5/0x1b20 [ 495.157421] ? xfs_bmap_adjacent+0x1480/0x1480 [ 495.161978] ? ret_from_fork+0x24/0x30 [ 495.165866] ? __xfs_bmbt_get_all+0x16/0x100 [ 495.170257] xfs_bmap_alloc+0x107/0x160 [ 495.174232] xfs_bmapi_write+0xa49/0x1d00 [ 495.178361] ? xfs_bmapi_reserve_delalloc+0x7c0/0x7c0 [ 495.183529] ? trace_hardirqs_on+0x10/0x10 [ 495.187753] ? xfs_iext_get_ext+0xeb/0x200 [ 495.191968] ? xfs_iext_idx_to_irec+0x340/0x340 [ 495.196638] ? xfs_bmap_last_extent+0x1d0/0x1d0 [ 495.201284] xfs_iomap_write_allocate+0x42b/0xa30 [ 495.206117] ? xfs_file_iomap_begin+0x1ed0/0x1ed0 [ 495.210940] ? xfs_iunlock+0x248/0x3b0 [ 495.214809] ? rcu_read_lock_sched_held+0x16c/0x1d0 [ 495.219800] ? xfs_iunlock+0x21a/0x3b0 [ 495.223668] xfs_map_blocks+0x548/0x940 [ 495.227632] ? xfs_vm_set_page_dirty+0x610/0x610 [ 495.232372] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 495.237799] xfs_do_writepage+0x422/0x13d0 [ 495.242013] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 495.246319] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 495.251755] write_cache_pages+0x505/0xd20 [ 495.255966] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 495.260264] ? clear_page_dirty_for_io+0xb80/0xb80 [ 495.265193] ? trace_hardirqs_on+0x10/0x10 [ 495.269405] xfs_vm_writepages+0x258/0x340 [ 495.273616] ? xfs_vm_writepage+0xd0/0xd0 [ 495.277745] ? xfs_vm_writepage+0xd0/0xd0 [ 495.281869] do_writepages+0xc3/0x240 [ 495.285656] ? page_writeback_cpu_online+0x10/0x10 [ 495.290571] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 495.296003] __writeback_single_inode+0xda/0x1010 [ 495.300823] writeback_sb_inodes+0x48b/0xd30 [ 495.305214] ? wbc_detach_inode+0x780/0x780 [ 495.309515] ? queue_io+0x400/0x5a0 [ 495.313117] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 495.318543] wb_writeback+0x243/0xb80 [ 495.322321] ? writeback_inodes_wb.constprop.0+0x1a0/0x1a0 [ 495.327930] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 495.333365] wb_workfn+0x2bd/0xf50 [ 495.336883] ? process_one_work+0x6c4/0x14a0 [ 495.341266] ? inode_wait_for_writeback+0x30/0x30 [ 495.346093] ? lock_acquire+0x170/0x3f0 [ 495.350081] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 495.355527] process_one_work+0x793/0x14a0 [ 495.359739] ? work_busy+0x320/0x320 [ 495.363426] ? worker_thread+0x158/0xff0 [ 495.367469] ? _raw_spin_unlock_irq+0x24/0x80 [ 495.371950] worker_thread+0x5cc/0xff0 [ 495.375818] ? rescuer_thread+0xc80/0xc80 [ 495.379959] kthread+0x30d/0x420 [ 495.383329] ? kthread_create_on_node+0xd0/0xd0 [ 495.387983] ret_from_fork+0x24/0x30 [ 495.392212] XFS (loop1): page discard on page ffffea00010ec980, inode 0x29, offset 1077248. [ 495.401109] XFS (loop1): Internal error XFS_WANT_CORRUPTED_RETURN at line 431 of file fs/xfs/libxfs/xfs_alloc.c. Caller xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 495.415655] CPU: 1 PID: 2818 Comm: kworker/u4:3 Not tainted 4.14.303-syzkaller #0 [ 495.423289] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023 [ 495.432634] Workqueue: writeback wb_workfn (flush-7:1) [ 495.437889] Call Trace: [ 495.440454] dump_stack+0x1b2/0x281 [ 495.444072] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 495.449331] xfs_error_report+0x98/0xa0 [ 495.453289] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 495.458555] xfs_alloc_fixup_trees+0x425/0x4f0 [ 495.463124] ? xfs_alloc_update+0x90/0x90 [ 495.467255] ? xfs_btree_rec_offset.isra.0+0x3b/0xa0 [ 495.472341] ? xfs_alloc_compute_diff+0x23c/0x3d0 [ 495.477162] xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 495.482248] ? xfs_alloc_fix_freelist+0x685/0xeb0 [ 495.487073] ? xfs_alloc_ag_vextent_size+0x1ea0/0x1ea0 [ 495.492331] ? xfs_alloc_read_agf+0xb10/0xb10 [ 495.496811] xfs_alloc_ag_vextent+0x579/0x750 [ 495.501282] ? xfs_perag_get+0x116/0x410 [ 495.505317] ? xfs_alloc_vextent+0x470/0x2010 [ 495.509789] xfs_alloc_vextent+0x10b0/0x2010 [ 495.514177] xfs_bmap_btalloc+0x9e5/0x1b20 [ 495.518390] ? xfs_bmap_adjacent+0x1480/0x1480 [ 495.522947] ? ret_from_fork+0x24/0x30 [ 495.526827] ? __xfs_bmbt_get_all+0x16/0x100 [ 495.531218] xfs_bmap_alloc+0x107/0x160 [ 495.535171] xfs_bmapi_write+0xa49/0x1d00 [ 495.539298] ? xfs_bmapi_reserve_delalloc+0x7c0/0x7c0 [ 495.544466] ? trace_hardirqs_on+0x10/0x10 [ 495.548685] ? xfs_iext_get_ext+0xeb/0x200 [ 495.552902] ? xfs_iext_idx_to_irec+0x340/0x340 [ 495.557550] ? xfs_bmap_last_extent+0x1d0/0x1d0 [ 495.562196] xfs_iomap_write_allocate+0x42b/0xa30 [ 495.567028] ? xfs_file_iomap_begin+0x1ed0/0x1ed0 [ 495.571854] ? xfs_iunlock+0x248/0x3b0 [ 495.575737] ? rcu_read_lock_sched_held+0x16c/0x1d0 [ 495.580754] ? xfs_iunlock+0x21a/0x3b0 [ 495.584620] xfs_map_blocks+0x548/0x940 [ 495.588576] ? xfs_vm_set_page_dirty+0x610/0x610 [ 495.593319] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 495.598745] xfs_do_writepage+0x422/0x13d0 [ 495.602957] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 495.607262] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 495.612705] write_cache_pages+0x505/0xd20 [ 495.616917] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 495.621217] ? clear_page_dirty_for_io+0xb80/0xb80 [ 495.626137] ? trace_hardirqs_on+0x10/0x10 [ 495.630356] xfs_vm_writepages+0x258/0x340 [ 495.634851] ? xfs_vm_writepage+0xd0/0xd0 [ 495.638978] ? xfs_vm_writepage+0xd0/0xd0 [ 495.643099] do_writepages+0xc3/0x240 [ 495.646885] ? page_writeback_cpu_online+0x10/0x10 [ 495.651801] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 495.657226] __writeback_single_inode+0xda/0x1010 [ 495.662052] writeback_sb_inodes+0x48b/0xd30 [ 495.666450] ? wbc_detach_inode+0x780/0x780 [ 495.670760] ? queue_io+0x400/0x5a0 [ 495.674362] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 495.679788] wb_writeback+0x243/0xb80 [ 495.683566] ? writeback_inodes_wb.constprop.0+0x1a0/0x1a0 [ 495.689169] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 495.694597] wb_workfn+0x2bd/0xf50 [ 495.698115] ? process_one_work+0x6c4/0x14a0 [ 495.702498] ? inode_wait_for_writeback+0x30/0x30 [ 495.707323] ? lock_acquire+0x170/0x3f0 [ 495.711296] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 495.716727] process_one_work+0x793/0x14a0 [ 495.720938] ? work_busy+0x320/0x320 [ 495.724629] ? worker_thread+0x158/0xff0 [ 495.728704] ? _raw_spin_unlock_irq+0x24/0x80 [ 495.733184] worker_thread+0x5cc/0xff0 [ 495.737051] ? rescuer_thread+0xc80/0xc80 [ 495.741173] kthread+0x30d/0x420 [ 495.744516] ? kthread_create_on_node+0xd0/0xd0 [ 495.749177] ret_from_fork+0x24/0x30 [ 495.753296] XFS (loop1): page discard on page ffffea00010ec9c0, inode 0x29, offset 1081344. [ 495.762191] XFS (loop1): Internal error XFS_WANT_CORRUPTED_RETURN at line 431 of file fs/xfs/libxfs/xfs_alloc.c. Caller xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 495.776735] CPU: 1 PID: 2818 Comm: kworker/u4:3 Not tainted 4.14.303-syzkaller #0 [ 495.784337] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023 [ 495.793674] Workqueue: writeback wb_workfn (flush-7:1) [ 495.798945] Call Trace: [ 495.801509] dump_stack+0x1b2/0x281 [ 495.805114] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 495.810384] xfs_error_report+0x98/0xa0 [ 495.814331] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 495.819605] xfs_alloc_fixup_trees+0x425/0x4f0 [ 495.824164] ? xfs_alloc_update+0x90/0x90 [ 495.828298] ? xfs_btree_rec_offset.isra.0+0x3b/0xa0 [ 495.833384] ? xfs_alloc_compute_diff+0x23c/0x3d0 [ 495.838204] xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 495.843283] ? xfs_alloc_fix_freelist+0x685/0xeb0 [ 495.848106] ? xfs_alloc_ag_vextent_size+0x1ea0/0x1ea0 [ 495.853364] ? xfs_alloc_read_agf+0xb10/0xb10 [ 495.857875] xfs_alloc_ag_vextent+0x579/0x750 [ 495.862357] ? xfs_perag_get+0x116/0x410 [ 495.866399] ? xfs_alloc_vextent+0x470/0x2010 [ 495.870905] xfs_alloc_vextent+0x10b0/0x2010 [ 495.875301] xfs_bmap_btalloc+0x9e5/0x1b20 [ 495.879522] ? xfs_bmap_adjacent+0x1480/0x1480 [ 495.884083] ? ret_from_fork+0x24/0x30 [ 495.887964] ? __xfs_bmbt_get_all+0x16/0x100 [ 495.892369] xfs_bmap_alloc+0x107/0x160 [ 495.896322] xfs_bmapi_write+0xa49/0x1d00 [ 495.900455] ? xfs_bmapi_reserve_delalloc+0x7c0/0x7c0 [ 495.905629] ? trace_hardirqs_on+0x10/0x10 [ 495.909854] ? xfs_iext_get_ext+0xeb/0x200 [ 495.914068] ? xfs_iext_idx_to_irec+0x340/0x340 [ 495.918722] ? xfs_bmap_last_extent+0x1d0/0x1d0 [ 495.923382] xfs_iomap_write_allocate+0x42b/0xa30 [ 495.928219] ? xfs_file_iomap_begin+0x1ed0/0x1ed0 [ 495.933044] ? xfs_iunlock+0x248/0x3b0 [ 495.936916] ? rcu_read_lock_sched_held+0x16c/0x1d0 [ 495.941908] ? xfs_iunlock+0x21a/0x3b0 [ 495.945780] xfs_map_blocks+0x548/0x940 [ 495.949742] ? xfs_vm_set_page_dirty+0x610/0x610 [ 495.954478] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 495.959923] xfs_do_writepage+0x422/0x13d0 [ 495.964135] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 495.968445] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 495.973880] write_cache_pages+0x505/0xd20 [ 495.978096] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 495.982395] ? clear_page_dirty_for_io+0xb80/0xb80 [ 495.987315] ? trace_hardirqs_on+0x10/0x10 [ 495.991532] xfs_vm_writepages+0x258/0x340 [ 495.995742] ? xfs_vm_writepage+0xd0/0xd0 [ 495.999866] ? xfs_vm_writepage+0xd0/0xd0 [ 496.003988] do_writepages+0xc3/0x240 [ 496.007770] ? page_writeback_cpu_online+0x10/0x10 [ 496.012689] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 496.018142] __writeback_single_inode+0xda/0x1010 [ 496.022963] writeback_sb_inodes+0x48b/0xd30 [ 496.027364] ? wbc_detach_inode+0x780/0x780 [ 496.031669] ? queue_io+0x400/0x5a0 [ 496.035269] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 496.040713] wb_writeback+0x243/0xb80 [ 496.044493] ? writeback_inodes_wb.constprop.0+0x1a0/0x1a0 [ 496.050114] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 496.055538] wb_workfn+0x2bd/0xf50 [ 496.059056] ? process_one_work+0x6c4/0x14a0 [ 496.063437] ? inode_wait_for_writeback+0x30/0x30 [ 496.068262] ? lock_acquire+0x170/0x3f0 [ 496.072222] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 496.077651] process_one_work+0x793/0x14a0 [ 496.081865] ? work_busy+0x320/0x320 [ 496.085560] ? worker_thread+0x158/0xff0 [ 496.089612] ? _raw_spin_unlock_irq+0x24/0x80 [ 496.094081] worker_thread+0x5cc/0xff0 [ 496.097947] ? rescuer_thread+0xc80/0xc80 [ 496.102077] kthread+0x30d/0x420 [ 496.105425] ? kthread_create_on_node+0xd0/0xd0 [ 496.110078] ret_from_fork+0x24/0x30 [ 496.114204] XFS (loop1): page discard on page ffffea00010b5100, inode 0x29, offset 1085440. [ 496.123101] XFS (loop1): Internal error XFS_WANT_CORRUPTED_RETURN at line 431 of file fs/xfs/libxfs/xfs_alloc.c. Caller xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 496.137641] CPU: 1 PID: 2818 Comm: kworker/u4:3 Not tainted 4.14.303-syzkaller #0 [ 496.145250] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023 [ 496.154586] Workqueue: writeback wb_workfn (flush-7:1) [ 496.159839] Call Trace: [ 496.162401] dump_stack+0x1b2/0x281 [ 496.166014] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 496.171270] xfs_error_report+0x98/0xa0 [ 496.175218] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 496.180475] xfs_alloc_fixup_trees+0x425/0x4f0 [ 496.185034] ? xfs_alloc_update+0x90/0x90 [ 496.189157] ? xfs_btree_rec_offset.isra.0+0x3b/0xa0 [ 496.194234] ? xfs_alloc_compute_diff+0x23c/0x3d0 [ 496.199052] xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 496.204135] ? xfs_alloc_fix_freelist+0x685/0xeb0 [ 496.208971] ? xfs_alloc_ag_vextent_size+0x1ea0/0x1ea0 [ 496.214222] ? xfs_alloc_read_agf+0xb10/0xb10 [ 496.218701] xfs_alloc_ag_vextent+0x579/0x750 [ 496.223170] ? xfs_perag_get+0x116/0x410 [ 496.227211] ? xfs_alloc_vextent+0x470/0x2010 [ 496.231688] xfs_alloc_vextent+0x10b0/0x2010 [ 496.236078] xfs_bmap_btalloc+0x9e5/0x1b20 [ 496.240292] ? xfs_bmap_adjacent+0x1480/0x1480 [ 496.244850] ? ret_from_fork+0x24/0x30 [ 496.248734] ? __xfs_bmbt_get_all+0x16/0x100 [ 496.253124] xfs_bmap_alloc+0x107/0x160 [ 496.257084] xfs_bmapi_write+0xa49/0x1d00 [ 496.261223] ? xfs_bmapi_reserve_delalloc+0x7c0/0x7c0 [ 496.266395] ? trace_hardirqs_on+0x10/0x10 [ 496.270614] ? xfs_iext_get_ext+0xeb/0x200 [ 496.274824] ? xfs_iext_idx_to_irec+0x340/0x340 [ 496.279475] ? xfs_bmap_last_extent+0x1d0/0x1d0 [ 496.284123] xfs_iomap_write_allocate+0x42b/0xa30 [ 496.288947] ? xfs_file_iomap_begin+0x1ed0/0x1ed0 [ 496.293762] ? xfs_iunlock+0x248/0x3b0 [ 496.297633] ? rcu_read_lock_sched_held+0x16c/0x1d0 [ 496.302627] ? xfs_iunlock+0x21a/0x3b0 [ 496.306496] xfs_map_blocks+0x548/0x940 [ 496.310454] ? xfs_vm_set_page_dirty+0x610/0x610 [ 496.315186] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 496.320616] xfs_do_writepage+0x422/0x13d0 [ 496.324833] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 496.329133] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 496.334585] write_cache_pages+0x505/0xd20 [ 496.338793] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 496.343091] ? clear_page_dirty_for_io+0xb80/0xb80 [ 496.348011] ? trace_hardirqs_on+0x10/0x10 [ 496.352239] xfs_vm_writepages+0x258/0x340 [ 496.356448] ? xfs_vm_writepage+0xd0/0xd0 [ 496.360574] ? xfs_vm_writepage+0xd0/0xd0 [ 496.364713] do_writepages+0xc3/0x240 [ 496.368498] ? page_writeback_cpu_online+0x10/0x10 [ 496.373411] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 496.378837] __writeback_single_inode+0xda/0x1010 [ 496.383674] writeback_sb_inodes+0x48b/0xd30 [ 496.388073] ? wbc_detach_inode+0x780/0x780 [ 496.392377] ? queue_io+0x400/0x5a0 [ 496.395980] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 496.401405] wb_writeback+0x243/0xb80 [ 496.405188] ? writeback_inodes_wb.constprop.0+0x1a0/0x1a0 [ 496.410790] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 496.416215] wb_workfn+0x2bd/0xf50 [ 496.419731] ? process_one_work+0x6c4/0x14a0 [ 496.424116] ? inode_wait_for_writeback+0x30/0x30 [ 496.428940] ? lock_acquire+0x170/0x3f0 [ 496.432899] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 496.438342] process_one_work+0x793/0x14a0 [ 496.442559] ? work_busy+0x320/0x320 [ 496.446255] ? worker_thread+0x158/0xff0 [ 496.450298] ? _raw_spin_unlock_irq+0x24/0x80 [ 496.454770] worker_thread+0x5cc/0xff0 [ 496.458640] ? rescuer_thread+0xc80/0xc80 [ 496.462763] kthread+0x30d/0x420 [ 496.466110] ? kthread_create_on_node+0xd0/0xd0 [ 496.470763] ret_from_fork+0x24/0x30 [ 496.475147] XFS (loop1): page discard on page ffffea00010b5140, inode 0x29, offset 1089536. [ 496.484058] XFS (loop1): Internal error XFS_WANT_CORRUPTED_RETURN at line 431 of file fs/xfs/libxfs/xfs_alloc.c. Caller xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 496.498616] CPU: 1 PID: 2818 Comm: kworker/u4:3 Not tainted 4.14.303-syzkaller #0 [ 496.506232] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023 [ 496.515581] Workqueue: writeback wb_workfn (flush-7:1) [ 496.520835] Call Trace: [ 496.523399] dump_stack+0x1b2/0x281 [ 496.527011] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 496.532270] xfs_error_report+0x98/0xa0 [ 496.536218] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 496.541471] xfs_alloc_fixup_trees+0x425/0x4f0 [ 496.546034] ? xfs_alloc_update+0x90/0x90 [ 496.550163] ? xfs_btree_rec_offset.isra.0+0x3b/0xa0 [ 496.555242] ? xfs_alloc_compute_diff+0x23c/0x3d0 [ 496.560059] xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 496.565140] ? xfs_alloc_fix_freelist+0x685/0xeb0 [ 496.569961] ? xfs_alloc_ag_vextent_size+0x1ea0/0x1ea0 [ 496.575211] ? xfs_alloc_read_agf+0xb10/0xb10 [ 496.579695] xfs_alloc_ag_vextent+0x579/0x750 [ 496.584165] ? xfs_perag_get+0x116/0x410 [ 496.588204] ? xfs_alloc_vextent+0x470/0x2010 [ 496.592682] xfs_alloc_vextent+0x10b0/0x2010 [ 496.597076] xfs_bmap_btalloc+0x9e5/0x1b20 [ 496.601289] ? xfs_bmap_adjacent+0x1480/0x1480 [ 496.605851] ? ret_from_fork+0x24/0x30 [ 496.609727] ? __xfs_bmbt_get_all+0x16/0x100 [ 496.614109] xfs_bmap_alloc+0x107/0x160 [ 496.618061] xfs_bmapi_write+0xa49/0x1d00 [ 496.622208] ? xfs_bmapi_reserve_delalloc+0x7c0/0x7c0 [ 496.627377] ? trace_hardirqs_on+0x10/0x10 [ 496.631597] ? xfs_iext_get_ext+0xeb/0x200 [ 496.635807] ? xfs_iext_idx_to_irec+0x340/0x340 [ 496.640457] ? xfs_bmap_last_extent+0x1d0/0x1d0 [ 496.645102] xfs_iomap_write_allocate+0x42b/0xa30 [ 496.649926] ? xfs_file_iomap_begin+0x1ed0/0x1ed0 [ 496.654742] ? xfs_iunlock+0x248/0x3b0 [ 496.658611] ? rcu_read_lock_sched_held+0x16c/0x1d0 [ 496.663619] ? xfs_iunlock+0x21a/0x3b0 [ 496.667487] xfs_map_blocks+0x548/0x940 [ 496.671446] ? xfs_vm_set_page_dirty+0x610/0x610 [ 496.676199] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 496.681625] xfs_do_writepage+0x422/0x13d0 [ 496.685851] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 496.690168] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 496.695598] write_cache_pages+0x505/0xd20 [ 496.699817] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 496.704172] ? clear_page_dirty_for_io+0xb80/0xb80 [ 496.709096] ? trace_hardirqs_on+0x10/0x10 [ 496.713323] xfs_vm_writepages+0x258/0x340 [ 496.717540] ? xfs_vm_writepage+0xd0/0xd0 [ 496.721696] ? xfs_vm_writepage+0xd0/0xd0 [ 496.725832] do_writepages+0xc3/0x240 [ 496.729620] ? page_writeback_cpu_online+0x10/0x10 [ 496.734554] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 496.739984] __writeback_single_inode+0xda/0x1010 [ 496.744827] writeback_sb_inodes+0x48b/0xd30 [ 496.749231] ? wbc_detach_inode+0x780/0x780 [ 496.753541] ? queue_io+0x400/0x5a0 [ 496.757143] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 496.762569] wb_writeback+0x243/0xb80 [ 496.766356] ? writeback_inodes_wb.constprop.0+0x1a0/0x1a0 [ 496.771984] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 496.777410] wb_workfn+0x2bd/0xf50 [ 496.780946] ? process_one_work+0x6c4/0x14a0 [ 496.785335] ? inode_wait_for_writeback+0x30/0x30 [ 496.790162] ? lock_acquire+0x170/0x3f0 [ 496.794110] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 496.799546] process_one_work+0x793/0x14a0 [ 496.803774] ? work_busy+0x320/0x320 [ 496.807467] ? worker_thread+0x158/0xff0 [ 496.811512] ? _raw_spin_unlock_irq+0x24/0x80 [ 496.815985] worker_thread+0x5cc/0xff0 [ 496.819850] ? rescuer_thread+0xc80/0xc80 [ 496.823973] kthread+0x30d/0x420 [ 496.827319] ? kthread_create_on_node+0xd0/0xd0 [ 496.831971] ret_from_fork+0x24/0x30 [ 496.836249] XFS (loop1): page discard on page ffffea000129e000, inode 0x29, offset 1093632. [ 496.845106] XFS (loop1): Internal error XFS_WANT_CORRUPTED_RETURN at line 431 of file fs/xfs/libxfs/xfs_alloc.c. Caller xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 496.859656] CPU: 1 PID: 2818 Comm: kworker/u4:3 Not tainted 4.14.303-syzkaller #0 [ 496.867263] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023 [ 496.876625] Workqueue: writeback wb_workfn (flush-7:1) [ 496.881881] Call Trace: [ 496.884464] dump_stack+0x1b2/0x281 [ 496.888077] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 496.893344] xfs_error_report+0x98/0xa0 [ 496.897304] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 496.902569] xfs_alloc_fixup_trees+0x425/0x4f0 [ 496.907139] ? xfs_alloc_update+0x90/0x90 [ 496.911270] ? xfs_btree_rec_offset.isra.0+0x3b/0xa0 [ 496.916371] ? xfs_alloc_compute_diff+0x23c/0x3d0 [ 496.921188] xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 496.926282] ? xfs_alloc_fix_freelist+0x685/0xeb0 [ 496.931104] ? xfs_alloc_ag_vextent_size+0x1ea0/0x1ea0 [ 496.936360] ? xfs_alloc_read_agf+0xb10/0xb10 [ 496.940838] xfs_alloc_ag_vextent+0x579/0x750 [ 496.945317] ? xfs_perag_get+0x116/0x410 [ 496.949381] ? xfs_alloc_vextent+0x470/0x2010 [ 496.953852] xfs_alloc_vextent+0x10b0/0x2010 [ 496.958240] xfs_bmap_btalloc+0x9e5/0x1b20 [ 496.962454] ? xfs_bmap_adjacent+0x1480/0x1480 [ 496.967016] ? ret_from_fork+0x24/0x30 [ 496.970893] ? __xfs_bmbt_get_all+0x16/0x100 [ 496.975278] xfs_bmap_alloc+0x107/0x160 [ 496.979227] xfs_bmapi_write+0xa49/0x1d00 [ 496.983354] ? xfs_bmapi_reserve_delalloc+0x7c0/0x7c0 [ 496.988526] ? trace_hardirqs_on+0x10/0x10 [ 496.992745] ? xfs_iext_get_ext+0xeb/0x200 [ 496.996953] ? xfs_iext_idx_to_irec+0x340/0x340 [ 497.001605] ? xfs_bmap_last_extent+0x1d0/0x1d0 [ 497.006263] xfs_iomap_write_allocate+0x42b/0xa30 [ 497.011094] ? xfs_file_iomap_begin+0x1ed0/0x1ed0 [ 497.015911] ? xfs_iunlock+0x248/0x3b0 [ 497.019783] ? rcu_read_lock_sched_held+0x16c/0x1d0 [ 497.024789] ? xfs_iunlock+0x21a/0x3b0 [ 497.028664] xfs_map_blocks+0x548/0x940 [ 497.032622] ? xfs_vm_set_page_dirty+0x610/0x610 [ 497.037360] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 497.042786] xfs_do_writepage+0x422/0x13d0 [ 497.047008] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 497.051327] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 497.056753] write_cache_pages+0x505/0xd20 [ 497.060982] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 497.065278] ? clear_page_dirty_for_io+0xb80/0xb80 [ 497.070191] ? trace_hardirqs_on+0x10/0x10 [ 497.074401] xfs_vm_writepages+0x258/0x340 [ 497.078611] ? xfs_vm_writepage+0xd0/0xd0 [ 497.082735] ? xfs_vm_writepage+0xd0/0xd0 [ 497.086861] do_writepages+0xc3/0x240 [ 497.090647] ? page_writeback_cpu_online+0x10/0x10 [ 497.095555] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 497.100982] __writeback_single_inode+0xda/0x1010 [ 497.105810] writeback_sb_inodes+0x48b/0xd30 [ 497.110202] ? wbc_detach_inode+0x780/0x780 [ 497.114500] ? queue_io+0x400/0x5a0 [ 497.118100] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 497.123525] wb_writeback+0x243/0xb80 [ 497.127317] ? writeback_inodes_wb.constprop.0+0x1a0/0x1a0 [ 497.132925] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 497.138351] wb_workfn+0x2bd/0xf50 [ 497.141867] ? process_one_work+0x6c4/0x14a0 [ 497.146258] ? inode_wait_for_writeback+0x30/0x30 [ 497.151081] ? lock_acquire+0x170/0x3f0 [ 497.155029] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 497.160458] process_one_work+0x793/0x14a0 [ 497.164671] ? work_busy+0x320/0x320 [ 497.168363] ? worker_thread+0x158/0xff0 [ 497.172406] ? _raw_spin_unlock_irq+0x24/0x80 [ 497.176876] worker_thread+0x5cc/0xff0 [ 497.180741] ? rescuer_thread+0xc80/0xc80 [ 497.184865] kthread+0x30d/0x420 [ 497.188211] ? kthread_create_on_node+0xd0/0xd0 [ 497.192860] ret_from_fork+0x24/0x30 [ 497.197204] XFS (loop1): page discard on page ffffea000129e040, inode 0x29, offset 1097728. [ 497.206115] XFS (loop1): Internal error XFS_WANT_CORRUPTED_RETURN at line 431 of file fs/xfs/libxfs/xfs_alloc.c. Caller xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 497.220680] CPU: 1 PID: 2818 Comm: kworker/u4:3 Not tainted 4.14.303-syzkaller #0 [ 497.228289] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023 [ 497.237640] Workqueue: writeback wb_workfn (flush-7:1) [ 497.242894] Call Trace: [ 497.245468] dump_stack+0x1b2/0x281 [ 497.249080] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 497.254331] xfs_error_report+0x98/0xa0 [ 497.258277] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 497.263531] xfs_alloc_fixup_trees+0x425/0x4f0 [ 497.268100] ? xfs_alloc_update+0x90/0x90 [ 497.272229] ? xfs_btree_rec_offset.isra.0+0x3b/0xa0 [ 497.277308] ? xfs_alloc_compute_diff+0x23c/0x3d0 [ 497.282124] xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 497.287217] ? xfs_alloc_fix_freelist+0x685/0xeb0 [ 497.292041] ? xfs_alloc_ag_vextent_size+0x1ea0/0x1ea0 [ 497.297321] ? xfs_alloc_read_agf+0xb10/0xb10 [ 497.301820] xfs_alloc_ag_vextent+0x579/0x750 [ 497.306294] ? xfs_perag_get+0x116/0x410 [ 497.310335] ? xfs_alloc_vextent+0x470/0x2010 [ 497.314805] xfs_alloc_vextent+0x10b0/0x2010 [ 497.319214] xfs_bmap_btalloc+0x9e5/0x1b20 [ 497.323426] ? xfs_bmap_adjacent+0x1480/0x1480 [ 497.327988] ? ret_from_fork+0x24/0x30 [ 497.331864] ? __xfs_bmbt_get_all+0x16/0x100 [ 497.336247] xfs_bmap_alloc+0x107/0x160 [ 497.340195] xfs_bmapi_write+0xa49/0x1d00 [ 497.344326] ? xfs_bmapi_reserve_delalloc+0x7c0/0x7c0 [ 497.349492] ? trace_hardirqs_on+0x10/0x10 [ 497.353728] ? xfs_iext_get_ext+0xeb/0x200 [ 497.357946] ? xfs_iext_idx_to_irec+0x340/0x340 [ 497.362597] ? xfs_bmap_last_extent+0x1d0/0x1d0 [ 497.367255] xfs_iomap_write_allocate+0x42b/0xa30 [ 497.372093] ? xfs_file_iomap_begin+0x1ed0/0x1ed0 [ 497.376912] ? xfs_iunlock+0x248/0x3b0 [ 497.380785] ? rcu_read_lock_sched_held+0x16c/0x1d0 [ 497.385780] ? xfs_iunlock+0x21a/0x3b0 [ 497.389654] xfs_map_blocks+0x548/0x940 [ 497.393607] ? xfs_vm_set_page_dirty+0x610/0x610 [ 497.398337] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 497.403766] xfs_do_writepage+0x422/0x13d0 [ 497.407988] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 497.412294] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 497.417721] write_cache_pages+0x505/0xd20 [ 497.421950] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 497.426259] ? clear_page_dirty_for_io+0xb80/0xb80 [ 497.431174] ? trace_hardirqs_on+0x10/0x10 [ 497.435387] xfs_vm_writepages+0x258/0x340 [ 497.439618] ? xfs_vm_writepage+0xd0/0xd0 [ 497.443760] ? xfs_vm_writepage+0xd0/0xd0 [ 497.447886] do_writepages+0xc3/0x240 [ 497.451670] ? page_writeback_cpu_online+0x10/0x10 [ 497.456582] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 497.462008] __writeback_single_inode+0xda/0x1010 [ 497.466835] writeback_sb_inodes+0x48b/0xd30 [ 497.471229] ? wbc_detach_inode+0x780/0x780 [ 497.475529] ? queue_io+0x400/0x5a0 [ 497.479135] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 497.484567] wb_writeback+0x243/0xb80 [ 497.488357] ? writeback_inodes_wb.constprop.0+0x1a0/0x1a0 [ 497.493988] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 497.499412] wb_workfn+0x2bd/0xf50 [ 497.502931] ? process_one_work+0x6c4/0x14a0 [ 497.507323] ? inode_wait_for_writeback+0x30/0x30 [ 497.512148] ? lock_acquire+0x170/0x3f0 [ 497.516096] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 497.521522] process_one_work+0x793/0x14a0 [ 497.525747] ? work_busy+0x320/0x320 [ 497.529443] ? worker_thread+0x158/0xff0 [ 497.533496] ? _raw_spin_unlock_irq+0x24/0x80 [ 497.537980] worker_thread+0x5cc/0xff0 [ 497.541855] ? rescuer_thread+0xc80/0xc80 [ 497.545983] kthread+0x30d/0x420 [ 497.549331] ? kthread_create_on_node+0xd0/0xd0 [ 497.553974] ret_from_fork+0x24/0x30 [ 497.558193] XFS (loop1): page discard on page ffffea000129e080, inode 0x29, offset 1101824. [ 497.567096] XFS (loop1): Internal error XFS_WANT_CORRUPTED_RETURN at line 431 of file fs/xfs/libxfs/xfs_alloc.c. Caller xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 497.581631] CPU: 1 PID: 2818 Comm: kworker/u4:3 Not tainted 4.14.303-syzkaller #0 [ 497.589233] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023 [ 497.598570] Workqueue: writeback wb_workfn (flush-7:1) [ 497.603825] Call Trace: [ 497.606408] dump_stack+0x1b2/0x281 [ 497.610014] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 497.615265] xfs_error_report+0x98/0xa0 [ 497.619225] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 497.624507] xfs_alloc_fixup_trees+0x425/0x4f0 [ 497.629065] ? xfs_alloc_update+0x90/0x90 [ 497.633186] ? xfs_btree_rec_offset.isra.0+0x3b/0xa0 [ 497.638263] ? xfs_alloc_compute_diff+0x23c/0x3d0 [ 497.643098] xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 497.648180] ? xfs_alloc_fix_freelist+0x685/0xeb0 [ 497.652998] ? xfs_alloc_ag_vextent_size+0x1ea0/0x1ea0 [ 497.658268] ? xfs_alloc_read_agf+0xb10/0xb10 [ 497.662763] xfs_alloc_ag_vextent+0x579/0x750 [ 497.667250] ? xfs_perag_get+0x116/0x410 [ 497.671290] ? xfs_alloc_vextent+0x470/0x2010 [ 497.675774] xfs_alloc_vextent+0x10b0/0x2010 [ 497.680169] xfs_bmap_btalloc+0x9e5/0x1b20 [ 497.684384] ? xfs_bmap_adjacent+0x1480/0x1480 [ 497.688940] ? ret_from_fork+0x24/0x30 [ 497.692811] ? __xfs_bmbt_get_all+0x16/0x100 [ 497.697207] xfs_bmap_alloc+0x107/0x160 [ 497.701168] xfs_bmapi_write+0xa49/0x1d00 [ 497.705307] ? xfs_bmapi_reserve_delalloc+0x7c0/0x7c0 [ 497.710485] ? trace_hardirqs_on+0x10/0x10 [ 497.714702] ? xfs_iext_get_ext+0xeb/0x200 [ 497.718912] ? xfs_iext_idx_to_irec+0x340/0x340 [ 497.723566] ? xfs_bmap_last_extent+0x1d0/0x1d0 [ 497.728218] xfs_iomap_write_allocate+0x42b/0xa30 [ 497.733042] ? xfs_file_iomap_begin+0x1ed0/0x1ed0 [ 497.737867] ? xfs_iunlock+0x248/0x3b0 [ 497.741831] ? rcu_read_lock_sched_held+0x16c/0x1d0 [ 497.746824] ? xfs_iunlock+0x21a/0x3b0 [ 497.750686] xfs_map_blocks+0x548/0x940 [ 497.754640] ? xfs_vm_set_page_dirty+0x610/0x610 [ 497.759373] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 497.764799] xfs_do_writepage+0x422/0x13d0 [ 497.769012] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 497.773313] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 497.778742] write_cache_pages+0x505/0xd20 [ 497.782956] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 497.787256] ? clear_page_dirty_for_io+0xb80/0xb80 [ 497.792166] ? trace_hardirqs_on+0x10/0x10 [ 497.796386] xfs_vm_writepages+0x258/0x340 [ 497.800607] ? xfs_vm_writepage+0xd0/0xd0 [ 497.804734] ? xfs_vm_writepage+0xd0/0xd0 [ 497.808862] do_writepages+0xc3/0x240 [ 497.812641] ? page_writeback_cpu_online+0x10/0x10 [ 497.817561] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 497.822995] __writeback_single_inode+0xda/0x1010 [ 497.827814] writeback_sb_inodes+0x48b/0xd30 [ 497.832198] ? wbc_detach_inode+0x780/0x780 [ 497.836505] ? queue_io+0x400/0x5a0 [ 497.840113] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 497.845545] wb_writeback+0x243/0xb80 [ 497.849329] ? writeback_inodes_wb.constprop.0+0x1a0/0x1a0 [ 497.854928] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 497.860356] wb_workfn+0x2bd/0xf50 [ 497.863874] ? process_one_work+0x6c4/0x14a0 [ 497.868261] ? inode_wait_for_writeback+0x30/0x30 [ 497.873079] ? lock_acquire+0x170/0x3f0 [ 497.877036] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 497.882471] process_one_work+0x793/0x14a0 [ 497.886693] ? work_busy+0x320/0x320 [ 497.890381] ? worker_thread+0x158/0xff0 [ 497.894421] ? _raw_spin_unlock_irq+0x24/0x80 [ 497.898894] worker_thread+0x5cc/0xff0 [ 497.902774] ? rescuer_thread+0xc80/0xc80 [ 497.906924] kthread+0x30d/0x420 [ 497.910286] ? kthread_create_on_node+0xd0/0xd0 [ 497.914932] ret_from_fork+0x24/0x30 [ 497.919081] XFS (loop1): page discard on page ffffea000129e0c0, inode 0x29, offset 1105920. [ 497.927985] XFS (loop1): Internal error XFS_WANT_CORRUPTED_RETURN at line 431 of file fs/xfs/libxfs/xfs_alloc.c. Caller xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 497.942536] CPU: 1 PID: 2818 Comm: kworker/u4:3 Not tainted 4.14.303-syzkaller #0 [ 497.950150] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023 [ 497.959496] Workqueue: writeback wb_workfn (flush-7:1) [ 497.964778] Call Trace: [ 497.967341] dump_stack+0x1b2/0x281 [ 497.970948] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 497.976210] xfs_error_report+0x98/0xa0 [ 497.980171] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 497.985442] xfs_alloc_fixup_trees+0x425/0x4f0 [ 497.990006] ? xfs_alloc_update+0x90/0x90 [ 497.994133] ? xfs_btree_rec_offset.isra.0+0x3b/0xa0 [ 497.999216] ? xfs_alloc_compute_diff+0x23c/0x3d0 [ 498.004046] xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 498.009146] ? xfs_alloc_fix_freelist+0x685/0xeb0 [ 498.014020] ? xfs_alloc_ag_vextent_size+0x1ea0/0x1ea0 [ 498.019283] ? xfs_alloc_read_agf+0xb10/0xb10 [ 498.023767] xfs_alloc_ag_vextent+0x579/0x750 [ 498.028241] ? xfs_perag_get+0x116/0x410 [ 498.032278] ? xfs_alloc_vextent+0x470/0x2010 [ 498.036756] xfs_alloc_vextent+0x10b0/0x2010 [ 498.041153] xfs_bmap_btalloc+0x9e5/0x1b20 [ 498.045375] ? xfs_bmap_adjacent+0x1480/0x1480 [ 498.049938] ? ret_from_fork+0x24/0x30 [ 498.053806] ? __xfs_bmbt_get_all+0x16/0x100 [ 498.058232] xfs_bmap_alloc+0x107/0x160 [ 498.062184] xfs_bmapi_write+0xa49/0x1d00 [ 498.066320] ? xfs_bmapi_reserve_delalloc+0x7c0/0x7c0 [ 498.071496] ? trace_hardirqs_on+0x10/0x10 [ 498.075714] ? xfs_iext_get_ext+0xeb/0x200 [ 498.079930] ? xfs_iext_idx_to_irec+0x340/0x340 [ 498.084582] ? xfs_bmap_last_extent+0x1d0/0x1d0 [ 498.089227] xfs_iomap_write_allocate+0x42b/0xa30 [ 498.094049] ? xfs_file_iomap_begin+0x1ed0/0x1ed0 [ 498.098872] ? xfs_iunlock+0x248/0x3b0 [ 498.102741] ? rcu_read_lock_sched_held+0x16c/0x1d0 [ 498.107731] ? xfs_iunlock+0x21a/0x3b0 [ 498.111595] xfs_map_blocks+0x548/0x940 [ 498.115559] ? xfs_vm_set_page_dirty+0x610/0x610 [ 498.120297] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 498.125731] xfs_do_writepage+0x422/0x13d0 [ 498.129953] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 498.134253] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 498.139680] write_cache_pages+0x505/0xd20 [ 498.143892] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 498.148191] ? clear_page_dirty_for_io+0xb80/0xb80 [ 498.153102] ? trace_hardirqs_on+0x10/0x10 [ 498.157324] xfs_vm_writepages+0x258/0x340 [ 498.161544] ? xfs_vm_writepage+0xd0/0xd0 [ 498.165680] ? xfs_vm_writepage+0xd0/0xd0 [ 498.169810] do_writepages+0xc3/0x240 [ 498.173589] ? page_writeback_cpu_online+0x10/0x10 [ 498.178524] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 498.183951] __writeback_single_inode+0xda/0x1010 [ 498.188774] writeback_sb_inodes+0x48b/0xd30 [ 498.193162] ? wbc_detach_inode+0x780/0x780 [ 498.197471] ? queue_io+0x400/0x5a0 [ 498.201078] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 498.206504] wb_writeback+0x243/0xb80 [ 498.210280] ? writeback_inodes_wb.constprop.0+0x1a0/0x1a0 [ 498.215894] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 498.221326] wb_workfn+0x2bd/0xf50 [ 498.224842] ? process_one_work+0x6c4/0x14a0 [ 498.229226] ? inode_wait_for_writeback+0x30/0x30 [ 498.234043] ? lock_acquire+0x170/0x3f0 [ 498.238002] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 498.243436] process_one_work+0x793/0x14a0 [ 498.247652] ? work_busy+0x320/0x320 [ 498.251341] ? worker_thread+0x158/0xff0 [ 498.255385] ? _raw_spin_unlock_irq+0x24/0x80 [ 498.259869] worker_thread+0x5cc/0xff0 [ 498.263737] ? rescuer_thread+0xc80/0xc80 [ 498.267861] kthread+0x30d/0x420 [ 498.271202] ? kthread_create_on_node+0xd0/0xd0 [ 498.275854] ret_from_fork+0x24/0x30 [ 498.279918] XFS (loop1): page discard on page ffffea00012b3300, inode 0x29, offset 1110016. [ 498.288819] XFS (loop1): Internal error XFS_WANT_CORRUPTED_RETURN at line 431 of file fs/xfs/libxfs/xfs_alloc.c. Caller xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 498.303375] CPU: 1 PID: 2818 Comm: kworker/u4:3 Not tainted 4.14.303-syzkaller #0 [ 498.310988] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023 [ 498.320339] Workqueue: writeback wb_workfn (flush-7:1) [ 498.325599] Call Trace: [ 498.328173] dump_stack+0x1b2/0x281 [ 498.331775] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 498.337036] xfs_error_report+0x98/0xa0 [ 498.340993] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 498.346256] xfs_alloc_fixup_trees+0x425/0x4f0 [ 498.350821] ? xfs_alloc_update+0x90/0x90 [ 498.354958] ? xfs_btree_rec_offset.isra.0+0x3b/0xa0 [ 498.360038] ? xfs_alloc_compute_diff+0x23c/0x3d0 [ 498.364875] xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 498.369957] ? xfs_alloc_fix_freelist+0x685/0xeb0 [ 498.374777] ? xfs_alloc_ag_vextent_size+0x1ea0/0x1ea0 [ 498.380030] ? xfs_alloc_read_agf+0xb10/0xb10 [ 498.384509] xfs_alloc_ag_vextent+0x579/0x750 [ 498.388980] ? xfs_perag_get+0x116/0x410 [ 498.393014] ? xfs_alloc_vextent+0x470/0x2010 [ 498.397493] xfs_alloc_vextent+0x10b0/0x2010 [ 498.401889] xfs_bmap_btalloc+0x9e5/0x1b20 [ 498.406113] ? xfs_bmap_adjacent+0x1480/0x1480 [ 498.410675] ? ret_from_fork+0x24/0x30 [ 498.414545] ? __xfs_bmbt_get_all+0x16/0x100 [ 498.418931] xfs_bmap_alloc+0x107/0x160 [ 498.422882] xfs_bmapi_write+0xa49/0x1d00 [ 498.427029] ? xfs_bmapi_reserve_delalloc+0x7c0/0x7c0 [ 498.432193] ? trace_hardirqs_on+0x10/0x10 [ 498.436416] ? xfs_iext_get_ext+0xeb/0x200 [ 498.440656] ? xfs_iext_idx_to_irec+0x340/0x340 [ 498.445317] ? xfs_bmap_last_extent+0x1d0/0x1d0 [ 498.449985] xfs_iomap_write_allocate+0x42b/0xa30 [ 498.454811] ? xfs_file_iomap_begin+0x1ed0/0x1ed0 [ 498.459628] ? xfs_iunlock+0x248/0x3b0 [ 498.463496] ? rcu_read_lock_sched_held+0x16c/0x1d0 [ 498.468497] ? xfs_iunlock+0x21a/0x3b0 [ 498.472360] xfs_map_blocks+0x548/0x940 [ 498.476316] ? xfs_vm_set_page_dirty+0x610/0x610 [ 498.481070] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 498.486505] xfs_do_writepage+0x422/0x13d0 [ 498.490725] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 498.495021] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 498.500449] write_cache_pages+0x505/0xd20 [ 498.504658] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 498.508959] ? clear_page_dirty_for_io+0xb80/0xb80 [ 498.513960] ? trace_hardirqs_on+0x10/0x10 [ 498.518171] xfs_vm_writepages+0x258/0x340 [ 498.522397] ? xfs_vm_writepage+0xd0/0xd0 [ 498.526533] ? xfs_vm_writepage+0xd0/0xd0 [ 498.530660] do_writepages+0xc3/0x240 [ 498.534457] ? page_writeback_cpu_online+0x10/0x10 [ 498.539367] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 498.544797] __writeback_single_inode+0xda/0x1010 [ 498.549616] writeback_sb_inodes+0x48b/0xd30 [ 498.554003] ? wbc_detach_inode+0x780/0x780 [ 498.558303] ? queue_io+0x400/0x5a0 [ 498.561903] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 498.567330] wb_writeback+0x243/0xb80 [ 498.571110] ? writeback_inodes_wb.constprop.0+0x1a0/0x1a0 [ 498.576722] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 498.582170] wb_workfn+0x2bd/0xf50 [ 498.585703] ? process_one_work+0x6c4/0x14a0 [ 498.590093] ? inode_wait_for_writeback+0x30/0x30 [ 498.594912] ? lock_acquire+0x170/0x3f0 [ 498.598865] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 498.604292] process_one_work+0x793/0x14a0 [ 498.608507] ? work_busy+0x320/0x320 [ 498.612193] ? worker_thread+0x158/0xff0 [ 498.616242] ? _raw_spin_unlock_irq+0x24/0x80 [ 498.620725] worker_thread+0x5cc/0xff0 [ 498.624593] ? rescuer_thread+0xc80/0xc80 [ 498.628806] kthread+0x30d/0x420 [ 498.632149] ? kthread_create_on_node+0xd0/0xd0 [ 498.636800] ret_from_fork+0x24/0x30 [ 498.641146] XFS (loop1): page discard on page ffffea00012b3340, inode 0x29, offset 1114112. [ 498.650038] XFS (loop1): Internal error XFS_WANT_CORRUPTED_RETURN at line 431 of file fs/xfs/libxfs/xfs_alloc.c. Caller xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 498.664608] CPU: 1 PID: 2818 Comm: kworker/u4:3 Not tainted 4.14.303-syzkaller #0 [ 498.672220] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023 [ 498.681572] Workqueue: writeback wb_workfn (flush-7:1) [ 498.686827] Call Trace: [ 498.689393] dump_stack+0x1b2/0x281 [ 498.693000] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 498.698256] xfs_error_report+0x98/0xa0 [ 498.702211] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 498.707467] xfs_alloc_fixup_trees+0x425/0x4f0 [ 498.712024] ? xfs_alloc_update+0x90/0x90 [ 498.716153] ? xfs_btree_rec_offset.isra.0+0x3b/0xa0 [ 498.721242] ? xfs_alloc_compute_diff+0x23c/0x3d0 [ 498.726057] xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 498.731140] ? xfs_alloc_fix_freelist+0x685/0xeb0 [ 498.735965] ? xfs_alloc_ag_vextent_size+0x1ea0/0x1ea0 [ 498.741224] ? xfs_alloc_read_agf+0xb10/0xb10 [ 498.745702] xfs_alloc_ag_vextent+0x579/0x750 [ 498.750174] ? xfs_perag_get+0x116/0x410 [ 498.754207] ? xfs_alloc_vextent+0x470/0x2010 [ 498.758683] xfs_alloc_vextent+0x10b0/0x2010 [ 498.763079] xfs_bmap_btalloc+0x9e5/0x1b20 [ 498.767313] ? xfs_bmap_adjacent+0x1480/0x1480 [ 498.771870] ? ret_from_fork+0x24/0x30 [ 498.775754] ? __xfs_bmbt_get_all+0x16/0x100 [ 498.780147] xfs_bmap_alloc+0x107/0x160 [ 498.784096] xfs_bmapi_write+0xa49/0x1d00 [ 498.788224] ? xfs_bmapi_reserve_delalloc+0x7c0/0x7c0 [ 498.793389] ? trace_hardirqs_on+0x10/0x10 [ 498.797630] ? xfs_iext_get_ext+0xeb/0x200 [ 498.801846] ? xfs_iext_idx_to_irec+0x340/0x340 [ 498.806500] ? xfs_bmap_last_extent+0x1d0/0x1d0 [ 498.811145] xfs_iomap_write_allocate+0x42b/0xa30 [ 498.815979] ? xfs_file_iomap_begin+0x1ed0/0x1ed0 [ 498.820804] ? xfs_iunlock+0x248/0x3b0 [ 498.824682] ? rcu_read_lock_sched_held+0x16c/0x1d0 [ 498.829672] ? xfs_iunlock+0x21a/0x3b0 [ 498.833536] xfs_map_blocks+0x548/0x940 [ 498.837498] ? xfs_vm_set_page_dirty+0x610/0x610 [ 498.842254] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 498.847683] xfs_do_writepage+0x422/0x13d0 [ 498.851901] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 498.856208] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 498.861645] write_cache_pages+0x505/0xd20 [ 498.865859] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 498.870156] ? clear_page_dirty_for_io+0xb80/0xb80 [ 498.875066] ? trace_hardirqs_on+0x10/0x10 [ 498.879288] xfs_vm_writepages+0x258/0x340 [ 498.883515] ? xfs_vm_writepage+0xd0/0xd0 [ 498.887655] ? xfs_vm_writepage+0xd0/0xd0 [ 498.891786] do_writepages+0xc3/0x240 [ 498.895574] ? page_writeback_cpu_online+0x10/0x10 [ 498.900517] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 498.905946] __writeback_single_inode+0xda/0x1010 [ 498.910764] writeback_sb_inodes+0x48b/0xd30 [ 498.915151] ? wbc_detach_inode+0x780/0x780 [ 498.919453] ? queue_io+0x400/0x5a0 [ 498.923055] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 498.928482] wb_writeback+0x243/0xb80 [ 498.932259] ? writeback_inodes_wb.constprop.0+0x1a0/0x1a0 [ 498.937870] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 498.943306] wb_workfn+0x2bd/0xf50 [ 498.946826] ? process_one_work+0x6c4/0x14a0 [ 498.951206] ? inode_wait_for_writeback+0x30/0x30 [ 498.956031] ? lock_acquire+0x170/0x3f0 [ 498.959990] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 498.965420] process_one_work+0x793/0x14a0 [ 498.969633] ? work_busy+0x320/0x320 [ 498.973319] ? worker_thread+0x158/0xff0 [ 498.977367] ? _raw_spin_unlock_irq+0x24/0x80 [ 498.981853] worker_thread+0x5cc/0xff0 [ 498.985719] ? rescuer_thread+0xc80/0xc80 [ 498.989839] kthread+0x30d/0x420 [ 498.993182] ? kthread_create_on_node+0xd0/0xd0 [ 498.997831] ret_from_fork+0x24/0x30 [ 499.002146] XFS (loop1): page discard on page ffffea00012b3380, inode 0x29, offset 1118208. [ 499.011054] XFS (loop1): Internal error XFS_WANT_CORRUPTED_RETURN at line 431 of file fs/xfs/libxfs/xfs_alloc.c. Caller xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 499.025601] CPU: 1 PID: 2818 Comm: kworker/u4:3 Not tainted 4.14.303-syzkaller #0 [ 499.033237] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023 [ 499.042580] Workqueue: writeback wb_workfn (flush-7:1) [ 499.047836] Call Trace: [ 499.050404] dump_stack+0x1b2/0x281 [ 499.054133] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 499.059399] xfs_error_report+0x98/0xa0 [ 499.063365] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 499.068621] xfs_alloc_fixup_trees+0x425/0x4f0 [ 499.073203] ? xfs_alloc_update+0x90/0x90 [ 499.077331] ? xfs_btree_rec_offset.isra.0+0x3b/0xa0 [ 499.082422] ? xfs_alloc_compute_diff+0x23c/0x3d0 [ 499.087240] xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 499.092344] ? xfs_alloc_fix_freelist+0x685/0xeb0 [ 499.097166] ? xfs_alloc_ag_vextent_size+0x1ea0/0x1ea0 [ 499.102425] ? xfs_alloc_read_agf+0xb10/0xb10 [ 499.106903] xfs_alloc_ag_vextent+0x579/0x750 [ 499.111371] ? xfs_perag_get+0x116/0x410 [ 499.115421] ? xfs_alloc_vextent+0x470/0x2010 [ 499.119898] xfs_alloc_vextent+0x10b0/0x2010 [ 499.124286] xfs_bmap_btalloc+0x9e5/0x1b20 [ 499.128504] ? xfs_bmap_adjacent+0x1480/0x1480 [ 499.133058] ? ret_from_fork+0x24/0x30 [ 499.136942] ? __xfs_bmbt_get_all+0x16/0x100 [ 499.141343] xfs_bmap_alloc+0x107/0x160 [ 499.145296] xfs_bmapi_write+0xa49/0x1d00 [ 499.149453] ? xfs_bmapi_reserve_delalloc+0x7c0/0x7c0 [ 499.154619] ? trace_hardirqs_on+0x10/0x10 [ 499.158832] ? xfs_iext_get_ext+0xeb/0x200 [ 499.163039] ? xfs_iext_idx_to_irec+0x340/0x340 [ 499.167688] ? xfs_bmap_last_extent+0x1d0/0x1d0 [ 499.172333] xfs_iomap_write_allocate+0x42b/0xa30 [ 499.177166] ? xfs_file_iomap_begin+0x1ed0/0x1ed0 [ 499.181993] ? xfs_iunlock+0x248/0x3b0 [ 499.185863] ? rcu_read_lock_sched_held+0x16c/0x1d0 [ 499.190855] ? xfs_iunlock+0x21a/0x3b0 [ 499.194717] xfs_map_blocks+0x548/0x940 [ 499.198677] ? xfs_vm_set_page_dirty+0x610/0x610 [ 499.203422] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 499.208846] xfs_do_writepage+0x422/0x13d0 [ 499.213057] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 499.217367] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 499.222803] write_cache_pages+0x505/0xd20 [ 499.227012] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 499.231311] ? clear_page_dirty_for_io+0xb80/0xb80 [ 499.236234] ? trace_hardirqs_on+0x10/0x10 [ 499.240464] xfs_vm_writepages+0x258/0x340 [ 499.244695] ? xfs_vm_writepage+0xd0/0xd0 [ 499.248843] ? xfs_vm_writepage+0xd0/0xd0 [ 499.252981] do_writepages+0xc3/0x240 [ 499.256781] ? page_writeback_cpu_online+0x10/0x10 [ 499.261708] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 499.267149] __writeback_single_inode+0xda/0x1010 [ 499.271986] writeback_sb_inodes+0x48b/0xd30 [ 499.276404] ? wbc_detach_inode+0x780/0x780 [ 499.280724] ? queue_io+0x400/0x5a0 [ 499.284344] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 499.289785] wb_writeback+0x243/0xb80 [ 499.293579] ? writeback_inodes_wb.constprop.0+0x1a0/0x1a0 [ 499.299203] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 499.304647] wb_workfn+0x2bd/0xf50 [ 499.308181] ? process_one_work+0x6c4/0x14a0 [ 499.312582] ? inode_wait_for_writeback+0x30/0x30 [ 499.317418] ? lock_acquire+0x170/0x3f0 [ 499.321395] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 499.326843] process_one_work+0x793/0x14a0 [ 499.331074] ? work_busy+0x320/0x320 [ 499.334780] ? worker_thread+0x158/0xff0 [ 499.338835] ? _raw_spin_unlock_irq+0x24/0x80 [ 499.343329] worker_thread+0x5cc/0xff0 [ 499.347219] ? rescuer_thread+0xc80/0xc80 [ 499.351362] kthread+0x30d/0x420 [ 499.354723] ? kthread_create_on_node+0xd0/0xd0 [ 499.359390] ret_from_fork+0x24/0x30 [ 499.371945] XFS (loop1): page discard on page ffffea00012b33c0, inode 0x29, offset 1122304. [ 499.405631] XFS (loop1): Internal error XFS_WANT_CORRUPTED_RETURN at line 431 of file fs/xfs/libxfs/xfs_alloc.c. Caller xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 499.445284] CPU: 1 PID: 2818 Comm: kworker/u4:3 Not tainted 4.14.303-syzkaller #0 [ 499.452921] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023 [ 499.462280] Workqueue: writeback wb_workfn (flush-7:1) [ 499.467554] Call Trace: [ 499.470143] dump_stack+0x1b2/0x281 [ 499.473774] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 499.479051] xfs_error_report+0x98/0xa0 [ 499.483020] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 499.488297] xfs_alloc_fixup_trees+0x425/0x4f0 [ 499.492879] ? xfs_alloc_update+0x90/0x90 [ 499.497023] ? xfs_btree_rec_offset.isra.0+0x3b/0xa0 [ 499.502124] ? xfs_alloc_compute_diff+0x23c/0x3d0 [ 499.506960] xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 499.512065] ? xfs_alloc_fix_freelist+0x685/0xeb0 [ 499.516903] ? xfs_alloc_ag_vextent_size+0x1ea0/0x1ea0 [ 499.522175] ? xfs_alloc_read_agf+0xb10/0xb10 [ 499.526679] xfs_alloc_ag_vextent+0x579/0x750 [ 499.531165] ? xfs_perag_get+0x116/0x410 [ 499.535216] ? xfs_alloc_vextent+0x470/0x2010 [ 499.539705] xfs_alloc_vextent+0x10b0/0x2010 [ 499.544114] xfs_bmap_btalloc+0x9e5/0x1b20 [ 499.548346] ? xfs_bmap_adjacent+0x1480/0x1480 [ 499.552922] ? ret_from_fork+0x24/0x30 [ 499.556814] ? __xfs_bmbt_get_all+0x16/0x100 [ 499.561218] xfs_bmap_alloc+0x107/0x160 [ 499.565184] xfs_bmapi_write+0xa49/0x1d00 [ 499.569336] ? xfs_bmapi_reserve_delalloc+0x7c0/0x7c0 [ 499.574528] ? trace_hardirqs_on+0x10/0x10 [ 499.578764] ? xfs_iext_get_ext+0xeb/0x200 [ 499.583005] ? xfs_iext_idx_to_irec+0x340/0x340 [ 499.587683] ? xfs_bmap_last_extent+0x1d0/0x1d0 [ 499.592359] xfs_iomap_write_allocate+0x42b/0xa30 [ 499.597220] ? xfs_file_iomap_begin+0x1ed0/0x1ed0 [ 499.602064] ? xfs_iunlock+0x248/0x3b0 [ 499.605956] ? rcu_read_lock_sched_held+0x16c/0x1d0 [ 499.610971] ? xfs_iunlock+0x21a/0x3b0 [ 499.614854] xfs_map_blocks+0x548/0x940 [ 499.618827] ? xfs_vm_set_page_dirty+0x610/0x610 [ 499.623580] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 499.629026] xfs_do_writepage+0x422/0x13d0 [ 499.633259] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 499.637578] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 499.643025] write_cache_pages+0x505/0xd20 [ 499.647258] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 499.651577] ? clear_page_dirty_for_io+0xb80/0xb80 [ 499.656511] ? trace_hardirqs_on+0x10/0x10 [ 499.660744] xfs_vm_writepages+0x258/0x340 [ 499.664974] ? xfs_vm_writepage+0xd0/0xd0 [ 499.669128] ? xfs_vm_writepage+0xd0/0xd0 [ 499.673271] do_writepages+0xc3/0x240 [ 499.677072] ? page_writeback_cpu_online+0x10/0x10 [ 499.682004] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 499.687454] __writeback_single_inode+0xda/0x1010 [ 499.692301] writeback_sb_inodes+0x48b/0xd30 [ 499.696723] ? wbc_detach_inode+0x780/0x780 [ 499.701050] ? queue_io+0x400/0x5a0 [ 499.704675] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 499.710128] wb_writeback+0x243/0xb80 [ 499.713935] ? writeback_inodes_wb.constprop.0+0x1a0/0x1a0 [ 499.719566] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 499.725020] wb_workfn+0x2bd/0xf50 [ 499.728561] ? process_one_work+0x6c4/0x14a0 [ 499.732972] ? inode_wait_for_writeback+0x30/0x30 [ 499.737814] ? lock_acquire+0x170/0x3f0 [ 499.741794] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 499.747247] process_one_work+0x793/0x14a0 [ 499.751494] ? work_busy+0x320/0x320 [ 499.755206] ? worker_thread+0x158/0xff0 [ 499.759263] ? _raw_spin_unlock_irq+0x24/0x80 [ 499.763757] worker_thread+0x5cc/0xff0 [ 499.767645] ? rescuer_thread+0xc80/0xc80 [ 499.771792] kthread+0x30d/0x420 [ 499.775151] ? kthread_create_on_node+0xd0/0xd0 [ 499.779818] ret_from_fork+0x24/0x30 [ 499.792825] XFS (loop1): page discard on page ffffea000129cb00, inode 0x29, offset 1126400. [ 499.803738] XFS (loop1): Internal error XFS_WANT_CORRUPTED_RETURN at line 431 of file fs/xfs/libxfs/xfs_alloc.c. Caller xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 499.822807] CPU: 1 PID: 2818 Comm: kworker/u4:3 Not tainted 4.14.303-syzkaller #0 [ 499.830439] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023 [ 499.839800] Workqueue: writeback wb_workfn (flush-7:1) [ 499.845076] Call Trace: [ 499.847659] dump_stack+0x1b2/0x281 [ 499.851286] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 499.856566] xfs_error_report+0x98/0xa0 [ 499.860539] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 499.865816] xfs_alloc_fixup_trees+0x425/0x4f0 [ 499.870405] ? xfs_alloc_update+0x90/0x90 [ 499.874555] ? xfs_btree_rec_offset.isra.0+0x3b/0xa0 [ 499.879657] ? xfs_alloc_compute_diff+0x23c/0x3d0 [ 499.884502] xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 499.889617] ? xfs_alloc_fix_freelist+0x685/0xeb0 [ 499.894464] ? xfs_alloc_ag_vextent_size+0x1ea0/0x1ea0 [ 499.899739] ? xfs_alloc_read_agf+0xb10/0xb10 [ 499.904244] xfs_alloc_ag_vextent+0x579/0x750 [ 499.908736] ? xfs_perag_get+0x116/0x410 [ 499.912789] ? xfs_alloc_vextent+0x470/0x2010 [ 499.917276] xfs_alloc_vextent+0x10b0/0x2010 [ 499.921690] xfs_bmap_btalloc+0x9e5/0x1b20 [ 499.925953] ? xfs_bmap_adjacent+0x1480/0x1480 [ 499.930530] ? ret_from_fork+0x24/0x30 [ 499.934421] ? __xfs_bmbt_get_all+0x16/0x100 [ 499.938856] xfs_bmap_alloc+0x107/0x160 [ 499.942825] xfs_bmapi_write+0xa49/0x1d00 [ 499.946977] ? xfs_bmapi_reserve_delalloc+0x7c0/0x7c0 [ 499.952165] ? trace_hardirqs_on+0x10/0x10 [ 499.956399] ? xfs_iext_get_ext+0xeb/0x200 [ 499.960626] ? xfs_iext_idx_to_irec+0x340/0x340 [ 499.965297] ? xfs_bmap_last_extent+0x1d0/0x1d0 [ 499.969963] xfs_iomap_write_allocate+0x42b/0xa30 [ 499.974810] ? xfs_file_iomap_begin+0x1ed0/0x1ed0 [ 499.979649] ? xfs_iunlock+0x248/0x3b0 [ 499.983537] ? rcu_read_lock_sched_held+0x16c/0x1d0 [ 499.988548] ? xfs_iunlock+0x21a/0x3b0 [ 499.992433] xfs_map_blocks+0x548/0x940 [ 499.996403] ? xfs_vm_set_page_dirty+0x610/0x610 [ 500.001152] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 500.006595] xfs_do_writepage+0x422/0x13d0 [ 500.010828] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 500.015148] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 500.020592] write_cache_pages+0x505/0xd20 [ 500.024826] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 500.029144] ? clear_page_dirty_for_io+0xb80/0xb80 [ 500.034072] ? trace_hardirqs_on+0x10/0x10 [ 500.038302] xfs_vm_writepages+0x258/0x340 [ 500.042533] ? xfs_vm_writepage+0xd0/0xd0 [ 500.046681] ? xfs_vm_writepage+0xd0/0xd0 [ 500.050817] do_writepages+0xc3/0x240 [ 500.054614] ? page_writeback_cpu_online+0x10/0x10 [ 500.059541] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 500.064988] __writeback_single_inode+0xda/0x1010 [ 500.069829] writeback_sb_inodes+0x48b/0xd30 [ 500.074241] ? wbc_detach_inode+0x780/0x780 [ 500.078564] ? queue_io+0x400/0x5a0 [ 500.082188] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 500.087635] wb_writeback+0x243/0xb80 [ 500.091441] ? writeback_inodes_wb.constprop.0+0x1a0/0x1a0 [ 500.097065] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 500.102502] wb_workfn+0x2bd/0xf50 [ 500.106024] ? process_one_work+0x6c4/0x14a0 [ 500.110410] ? inode_wait_for_writeback+0x30/0x30 [ 500.115235] ? lock_acquire+0x170/0x3f0 [ 500.119192] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 500.124623] process_one_work+0x793/0x14a0 [ 500.128838] ? work_busy+0x320/0x320 [ 500.132530] ? worker_thread+0x158/0xff0 [ 500.136567] ? _raw_spin_unlock_irq+0x24/0x80 [ 500.141040] worker_thread+0x5cc/0xff0 [ 500.144907] ? rescuer_thread+0xc80/0xc80 [ 500.149032] kthread+0x30d/0x420 [ 500.152374] ? kthread_create_on_node+0xd0/0xd0 [ 500.157017] ret_from_fork+0x24/0x30 [ 500.161475] XFS (loop1): page discard on page ffffea000129cb40, inode 0x29, offset 1130496. [ 500.170428] XFS (loop1): Internal error XFS_WANT_CORRUPTED_RETURN at line 431 of file fs/xfs/libxfs/xfs_alloc.c. Caller xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 500.184983] CPU: 1 PID: 2818 Comm: kworker/u4:3 Not tainted 4.14.303-syzkaller #0 [ 500.192597] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023 [ 500.201951] Workqueue: writeback wb_workfn (flush-7:1) [ 500.207213] Call Trace: [ 500.209788] dump_stack+0x1b2/0x281 [ 500.213395] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 500.218647] xfs_error_report+0x98/0xa0 [ 500.222613] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 500.227872] xfs_alloc_fixup_trees+0x425/0x4f0 [ 500.232440] ? xfs_alloc_update+0x90/0x90 [ 500.236562] ? xfs_btree_rec_offset.isra.0+0x3b/0xa0 [ 500.241639] ? xfs_alloc_compute_diff+0x23c/0x3d0 [ 500.246463] xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 500.251579] ? xfs_alloc_fix_freelist+0x685/0xeb0 [ 500.256400] ? xfs_alloc_ag_vextent_size+0x1ea0/0x1ea0 [ 500.261650] ? xfs_alloc_read_agf+0xb10/0xb10 [ 500.266143] xfs_alloc_ag_vextent+0x579/0x750 [ 500.270618] ? xfs_perag_get+0x116/0x410 [ 500.274651] ? xfs_alloc_vextent+0x470/0x2010 [ 500.279120] xfs_alloc_vextent+0x10b0/0x2010 [ 500.283508] xfs_bmap_btalloc+0x9e5/0x1b20 [ 500.287728] ? xfs_bmap_adjacent+0x1480/0x1480 [ 500.292290] ? ret_from_fork+0x24/0x30 [ 500.296163] ? __xfs_bmbt_get_all+0x16/0x100 [ 500.300546] xfs_bmap_alloc+0x107/0x160 [ 500.304495] xfs_bmapi_write+0xa49/0x1d00 [ 500.308635] ? xfs_bmapi_reserve_delalloc+0x7c0/0x7c0 [ 500.313808] ? trace_hardirqs_on+0x10/0x10 [ 500.318020] ? xfs_iext_get_ext+0xeb/0x200 [ 500.322229] ? xfs_iext_idx_to_irec+0x340/0x340 [ 500.326888] ? xfs_bmap_last_extent+0x1d0/0x1d0 [ 500.331544] xfs_iomap_write_allocate+0x42b/0xa30 [ 500.336370] ? xfs_file_iomap_begin+0x1ed0/0x1ed0 [ 500.341188] ? xfs_iunlock+0x248/0x3b0 [ 500.345055] ? rcu_read_lock_sched_held+0x16c/0x1d0 [ 500.350048] ? xfs_iunlock+0x21a/0x3b0 [ 500.353912] xfs_map_blocks+0x548/0x940 [ 500.357864] ? xfs_vm_set_page_dirty+0x610/0x610 [ 500.362597] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 500.368031] xfs_do_writepage+0x422/0x13d0 [ 500.372253] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 500.376552] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 500.381978] write_cache_pages+0x505/0xd20 [ 500.386199] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 500.390506] ? clear_page_dirty_for_io+0xb80/0xb80 [ 500.395421] ? trace_hardirqs_on+0x10/0x10 [ 500.399634] xfs_vm_writepages+0x258/0x340 [ 500.403844] ? xfs_vm_writepage+0xd0/0xd0 [ 500.407981] ? xfs_vm_writepage+0xd0/0xd0 [ 500.412111] do_writepages+0xc3/0x240 [ 500.415897] ? page_writeback_cpu_online+0x10/0x10 [ 500.420810] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 500.426273] __writeback_single_inode+0xda/0x1010 [ 500.431105] writeback_sb_inodes+0x48b/0xd30 [ 500.435490] ? wbc_detach_inode+0x780/0x780 [ 500.439790] ? queue_io+0x400/0x5a0 [ 500.443394] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 500.448821] wb_writeback+0x243/0xb80 [ 500.452601] ? writeback_inodes_wb.constprop.0+0x1a0/0x1a0 [ 500.458203] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 500.463627] wb_workfn+0x2bd/0xf50 [ 500.467151] ? process_one_work+0x6c4/0x14a0 [ 500.471560] ? inode_wait_for_writeback+0x30/0x30 [ 500.476380] ? lock_acquire+0x170/0x3f0 [ 500.480349] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 500.485783] process_one_work+0x793/0x14a0 [ 500.490002] ? work_busy+0x320/0x320 [ 500.493695] ? worker_thread+0x158/0xff0 [ 500.497735] ? _raw_spin_unlock_irq+0x24/0x80 [ 500.502207] worker_thread+0x5cc/0xff0 [ 500.506083] ? rescuer_thread+0xc80/0xc80 [ 500.510215] kthread+0x30d/0x420 [ 500.513555] ? kthread_create_on_node+0xd0/0xd0 [ 500.518198] ret_from_fork+0x24/0x30 [ 500.522365] XFS (loop1): page discard on page ffffea000129cb80, inode 0x29, offset 1134592. [ 500.531272] XFS (loop1): Internal error XFS_WANT_CORRUPTED_RETURN at line 431 of file fs/xfs/libxfs/xfs_alloc.c. Caller xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 500.545926] CPU: 1 PID: 2818 Comm: kworker/u4:3 Not tainted 4.14.303-syzkaller #0 [ 500.553538] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023 [ 500.562883] Workqueue: writeback wb_workfn (flush-7:1) [ 500.568138] Call Trace: [ 500.570707] dump_stack+0x1b2/0x281 [ 500.574314] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 500.579569] xfs_error_report+0x98/0xa0 [ 500.583519] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 500.588776] xfs_alloc_fixup_trees+0x425/0x4f0 [ 500.593346] ? xfs_alloc_update+0x90/0x90 [ 500.597482] ? xfs_btree_rec_offset.isra.0+0x3b/0xa0 [ 500.602563] ? xfs_alloc_compute_diff+0x23c/0x3d0 [ 500.607400] xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 500.612506] ? xfs_alloc_fix_freelist+0x685/0xeb0 [ 500.617326] ? xfs_alloc_ag_vextent_size+0x1ea0/0x1ea0 [ 500.622580] ? xfs_alloc_read_agf+0xb10/0xb10 [ 500.627064] xfs_alloc_ag_vextent+0x579/0x750 [ 500.631536] ? xfs_perag_get+0x116/0x410 [ 500.635574] ? xfs_alloc_vextent+0x470/0x2010 [ 500.640050] xfs_alloc_vextent+0x10b0/0x2010 [ 500.644443] xfs_bmap_btalloc+0x9e5/0x1b20 [ 500.648676] ? xfs_bmap_adjacent+0x1480/0x1480 [ 500.653237] ? ret_from_fork+0x24/0x30 [ 500.657114] ? __xfs_bmbt_get_all+0x16/0x100 [ 500.661503] xfs_bmap_alloc+0x107/0x160 [ 500.665456] xfs_bmapi_write+0xa49/0x1d00 [ 500.669590] ? xfs_bmapi_reserve_delalloc+0x7c0/0x7c0 [ 500.674759] ? trace_hardirqs_on+0x10/0x10 [ 500.678974] ? xfs_iext_get_ext+0xeb/0x200 [ 500.683188] ? xfs_iext_idx_to_irec+0x340/0x340 [ 500.687842] ? xfs_bmap_last_extent+0x1d0/0x1d0 [ 500.692497] xfs_iomap_write_allocate+0x42b/0xa30 [ 500.697343] ? xfs_file_iomap_begin+0x1ed0/0x1ed0 [ 500.702162] ? xfs_iunlock+0x248/0x3b0 [ 500.706035] ? rcu_read_lock_sched_held+0x16c/0x1d0 [ 500.711028] ? xfs_iunlock+0x21a/0x3b0 [ 500.714894] xfs_map_blocks+0x548/0x940 [ 500.718864] ? xfs_vm_set_page_dirty+0x610/0x610 [ 500.723600] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 500.729031] xfs_do_writepage+0x422/0x13d0 [ 500.733249] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 500.737552] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 500.742983] write_cache_pages+0x505/0xd20 [ 500.747199] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 500.751501] ? clear_page_dirty_for_io+0xb80/0xb80 [ 500.756415] ? trace_hardirqs_on+0x10/0x10 [ 500.760632] xfs_vm_writepages+0x258/0x340 [ 500.764844] ? xfs_vm_writepage+0xd0/0xd0 [ 500.768974] ? xfs_vm_writepage+0xd0/0xd0 [ 500.773098] do_writepages+0xc3/0x240 [ 500.776880] ? page_writeback_cpu_online+0x10/0x10 [ 500.781793] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 500.787221] __writeback_single_inode+0xda/0x1010 [ 500.792045] writeback_sb_inodes+0x48b/0xd30 [ 500.796437] ? wbc_detach_inode+0x780/0x780 [ 500.800738] ? queue_io+0x400/0x5a0 [ 500.804342] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 500.809768] wb_writeback+0x243/0xb80 [ 500.813554] ? writeback_inodes_wb.constprop.0+0x1a0/0x1a0 [ 500.819158] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 500.824587] wb_workfn+0x2bd/0xf50 [ 500.828107] ? process_one_work+0x6c4/0x14a0 [ 500.832494] ? inode_wait_for_writeback+0x30/0x30 [ 500.837315] ? lock_acquire+0x170/0x3f0 [ 500.841274] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 500.846717] process_one_work+0x793/0x14a0 [ 500.850950] ? work_busy+0x320/0x320 [ 500.854655] ? worker_thread+0x158/0xff0 [ 500.858703] ? _raw_spin_unlock_irq+0x24/0x80 [ 500.863184] worker_thread+0x5cc/0xff0 [ 500.867057] ? rescuer_thread+0xc80/0xc80 [ 500.871185] kthread+0x30d/0x420 [ 500.874529] ? kthread_create_on_node+0xd0/0xd0 [ 500.879177] ret_from_fork+0x24/0x30 [ 500.894000] XFS (loop1): page discard on page ffffea000129cbc0, inode 0x29, offset 1138688. [ 500.902939] XFS (loop1): Internal error XFS_WANT_CORRUPTED_RETURN at line 431 of file fs/xfs/libxfs/xfs_alloc.c. Caller xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 500.917822] CPU: 1 PID: 2818 Comm: kworker/u4:3 Not tainted 4.14.303-syzkaller #0 [ 500.925451] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023 [ 500.934808] Workqueue: writeback wb_workfn (flush-7:1) [ 500.940084] Call Trace: [ 500.942662] dump_stack+0x1b2/0x281 [ 500.946269] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 500.951531] xfs_error_report+0x98/0xa0 [ 500.955484] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 500.960746] xfs_alloc_fixup_trees+0x425/0x4f0 [ 500.965306] ? xfs_alloc_update+0x90/0x90 [ 500.969427] ? xfs_btree_rec_offset.isra.0+0x3b/0xa0 [ 500.974506] ? xfs_alloc_compute_diff+0x23c/0x3d0 [ 500.979330] xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 500.984411] ? xfs_alloc_fix_freelist+0x685/0xeb0 [ 500.989233] ? xfs_alloc_ag_vextent_size+0x1ea0/0x1ea0 [ 500.994487] ? xfs_alloc_read_agf+0xb10/0xb10 [ 500.998967] xfs_alloc_ag_vextent+0x579/0x750 [ 501.003438] ? xfs_perag_get+0x116/0x410 [ 501.007471] ? xfs_alloc_vextent+0x470/0x2010 [ 501.011940] xfs_alloc_vextent+0x10b0/0x2010 [ 501.016338] xfs_bmap_btalloc+0x9e5/0x1b20 [ 501.020556] ? xfs_bmap_adjacent+0x1480/0x1480 [ 501.025113] ? ret_from_fork+0x24/0x30 [ 501.028982] ? __xfs_bmbt_get_all+0x16/0x100 [ 501.033365] xfs_bmap_alloc+0x107/0x160 [ 501.037323] xfs_bmapi_write+0xa49/0x1d00 [ 501.041458] ? xfs_bmapi_reserve_delalloc+0x7c0/0x7c0 [ 501.046625] ? trace_hardirqs_on+0x10/0x10 [ 501.050835] ? xfs_iext_get_ext+0xeb/0x200 [ 501.055043] ? xfs_iext_idx_to_irec+0x340/0x340 [ 501.059692] ? xfs_bmap_last_extent+0x1d0/0x1d0 [ 501.064342] xfs_iomap_write_allocate+0x42b/0xa30 [ 501.069181] ? xfs_file_iomap_begin+0x1ed0/0x1ed0 [ 501.073999] ? xfs_iunlock+0x248/0x3b0 [ 501.077880] ? rcu_read_lock_sched_held+0x16c/0x1d0 [ 501.082877] ? xfs_iunlock+0x21a/0x3b0 [ 501.086741] xfs_map_blocks+0x548/0x940 [ 501.090689] ? xfs_vm_set_page_dirty+0x610/0x610 [ 501.095425] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 501.100878] xfs_do_writepage+0x422/0x13d0 [ 501.105090] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 501.109389] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 501.114814] write_cache_pages+0x505/0xd20 [ 501.119025] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 501.123323] ? clear_page_dirty_for_io+0xb80/0xb80 [ 501.128255] ? trace_hardirqs_on+0x10/0x10 [ 501.132465] xfs_vm_writepages+0x258/0x340 [ 501.136681] ? xfs_vm_writepage+0xd0/0xd0 [ 501.140827] ? xfs_vm_writepage+0xd0/0xd0 [ 501.144960] do_writepages+0xc3/0x240 [ 501.148740] ? page_writeback_cpu_online+0x10/0x10 [ 501.153649] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 501.159099] __writeback_single_inode+0xda/0x1010 [ 501.163934] writeback_sb_inodes+0x48b/0xd30 [ 501.168325] ? wbc_detach_inode+0x780/0x780 [ 501.172624] ? queue_io+0x400/0x5a0 [ 501.176240] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 501.181676] wb_writeback+0x243/0xb80 [ 501.185452] ? writeback_inodes_wb.constprop.0+0x1a0/0x1a0 [ 501.191056] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 501.196488] wb_workfn+0x2bd/0xf50 [ 501.200015] ? process_one_work+0x6c4/0x14a0 [ 501.204402] ? inode_wait_for_writeback+0x30/0x30 [ 501.209228] ? lock_acquire+0x170/0x3f0 [ 501.213194] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 501.218630] process_one_work+0x793/0x14a0 [ 501.222850] ? work_busy+0x320/0x320 [ 501.226538] ? worker_thread+0x158/0xff0 [ 501.230666] ? _raw_spin_unlock_irq+0x24/0x80 [ 501.235138] worker_thread+0x5cc/0xff0 [ 501.239009] ? rescuer_thread+0xc80/0xc80 [ 501.243132] kthread+0x30d/0x420 [ 501.246475] ? kthread_create_on_node+0xd0/0xd0 [ 501.251123] ret_from_fork+0x24/0x30 [ 501.255410] XFS (loop1): page discard on page ffffea000115db00, inode 0x29, offset 1142784. [ 501.264310] XFS (loop1): Internal error XFS_WANT_CORRUPTED_RETURN at line 431 of file fs/xfs/libxfs/xfs_alloc.c. Caller xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 501.279280] CPU: 1 PID: 2818 Comm: kworker/u4:3 Not tainted 4.14.303-syzkaller #0 [ 501.286901] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023 [ 501.296256] Workqueue: writeback wb_workfn (flush-7:1) [ 501.301520] Call Trace: [ 501.304085] dump_stack+0x1b2/0x281 [ 501.307701] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 501.312957] xfs_error_report+0x98/0xa0 [ 501.316909] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 501.322162] xfs_alloc_fixup_trees+0x425/0x4f0 [ 501.326725] ? xfs_alloc_update+0x90/0x90 [ 501.330882] ? xfs_btree_rec_offset.isra.0+0x3b/0xa0 [ 501.335959] ? xfs_alloc_compute_diff+0x23c/0x3d0 [ 501.340776] xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 501.345869] ? xfs_alloc_fix_freelist+0x685/0xeb0 [ 501.350693] ? xfs_alloc_ag_vextent_size+0x1ea0/0x1ea0 [ 501.355944] ? xfs_alloc_read_agf+0xb10/0xb10 [ 501.360421] xfs_alloc_ag_vextent+0x579/0x750 [ 501.364892] ? xfs_perag_get+0x116/0x410 [ 501.368928] ? xfs_alloc_vextent+0x470/0x2010 [ 501.373408] xfs_alloc_vextent+0x10b0/0x2010 [ 501.377801] xfs_bmap_btalloc+0x9e5/0x1b20 [ 501.382034] ? xfs_bmap_adjacent+0x1480/0x1480 [ 501.386599] ? ret_from_fork+0x24/0x30 [ 501.390482] ? __xfs_bmbt_get_all+0x16/0x100 [ 501.394889] xfs_bmap_alloc+0x107/0x160 [ 501.398842] xfs_bmapi_write+0xa49/0x1d00 [ 501.402970] ? xfs_bmapi_reserve_delalloc+0x7c0/0x7c0 [ 501.408228] ? trace_hardirqs_on+0x10/0x10 [ 501.412447] ? xfs_iext_get_ext+0xeb/0x200 [ 501.416656] ? xfs_iext_idx_to_irec+0x340/0x340 [ 501.421308] ? xfs_bmap_last_extent+0x1d0/0x1d0 [ 501.425967] xfs_iomap_write_allocate+0x42b/0xa30 [ 501.430827] ? xfs_file_iomap_begin+0x1ed0/0x1ed0 [ 501.435646] ? xfs_iunlock+0x248/0x3b0 [ 501.439517] ? rcu_read_lock_sched_held+0x16c/0x1d0 [ 501.444508] ? xfs_iunlock+0x21a/0x3b0 [ 501.448375] xfs_map_blocks+0x548/0x940 [ 501.452333] ? xfs_vm_set_page_dirty+0x610/0x610 [ 501.457066] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 501.462498] xfs_do_writepage+0x422/0x13d0 [ 501.466719] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 501.471043] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 501.476470] write_cache_pages+0x505/0xd20 [ 501.480679] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 501.484976] ? clear_page_dirty_for_io+0xb80/0xb80 [ 501.489884] ? trace_hardirqs_on+0x10/0x10 [ 501.494094] xfs_vm_writepages+0x258/0x340 [ 501.498305] ? xfs_vm_writepage+0xd0/0xd0 [ 501.502433] ? xfs_vm_writepage+0xd0/0xd0 [ 501.506564] do_writepages+0xc3/0x240 [ 501.510351] ? page_writeback_cpu_online+0x10/0x10 [ 501.515260] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 501.520686] __writeback_single_inode+0xda/0x1010 [ 501.525510] writeback_sb_inodes+0x48b/0xd30 [ 501.529904] ? wbc_detach_inode+0x780/0x780 [ 501.534210] ? queue_io+0x400/0x5a0 [ 501.537833] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 501.543261] wb_writeback+0x243/0xb80 [ 501.547051] ? writeback_inodes_wb.constprop.0+0x1a0/0x1a0 [ 501.552681] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 501.558123] wb_workfn+0x2bd/0xf50 [ 501.561642] ? process_one_work+0x6c4/0x14a0 [ 501.566029] ? inode_wait_for_writeback+0x30/0x30 [ 501.570854] ? lock_acquire+0x170/0x3f0 [ 501.574803] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 501.580235] process_one_work+0x793/0x14a0 [ 501.584450] ? work_busy+0x320/0x320 [ 501.588145] ? worker_thread+0x158/0xff0 [ 501.592192] ? _raw_spin_unlock_irq+0x24/0x80 [ 501.596668] worker_thread+0x5cc/0xff0 [ 501.600534] ? rescuer_thread+0xc80/0xc80 [ 501.604659] kthread+0x30d/0x420 [ 501.608006] ? kthread_create_on_node+0xd0/0xd0 [ 501.612657] ret_from_fork+0x24/0x30 [ 501.616696] XFS (loop1): page discard on page ffffea000115db40, inode 0x29, offset 1146880. [ 501.625552] XFS (loop1): Internal error XFS_WANT_CORRUPTED_RETURN at line 431 of file fs/xfs/libxfs/xfs_alloc.c. Caller xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 501.640098] CPU: 1 PID: 2818 Comm: kworker/u4:3 Not tainted 4.14.303-syzkaller #0 [ 501.647709] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023 [ 501.657057] Workqueue: writeback wb_workfn (flush-7:1) [ 501.662311] Call Trace: [ 501.664875] dump_stack+0x1b2/0x281 [ 501.668488] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 501.673744] xfs_error_report+0x98/0xa0 [ 501.677711] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 501.682980] xfs_alloc_fixup_trees+0x425/0x4f0 [ 501.687555] ? xfs_alloc_update+0x90/0x90 [ 501.691690] ? xfs_btree_rec_offset.isra.0+0x3b/0xa0 [ 501.695268] Bluetooth: hci3 command 0x0406 tx timeout [ 501.696773] ? xfs_alloc_compute_diff+0x23c/0x3d0 [ 501.704373] Bluetooth: hci5 command 0x0406 tx timeout [ 501.706767] xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 501.706782] ? xfs_alloc_fix_freelist+0x685/0xeb0 [ 501.706788] ? xfs_alloc_ag_vextent_size+0x1ea0/0x1ea0 [ 501.706798] ? xfs_alloc_read_agf+0xb10/0xb10 [ 501.706820] xfs_alloc_ag_vextent+0x579/0x750 [ 501.706827] ? xfs_perag_get+0x116/0x410 [ 501.706833] ? xfs_alloc_vextent+0x470/0x2010 [ 501.706842] xfs_alloc_vextent+0x10b0/0x2010 [ 501.706859] xfs_bmap_btalloc+0x9e5/0x1b20 [ 501.706872] ? xfs_bmap_adjacent+0x1480/0x1480 [ 501.706879] ? ret_from_fork+0x24/0x30 [ 501.706898] ? __xfs_bmbt_get_all+0x16/0x100 [ 501.766048] xfs_bmap_alloc+0x107/0x160 [ 501.770003] xfs_bmapi_write+0xa49/0x1d00 [ 501.774130] ? xfs_bmapi_reserve_delalloc+0x7c0/0x7c0 [ 501.779304] ? trace_hardirqs_on+0x10/0x10 [ 501.783521] ? xfs_iext_get_ext+0xeb/0x200 [ 501.787734] ? xfs_iext_idx_to_irec+0x340/0x340 [ 501.792390] ? xfs_bmap_last_extent+0x1d0/0x1d0 [ 501.797044] xfs_iomap_write_allocate+0x42b/0xa30 [ 501.801892] ? xfs_file_iomap_begin+0x1ed0/0x1ed0 [ 501.806731] ? xfs_iunlock+0x248/0x3b0 [ 501.810607] ? rcu_read_lock_sched_held+0x16c/0x1d0 [ 501.815616] ? xfs_iunlock+0x21a/0x3b0 [ 501.819482] xfs_map_blocks+0x548/0x940 [ 501.823438] ? xfs_vm_set_page_dirty+0x610/0x610 [ 501.828173] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 501.833607] xfs_do_writepage+0x422/0x13d0 [ 501.837825] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 501.842129] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 501.847558] write_cache_pages+0x505/0xd20 [ 501.851772] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 501.856073] ? clear_page_dirty_for_io+0xb80/0xb80 [ 501.860989] ? trace_hardirqs_on+0x10/0x10 [ 501.865207] xfs_vm_writepages+0x258/0x340 [ 501.869444] ? xfs_vm_writepage+0xd0/0xd0 [ 501.873592] ? xfs_vm_writepage+0xd0/0xd0 [ 501.877732] do_writepages+0xc3/0x240 [ 501.881523] ? page_writeback_cpu_online+0x10/0x10 [ 501.886438] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 501.891872] __writeback_single_inode+0xda/0x1010 [ 501.896697] writeback_sb_inodes+0x48b/0xd30 [ 501.901090] ? wbc_detach_inode+0x780/0x780 [ 501.905394] ? queue_io+0x400/0x5a0 [ 501.909002] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 501.914433] wb_writeback+0x243/0xb80 [ 501.918253] ? writeback_inodes_wb.constprop.0+0x1a0/0x1a0 [ 501.923858] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 501.929290] wb_workfn+0x2bd/0xf50 [ 501.932812] ? process_one_work+0x6c4/0x14a0 [ 501.937199] ? inode_wait_for_writeback+0x30/0x30 [ 501.942021] ? lock_acquire+0x170/0x3f0 [ 501.945976] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 501.951406] process_one_work+0x793/0x14a0 [ 501.955628] ? work_busy+0x320/0x320 [ 501.959325] ? worker_thread+0x158/0xff0 [ 501.963367] ? _raw_spin_unlock_irq+0x24/0x80 [ 501.967856] worker_thread+0x5cc/0xff0 [ 501.971741] ? rescuer_thread+0xc80/0xc80 [ 501.975868] kthread+0x30d/0x420 [ 501.979214] ? kthread_create_on_node+0xd0/0xd0 [ 501.983863] ret_from_fork+0x24/0x30 [ 501.988165] Bluetooth: hci1 command 0x0406 tx timeout [ 501.993845] Bluetooth: hci0 command 0x0406 tx timeout [ 501.999865] Bluetooth: hci2 command 0x0406 tx timeout [ 502.005071] XFS (loop1): page discard on page ffffea000115db80, inode 0x29, offset 1150976. [ 502.005092] Bluetooth: hci4 command 0x0406 tx timeout [ 502.023817] XFS (loop1): Internal error XFS_WANT_CORRUPTED_RETURN at line 431 of file fs/xfs/libxfs/xfs_alloc.c. Caller xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 502.041139] CPU: 0 PID: 2818 Comm: kworker/u4:3 Not tainted 4.14.303-syzkaller #0 [ 502.048755] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023 [ 502.058097] Workqueue: writeback wb_workfn (flush-7:1) [ 502.063351] Call Trace: [ 502.065920] dump_stack+0x1b2/0x281 [ 502.069524] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 502.074776] xfs_error_report+0x98/0xa0 [ 502.078728] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 502.083984] xfs_alloc_fixup_trees+0x425/0x4f0 [ 502.088542] ? xfs_alloc_update+0x90/0x90 [ 502.092667] ? xfs_btree_rec_offset.isra.0+0x3b/0xa0 [ 502.097744] ? xfs_alloc_compute_diff+0x23c/0x3d0 [ 502.102560] xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 502.107659] ? xfs_alloc_fix_freelist+0x685/0xeb0 [ 502.112477] ? xfs_alloc_ag_vextent_size+0x1ea0/0x1ea0 [ 502.117728] ? xfs_alloc_read_agf+0xb10/0xb10 [ 502.122208] xfs_alloc_ag_vextent+0x579/0x750 [ 502.126675] ? xfs_perag_get+0x116/0x410 [ 502.130710] ? xfs_alloc_vextent+0x470/0x2010 [ 502.135182] xfs_alloc_vextent+0x10b0/0x2010 [ 502.139571] xfs_bmap_btalloc+0x9e5/0x1b20 [ 502.143785] ? xfs_bmap_adjacent+0x1480/0x1480 [ 502.148341] ? ret_from_fork+0x24/0x30 [ 502.152212] ? __xfs_bmbt_get_all+0x16/0x100 [ 502.156596] xfs_bmap_alloc+0x107/0x160 [ 502.160546] xfs_bmapi_write+0xa49/0x1d00 [ 502.164675] ? xfs_bmapi_reserve_delalloc+0x7c0/0x7c0 [ 502.169842] ? trace_hardirqs_on+0x10/0x10 [ 502.174054] ? xfs_iext_get_ext+0xeb/0x200 [ 502.178264] ? xfs_iext_idx_to_irec+0x340/0x340 [ 502.182911] ? xfs_bmap_last_extent+0x1d0/0x1d0 [ 502.187559] xfs_iomap_write_allocate+0x42b/0xa30 [ 502.192381] ? xfs_file_iomap_begin+0x1ed0/0x1ed0 [ 502.197197] ? xfs_iunlock+0x248/0x3b0 [ 502.201065] ? rcu_read_lock_sched_held+0x16c/0x1d0 [ 502.206053] ? xfs_iunlock+0x21a/0x3b0 [ 502.209914] xfs_map_blocks+0x548/0x940 [ 502.213866] ? xfs_vm_set_page_dirty+0x610/0x610 [ 502.218617] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 502.224060] xfs_do_writepage+0x422/0x13d0 [ 502.228273] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 502.232569] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 502.237996] write_cache_pages+0x505/0xd20 [ 502.242231] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 502.246530] ? clear_page_dirty_for_io+0xb80/0xb80 [ 502.251441] ? trace_hardirqs_on+0x10/0x10 [ 502.255652] xfs_vm_writepages+0x258/0x340 [ 502.259863] ? xfs_vm_writepage+0xd0/0xd0 [ 502.263992] ? xfs_vm_writepage+0xd0/0xd0 [ 502.268117] do_writepages+0xc3/0x240 [ 502.271894] ? page_writeback_cpu_online+0x10/0x10 [ 502.276802] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 502.282230] __writeback_single_inode+0xda/0x1010 [ 502.287050] writeback_sb_inodes+0x48b/0xd30 [ 502.291438] ? wbc_detach_inode+0x780/0x780 [ 502.295739] ? queue_io+0x400/0x5a0 [ 502.299340] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 502.304765] wb_writeback+0x243/0xb80 [ 502.308597] ? writeback_inodes_wb.constprop.0+0x1a0/0x1a0 [ 502.314202] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 502.319628] wb_workfn+0x2bd/0xf50 [ 502.323151] ? process_one_work+0x6c4/0x14a0 [ 502.327535] ? inode_wait_for_writeback+0x30/0x30 [ 502.332354] ? lock_acquire+0x170/0x3f0 [ 502.336304] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 502.341729] process_one_work+0x793/0x14a0 [ 502.345961] ? work_busy+0x320/0x320 [ 502.349654] ? worker_thread+0x158/0xff0 [ 502.353706] ? _raw_spin_unlock_irq+0x24/0x80 [ 502.358182] worker_thread+0x5cc/0xff0 [ 502.362049] ? rescuer_thread+0xc80/0xc80 [ 502.366175] kthread+0x30d/0x420 [ 502.369514] ? kthread_create_on_node+0xd0/0xd0 [ 502.374159] ret_from_fork+0x24/0x30 [ 502.387425] XFS (loop1): page discard on page ffffea000115dbc0, inode 0x29, offset 1155072. [ 502.400113] XFS (loop1): Internal error XFS_WANT_CORRUPTED_RETURN at line 431 of file fs/xfs/libxfs/xfs_alloc.c. Caller xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 502.414656] CPU: 0 PID: 2818 Comm: kworker/u4:3 Not tainted 4.14.303-syzkaller #0 [ 502.422260] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023 [ 502.431599] Workqueue: writeback wb_workfn (flush-7:1) [ 502.436852] Call Trace: [ 502.439416] dump_stack+0x1b2/0x281 [ 502.443019] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 502.448270] xfs_error_report+0x98/0xa0 [ 502.452217] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 502.457467] xfs_alloc_fixup_trees+0x425/0x4f0 [ 502.462041] ? xfs_alloc_update+0x90/0x90 [ 502.466167] ? xfs_btree_rec_offset.isra.0+0x3b/0xa0 [ 502.471245] ? xfs_alloc_compute_diff+0x23c/0x3d0 [ 502.476078] xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 502.481187] ? xfs_alloc_fix_freelist+0x685/0xeb0 [ 502.486013] ? xfs_alloc_ag_vextent_size+0x1ea0/0x1ea0 [ 502.491266] ? xfs_alloc_read_agf+0xb10/0xb10 [ 502.495765] xfs_alloc_ag_vextent+0x579/0x750 [ 502.500269] ? xfs_perag_get+0x116/0x410 [ 502.504302] ? xfs_alloc_vextent+0x470/0x2010 [ 502.508772] xfs_alloc_vextent+0x10b0/0x2010 [ 502.513169] xfs_bmap_btalloc+0x9e5/0x1b20 [ 502.517385] ? xfs_bmap_adjacent+0x1480/0x1480 [ 502.522044] ? ret_from_fork+0x24/0x30 [ 502.525912] ? __xfs_bmbt_get_all+0x16/0x100 [ 502.530299] xfs_bmap_alloc+0x107/0x160 [ 502.534250] xfs_bmapi_write+0xa49/0x1d00 [ 502.538378] ? xfs_bmapi_reserve_delalloc+0x7c0/0x7c0 [ 502.543546] ? trace_hardirqs_on+0x10/0x10 [ 502.547762] ? xfs_iext_get_ext+0xeb/0x200 [ 502.552057] ? xfs_iext_idx_to_irec+0x340/0x340 [ 502.556706] ? xfs_bmap_last_extent+0x1d0/0x1d0 [ 502.561357] xfs_iomap_write_allocate+0x42b/0xa30 [ 502.566180] ? xfs_file_iomap_begin+0x1ed0/0x1ed0 [ 502.571000] ? xfs_iunlock+0x248/0x3b0 [ 502.574876] ? rcu_read_lock_sched_held+0x16c/0x1d0 [ 502.579867] ? xfs_iunlock+0x21a/0x3b0 [ 502.583737] xfs_map_blocks+0x548/0x940 [ 502.587707] ? xfs_vm_set_page_dirty+0x610/0x610 [ 502.592442] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 502.597884] xfs_do_writepage+0x422/0x13d0 [ 502.602112] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 502.606428] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 502.611858] write_cache_pages+0x505/0xd20 [ 502.616073] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 502.620376] ? clear_page_dirty_for_io+0xb80/0xb80 [ 502.625303] ? trace_hardirqs_on+0x10/0x10 [ 502.629512] xfs_vm_writepages+0x258/0x340 [ 502.633723] ? xfs_vm_writepage+0xd0/0xd0 [ 502.637849] ? xfs_vm_writepage+0xd0/0xd0 [ 502.641986] do_writepages+0xc3/0x240 [ 502.645768] ? page_writeback_cpu_online+0x10/0x10 [ 502.650674] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 502.656105] __writeback_single_inode+0xda/0x1010 [ 502.660924] writeback_sb_inodes+0x48b/0xd30 [ 502.665314] ? wbc_detach_inode+0x780/0x780 [ 502.669611] ? queue_io+0x400/0x5a0 [ 502.673213] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 502.678647] wb_writeback+0x243/0xb80 [ 502.682428] ? writeback_inodes_wb.constprop.0+0x1a0/0x1a0 [ 502.688033] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 502.693458] wb_workfn+0x2bd/0xf50 [ 502.696974] ? process_one_work+0x6c4/0x14a0 [ 502.701466] ? inode_wait_for_writeback+0x30/0x30 [ 502.706298] ? lock_acquire+0x170/0x3f0 [ 502.710262] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 502.715693] process_one_work+0x793/0x14a0 [ 502.719915] ? work_busy+0x320/0x320 [ 502.723604] ? worker_thread+0x158/0xff0 [ 502.727641] ? _raw_spin_unlock_irq+0x24/0x80 [ 502.732114] worker_thread+0x5cc/0xff0 [ 502.736087] ? rescuer_thread+0xc80/0xc80 [ 502.740219] kthread+0x30d/0x420 [ 502.743567] ? kthread_create_on_node+0xd0/0xd0 [ 502.748218] ret_from_fork+0x24/0x30 [ 502.758903] XFS (loop1): page discard on page ffffea0001232300, inode 0x29, offset 1159168. [ 502.769755] XFS (loop1): Internal error XFS_WANT_CORRUPTED_RETURN at line 431 of file fs/xfs/libxfs/xfs_alloc.c. Caller xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 502.785249] CPU: 1 PID: 2818 Comm: kworker/u4:3 Not tainted 4.14.303-syzkaller #0 [ 502.792864] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023 [ 502.802198] Workqueue: writeback wb_workfn (flush-7:1) [ 502.807455] Call Trace: [ 502.810025] dump_stack+0x1b2/0x281 [ 502.813631] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 502.818886] xfs_error_report+0x98/0xa0 [ 502.822858] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 502.828113] xfs_alloc_fixup_trees+0x425/0x4f0 [ 502.832673] ? xfs_alloc_update+0x90/0x90 [ 502.836804] ? xfs_btree_rec_offset.isra.0+0x3b/0xa0 [ 502.841888] ? xfs_alloc_compute_diff+0x23c/0x3d0 [ 502.846726] xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 502.851819] ? xfs_alloc_fix_freelist+0x685/0xeb0 [ 502.856666] ? xfs_alloc_ag_vextent_size+0x1ea0/0x1ea0 [ 502.861937] ? xfs_alloc_read_agf+0xb10/0xb10 [ 502.866432] xfs_alloc_ag_vextent+0x579/0x750 [ 502.870910] ? xfs_perag_get+0x116/0x410 [ 502.874944] ? xfs_alloc_vextent+0x470/0x2010 [ 502.879413] xfs_alloc_vextent+0x10b0/0x2010 [ 502.883802] xfs_bmap_btalloc+0x9e5/0x1b20 [ 502.888038] ? xfs_bmap_adjacent+0x1480/0x1480 [ 502.892611] ? ret_from_fork+0x24/0x30 [ 502.896513] ? __xfs_bmbt_get_all+0x16/0x100 [ 502.900917] xfs_bmap_alloc+0x107/0x160 [ 502.904880] xfs_bmapi_write+0xa49/0x1d00 [ 502.909020] ? xfs_bmapi_reserve_delalloc+0x7c0/0x7c0 [ 502.914189] ? trace_hardirqs_on+0x10/0x10 [ 502.918416] ? xfs_iext_get_ext+0xeb/0x200 [ 502.922659] ? xfs_iext_idx_to_irec+0x340/0x340 [ 502.927326] ? xfs_bmap_last_extent+0x1d0/0x1d0 [ 502.931983] xfs_iomap_write_allocate+0x42b/0xa30 [ 502.936812] ? xfs_file_iomap_begin+0x1ed0/0x1ed0 [ 502.941634] ? xfs_iunlock+0x248/0x3b0 [ 502.945516] ? rcu_read_lock_sched_held+0x16c/0x1d0 [ 502.950517] ? xfs_iunlock+0x21a/0x3b0 [ 502.954382] xfs_map_blocks+0x548/0x940 [ 502.958336] ? xfs_vm_set_page_dirty+0x610/0x610 [ 502.963075] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 502.968498] xfs_do_writepage+0x422/0x13d0 [ 502.972712] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 502.977011] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 502.982438] write_cache_pages+0x505/0xd20 [ 502.986659] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 502.990965] ? clear_page_dirty_for_io+0xb80/0xb80 [ 502.995883] ? trace_hardirqs_on+0x10/0x10 [ 503.000102] xfs_vm_writepages+0x258/0x340 [ 503.004311] ? xfs_vm_writepage+0xd0/0xd0 [ 503.008438] ? xfs_vm_writepage+0xd0/0xd0 [ 503.012560] do_writepages+0xc3/0x240 [ 503.016345] ? page_writeback_cpu_online+0x10/0x10 [ 503.021263] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 503.026701] __writeback_single_inode+0xda/0x1010 [ 503.031531] writeback_sb_inodes+0x48b/0xd30 [ 503.035931] ? wbc_detach_inode+0x780/0x780 [ 503.040257] ? queue_io+0x400/0x5a0 [ 503.043872] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 503.049304] wb_writeback+0x243/0xb80 [ 503.053088] ? writeback_inodes_wb.constprop.0+0x1a0/0x1a0 [ 503.058698] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 503.064126] wb_workfn+0x2bd/0xf50 [ 503.067649] ? process_one_work+0x6c4/0x14a0 [ 503.072037] ? inode_wait_for_writeback+0x30/0x30 [ 503.076855] ? lock_acquire+0x170/0x3f0 [ 503.080808] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 503.086249] process_one_work+0x793/0x14a0 [ 503.090478] ? work_busy+0x320/0x320 [ 503.094173] ? worker_thread+0x158/0xff0 [ 503.098220] ? _raw_spin_unlock_irq+0x24/0x80 [ 503.102697] worker_thread+0x5cc/0xff0 [ 503.106580] ? rescuer_thread+0xc80/0xc80 [ 503.110710] kthread+0x30d/0x420 [ 503.114051] ? kthread_create_on_node+0xd0/0xd0 [ 503.118699] ret_from_fork+0x24/0x30 [ 503.132952] XFS (loop1): page discard on page ffffea0001232340, inode 0x29, offset 1163264. [ 503.144675] XFS (loop1): Internal error XFS_WANT_CORRUPTED_RETURN at line 431 of file fs/xfs/libxfs/xfs_alloc.c. Caller xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 503.160569] CPU: 1 PID: 2818 Comm: kworker/u4:3 Not tainted 4.14.303-syzkaller #0 [ 503.168190] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023 [ 503.177536] Workqueue: writeback wb_workfn (flush-7:1) [ 503.182801] Call Trace: [ 503.185369] dump_stack+0x1b2/0x281 [ 503.188972] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 503.194225] xfs_error_report+0x98/0xa0 [ 503.198184] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 503.203441] xfs_alloc_fixup_trees+0x425/0x4f0 [ 503.207999] ? xfs_alloc_update+0x90/0x90 [ 503.212124] ? xfs_btree_rec_offset.isra.0+0x3b/0xa0 [ 503.217212] ? xfs_alloc_compute_diff+0x23c/0x3d0 [ 503.222037] xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 503.227123] ? xfs_alloc_fix_freelist+0x685/0xeb0 [ 503.231940] ? xfs_alloc_ag_vextent_size+0x1ea0/0x1ea0 [ 503.237200] ? xfs_alloc_read_agf+0xb10/0xb10 [ 503.241684] xfs_alloc_ag_vextent+0x579/0x750 [ 503.246157] ? xfs_perag_get+0x116/0x410 [ 503.250195] ? xfs_alloc_vextent+0x470/0x2010 [ 503.254670] xfs_alloc_vextent+0x10b0/0x2010 [ 503.259061] xfs_bmap_btalloc+0x9e5/0x1b20 [ 503.263277] ? xfs_bmap_adjacent+0x1480/0x1480 [ 503.267834] ? ret_from_fork+0x24/0x30 [ 503.271703] ? __xfs_bmbt_get_all+0x16/0x100 [ 503.276106] xfs_bmap_alloc+0x107/0x160 [ 503.280066] xfs_bmapi_write+0xa49/0x1d00 [ 503.284197] ? xfs_bmapi_reserve_delalloc+0x7c0/0x7c0 [ 503.289365] ? trace_hardirqs_on+0x10/0x10 [ 503.293577] ? xfs_iext_get_ext+0xeb/0x200 [ 503.297793] ? xfs_iext_idx_to_irec+0x340/0x340 [ 503.302449] ? xfs_bmap_last_extent+0x1d0/0x1d0 [ 503.307098] xfs_iomap_write_allocate+0x42b/0xa30 [ 503.311921] ? xfs_file_iomap_begin+0x1ed0/0x1ed0 [ 503.316747] ? xfs_iunlock+0x248/0x3b0 [ 503.320626] ? rcu_read_lock_sched_held+0x16c/0x1d0 [ 503.325617] ? xfs_iunlock+0x21a/0x3b0 [ 503.329479] xfs_map_blocks+0x548/0x940 [ 503.333429] ? xfs_vm_set_page_dirty+0x610/0x610 [ 503.338170] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 503.343602] xfs_do_writepage+0x422/0x13d0 [ 503.347816] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 503.352117] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 503.357551] write_cache_pages+0x505/0xd20 [ 503.361768] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 503.366070] ? clear_page_dirty_for_io+0xb80/0xb80 [ 503.370982] ? trace_hardirqs_on+0x10/0x10 [ 503.375197] xfs_vm_writepages+0x258/0x340 [ 503.379416] ? xfs_vm_writepage+0xd0/0xd0 [ 503.383545] ? xfs_vm_writepage+0xd0/0xd0 [ 503.387666] do_writepages+0xc3/0x240 [ 503.391444] ? page_writeback_cpu_online+0x10/0x10 [ 503.396360] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 503.401795] __writeback_single_inode+0xda/0x1010 [ 503.406612] writeback_sb_inodes+0x48b/0xd30 [ 503.410998] ? wbc_detach_inode+0x780/0x780 [ 503.415309] ? queue_io+0x400/0x5a0 [ 503.418922] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 503.424356] wb_writeback+0x243/0xb80 [ 503.428135] ? writeback_inodes_wb.constprop.0+0x1a0/0x1a0 [ 503.433735] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 503.439164] wb_workfn+0x2bd/0xf50 [ 503.442683] ? process_one_work+0x6c4/0x14a0 [ 503.447067] ? inode_wait_for_writeback+0x30/0x30 [ 503.451885] ? lock_acquire+0x170/0x3f0 [ 503.455843] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 503.461278] process_one_work+0x793/0x14a0 [ 503.465489] ? work_busy+0x320/0x320 [ 503.469180] ? worker_thread+0x158/0xff0 [ 503.473218] ? _raw_spin_unlock_irq+0x24/0x80 [ 503.477700] worker_thread+0x5cc/0xff0 [ 503.481575] ? rescuer_thread+0xc80/0xc80 [ 503.485699] kthread+0x30d/0x420 [ 503.489044] ? kthread_create_on_node+0xd0/0xd0 [ 503.493689] ret_from_fork+0x24/0x30 [ 503.500612] XFS (loop1): page discard on page ffffea0001232380, inode 0x29, offset 1167360. [ 503.509866] XFS (loop1): Internal error XFS_WANT_CORRUPTED_RETURN at line 431 of file fs/xfs/libxfs/xfs_alloc.c. Caller xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 503.524620] CPU: 1 PID: 2818 Comm: kworker/u4:3 Not tainted 4.14.303-syzkaller #0 [ 503.532236] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023 [ 503.541584] Workqueue: writeback wb_workfn (flush-7:1) [ 503.546838] Call Trace: [ 503.549402] dump_stack+0x1b2/0x281 [ 503.553004] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 503.558258] xfs_error_report+0x98/0xa0 [ 503.562218] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 503.567471] xfs_alloc_fixup_trees+0x425/0x4f0 [ 503.572029] ? xfs_alloc_update+0x90/0x90 [ 503.576160] ? xfs_btree_rec_offset.isra.0+0x3b/0xa0 [ 503.581249] ? xfs_alloc_compute_diff+0x23c/0x3d0 [ 503.586065] xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 503.591147] ? xfs_alloc_fix_freelist+0x685/0xeb0 [ 503.595974] ? xfs_alloc_ag_vextent_size+0x1ea0/0x1ea0 [ 503.601237] ? xfs_alloc_read_agf+0xb10/0xb10 [ 503.605719] xfs_alloc_ag_vextent+0x579/0x750 [ 503.610188] ? xfs_perag_get+0x116/0x410 [ 503.614225] ? xfs_alloc_vextent+0x470/0x2010 [ 503.618704] xfs_alloc_vextent+0x10b0/0x2010 [ 503.623097] xfs_bmap_btalloc+0x9e5/0x1b20 [ 503.627310] ? xfs_bmap_adjacent+0x1480/0x1480 [ 503.631866] ? ret_from_fork+0x24/0x30 [ 503.635747] ? __xfs_bmbt_get_all+0x16/0x100 [ 503.640139] xfs_bmap_alloc+0x107/0x160 [ 503.644111] xfs_bmapi_write+0xa49/0x1d00 [ 503.648237] ? xfs_bmapi_reserve_delalloc+0x7c0/0x7c0 [ 503.653403] ? trace_hardirqs_on+0x10/0x10 [ 503.657623] ? xfs_iext_get_ext+0xeb/0x200 [ 503.661854] ? xfs_iext_idx_to_irec+0x340/0x340 [ 503.666514] ? xfs_bmap_last_extent+0x1d0/0x1d0 [ 503.671166] xfs_iomap_write_allocate+0x42b/0xa30 [ 503.676442] ? xfs_file_iomap_begin+0x1ed0/0x1ed0 [ 503.681297] ? xfs_iunlock+0x248/0x3b0 [ 503.685176] ? rcu_read_lock_sched_held+0x16c/0x1d0 [ 503.690175] ? xfs_iunlock+0x21a/0x3b0 [ 503.694040] xfs_map_blocks+0x548/0x940 [ 503.698001] ? xfs_vm_set_page_dirty+0x610/0x610 [ 503.702742] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 503.708166] xfs_do_writepage+0x422/0x13d0 [ 503.712379] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 503.716687] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 503.722123] write_cache_pages+0x505/0xd20 [ 503.726334] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 503.730633] ? clear_page_dirty_for_io+0xb80/0xb80 [ 503.735562] ? trace_hardirqs_on+0x10/0x10 [ 503.739782] xfs_vm_writepages+0x258/0x340 [ 503.744015] ? xfs_vm_writepage+0xd0/0xd0 [ 503.748139] ? xfs_vm_writepage+0xd0/0xd0 [ 503.752293] do_writepages+0xc3/0x240 [ 503.756076] ? page_writeback_cpu_online+0x10/0x10 [ 503.760990] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 503.766428] __writeback_single_inode+0xda/0x1010 [ 503.771334] writeback_sb_inodes+0x48b/0xd30 [ 503.775736] ? wbc_detach_inode+0x780/0x780 [ 503.780049] ? queue_io+0x400/0x5a0 [ 503.783660] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 503.789085] wb_writeback+0x243/0xb80 [ 503.792864] ? writeback_inodes_wb.constprop.0+0x1a0/0x1a0 [ 503.798472] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 503.803905] wb_workfn+0x2bd/0xf50 [ 503.807424] ? process_one_work+0x6c4/0x14a0 [ 503.811807] ? inode_wait_for_writeback+0x30/0x30 [ 503.816632] ? lock_acquire+0x170/0x3f0 [ 503.820588] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 503.826015] process_one_work+0x793/0x14a0 [ 503.830227] ? work_busy+0x320/0x320 [ 503.833915] ? worker_thread+0x158/0xff0 [ 503.837960] ? _raw_spin_unlock_irq+0x24/0x80 [ 503.842440] worker_thread+0x5cc/0xff0 [ 503.846307] ? rescuer_thread+0xc80/0xc80 [ 503.850431] kthread+0x30d/0x420 [ 503.853770] ? kthread_create_on_node+0xd0/0xd0 [ 503.858434] ret_from_fork+0x24/0x30 [ 503.862571] XFS (loop1): page discard on page ffffea00012323c0, inode 0x29, offset 1171456. [ 503.871489] XFS (loop1): Internal error XFS_WANT_CORRUPTED_RETURN at line 431 of file fs/xfs/libxfs/xfs_alloc.c. Caller xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 503.886037] CPU: 1 PID: 2818 Comm: kworker/u4:3 Not tainted 4.14.303-syzkaller #0 [ 503.893646] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023 [ 503.902987] Workqueue: writeback wb_workfn (flush-7:1) [ 503.908240] Call Trace: [ 503.910807] dump_stack+0x1b2/0x281 [ 503.914411] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 503.919666] xfs_error_report+0x98/0xa0 [ 503.923615] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 503.928870] xfs_alloc_fixup_trees+0x425/0x4f0 [ 503.933427] ? xfs_alloc_update+0x90/0x90 [ 503.937557] ? xfs_btree_rec_offset.isra.0+0x3b/0xa0 [ 503.942643] ? xfs_alloc_compute_diff+0x23c/0x3d0 [ 503.947459] xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 503.952540] ? xfs_alloc_fix_freelist+0x685/0xeb0 [ 503.957363] ? xfs_alloc_ag_vextent_size+0x1ea0/0x1ea0 [ 503.962621] ? xfs_alloc_read_agf+0xb10/0xb10 [ 503.967098] xfs_alloc_ag_vextent+0x579/0x750 [ 503.971565] ? xfs_perag_get+0x116/0x410 [ 503.975608] ? xfs_alloc_vextent+0x470/0x2010 [ 503.980086] xfs_alloc_vextent+0x10b0/0x2010 [ 503.984472] xfs_bmap_btalloc+0x9e5/0x1b20 [ 503.988682] ? xfs_bmap_adjacent+0x1480/0x1480 [ 503.993237] ? ret_from_fork+0x24/0x30 [ 503.997124] ? __xfs_bmbt_get_all+0x16/0x100 [ 504.001514] xfs_bmap_alloc+0x107/0x160 [ 504.005465] xfs_bmapi_write+0xa49/0x1d00 [ 504.009591] ? xfs_bmapi_reserve_delalloc+0x7c0/0x7c0 [ 504.014757] ? trace_hardirqs_on+0x10/0x10 [ 504.018982] ? xfs_iext_get_ext+0xeb/0x200 [ 504.023200] ? xfs_iext_idx_to_irec+0x340/0x340 [ 504.027850] ? xfs_bmap_last_extent+0x1d0/0x1d0 [ 504.032496] xfs_iomap_write_allocate+0x42b/0xa30 [ 504.037329] ? xfs_file_iomap_begin+0x1ed0/0x1ed0 [ 504.042155] ? xfs_iunlock+0x248/0x3b0 [ 504.046067] ? rcu_read_lock_sched_held+0x16c/0x1d0 [ 504.051056] ? xfs_iunlock+0x21a/0x3b0 [ 504.054920] xfs_map_blocks+0x548/0x940 [ 504.058872] ? xfs_vm_set_page_dirty+0x610/0x610 [ 504.063601] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 504.069031] xfs_do_writepage+0x422/0x13d0 [ 504.073247] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 504.077552] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 504.082984] write_cache_pages+0x505/0xd20 [ 504.087200] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 504.091497] ? clear_page_dirty_for_io+0xb80/0xb80 [ 504.096421] ? trace_hardirqs_on+0x10/0x10 [ 504.100636] xfs_vm_writepages+0x258/0x340 [ 504.104844] ? xfs_vm_writepage+0xd0/0xd0 [ 504.108970] ? xfs_vm_writepage+0xd0/0xd0 [ 504.113094] do_writepages+0xc3/0x240 [ 504.116881] ? page_writeback_cpu_online+0x10/0x10 [ 504.121810] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 504.127236] __writeback_single_inode+0xda/0x1010 [ 504.132055] writeback_sb_inodes+0x48b/0xd30 [ 504.136454] ? wbc_detach_inode+0x780/0x780 [ 504.140758] ? queue_io+0x400/0x5a0 [ 504.144360] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 504.149785] wb_writeback+0x243/0xb80 [ 504.153564] ? writeback_inodes_wb.constprop.0+0x1a0/0x1a0 [ 504.159164] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 504.164589] wb_workfn+0x2bd/0xf50 [ 504.168110] ? process_one_work+0x6c4/0x14a0 [ 504.172492] ? inode_wait_for_writeback+0x30/0x30 [ 504.177316] ? lock_acquire+0x170/0x3f0 [ 504.181282] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 504.186717] process_one_work+0x793/0x14a0 [ 504.190929] ? work_busy+0x320/0x320 [ 504.194617] ? worker_thread+0x158/0xff0 [ 504.198662] ? _raw_spin_unlock_irq+0x24/0x80 [ 504.203143] worker_thread+0x5cc/0xff0 [ 504.207011] ? rescuer_thread+0xc80/0xc80 [ 504.211137] kthread+0x30d/0x420 [ 504.214478] ? kthread_create_on_node+0xd0/0xd0 [ 504.219125] ret_from_fork+0x24/0x30 [ 504.223706] XFS (loop1): page discard on page ffffea000147da00, inode 0x29, offset 1175552. [ 504.232604] XFS (loop1): Internal error XFS_WANT_CORRUPTED_RETURN at line 431 of file fs/xfs/libxfs/xfs_alloc.c. Caller xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 504.247145] CPU: 1 PID: 2818 Comm: kworker/u4:3 Not tainted 4.14.303-syzkaller #0 [ 504.254748] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023 [ 504.264088] Workqueue: writeback wb_workfn (flush-7:1) [ 504.269343] Call Trace: [ 504.271909] dump_stack+0x1b2/0x281 [ 504.275523] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 504.280780] xfs_error_report+0x98/0xa0 [ 504.284728] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 504.289983] xfs_alloc_fixup_trees+0x425/0x4f0 [ 504.294544] ? xfs_alloc_update+0x90/0x90 [ 504.298677] ? xfs_btree_rec_offset.isra.0+0x3b/0xa0 [ 504.303787] ? xfs_alloc_compute_diff+0x23c/0x3d0 [ 504.308611] xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 504.313693] ? xfs_alloc_fix_freelist+0x685/0xeb0 [ 504.318519] ? xfs_alloc_ag_vextent_size+0x1ea0/0x1ea0 [ 504.323800] ? xfs_alloc_read_agf+0xb10/0xb10 [ 504.328278] xfs_alloc_ag_vextent+0x579/0x750 [ 504.332746] ? xfs_perag_get+0x116/0x410 [ 504.336784] ? xfs_alloc_vextent+0x470/0x2010 [ 504.341266] xfs_alloc_vextent+0x10b0/0x2010 [ 504.345657] xfs_bmap_btalloc+0x9e5/0x1b20 [ 504.349869] ? xfs_bmap_adjacent+0x1480/0x1480 [ 504.354430] ? ret_from_fork+0x24/0x30 [ 504.358315] ? __xfs_bmbt_get_all+0x16/0x100 [ 504.362716] xfs_bmap_alloc+0x107/0x160 [ 504.366673] xfs_bmapi_write+0xa49/0x1d00 [ 504.370803] ? xfs_bmapi_reserve_delalloc+0x7c0/0x7c0 [ 504.375979] ? trace_hardirqs_on+0x10/0x10 [ 504.380210] ? xfs_iext_get_ext+0xeb/0x200 [ 504.384421] ? xfs_iext_idx_to_irec+0x340/0x340 [ 504.389075] ? xfs_bmap_last_extent+0x1d0/0x1d0 [ 504.393723] xfs_iomap_write_allocate+0x42b/0xa30 [ 504.398564] ? xfs_file_iomap_begin+0x1ed0/0x1ed0 [ 504.403413] ? xfs_iunlock+0x248/0x3b0 [ 504.407287] ? rcu_read_lock_sched_held+0x16c/0x1d0 [ 504.412280] ? xfs_iunlock+0x21a/0x3b0 [ 504.416150] xfs_map_blocks+0x548/0x940 [ 504.420116] ? xfs_vm_set_page_dirty+0x610/0x610 [ 504.424856] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 504.430281] xfs_do_writepage+0x422/0x13d0 [ 504.434504] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 504.438821] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 504.444255] write_cache_pages+0x505/0xd20 [ 504.448468] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 504.452784] ? clear_page_dirty_for_io+0xb80/0xb80 [ 504.457708] ? trace_hardirqs_on+0x10/0x10 [ 504.461930] xfs_vm_writepages+0x258/0x340 [ 504.466148] ? xfs_vm_writepage+0xd0/0xd0 [ 504.470275] ? xfs_vm_writepage+0xd0/0xd0 [ 504.474416] do_writepages+0xc3/0x240 [ 504.478207] ? page_writeback_cpu_online+0x10/0x10 [ 504.483124] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 504.488555] __writeback_single_inode+0xda/0x1010 [ 504.493376] writeback_sb_inodes+0x48b/0xd30 [ 504.497775] ? wbc_detach_inode+0x780/0x780 [ 504.502095] ? queue_io+0x400/0x5a0 [ 504.505706] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 504.511134] wb_writeback+0x243/0xb80 [ 504.514913] ? writeback_inodes_wb.constprop.0+0x1a0/0x1a0 [ 504.520520] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 504.525949] wb_workfn+0x2bd/0xf50 [ 504.529469] ? process_one_work+0x6c4/0x14a0 [ 504.533855] ? inode_wait_for_writeback+0x30/0x30 [ 504.538684] ? lock_acquire+0x170/0x3f0 [ 504.542646] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 504.548099] process_one_work+0x793/0x14a0 [ 504.552315] ? work_busy+0x320/0x320 [ 504.556011] ? worker_thread+0x158/0xff0 [ 504.560086] ? _raw_spin_unlock_irq+0x24/0x80 [ 504.564573] worker_thread+0x5cc/0xff0 [ 504.568452] ? rescuer_thread+0xc80/0xc80 [ 504.572585] kthread+0x30d/0x420 [ 504.575938] ? kthread_create_on_node+0xd0/0xd0 [ 504.580596] ret_from_fork+0x24/0x30 [ 504.584697] XFS (loop1): page discard on page ffffea000147da40, inode 0x29, offset 1179648. [ 504.593574] XFS (loop1): Internal error XFS_WANT_CORRUPTED_RETURN at line 431 of file fs/xfs/libxfs/xfs_alloc.c. Caller xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 504.608135] CPU: 1 PID: 2818 Comm: kworker/u4:3 Not tainted 4.14.303-syzkaller #0 [ 504.615754] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023 [ 504.625120] Workqueue: writeback wb_workfn (flush-7:1) [ 504.630383] Call Trace: [ 504.632953] dump_stack+0x1b2/0x281 [ 504.636573] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 504.641840] xfs_error_report+0x98/0xa0 [ 504.645795] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 504.651052] xfs_alloc_fixup_trees+0x425/0x4f0 [ 504.655636] ? xfs_alloc_update+0x90/0x90 [ 504.659771] ? xfs_btree_rec_offset.isra.0+0x3b/0xa0 [ 504.664853] ? xfs_alloc_compute_diff+0x23c/0x3d0 [ 504.669698] xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 504.674801] ? xfs_alloc_fix_freelist+0x685/0xeb0 [ 504.679626] ? xfs_alloc_ag_vextent_size+0x1ea0/0x1ea0 [ 504.684880] ? xfs_alloc_read_agf+0xb10/0xb10 [ 504.689373] xfs_alloc_ag_vextent+0x579/0x750 [ 504.693854] ? xfs_perag_get+0x116/0x410 [ 504.697903] ? xfs_alloc_vextent+0x470/0x2010 [ 504.702387] xfs_alloc_vextent+0x10b0/0x2010 [ 504.706784] xfs_bmap_btalloc+0x9e5/0x1b20 [ 504.711005] ? xfs_bmap_adjacent+0x1480/0x1480 [ 504.715571] ? ret_from_fork+0x24/0x30 [ 504.719469] ? __xfs_bmbt_get_all+0x16/0x100 [ 504.723866] xfs_bmap_alloc+0x107/0x160 [ 504.727826] xfs_bmapi_write+0xa49/0x1d00 [ 504.731963] ? xfs_bmapi_reserve_delalloc+0x7c0/0x7c0 [ 504.737143] ? trace_hardirqs_on+0x10/0x10 [ 504.741384] ? xfs_iext_get_ext+0xeb/0x200 [ 504.745608] ? xfs_iext_idx_to_irec+0x340/0x340 [ 504.750282] ? xfs_bmap_last_extent+0x1d0/0x1d0 [ 504.754942] xfs_iomap_write_allocate+0x42b/0xa30 [ 504.759777] ? xfs_file_iomap_begin+0x1ed0/0x1ed0 [ 504.764611] ? xfs_iunlock+0x248/0x3b0 [ 504.768501] ? rcu_read_lock_sched_held+0x16c/0x1d0 [ 504.773502] ? xfs_iunlock+0x21a/0x3b0 [ 504.777380] xfs_map_blocks+0x548/0x940 [ 504.781343] ? xfs_vm_set_page_dirty+0x610/0x610 [ 504.786081] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 504.791512] xfs_do_writepage+0x422/0x13d0 [ 504.795741] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 504.800055] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 504.805491] write_cache_pages+0x505/0xd20 [ 504.809712] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 504.814014] ? clear_page_dirty_for_io+0xb80/0xb80 [ 504.818941] ? trace_hardirqs_on+0x10/0x10 [ 504.823168] xfs_vm_writepages+0x258/0x340 [ 504.827380] ? xfs_vm_writepage+0xd0/0xd0 [ 504.831507] ? xfs_vm_writepage+0xd0/0xd0 [ 504.835642] do_writepages+0xc3/0x240 [ 504.839430] ? page_writeback_cpu_online+0x10/0x10 [ 504.844343] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 504.849776] __writeback_single_inode+0xda/0x1010 [ 504.854629] writeback_sb_inodes+0x48b/0xd30 [ 504.859028] ? wbc_detach_inode+0x780/0x780 [ 504.863346] ? queue_io+0x400/0x5a0 [ 504.866983] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 504.872416] wb_writeback+0x243/0xb80 [ 504.876216] ? writeback_inodes_wb.constprop.0+0x1a0/0x1a0 [ 504.881841] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 504.887278] wb_workfn+0x2bd/0xf50 [ 504.890802] ? process_one_work+0x6c4/0x14a0 [ 504.895202] ? inode_wait_for_writeback+0x30/0x30 [ 504.900036] ? lock_acquire+0x170/0x3f0 [ 504.904042] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 504.909476] process_one_work+0x793/0x14a0 [ 504.913696] ? work_busy+0x320/0x320 [ 504.917395] ? worker_thread+0x158/0xff0 [ 504.921445] ? _raw_spin_unlock_irq+0x24/0x80 [ 504.925920] worker_thread+0x5cc/0xff0 [ 504.929790] ? rescuer_thread+0xc80/0xc80 [ 504.933916] kthread+0x30d/0x420 [ 504.937267] ? kthread_create_on_node+0xd0/0xd0 [ 504.941922] ret_from_fork+0x24/0x30 [ 504.950356] XFS (loop1): page discard on page ffffea000147da80, inode 0x29, offset 1183744. [ 504.959310] XFS (loop1): Internal error XFS_WANT_CORRUPTED_RETURN at line 431 of file fs/xfs/libxfs/xfs_alloc.c. Caller xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 504.973861] CPU: 1 PID: 2818 Comm: kworker/u4:3 Not tainted 4.14.303-syzkaller #0 [ 504.981475] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023 [ 504.990825] Workqueue: writeback wb_workfn (flush-7:1) [ 504.996359] Call Trace: [ 504.998938] dump_stack+0x1b2/0x281 [ 505.002547] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 505.007802] xfs_error_report+0x98/0xa0 [ 505.011754] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 505.017025] xfs_alloc_fixup_trees+0x425/0x4f0 [ 505.021598] ? xfs_alloc_update+0x90/0x90 [ 505.025727] ? xfs_btree_rec_offset.isra.0+0x3b/0xa0 [ 505.030810] ? xfs_alloc_compute_diff+0x23c/0x3d0 [ 505.035638] xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 505.040735] ? xfs_alloc_fix_freelist+0x685/0xeb0 [ 505.045554] ? xfs_alloc_ag_vextent_size+0x1ea0/0x1ea0 [ 505.050812] ? xfs_alloc_read_agf+0xb10/0xb10 [ 505.055308] xfs_alloc_ag_vextent+0x579/0x750 [ 505.059786] ? xfs_perag_get+0x116/0x410 [ 505.063824] ? xfs_alloc_vextent+0x470/0x2010 [ 505.068299] xfs_alloc_vextent+0x10b0/0x2010 [ 505.072693] xfs_bmap_btalloc+0x9e5/0x1b20 [ 505.076918] ? xfs_bmap_adjacent+0x1480/0x1480 [ 505.081485] ? ret_from_fork+0x24/0x30 [ 505.085378] ? __xfs_bmbt_get_all+0x16/0x100 [ 505.089767] xfs_bmap_alloc+0x107/0x160 [ 505.093720] xfs_bmapi_write+0xa49/0x1d00 [ 505.097861] ? xfs_bmapi_reserve_delalloc+0x7c0/0x7c0 [ 505.103043] ? trace_hardirqs_on+0x10/0x10 [ 505.107259] ? xfs_iext_get_ext+0xeb/0x200 [ 505.111471] ? xfs_iext_idx_to_irec+0x340/0x340 [ 505.116132] ? xfs_bmap_last_extent+0x1d0/0x1d0 [ 505.120809] xfs_iomap_write_allocate+0x42b/0xa30 [ 505.125635] ? xfs_file_iomap_begin+0x1ed0/0x1ed0 [ 505.130457] ? xfs_iunlock+0x248/0x3b0 [ 505.134328] ? rcu_read_lock_sched_held+0x16c/0x1d0 [ 505.139322] ? xfs_iunlock+0x21a/0x3b0 [ 505.143201] xfs_map_blocks+0x548/0x940 [ 505.147166] ? xfs_vm_set_page_dirty+0x610/0x610 [ 505.151899] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 505.157336] xfs_do_writepage+0x422/0x13d0 [ 505.161564] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 505.165866] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 505.171299] write_cache_pages+0x505/0xd20 [ 505.175525] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 505.179835] ? clear_page_dirty_for_io+0xb80/0xb80 [ 505.184750] ? trace_hardirqs_on+0x10/0x10 [ 505.188986] xfs_vm_writepages+0x258/0x340 [ 505.193197] ? xfs_vm_writepage+0xd0/0xd0 [ 505.197337] ? xfs_vm_writepage+0xd0/0xd0 [ 505.201468] do_writepages+0xc3/0x240 [ 505.205252] ? page_writeback_cpu_online+0x10/0x10 [ 505.210161] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 505.215598] __writeback_single_inode+0xda/0x1010 [ 505.220438] writeback_sb_inodes+0x48b/0xd30 [ 505.224852] ? wbc_detach_inode+0x780/0x780 [ 505.229187] ? queue_io+0x400/0x5a0 [ 505.232791] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 505.238227] wb_writeback+0x243/0xb80 [ 505.242017] ? writeback_inodes_wb.constprop.0+0x1a0/0x1a0 [ 505.247623] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 505.253052] wb_workfn+0x2bd/0xf50 [ 505.256581] ? process_one_work+0x6c4/0x14a0 [ 505.260986] ? inode_wait_for_writeback+0x30/0x30 [ 505.265826] ? lock_acquire+0x170/0x3f0 [ 505.269791] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 505.275233] process_one_work+0x793/0x14a0 [ 505.279461] ? work_busy+0x320/0x320 [ 505.283154] ? worker_thread+0x158/0xff0 [ 505.287207] ? _raw_spin_unlock_irq+0x24/0x80 [ 505.291717] worker_thread+0x5cc/0xff0 [ 505.295587] ? rescuer_thread+0xc80/0xc80 [ 505.299710] kthread+0x30d/0x420 [ 505.303056] ? kthread_create_on_node+0xd0/0xd0 [ 505.307709] ret_from_fork+0x24/0x30 [ 505.312065] XFS (loop1): page discard on page ffffea000147dac0, inode 0x29, offset 1187840. [ 505.321389] XFS (loop1): Internal error XFS_WANT_CORRUPTED_RETURN at line 431 of file fs/xfs/libxfs/xfs_alloc.c. Caller xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 505.335946] CPU: 1 PID: 2818 Comm: kworker/u4:3 Not tainted 4.14.303-syzkaller #0 [ 505.343562] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023 [ 505.352919] Workqueue: writeback wb_workfn (flush-7:1) [ 505.358175] Call Trace: [ 505.360743] dump_stack+0x1b2/0x281 [ 505.364350] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 505.369606] xfs_error_report+0x98/0xa0 [ 505.373563] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 505.378833] xfs_alloc_fixup_trees+0x425/0x4f0 [ 505.383406] ? xfs_alloc_update+0x90/0x90 [ 505.387539] ? xfs_btree_rec_offset.isra.0+0x3b/0xa0 [ 505.392631] ? xfs_alloc_compute_diff+0x23c/0x3d0 [ 505.397453] xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 505.402554] ? xfs_alloc_fix_freelist+0x685/0xeb0 [ 505.407380] ? xfs_alloc_ag_vextent_size+0x1ea0/0x1ea0 [ 505.412645] ? xfs_alloc_read_agf+0xb10/0xb10 [ 505.417143] xfs_alloc_ag_vextent+0x579/0x750 [ 505.421614] ? xfs_perag_get+0x116/0x410 [ 505.425659] ? xfs_alloc_vextent+0x470/0x2010 [ 505.430165] xfs_alloc_vextent+0x10b0/0x2010 [ 505.434557] xfs_bmap_btalloc+0x9e5/0x1b20 [ 505.438774] ? xfs_bmap_adjacent+0x1480/0x1480 [ 505.443336] ? ret_from_fork+0x24/0x30 [ 505.447224] ? __xfs_bmbt_get_all+0x16/0x100 [ 505.451619] xfs_bmap_alloc+0x107/0x160 [ 505.455581] xfs_bmapi_write+0xa49/0x1d00 [ 505.459720] ? xfs_bmapi_reserve_delalloc+0x7c0/0x7c0 [ 505.464887] ? trace_hardirqs_on+0x10/0x10 [ 505.469112] ? xfs_iext_get_ext+0xeb/0x200 [ 505.473322] ? xfs_iext_idx_to_irec+0x340/0x340 [ 505.477974] ? xfs_bmap_last_extent+0x1d0/0x1d0 [ 505.482624] xfs_iomap_write_allocate+0x42b/0xa30 [ 505.487464] ? xfs_file_iomap_begin+0x1ed0/0x1ed0 [ 505.492297] ? xfs_iunlock+0x248/0x3b0 [ 505.496199] ? rcu_read_lock_sched_held+0x16c/0x1d0 [ 505.501199] ? xfs_iunlock+0x21a/0x3b0 [ 505.505081] xfs_map_blocks+0x548/0x940 [ 505.509045] ? xfs_vm_set_page_dirty+0x610/0x610 [ 505.513778] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 505.519207] xfs_do_writepage+0x422/0x13d0 [ 505.523434] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 505.527746] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 505.533207] write_cache_pages+0x505/0xd20 [ 505.537435] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 505.541742] ? clear_page_dirty_for_io+0xb80/0xb80 [ 505.546672] ? trace_hardirqs_on+0x10/0x10 [ 505.550897] xfs_vm_writepages+0x258/0x340 [ 505.555117] ? xfs_vm_writepage+0xd0/0xd0 [ 505.559250] ? xfs_vm_writepage+0xd0/0xd0 [ 505.563374] do_writepages+0xc3/0x240 [ 505.567177] ? page_writeback_cpu_online+0x10/0x10 [ 505.572097] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 505.577535] __writeback_single_inode+0xda/0x1010 [ 505.582361] writeback_sb_inodes+0x48b/0xd30 [ 505.586763] ? wbc_detach_inode+0x780/0x780 [ 505.591076] ? queue_io+0x400/0x5a0 [ 505.594682] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 505.600115] wb_writeback+0x243/0xb80 [ 505.603919] ? writeback_inodes_wb.constprop.0+0x1a0/0x1a0 [ 505.609701] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 505.615163] wb_workfn+0x2bd/0xf50 [ 505.618693] ? process_one_work+0x6c4/0x14a0 [ 505.623089] ? inode_wait_for_writeback+0x30/0x30 [ 505.627915] ? lock_acquire+0x170/0x3f0 [ 505.631875] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 505.637306] process_one_work+0x793/0x14a0 [ 505.641521] ? work_busy+0x320/0x320 [ 505.645302] ? worker_thread+0x158/0xff0 [ 505.649356] ? _raw_spin_unlock_irq+0x24/0x80 [ 505.653835] worker_thread+0x5cc/0xff0 [ 505.657709] ? rescuer_thread+0xc80/0xc80 [ 505.661842] kthread+0x30d/0x420 [ 505.665192] ? kthread_create_on_node+0xd0/0xd0 [ 505.669848] ret_from_fork+0x24/0x30 [ 505.674054] XFS (loop1): page discard on page ffffea000147ef00, inode 0x29, offset 1191936. [ 505.683064] XFS (loop1): Internal error XFS_WANT_CORRUPTED_RETURN at line 431 of file fs/xfs/libxfs/xfs_alloc.c. Caller xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 505.697605] CPU: 1 PID: 2818 Comm: kworker/u4:3 Not tainted 4.14.303-syzkaller #0 [ 505.705219] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023 [ 505.714604] Workqueue: writeback wb_workfn (flush-7:1) [ 505.719861] Call Trace: [ 505.722433] dump_stack+0x1b2/0x281 [ 505.726057] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 505.731322] xfs_error_report+0x98/0xa0 [ 505.735274] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 505.740532] xfs_alloc_fixup_trees+0x425/0x4f0 [ 505.745104] ? xfs_alloc_update+0x90/0x90 [ 505.749239] ? xfs_btree_rec_offset.isra.0+0x3b/0xa0 [ 505.754318] ? xfs_alloc_compute_diff+0x23c/0x3d0 [ 505.759153] xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 505.764237] ? xfs_alloc_fix_freelist+0x685/0xeb0 [ 505.769057] ? xfs_alloc_ag_vextent_size+0x1ea0/0x1ea0 [ 505.774327] ? xfs_alloc_read_agf+0xb10/0xb10 [ 505.778810] xfs_alloc_ag_vextent+0x579/0x750 [ 505.783281] ? xfs_perag_get+0x116/0x410 [ 505.787324] ? xfs_alloc_vextent+0x470/0x2010 [ 505.791807] xfs_alloc_vextent+0x10b0/0x2010 [ 505.796200] xfs_bmap_btalloc+0x9e5/0x1b20 [ 505.800412] ? xfs_bmap_adjacent+0x1480/0x1480 [ 505.804973] ? ret_from_fork+0x24/0x30 [ 505.808843] ? __xfs_bmbt_get_all+0x16/0x100 [ 505.813230] xfs_bmap_alloc+0x107/0x160 [ 505.817180] xfs_bmapi_write+0xa49/0x1d00 [ 505.821308] ? xfs_bmapi_reserve_delalloc+0x7c0/0x7c0 [ 505.826479] ? trace_hardirqs_on+0x10/0x10 [ 505.830699] ? xfs_iext_get_ext+0xeb/0x200 [ 505.834927] ? xfs_iext_idx_to_irec+0x340/0x340 [ 505.839597] ? xfs_bmap_last_extent+0x1d0/0x1d0 [ 505.844246] xfs_iomap_write_allocate+0x42b/0xa30 [ 505.849079] ? xfs_file_iomap_begin+0x1ed0/0x1ed0 [ 505.853922] ? xfs_iunlock+0x248/0x3b0 [ 505.857794] ? rcu_read_lock_sched_held+0x16c/0x1d0 [ 505.862797] ? xfs_iunlock+0x21a/0x3b0 [ 505.866669] xfs_map_blocks+0x548/0x940 [ 505.870632] ? xfs_vm_set_page_dirty+0x610/0x610 [ 505.875364] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 505.880792] xfs_do_writepage+0x422/0x13d0 [ 505.885012] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 505.889320] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 505.894748] write_cache_pages+0x505/0xd20 [ 505.898962] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 505.903277] ? clear_page_dirty_for_io+0xb80/0xb80 [ 505.908201] ? trace_hardirqs_on+0x10/0x10 [ 505.912421] xfs_vm_writepages+0x258/0x340 [ 505.916630] ? xfs_vm_writepage+0xd0/0xd0 [ 505.920755] ? xfs_vm_writepage+0xd0/0xd0 [ 505.924897] do_writepages+0xc3/0x240 [ 505.928684] ? page_writeback_cpu_online+0x10/0x10 [ 505.933603] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 505.939035] __writeback_single_inode+0xda/0x1010 [ 505.943855] writeback_sb_inodes+0x48b/0xd30 [ 505.948251] ? wbc_detach_inode+0x780/0x780 [ 505.952554] ? queue_io+0x400/0x5a0 [ 505.956156] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 505.961601] wb_writeback+0x243/0xb80 [ 505.965391] ? writeback_inodes_wb.constprop.0+0x1a0/0x1a0 [ 505.971003] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 505.976433] wb_workfn+0x2bd/0xf50 [ 505.979953] ? process_one_work+0x6c4/0x14a0 [ 505.984337] ? inode_wait_for_writeback+0x30/0x30 [ 505.989158] ? lock_acquire+0x170/0x3f0 [ 505.993112] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 505.998554] process_one_work+0x793/0x14a0 [ 506.002768] ? work_busy+0x320/0x320 [ 506.006460] ? worker_thread+0x158/0xff0 [ 506.010503] ? _raw_spin_unlock_irq+0x24/0x80 [ 506.014973] worker_thread+0x5cc/0xff0 [ 506.018843] ? rescuer_thread+0xc80/0xc80 [ 506.022969] kthread+0x30d/0x420 [ 506.026316] ? kthread_create_on_node+0xd0/0xd0 [ 506.030971] ret_from_fork+0x24/0x30 [ 506.035313] XFS (loop1): page discard on page ffffea000147ef40, inode 0x29, offset 1196032. [ 506.044180] XFS (loop1): Internal error XFS_WANT_CORRUPTED_RETURN at line 431 of file fs/xfs/libxfs/xfs_alloc.c. Caller xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 506.058732] CPU: 1 PID: 2818 Comm: kworker/u4:3 Not tainted 4.14.303-syzkaller #0 [ 506.066342] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023 [ 506.075694] Workqueue: writeback wb_workfn (flush-7:1) [ 506.080954] Call Trace: [ 506.083522] dump_stack+0x1b2/0x281 [ 506.087137] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 506.092395] xfs_error_report+0x98/0xa0 [ 506.096343] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 506.101596] xfs_alloc_fixup_trees+0x425/0x4f0 [ 506.106163] ? xfs_alloc_update+0x90/0x90 [ 506.110294] ? xfs_btree_rec_offset.isra.0+0x3b/0xa0 [ 506.115378] ? xfs_alloc_compute_diff+0x23c/0x3d0 [ 506.120216] xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 506.125313] ? xfs_alloc_fix_freelist+0x685/0xeb0 [ 506.130226] ? xfs_alloc_ag_vextent_size+0x1ea0/0x1ea0 [ 506.135477] ? xfs_alloc_read_agf+0xb10/0xb10 [ 506.139956] xfs_alloc_ag_vextent+0x579/0x750 [ 506.144425] ? xfs_perag_get+0x116/0x410 [ 506.148464] ? xfs_alloc_vextent+0x470/0x2010 [ 506.152946] xfs_alloc_vextent+0x10b0/0x2010 [ 506.157360] xfs_bmap_btalloc+0x9e5/0x1b20 [ 506.161580] ? xfs_bmap_adjacent+0x1480/0x1480 [ 506.166145] ? ret_from_fork+0x24/0x30 [ 506.170020] ? __xfs_bmbt_get_all+0x16/0x100 [ 506.174406] xfs_bmap_alloc+0x107/0x160 [ 506.178357] xfs_bmapi_write+0xa49/0x1d00 [ 506.182483] ? xfs_bmapi_reserve_delalloc+0x7c0/0x7c0 [ 506.187658] ? trace_hardirqs_on+0x10/0x10 [ 506.191879] ? xfs_iext_get_ext+0xeb/0x200 [ 506.196105] ? xfs_iext_idx_to_irec+0x340/0x340 [ 506.200756] ? xfs_bmap_last_extent+0x1d0/0x1d0 [ 506.205417] xfs_iomap_write_allocate+0x42b/0xa30 [ 506.210247] ? xfs_file_iomap_begin+0x1ed0/0x1ed0 [ 506.215067] ? xfs_iunlock+0x248/0x3b0 [ 506.218941] ? rcu_read_lock_sched_held+0x16c/0x1d0 [ 506.223943] ? xfs_iunlock+0x21a/0x3b0 [ 506.227817] xfs_map_blocks+0x548/0x940 [ 506.231777] ? xfs_vm_set_page_dirty+0x610/0x610 [ 506.236510] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 506.241938] xfs_do_writepage+0x422/0x13d0 [ 506.246167] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 506.250481] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 506.255919] write_cache_pages+0x505/0xd20 [ 506.260159] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 506.264469] ? clear_page_dirty_for_io+0xb80/0xb80 [ 506.269383] ? trace_hardirqs_on+0x10/0x10 [ 506.273597] xfs_vm_writepages+0x258/0x340 [ 506.277811] ? xfs_vm_writepage+0xd0/0xd0 [ 506.281939] ? xfs_vm_writepage+0xd0/0xd0 [ 506.286067] do_writepages+0xc3/0x240 [ 506.289859] ? page_writeback_cpu_online+0x10/0x10 [ 506.294768] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 506.300196] __writeback_single_inode+0xda/0x1010 [ 506.305024] writeback_sb_inodes+0x48b/0xd30 [ 506.309420] ? wbc_detach_inode+0x780/0x780 [ 506.313736] ? queue_io+0x400/0x5a0 [ 506.317338] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 506.322762] wb_writeback+0x243/0xb80 [ 506.326552] ? writeback_inodes_wb.constprop.0+0x1a0/0x1a0 [ 506.332161] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 506.337595] wb_workfn+0x2bd/0xf50 [ 506.341124] ? process_one_work+0x6c4/0x14a0 [ 506.345518] ? inode_wait_for_writeback+0x30/0x30 [ 506.350351] ? lock_acquire+0x170/0x3f0 [ 506.354302] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 506.359728] process_one_work+0x793/0x14a0 [ 506.363942] ? work_busy+0x320/0x320 [ 506.367636] ? worker_thread+0x158/0xff0 [ 506.371684] ? _raw_spin_unlock_irq+0x24/0x80 [ 506.376171] worker_thread+0x5cc/0xff0 [ 506.380041] ? rescuer_thread+0xc80/0xc80 [ 506.384164] kthread+0x30d/0x420 [ 506.387513] ? kthread_create_on_node+0xd0/0xd0 [ 506.392167] ret_from_fork+0x24/0x30 [ 506.396402] XFS (loop1): page discard on page ffffea000147ef80, inode 0x29, offset 1200128. [ 506.405294] XFS (loop1): Internal error XFS_WANT_CORRUPTED_RETURN at line 431 of file fs/xfs/libxfs/xfs_alloc.c. Caller xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 506.419821] CPU: 1 PID: 2818 Comm: kworker/u4:3 Not tainted 4.14.303-syzkaller #0 [ 506.427435] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023 [ 506.436785] Workqueue: writeback wb_workfn (flush-7:1) [ 506.442042] Call Trace: [ 506.444625] dump_stack+0x1b2/0x281 [ 506.448245] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 506.453505] xfs_error_report+0x98/0xa0 [ 506.457455] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 506.462707] xfs_alloc_fixup_trees+0x425/0x4f0 [ 506.467272] ? xfs_alloc_update+0x90/0x90 [ 506.471401] ? xfs_btree_rec_offset.isra.0+0x3b/0xa0 [ 506.476478] ? xfs_alloc_compute_diff+0x23c/0x3d0 [ 506.481299] xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 506.486391] ? xfs_alloc_fix_freelist+0x685/0xeb0 [ 506.491217] ? xfs_alloc_ag_vextent_size+0x1ea0/0x1ea0 [ 506.496470] ? xfs_alloc_read_agf+0xb10/0xb10 [ 506.500951] xfs_alloc_ag_vextent+0x579/0x750 [ 506.505428] ? xfs_perag_get+0x116/0x410 [ 506.509469] ? xfs_alloc_vextent+0x470/0x2010 [ 506.513940] xfs_alloc_vextent+0x10b0/0x2010 [ 506.518331] xfs_bmap_btalloc+0x9e5/0x1b20 [ 506.522542] ? xfs_bmap_adjacent+0x1480/0x1480 [ 506.527108] ? ret_from_fork+0x24/0x30 [ 506.530988] ? __xfs_bmbt_get_all+0x16/0x100 [ 506.535384] xfs_bmap_alloc+0x107/0x160 [ 506.539341] xfs_bmapi_write+0xa49/0x1d00 [ 506.543473] ? xfs_bmapi_reserve_delalloc+0x7c0/0x7c0 [ 506.548640] ? trace_hardirqs_on+0x10/0x10 [ 506.552853] ? xfs_iext_get_ext+0xeb/0x200 [ 506.557063] ? xfs_iext_idx_to_irec+0x340/0x340 [ 506.561728] ? xfs_bmap_last_extent+0x1d0/0x1d0 [ 506.566388] xfs_iomap_write_allocate+0x42b/0xa30 [ 506.571218] ? xfs_file_iomap_begin+0x1ed0/0x1ed0 [ 506.576046] ? xfs_iunlock+0x248/0x3b0 [ 506.579929] ? rcu_read_lock_sched_held+0x16c/0x1d0 [ 506.584926] ? xfs_iunlock+0x21a/0x3b0 [ 506.588791] xfs_map_blocks+0x548/0x940 [ 506.592743] ? xfs_vm_set_page_dirty+0x610/0x610 [ 506.597561] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 506.602990] xfs_do_writepage+0x422/0x13d0 [ 506.607216] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 506.611522] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 506.616948] write_cache_pages+0x505/0xd20 [ 506.621169] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 506.625495] ? clear_page_dirty_for_io+0xb80/0xb80 [ 506.630413] ? trace_hardirqs_on+0x10/0x10 [ 506.634625] xfs_vm_writepages+0x258/0x340 [ 506.638841] ? xfs_vm_writepage+0xd0/0xd0 [ 506.642969] ? xfs_vm_writepage+0xd0/0xd0 [ 506.647097] do_writepages+0xc3/0x240 [ 506.650883] ? page_writeback_cpu_online+0x10/0x10 [ 506.655793] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 506.661220] __writeback_single_inode+0xda/0x1010 [ 506.666047] writeback_sb_inodes+0x48b/0xd30 [ 506.670456] ? wbc_detach_inode+0x780/0x780 [ 506.674763] ? queue_io+0x400/0x5a0 [ 506.678370] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 506.683810] wb_writeback+0x243/0xb80 [ 506.687612] ? writeback_inodes_wb.constprop.0+0x1a0/0x1a0 [ 506.693231] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 506.698680] wb_workfn+0x2bd/0xf50 [ 506.702201] ? process_one_work+0x6c4/0x14a0 [ 506.706591] ? inode_wait_for_writeback+0x30/0x30 [ 506.711419] ? lock_acquire+0x170/0x3f0 [ 506.715374] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 506.720814] process_one_work+0x793/0x14a0 [ 506.725039] ? work_busy+0x320/0x320 [ 506.728736] ? worker_thread+0x158/0xff0 [ 506.732777] ? _raw_spin_unlock_irq+0x24/0x80 [ 506.737261] worker_thread+0x5cc/0xff0 [ 506.741136] ? rescuer_thread+0xc80/0xc80 [ 506.745269] kthread+0x30d/0x420 [ 506.748620] ? kthread_create_on_node+0xd0/0xd0 [ 506.753275] ret_from_fork+0x24/0x30 [ 506.757434] XFS (loop1): page discard on page ffffea000147efc0, inode 0x29, offset 1204224. [ 506.766356] XFS (loop1): Internal error XFS_WANT_CORRUPTED_RETURN at line 431 of file fs/xfs/libxfs/xfs_alloc.c. Caller xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 506.780911] CPU: 1 PID: 2818 Comm: kworker/u4:3 Not tainted 4.14.303-syzkaller #0 [ 506.788522] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023 [ 506.797875] Workqueue: writeback wb_workfn (flush-7:1) [ 506.803135] Call Trace: [ 506.805711] dump_stack+0x1b2/0x281 [ 506.809327] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 506.814588] xfs_error_report+0x98/0xa0 [ 506.818562] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 506.823818] xfs_alloc_fixup_trees+0x425/0x4f0 [ 506.828386] ? xfs_alloc_update+0x90/0x90 [ 506.832515] ? xfs_btree_rec_offset.isra.0+0x3b/0xa0 [ 506.837595] ? xfs_alloc_compute_diff+0x23c/0x3d0 [ 506.842413] xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 506.847504] ? xfs_alloc_fix_freelist+0x685/0xeb0 [ 506.852355] ? xfs_alloc_ag_vextent_size+0x1ea0/0x1ea0 [ 506.857606] ? xfs_alloc_read_agf+0xb10/0xb10 [ 506.862086] xfs_alloc_ag_vextent+0x579/0x750 [ 506.866574] ? xfs_perag_get+0x116/0x410 [ 506.870627] ? xfs_alloc_vextent+0x470/0x2010 [ 506.875113] xfs_alloc_vextent+0x10b0/0x2010 [ 506.879510] xfs_bmap_btalloc+0x9e5/0x1b20 [ 506.883728] ? xfs_bmap_adjacent+0x1480/0x1480 [ 506.888296] ? ret_from_fork+0x24/0x30 [ 506.892180] ? __xfs_bmbt_get_all+0x16/0x100 [ 506.896575] xfs_bmap_alloc+0x107/0x160 [ 506.900536] xfs_bmapi_write+0xa49/0x1d00 [ 506.904665] ? xfs_bmapi_reserve_delalloc+0x7c0/0x7c0 [ 506.909835] ? trace_hardirqs_on+0x10/0x10 [ 506.914045] ? xfs_iext_get_ext+0xeb/0x200 [ 506.918255] ? xfs_iext_idx_to_irec+0x340/0x340 [ 506.922906] ? xfs_bmap_last_extent+0x1d0/0x1d0 [ 506.927560] xfs_iomap_write_allocate+0x42b/0xa30 [ 506.932391] ? xfs_file_iomap_begin+0x1ed0/0x1ed0 [ 506.937211] ? xfs_iunlock+0x248/0x3b0 [ 506.941081] ? rcu_read_lock_sched_held+0x16c/0x1d0 [ 506.946089] ? xfs_iunlock+0x21a/0x3b0 [ 506.949976] xfs_map_blocks+0x548/0x940 [ 506.953938] ? xfs_vm_set_page_dirty+0x610/0x610 [ 506.958677] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 506.964106] xfs_do_writepage+0x422/0x13d0 [ 506.968333] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 506.972638] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 506.978082] write_cache_pages+0x505/0xd20 [ 506.982302] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 506.986620] ? clear_page_dirty_for_io+0xb80/0xb80 [ 506.991539] ? trace_hardirqs_on+0x10/0x10 [ 506.995753] xfs_vm_writepages+0x258/0x340 [ 507.000032] ? xfs_vm_writepage+0xd0/0xd0 [ 507.004177] ? xfs_vm_writepage+0xd0/0xd0 [ 507.008317] do_writepages+0xc3/0x240 [ 507.012106] ? page_writeback_cpu_online+0x10/0x10 [ 507.017017] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 507.022447] __writeback_single_inode+0xda/0x1010 [ 507.027277] writeback_sb_inodes+0x48b/0xd30 [ 507.031698] ? wbc_detach_inode+0x780/0x780 [ 507.036003] ? queue_io+0x400/0x5a0 [ 507.039605] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 507.045039] wb_writeback+0x243/0xb80 [ 507.048827] ? writeback_inodes_wb.constprop.0+0x1a0/0x1a0 [ 507.054434] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 507.059861] wb_workfn+0x2bd/0xf50 [ 507.063386] ? process_one_work+0x6c4/0x14a0 [ 507.067779] ? inode_wait_for_writeback+0x30/0x30 [ 507.072617] ? lock_acquire+0x170/0x3f0 [ 507.076570] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 507.082001] process_one_work+0x793/0x14a0 [ 507.086227] ? work_busy+0x320/0x320 [ 507.089922] ? worker_thread+0x158/0xff0 [ 507.093962] ? _raw_spin_unlock_irq+0x24/0x80 [ 507.098434] worker_thread+0x5cc/0xff0 [ 507.102302] ? rescuer_thread+0xc80/0xc80 [ 507.106431] kthread+0x30d/0x420 [ 507.109781] ? kthread_create_on_node+0xd0/0xd0 [ 507.114428] ret_from_fork+0x24/0x30 [ 507.118776] XFS (loop1): page discard on page ffffea000115df00, inode 0x29, offset 1208320. [ 507.127684] XFS (loop1): Internal error XFS_WANT_CORRUPTED_RETURN at line 431 of file fs/xfs/libxfs/xfs_alloc.c. Caller xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 507.142237] CPU: 1 PID: 2818 Comm: kworker/u4:3 Not tainted 4.14.303-syzkaller #0 [ 507.149847] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023 [ 507.159197] Workqueue: writeback wb_workfn (flush-7:1) [ 507.164449] Call Trace: [ 507.167020] dump_stack+0x1b2/0x281 [ 507.170633] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 507.175894] xfs_error_report+0x98/0xa0 [ 507.179850] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 507.185110] xfs_alloc_fixup_trees+0x425/0x4f0 [ 507.189674] ? xfs_alloc_update+0x90/0x90 [ 507.193800] ? xfs_btree_rec_offset.isra.0+0x3b/0xa0 [ 507.198880] ? xfs_alloc_compute_diff+0x23c/0x3d0 [ 507.203699] xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 507.208785] ? xfs_alloc_fix_freelist+0x685/0xeb0 [ 507.213607] ? xfs_alloc_ag_vextent_size+0x1ea0/0x1ea0 [ 507.218861] ? xfs_alloc_read_agf+0xb10/0xb10 [ 507.223341] xfs_alloc_ag_vextent+0x579/0x750 [ 507.227813] ? xfs_perag_get+0x116/0x410 [ 507.231847] ? xfs_alloc_vextent+0x470/0x2010 [ 507.236325] xfs_alloc_vextent+0x10b0/0x2010 [ 507.240728] xfs_bmap_btalloc+0x9e5/0x1b20 [ 507.244951] ? xfs_bmap_adjacent+0x1480/0x1480 [ 507.249512] ? ret_from_fork+0x24/0x30 [ 507.253391] ? __xfs_bmbt_get_all+0x16/0x100 [ 507.257783] xfs_bmap_alloc+0x107/0x160 [ 507.261740] xfs_bmapi_write+0xa49/0x1d00 [ 507.265882] ? xfs_bmapi_reserve_delalloc+0x7c0/0x7c0 [ 507.271056] ? trace_hardirqs_on+0x10/0x10 [ 507.275277] ? xfs_iext_get_ext+0xeb/0x200 [ 507.279493] ? xfs_iext_idx_to_irec+0x340/0x340 [ 507.284145] ? xfs_bmap_last_extent+0x1d0/0x1d0 [ 507.288808] xfs_iomap_write_allocate+0x42b/0xa30 [ 507.293645] ? xfs_file_iomap_begin+0x1ed0/0x1ed0 [ 507.298473] ? xfs_iunlock+0x248/0x3b0 [ 507.302362] ? rcu_read_lock_sched_held+0x16c/0x1d0 [ 507.307363] ? xfs_iunlock+0x21a/0x3b0 [ 507.311230] xfs_map_blocks+0x548/0x940 [ 507.315187] ? xfs_vm_set_page_dirty+0x610/0x610 [ 507.319927] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 507.325359] xfs_do_writepage+0x422/0x13d0 [ 507.329580] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 507.333880] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 507.339307] write_cache_pages+0x505/0xd20 [ 507.343517] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 507.347822] ? clear_page_dirty_for_io+0xb80/0xb80 [ 507.352730] ? trace_hardirqs_on+0x10/0x10 [ 507.356949] xfs_vm_writepages+0x258/0x340 [ 507.361159] ? xfs_vm_writepage+0xd0/0xd0 [ 507.365294] ? xfs_vm_writepage+0xd0/0xd0 [ 507.369422] do_writepages+0xc3/0x240 [ 507.373203] ? page_writeback_cpu_online+0x10/0x10 [ 507.378111] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 507.383540] __writeback_single_inode+0xda/0x1010 [ 507.388359] writeback_sb_inodes+0x48b/0xd30 [ 507.392753] ? wbc_detach_inode+0x780/0x780 [ 507.397055] ? queue_io+0x400/0x5a0 [ 507.400656] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 507.406088] wb_writeback+0x243/0xb80 [ 507.409896] ? writeback_inodes_wb.constprop.0+0x1a0/0x1a0 [ 507.415506] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 507.420942] wb_workfn+0x2bd/0xf50 [ 507.424460] ? process_one_work+0x6c4/0x14a0 [ 507.428846] ? inode_wait_for_writeback+0x30/0x30 [ 507.433663] ? lock_acquire+0x170/0x3f0 [ 507.437616] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 507.443051] process_one_work+0x793/0x14a0 [ 507.447277] ? work_busy+0x320/0x320 [ 507.450968] ? worker_thread+0x158/0xff0 [ 507.455014] ? _raw_spin_unlock_irq+0x24/0x80 [ 507.459494] worker_thread+0x5cc/0xff0 [ 507.463358] ? rescuer_thread+0xc80/0xc80 [ 507.467481] kthread+0x30d/0x420 [ 507.470825] ? kthread_create_on_node+0xd0/0xd0 [ 507.475478] ret_from_fork+0x24/0x30 [ 507.479834] XFS (loop1): page discard on page ffffea000115df40, inode 0x29, offset 1212416. [ 507.488743] XFS (loop1): Internal error XFS_WANT_CORRUPTED_RETURN at line 431 of file fs/xfs/libxfs/xfs_alloc.c. Caller xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 507.503321] CPU: 1 PID: 2818 Comm: kworker/u4:3 Not tainted 4.14.303-syzkaller #0 [ 507.510936] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023 [ 507.520291] Workqueue: writeback wb_workfn (flush-7:1) [ 507.525553] Call Trace: [ 507.528127] dump_stack+0x1b2/0x281 [ 507.531736] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 507.536999] xfs_error_report+0x98/0xa0 [ 507.540954] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 507.546214] xfs_alloc_fixup_trees+0x425/0x4f0 [ 507.550776] ? xfs_alloc_update+0x90/0x90 [ 507.554901] ? xfs_btree_rec_offset.isra.0+0x3b/0xa0 [ 507.559983] ? xfs_alloc_compute_diff+0x23c/0x3d0 [ 507.564806] xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 507.569888] ? xfs_alloc_fix_freelist+0x685/0xeb0 [ 507.574714] ? xfs_alloc_ag_vextent_size+0x1ea0/0x1ea0 [ 507.579978] ? xfs_alloc_read_agf+0xb10/0xb10 [ 507.584459] xfs_alloc_ag_vextent+0x579/0x750 [ 507.588930] ? xfs_perag_get+0x116/0x410 [ 507.592965] ? xfs_alloc_vextent+0x470/0x2010 [ 507.597437] xfs_alloc_vextent+0x10b0/0x2010 [ 507.601829] xfs_bmap_btalloc+0x9e5/0x1b20 [ 507.606055] ? xfs_bmap_adjacent+0x1480/0x1480 [ 507.610619] ? ret_from_fork+0x24/0x30 [ 507.614509] ? __xfs_bmbt_get_all+0x16/0x100 [ 507.618907] xfs_bmap_alloc+0x107/0x160 [ 507.622884] xfs_bmapi_write+0xa49/0x1d00 [ 507.627032] ? xfs_bmapi_reserve_delalloc+0x7c0/0x7c0 [ 507.632200] ? trace_hardirqs_on+0x10/0x10 [ 507.636418] ? xfs_iext_get_ext+0xeb/0x200 [ 507.640637] ? xfs_iext_idx_to_irec+0x340/0x340 [ 507.645301] ? xfs_bmap_last_extent+0x1d0/0x1d0 [ 507.649958] xfs_iomap_write_allocate+0x42b/0xa30 [ 507.654783] ? xfs_file_iomap_begin+0x1ed0/0x1ed0 [ 507.659602] ? xfs_iunlock+0x248/0x3b0 [ 507.663475] ? rcu_read_lock_sched_held+0x16c/0x1d0 [ 507.668470] ? xfs_iunlock+0x21a/0x3b0 [ 507.672359] xfs_map_blocks+0x548/0x940 [ 507.676319] ? xfs_vm_set_page_dirty+0x610/0x610 [ 507.681057] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 507.686484] xfs_do_writepage+0x422/0x13d0 [ 507.690699] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 507.695006] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 507.700439] write_cache_pages+0x505/0xd20 [ 507.704652] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 507.708959] ? clear_page_dirty_for_io+0xb80/0xb80 [ 507.713870] ? trace_hardirqs_on+0x10/0x10 [ 507.718082] xfs_vm_writepages+0x258/0x340 [ 507.722312] ? xfs_vm_writepage+0xd0/0xd0 [ 507.726437] ? xfs_vm_writepage+0xd0/0xd0 [ 507.730560] do_writepages+0xc3/0x240 [ 507.734337] ? page_writeback_cpu_online+0x10/0x10 [ 507.739250] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 507.744679] __writeback_single_inode+0xda/0x1010 [ 507.749500] writeback_sb_inodes+0x48b/0xd30 [ 507.753938] ? wbc_detach_inode+0x780/0x780 [ 507.758265] ? queue_io+0x400/0x5a0 [ 507.761866] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 507.767293] wb_writeback+0x243/0xb80 [ 507.771071] ? writeback_inodes_wb.constprop.0+0x1a0/0x1a0 [ 507.776683] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 507.782124] wb_workfn+0x2bd/0xf50 [ 507.785649] ? process_one_work+0x6c4/0x14a0 [ 507.790041] ? inode_wait_for_writeback+0x30/0x30 [ 507.794859] ? lock_acquire+0x170/0x3f0 [ 507.798814] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 507.804269] process_one_work+0x793/0x14a0 [ 507.808483] ? work_busy+0x320/0x320 [ 507.812171] ? worker_thread+0x158/0xff0 [ 507.816216] ? _raw_spin_unlock_irq+0x24/0x80 [ 507.820695] worker_thread+0x5cc/0xff0 [ 507.824570] ? rescuer_thread+0xc80/0xc80 [ 507.828694] kthread+0x30d/0x420 [ 507.832036] ? kthread_create_on_node+0xd0/0xd0 [ 507.836689] ret_from_fork+0x24/0x30 [ 507.840990] XFS (loop1): page discard on page ffffea000115df80, inode 0x29, offset 1216512. [ 507.849929] XFS (loop1): Internal error XFS_WANT_CORRUPTED_RETURN at line 431 of file fs/xfs/libxfs/xfs_alloc.c. Caller xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 507.864481] CPU: 1 PID: 2818 Comm: kworker/u4:3 Not tainted 4.14.303-syzkaller #0 [ 507.872090] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023 [ 507.881445] Workqueue: writeback wb_workfn (flush-7:1) [ 507.886707] Call Trace: [ 507.889282] dump_stack+0x1b2/0x281 [ 507.892892] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 507.898150] xfs_error_report+0x98/0xa0 [ 507.902101] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 507.907361] xfs_alloc_fixup_trees+0x425/0x4f0 [ 507.911925] ? xfs_alloc_update+0x90/0x90 [ 507.916059] ? xfs_btree_rec_offset.isra.0+0x3b/0xa0 [ 507.921148] ? xfs_alloc_compute_diff+0x23c/0x3d0 [ 507.925977] xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 507.931068] ? xfs_alloc_fix_freelist+0x685/0xeb0 [ 507.935893] ? xfs_alloc_ag_vextent_size+0x1ea0/0x1ea0 [ 507.941158] ? xfs_alloc_read_agf+0xb10/0xb10 [ 507.945656] xfs_alloc_ag_vextent+0x579/0x750 [ 507.950139] ? xfs_perag_get+0x116/0x410 [ 507.954201] ? xfs_alloc_vextent+0x470/0x2010 [ 507.958673] xfs_alloc_vextent+0x10b0/0x2010 [ 507.963063] xfs_bmap_btalloc+0x9e5/0x1b20 [ 507.967276] ? xfs_bmap_adjacent+0x1480/0x1480 [ 507.971838] ? ret_from_fork+0x24/0x30 [ 507.975761] ? __xfs_bmbt_get_all+0x16/0x100 [ 507.980154] xfs_bmap_alloc+0x107/0x160 [ 507.984107] xfs_bmapi_write+0xa49/0x1d00 [ 507.988237] ? xfs_bmapi_reserve_delalloc+0x7c0/0x7c0 [ 507.993406] ? trace_hardirqs_on+0x10/0x10 [ 507.997621] ? xfs_iext_get_ext+0xeb/0x200 [ 508.001833] ? xfs_iext_idx_to_irec+0x340/0x340 [ 508.006483] ? xfs_bmap_last_extent+0x1d0/0x1d0 [ 508.011131] xfs_iomap_write_allocate+0x42b/0xa30 [ 508.015977] ? xfs_file_iomap_begin+0x1ed0/0x1ed0 [ 508.020806] ? xfs_iunlock+0x248/0x3b0 [ 508.024675] ? rcu_read_lock_sched_held+0x16c/0x1d0 [ 508.029668] ? xfs_iunlock+0x21a/0x3b0 [ 508.033532] xfs_map_blocks+0x548/0x940 [ 508.037488] ? xfs_vm_set_page_dirty+0x610/0x610 [ 508.042225] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 508.047664] xfs_do_writepage+0x422/0x13d0 [ 508.051905] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 508.056225] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 508.061661] write_cache_pages+0x505/0xd20 [ 508.065885] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 508.070196] ? clear_page_dirty_for_io+0xb80/0xb80 [ 508.075120] ? trace_hardirqs_on+0x10/0x10 [ 508.079338] xfs_vm_writepages+0x258/0x340 [ 508.083548] ? xfs_vm_writepage+0xd0/0xd0 [ 508.087677] ? xfs_vm_writepage+0xd0/0xd0 [ 508.091804] do_writepages+0xc3/0x240 [ 508.095590] ? page_writeback_cpu_online+0x10/0x10 [ 508.100508] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 508.105947] __writeback_single_inode+0xda/0x1010 [ 508.110780] writeback_sb_inodes+0x48b/0xd30 [ 508.115177] ? wbc_detach_inode+0x780/0x780 [ 508.119486] ? queue_io+0x400/0x5a0 [ 508.123091] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 508.128519] wb_writeback+0x243/0xb80 [ 508.132298] ? writeback_inodes_wb.constprop.0+0x1a0/0x1a0 [ 508.137903] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 508.143334] wb_workfn+0x2bd/0xf50 [ 508.146858] ? process_one_work+0x6c4/0x14a0 [ 508.151243] ? inode_wait_for_writeback+0x30/0x30 [ 508.156071] ? lock_acquire+0x170/0x3f0 [ 508.160032] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 508.165466] process_one_work+0x793/0x14a0 [ 508.169686] ? work_busy+0x320/0x320 [ 508.173375] ? worker_thread+0x158/0xff0 [ 508.177418] ? _raw_spin_unlock_irq+0x24/0x80 [ 508.181905] worker_thread+0x5cc/0xff0 [ 508.185783] ? rescuer_thread+0xc80/0xc80 [ 508.189916] kthread+0x30d/0x420 [ 508.193259] ? kthread_create_on_node+0xd0/0xd0 [ 508.197908] ret_from_fork+0x24/0x30 [ 508.201992] XFS (loop1): page discard on page ffffea000115dfc0, inode 0x29, offset 1220608. [ 508.210895] XFS (loop1): Internal error XFS_WANT_CORRUPTED_RETURN at line 431 of file fs/xfs/libxfs/xfs_alloc.c. Caller xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 508.225433] CPU: 1 PID: 2818 Comm: kworker/u4:3 Not tainted 4.14.303-syzkaller #0 [ 508.233048] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023 [ 508.242402] Workqueue: writeback wb_workfn (flush-7:1) [ 508.247660] Call Trace: [ 508.250316] dump_stack+0x1b2/0x281 [ 508.253928] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 508.259192] xfs_error_report+0x98/0xa0 [ 508.263154] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 508.268411] xfs_alloc_fixup_trees+0x425/0x4f0 [ 508.272974] ? xfs_alloc_update+0x90/0x90 [ 508.277108] ? xfs_btree_rec_offset.isra.0+0x3b/0xa0 [ 508.282213] ? xfs_alloc_compute_diff+0x23c/0x3d0 [ 508.287037] xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 508.292129] ? xfs_alloc_fix_freelist+0x685/0xeb0 [ 508.296966] ? xfs_alloc_ag_vextent_size+0x1ea0/0x1ea0 [ 508.302230] ? xfs_alloc_read_agf+0xb10/0xb10 [ 508.306713] xfs_alloc_ag_vextent+0x579/0x750 [ 508.311188] ? xfs_perag_get+0x116/0x410 [ 508.315229] ? xfs_alloc_vextent+0x470/0x2010 [ 508.319711] xfs_alloc_vextent+0x10b0/0x2010 [ 508.324112] xfs_bmap_btalloc+0x9e5/0x1b20 [ 508.328334] ? xfs_bmap_adjacent+0x1480/0x1480 [ 508.332911] ? ret_from_fork+0x24/0x30 [ 508.336803] ? __xfs_bmbt_get_all+0x16/0x100 [ 508.341207] xfs_bmap_alloc+0x107/0x160 [ 508.345174] xfs_bmapi_write+0xa49/0x1d00 [ 508.349309] ? xfs_bmapi_reserve_delalloc+0x7c0/0x7c0 [ 508.354476] ? trace_hardirqs_on+0x10/0x10 [ 508.358691] ? xfs_iext_get_ext+0xeb/0x200 [ 508.362905] ? xfs_iext_idx_to_irec+0x340/0x340 [ 508.367558] ? xfs_bmap_last_extent+0x1d0/0x1d0 [ 508.372208] xfs_iomap_write_allocate+0x42b/0xa30 [ 508.377053] ? xfs_file_iomap_begin+0x1ed0/0x1ed0 [ 508.381885] ? xfs_iunlock+0x248/0x3b0 [ 508.385768] ? rcu_read_lock_sched_held+0x16c/0x1d0 [ 508.390786] ? xfs_iunlock+0x21a/0x3b0 [ 508.394652] xfs_map_blocks+0x548/0x940 [ 508.398610] ? xfs_vm_set_page_dirty+0x610/0x610 [ 508.403360] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 508.408791] xfs_do_writepage+0x422/0x13d0 [ 508.413007] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 508.417320] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 508.422754] write_cache_pages+0x505/0xd20 [ 508.426966] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 508.431268] ? clear_page_dirty_for_io+0xb80/0xb80 [ 508.436187] ? trace_hardirqs_on+0x10/0x10 [ 508.440411] xfs_vm_writepages+0x258/0x340 [ 508.444626] ? xfs_vm_writepage+0xd0/0xd0 [ 508.448758] ? xfs_vm_writepage+0xd0/0xd0 [ 508.452884] do_writepages+0xc3/0x240 [ 508.456677] ? page_writeback_cpu_online+0x10/0x10 [ 508.461620] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 508.467054] __writeback_single_inode+0xda/0x1010 [ 508.471887] writeback_sb_inodes+0x48b/0xd30 [ 508.476299] ? wbc_detach_inode+0x780/0x780 [ 508.480630] ? queue_io+0x400/0x5a0 [ 508.484236] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 508.489667] wb_writeback+0x243/0xb80 [ 508.493448] ? writeback_inodes_wb.constprop.0+0x1a0/0x1a0 [ 508.499054] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 508.504487] wb_workfn+0x2bd/0xf50 [ 508.508012] ? process_one_work+0x6c4/0x14a0 [ 508.512398] ? inode_wait_for_writeback+0x30/0x30 [ 508.517225] ? lock_acquire+0x170/0x3f0 [ 508.521182] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 508.526610] process_one_work+0x793/0x14a0 [ 508.530842] ? work_busy+0x320/0x320 [ 508.534530] ? worker_thread+0x158/0xff0 [ 508.538572] ? _raw_spin_unlock_irq+0x24/0x80 [ 508.543044] worker_thread+0x5cc/0xff0 [ 508.546921] ? rescuer_thread+0xc80/0xc80 [ 508.551050] kthread+0x30d/0x420 [ 508.554393] ? kthread_create_on_node+0xd0/0xd0 [ 508.559042] ret_from_fork+0x24/0x30 [ 508.563297] XFS (loop1): page discard on page ffffea00012b3100, inode 0x29, offset 1224704. [ 508.572191] XFS (loop1): Internal error XFS_WANT_CORRUPTED_RETURN at line 431 of file fs/xfs/libxfs/xfs_alloc.c. Caller xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 508.586740] CPU: 1 PID: 2818 Comm: kworker/u4:3 Not tainted 4.14.303-syzkaller #0 [ 508.594351] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023 [ 508.603705] Workqueue: writeback wb_workfn (flush-7:1) [ 508.608984] Call Trace: [ 508.611555] dump_stack+0x1b2/0x281 [ 508.615177] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 508.620441] xfs_error_report+0x98/0xa0 [ 508.624415] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 508.629675] xfs_alloc_fixup_trees+0x425/0x4f0 [ 508.634237] ? xfs_alloc_update+0x90/0x90 [ 508.638364] ? xfs_btree_rec_offset.isra.0+0x3b/0xa0 [ 508.643443] ? xfs_alloc_compute_diff+0x23c/0x3d0 [ 508.648286] xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 508.653371] ? xfs_alloc_fix_freelist+0x685/0xeb0 [ 508.658198] ? xfs_alloc_ag_vextent_size+0x1ea0/0x1ea0 [ 508.663488] ? xfs_alloc_read_agf+0xb10/0xb10 [ 508.667994] xfs_alloc_ag_vextent+0x579/0x750 [ 508.672466] ? xfs_perag_get+0x116/0x410 [ 508.676506] ? xfs_alloc_vextent+0x470/0x2010 [ 508.680992] xfs_alloc_vextent+0x10b0/0x2010 [ 508.685397] xfs_bmap_btalloc+0x9e5/0x1b20 [ 508.689622] ? xfs_bmap_adjacent+0x1480/0x1480 [ 508.694191] ? ret_from_fork+0x24/0x30 [ 508.698063] ? __xfs_bmbt_get_all+0x16/0x100 [ 508.702451] xfs_bmap_alloc+0x107/0x160 [ 508.706403] xfs_bmapi_write+0xa49/0x1d00 [ 508.710532] ? xfs_bmapi_reserve_delalloc+0x7c0/0x7c0 [ 508.715709] ? trace_hardirqs_on+0x10/0x10 [ 508.719930] ? xfs_iext_get_ext+0xeb/0x200 [ 508.724159] ? xfs_iext_idx_to_irec+0x340/0x340 [ 508.728813] ? xfs_bmap_last_extent+0x1d0/0x1d0 [ 508.733463] xfs_iomap_write_allocate+0x42b/0xa30 [ 508.738295] ? xfs_file_iomap_begin+0x1ed0/0x1ed0 [ 508.743122] ? xfs_iunlock+0x248/0x3b0 [ 508.747015] ? rcu_read_lock_sched_held+0x16c/0x1d0 [ 508.752007] ? xfs_iunlock+0x21a/0x3b0 [ 508.755881] xfs_map_blocks+0x548/0x940 [ 508.759840] ? xfs_vm_set_page_dirty+0x610/0x610 [ 508.764597] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 508.770024] xfs_do_writepage+0x422/0x13d0 [ 508.774240] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 508.778545] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 508.783996] write_cache_pages+0x505/0xd20 [ 508.788235] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 508.792537] ? clear_page_dirty_for_io+0xb80/0xb80 [ 508.797456] ? trace_hardirqs_on+0x10/0x10 [ 508.801684] xfs_vm_writepages+0x258/0x340 [ 508.805902] ? xfs_vm_writepage+0xd0/0xd0 [ 508.810036] ? xfs_vm_writepage+0xd0/0xd0 [ 508.814162] do_writepages+0xc3/0x240 [ 508.817942] ? page_writeback_cpu_online+0x10/0x10 [ 508.822898] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 508.828339] __writeback_single_inode+0xda/0x1010 [ 508.833169] writeback_sb_inodes+0x48b/0xd30 [ 508.837561] ? wbc_detach_inode+0x780/0x780 [ 508.841864] ? queue_io+0x400/0x5a0 [ 508.845484] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 508.850947] wb_writeback+0x243/0xb80 [ 508.854732] ? writeback_inodes_wb.constprop.0+0x1a0/0x1a0 [ 508.860344] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 508.865781] wb_workfn+0x2bd/0xf50 [ 508.869309] ? process_one_work+0x6c4/0x14a0 [ 508.873692] ? inode_wait_for_writeback+0x30/0x30 [ 508.878538] ? lock_acquire+0x170/0x3f0 [ 508.882492] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 508.887923] process_one_work+0x793/0x14a0 [ 508.892147] ? work_busy+0x320/0x320 [ 508.895850] ? worker_thread+0x158/0xff0 [ 508.899904] ? _raw_spin_unlock_irq+0x24/0x80 [ 508.904381] worker_thread+0x5cc/0xff0 [ 508.908272] ? rescuer_thread+0xc80/0xc80 [ 508.912400] kthread+0x30d/0x420 [ 508.915749] ? kthread_create_on_node+0xd0/0xd0 [ 508.920422] ret_from_fork+0x24/0x30 [ 508.924550] XFS (loop1): page discard on page ffffea00012b3140, inode 0x29, offset 1228800. [ 508.933455] XFS (loop1): Internal error XFS_WANT_CORRUPTED_RETURN at line 431 of file fs/xfs/libxfs/xfs_alloc.c. Caller xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 508.948000] CPU: 1 PID: 2818 Comm: kworker/u4:3 Not tainted 4.14.303-syzkaller #0 [ 508.955608] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023 [ 508.964962] Workqueue: writeback wb_workfn (flush-7:1) [ 508.970229] Call Trace: [ 508.972806] dump_stack+0x1b2/0x281 [ 508.976433] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 508.981703] xfs_error_report+0x98/0xa0 [ 508.985662] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 508.990927] xfs_alloc_fixup_trees+0x425/0x4f0 [ 508.995496] ? xfs_alloc_update+0x90/0x90 [ 508.999629] ? xfs_btree_rec_offset.isra.0+0x3b/0xa0 [ 509.004710] ? xfs_alloc_compute_diff+0x23c/0x3d0 [ 509.009532] xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 509.014616] ? xfs_alloc_fix_freelist+0x685/0xeb0 [ 509.019436] ? xfs_alloc_ag_vextent_size+0x1ea0/0x1ea0 [ 509.024699] ? xfs_alloc_read_agf+0xb10/0xb10 [ 509.029185] xfs_alloc_ag_vextent+0x579/0x750 [ 509.033681] ? xfs_perag_get+0x116/0x410 [ 509.037718] ? xfs_alloc_vextent+0x470/0x2010 [ 509.042211] xfs_alloc_vextent+0x10b0/0x2010 [ 509.046606] xfs_bmap_btalloc+0x9e5/0x1b20 [ 509.050821] ? xfs_bmap_adjacent+0x1480/0x1480 [ 509.055385] ? ret_from_fork+0x24/0x30 [ 509.059263] ? __xfs_bmbt_get_all+0x16/0x100 [ 509.063651] xfs_bmap_alloc+0x107/0x160 [ 509.067605] xfs_bmapi_write+0xa49/0x1d00 [ 509.071735] ? xfs_bmapi_reserve_delalloc+0x7c0/0x7c0 [ 509.076910] ? trace_hardirqs_on+0x10/0x10 [ 509.081136] ? xfs_iext_get_ext+0xeb/0x200 [ 509.085358] ? xfs_iext_idx_to_irec+0x340/0x340 [ 509.090018] ? xfs_bmap_last_extent+0x1d0/0x1d0 [ 509.094671] xfs_iomap_write_allocate+0x42b/0xa30 [ 509.099496] ? xfs_file_iomap_begin+0x1ed0/0x1ed0 [ 509.104319] ? xfs_iunlock+0x248/0x3b0 [ 509.108189] ? rcu_read_lock_sched_held+0x16c/0x1d0 [ 509.113184] ? xfs_iunlock+0x21a/0x3b0 [ 509.117054] xfs_map_blocks+0x548/0x940 [ 509.121015] ? xfs_vm_set_page_dirty+0x610/0x610 [ 509.125755] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 509.131190] xfs_do_writepage+0x422/0x13d0 [ 509.135414] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 509.139722] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 509.145163] write_cache_pages+0x505/0xd20 [ 509.149383] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 509.153683] ? clear_page_dirty_for_io+0xb80/0xb80 [ 509.158594] ? trace_hardirqs_on+0x10/0x10 [ 509.162806] xfs_vm_writepages+0x258/0x340 [ 509.167041] ? xfs_vm_writepage+0xd0/0xd0 [ 509.171170] ? xfs_vm_writepage+0xd0/0xd0 [ 509.175298] do_writepages+0xc3/0x240 [ 509.179082] ? page_writeback_cpu_online+0x10/0x10 [ 509.183988] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 509.189438] __writeback_single_inode+0xda/0x1010 [ 509.194267] writeback_sb_inodes+0x48b/0xd30 [ 509.198666] ? wbc_detach_inode+0x780/0x780 [ 509.202973] ? queue_io+0x400/0x5a0 [ 509.206578] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 509.212004] wb_writeback+0x243/0xb80 [ 509.215793] ? writeback_inodes_wb.constprop.0+0x1a0/0x1a0 [ 509.221402] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 509.226834] wb_workfn+0x2bd/0xf50 [ 509.230353] ? process_one_work+0x6c4/0x14a0 [ 509.234737] ? inode_wait_for_writeback+0x30/0x30 [ 509.239563] ? lock_acquire+0x170/0x3f0 [ 509.243518] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 509.248947] process_one_work+0x793/0x14a0 [ 509.253164] ? work_busy+0x320/0x320 [ 509.256862] ? worker_thread+0x158/0xff0 [ 509.260929] ? _raw_spin_unlock_irq+0x24/0x80 [ 509.265411] worker_thread+0x5cc/0xff0 [ 509.269289] ? rescuer_thread+0xc80/0xc80 [ 509.273431] kthread+0x30d/0x420 [ 509.276785] ? kthread_create_on_node+0xd0/0xd0 [ 509.281526] ret_from_fork+0x24/0x30 [ 509.285882] XFS (loop1): page discard on page ffffea00012b3180, inode 0x29, offset 1232896. [ 509.294757] XFS (loop1): Internal error XFS_WANT_CORRUPTED_RETURN at line 431 of file fs/xfs/libxfs/xfs_alloc.c. Caller xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 509.309313] CPU: 1 PID: 2818 Comm: kworker/u4:3 Not tainted 4.14.303-syzkaller #0 [ 509.316935] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023 [ 509.326283] Workqueue: writeback wb_workfn (flush-7:1) [ 509.331539] Call Trace: [ 509.334104] dump_stack+0x1b2/0x281 [ 509.337711] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 509.342970] xfs_error_report+0x98/0xa0 [ 509.346931] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 509.352184] xfs_alloc_fixup_trees+0x425/0x4f0 [ 509.356866] ? xfs_alloc_update+0x90/0x90 [ 509.361004] ? xfs_btree_rec_offset.isra.0+0x3b/0xa0 [ 509.366094] ? xfs_alloc_compute_diff+0x23c/0x3d0 [ 509.370925] xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 509.376025] ? xfs_alloc_fix_freelist+0x685/0xeb0 [ 509.380859] ? xfs_alloc_ag_vextent_size+0x1ea0/0x1ea0 [ 509.386130] ? xfs_alloc_read_agf+0xb10/0xb10 [ 509.390619] xfs_alloc_ag_vextent+0x579/0x750 [ 509.395099] ? xfs_perag_get+0x116/0x410 [ 509.399145] ? xfs_alloc_vextent+0x470/0x2010 [ 509.403644] xfs_alloc_vextent+0x10b0/0x2010 [ 509.408036] xfs_bmap_btalloc+0x9e5/0x1b20 [ 509.412251] ? xfs_bmap_adjacent+0x1480/0x1480 [ 509.416820] ? ret_from_fork+0x24/0x30 [ 509.420713] ? __xfs_bmbt_get_all+0x16/0x100 [ 509.425107] xfs_bmap_alloc+0x107/0x160 [ 509.429069] xfs_bmapi_write+0xa49/0x1d00 [ 509.433199] ? xfs_bmapi_reserve_delalloc+0x7c0/0x7c0 [ 509.438376] ? trace_hardirqs_on+0x10/0x10 [ 509.442596] ? xfs_iext_get_ext+0xeb/0x200 [ 509.446809] ? xfs_iext_idx_to_irec+0x340/0x340 [ 509.451462] ? xfs_bmap_last_extent+0x1d0/0x1d0 [ 509.456124] xfs_iomap_write_allocate+0x42b/0xa30 [ 509.460981] ? xfs_file_iomap_begin+0x1ed0/0x1ed0 [ 509.465815] ? xfs_iunlock+0x248/0x3b0 [ 509.469716] ? rcu_read_lock_sched_held+0x16c/0x1d0 [ 509.474715] ? xfs_iunlock+0x21a/0x3b0 [ 509.478584] xfs_map_blocks+0x548/0x940 [ 509.482541] ? xfs_vm_set_page_dirty+0x610/0x610 [ 509.487277] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 509.492715] xfs_do_writepage+0x422/0x13d0 [ 509.496950] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 509.501258] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 509.506701] write_cache_pages+0x505/0xd20 [ 509.510917] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 509.515230] ? clear_page_dirty_for_io+0xb80/0xb80 [ 509.520151] ? trace_hardirqs_on+0x10/0x10 [ 509.524365] xfs_vm_writepages+0x258/0x340 [ 509.528578] ? xfs_vm_writepage+0xd0/0xd0 [ 509.532716] ? xfs_vm_writepage+0xd0/0xd0 [ 509.536845] do_writepages+0xc3/0x240 [ 509.540638] ? page_writeback_cpu_online+0x10/0x10 [ 509.545558] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 509.550997] __writeback_single_inode+0xda/0x1010 [ 509.555829] writeback_sb_inodes+0x48b/0xd30 [ 509.560229] ? wbc_detach_inode+0x780/0x780 [ 509.564532] ? queue_io+0x400/0x5a0 [ 509.568138] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 509.573566] wb_writeback+0x243/0xb80 [ 509.577359] ? writeback_inodes_wb.constprop.0+0x1a0/0x1a0 [ 509.582970] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 509.588403] wb_workfn+0x2bd/0xf50 [ 509.591924] ? process_one_work+0x6c4/0x14a0 [ 509.596318] ? inode_wait_for_writeback+0x30/0x30 [ 509.601150] ? lock_acquire+0x170/0x3f0 [ 509.605115] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 509.610561] process_one_work+0x793/0x14a0 [ 509.614788] ? work_busy+0x320/0x320 [ 509.618481] ? worker_thread+0x158/0xff0 [ 509.622520] ? _raw_spin_unlock_irq+0x24/0x80 [ 509.626997] worker_thread+0x5cc/0xff0 [ 509.630866] ? rescuer_thread+0xc80/0xc80 [ 509.635000] kthread+0x30d/0x420 [ 509.638353] ? kthread_create_on_node+0xd0/0xd0 [ 509.643021] ret_from_fork+0x24/0x30 [ 509.647355] XFS (loop1): page discard on page ffffea00012b31c0, inode 0x29, offset 1236992. [ 509.656270] XFS (loop1): Internal error XFS_WANT_CORRUPTED_RETURN at line 431 of file fs/xfs/libxfs/xfs_alloc.c. Caller xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 509.670810] CPU: 1 PID: 2818 Comm: kworker/u4:3 Not tainted 4.14.303-syzkaller #0 [ 509.678421] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023 [ 509.687769] Workqueue: writeback wb_workfn (flush-7:1) [ 509.693026] Call Trace: [ 509.695600] dump_stack+0x1b2/0x281 [ 509.699229] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 509.704490] xfs_error_report+0x98/0xa0 [ 509.708445] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 509.713704] xfs_alloc_fixup_trees+0x425/0x4f0 [ 509.718271] ? xfs_alloc_update+0x90/0x90 [ 509.722407] ? xfs_btree_rec_offset.isra.0+0x3b/0xa0 [ 509.727489] ? xfs_alloc_compute_diff+0x23c/0x3d0 [ 509.732313] xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 509.737409] ? xfs_alloc_fix_freelist+0x685/0xeb0 [ 509.742236] ? xfs_alloc_ag_vextent_size+0x1ea0/0x1ea0 [ 509.747489] ? xfs_alloc_read_agf+0xb10/0xb10 [ 509.751969] xfs_alloc_ag_vextent+0x579/0x750 [ 509.756445] ? xfs_perag_get+0x116/0x410 [ 509.760494] ? xfs_alloc_vextent+0x470/0x2010 [ 509.764980] xfs_alloc_vextent+0x10b0/0x2010 [ 509.769386] xfs_bmap_btalloc+0x9e5/0x1b20 [ 509.773615] ? xfs_bmap_adjacent+0x1480/0x1480 [ 509.778172] ? ret_from_fork+0x24/0x30 [ 509.782046] ? __xfs_bmbt_get_all+0x16/0x100 [ 509.786438] xfs_bmap_alloc+0x107/0x160 [ 509.790396] xfs_bmapi_write+0xa49/0x1d00 [ 509.794528] ? xfs_bmapi_reserve_delalloc+0x7c0/0x7c0 [ 509.799697] ? trace_hardirqs_on+0x10/0x10 [ 509.803914] ? xfs_iext_get_ext+0xeb/0x200 [ 509.808123] ? xfs_iext_idx_to_irec+0x340/0x340 [ 509.812773] ? xfs_bmap_last_extent+0x1d0/0x1d0 [ 509.817430] xfs_iomap_write_allocate+0x42b/0xa30 [ 509.822258] ? xfs_file_iomap_begin+0x1ed0/0x1ed0 [ 509.827076] ? xfs_iunlock+0x248/0x3b0 [ 509.830948] ? rcu_read_lock_sched_held+0x16c/0x1d0 [ 509.835943] ? xfs_iunlock+0x21a/0x3b0 [ 509.839821] xfs_map_blocks+0x548/0x940 [ 509.843780] ? xfs_vm_set_page_dirty+0x610/0x610 [ 509.848519] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 509.853947] xfs_do_writepage+0x422/0x13d0 [ 509.858172] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 509.862495] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 509.868004] write_cache_pages+0x505/0xd20 [ 509.872238] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 509.876553] ? clear_page_dirty_for_io+0xb80/0xb80 [ 509.881479] ? trace_hardirqs_on+0x10/0x10 [ 509.885708] xfs_vm_writepages+0x258/0x340 [ 509.889927] ? xfs_vm_writepage+0xd0/0xd0 [ 509.894054] ? xfs_vm_writepage+0xd0/0xd0 [ 509.898215] do_writepages+0xc3/0x240 [ 509.902003] ? page_writeback_cpu_online+0x10/0x10 [ 509.906914] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 509.912350] __writeback_single_inode+0xda/0x1010 [ 509.917193] writeback_sb_inodes+0x48b/0xd30 [ 509.921592] ? wbc_detach_inode+0x780/0x780 [ 509.925906] ? queue_io+0x400/0x5a0 [ 509.929522] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 509.934960] wb_writeback+0x243/0xb80 [ 509.938749] ? writeback_inodes_wb.constprop.0+0x1a0/0x1a0 [ 509.944352] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 509.949787] wb_workfn+0x2bd/0xf50 [ 509.953313] ? process_one_work+0x6c4/0x14a0 [ 509.957709] ? inode_wait_for_writeback+0x30/0x30 [ 509.962553] ? lock_acquire+0x170/0x3f0 [ 509.966527] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 509.971956] process_one_work+0x793/0x14a0 [ 509.976187] ? work_busy+0x320/0x320 [ 509.979889] ? worker_thread+0x158/0xff0 [ 509.983933] ? _raw_spin_unlock_irq+0x24/0x80 [ 509.988412] worker_thread+0x5cc/0xff0 [ 509.992287] ? rescuer_thread+0xc80/0xc80 [ 509.996427] kthread+0x30d/0x420 [ 509.999786] ? kthread_create_on_node+0xd0/0xd0 [ 510.004435] ret_from_fork+0x24/0x30 [ 510.013543] XFS (loop1): page discard on page ffffea00010de100, inode 0x29, offset 1241088. [ 510.022534] XFS (loop1): Internal error XFS_WANT_CORRUPTED_RETURN at line 431 of file fs/xfs/libxfs/xfs_alloc.c. Caller xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 510.037085] CPU: 1 PID: 2818 Comm: kworker/u4:3 Not tainted 4.14.303-syzkaller #0 [ 510.044696] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023 [ 510.054043] Workqueue: writeback wb_workfn (flush-7:1) [ 510.059298] Call Trace: [ 510.061886] dump_stack+0x1b2/0x281 [ 510.065499] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 510.070764] xfs_error_report+0x98/0xa0 [ 510.074714] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 510.079973] xfs_alloc_fixup_trees+0x425/0x4f0 [ 510.084540] ? xfs_alloc_update+0x90/0x90 [ 510.088671] ? xfs_btree_rec_offset.isra.0+0x3b/0xa0 [ 510.093770] ? xfs_alloc_compute_diff+0x23c/0x3d0 [ 510.098603] xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 510.103691] ? xfs_alloc_fix_freelist+0x685/0xeb0 [ 510.108513] ? xfs_alloc_ag_vextent_size+0x1ea0/0x1ea0 [ 510.113777] ? xfs_alloc_read_agf+0xb10/0xb10 [ 510.118262] xfs_alloc_ag_vextent+0x579/0x750 [ 510.122740] ? xfs_perag_get+0x116/0x410 [ 510.126784] ? xfs_alloc_vextent+0x470/0x2010 [ 510.131269] xfs_alloc_vextent+0x10b0/0x2010 [ 510.135677] xfs_bmap_btalloc+0x9e5/0x1b20 [ 510.139912] ? xfs_bmap_adjacent+0x1480/0x1480 [ 510.144471] ? ret_from_fork+0x24/0x30 [ 510.148348] ? __xfs_bmbt_get_all+0x16/0x100 [ 510.152736] xfs_bmap_alloc+0x107/0x160 [ 510.156701] xfs_bmapi_write+0xa49/0x1d00 [ 510.160853] ? xfs_bmapi_reserve_delalloc+0x7c0/0x7c0 [ 510.166037] ? trace_hardirqs_on+0x10/0x10 [ 510.170257] ? xfs_iext_get_ext+0xeb/0x200 [ 510.174469] ? xfs_iext_idx_to_irec+0x340/0x340 [ 510.179123] ? xfs_bmap_last_extent+0x1d0/0x1d0 [ 510.183775] xfs_iomap_write_allocate+0x42b/0xa30 [ 510.188626] ? xfs_file_iomap_begin+0x1ed0/0x1ed0 [ 510.193445] ? xfs_iunlock+0x248/0x3b0 [ 510.197315] ? rcu_read_lock_sched_held+0x16c/0x1d0 [ 510.202306] ? xfs_iunlock+0x21a/0x3b0 [ 510.206183] xfs_map_blocks+0x548/0x940 [ 510.210148] ? xfs_vm_set_page_dirty+0x610/0x610 [ 510.214887] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 510.220324] xfs_do_writepage+0x422/0x13d0 [ 510.224542] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 510.228844] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 510.234273] write_cache_pages+0x505/0xd20 [ 510.238491] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 510.242795] ? clear_page_dirty_for_io+0xb80/0xb80 [ 510.247730] ? trace_hardirqs_on+0x10/0x10 [ 510.251951] xfs_vm_writepages+0x258/0x340 [ 510.256169] ? xfs_vm_writepage+0xd0/0xd0 [ 510.260311] ? xfs_vm_writepage+0xd0/0xd0 [ 510.264437] do_writepages+0xc3/0x240 [ 510.268220] ? page_writeback_cpu_online+0x10/0x10 [ 510.273140] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 510.278576] __writeback_single_inode+0xda/0x1010 [ 510.283402] writeback_sb_inodes+0x48b/0xd30 [ 510.287792] ? wbc_detach_inode+0x780/0x780 [ 510.292093] ? queue_io+0x400/0x5a0 [ 510.295702] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 510.301136] wb_writeback+0x243/0xb80 [ 510.304929] ? writeback_inodes_wb.constprop.0+0x1a0/0x1a0 [ 510.310543] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 510.315983] wb_workfn+0x2bd/0xf50 [ 510.319509] ? process_one_work+0x6c4/0x14a0 [ 510.323898] ? inode_wait_for_writeback+0x30/0x30 [ 510.328729] ? lock_acquire+0x170/0x3f0 [ 510.332690] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 510.338120] process_one_work+0x793/0x14a0 [ 510.342336] ? work_busy+0x320/0x320 [ 510.346031] ? worker_thread+0x158/0xff0 [ 510.350080] ? _raw_spin_unlock_irq+0x24/0x80 [ 510.355956] worker_thread+0x5cc/0xff0 [ 510.359861] ? rescuer_thread+0xc80/0xc80 [ 510.363993] kthread+0x30d/0x420 [ 510.367337] ? kthread_create_on_node+0xd0/0xd0 [ 510.371983] ret_from_fork+0x24/0x30 [ 510.376409] XFS (loop1): page discard on page ffffea00010de140, inode 0x29, offset 1245184. [ 510.385278] XFS (loop1): Internal error XFS_WANT_CORRUPTED_RETURN at line 431 of file fs/xfs/libxfs/xfs_alloc.c. Caller xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 510.399824] CPU: 1 PID: 2818 Comm: kworker/u4:3 Not tainted 4.14.303-syzkaller #0 [ 510.407433] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023 [ 510.416791] Workqueue: writeback wb_workfn (flush-7:1) [ 510.422062] Call Trace: [ 510.424632] dump_stack+0x1b2/0x281 [ 510.428244] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 510.433509] xfs_error_report+0x98/0xa0 [ 510.437463] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 510.442722] xfs_alloc_fixup_trees+0x425/0x4f0 [ 510.447298] ? xfs_alloc_update+0x90/0x90 [ 510.451433] ? xfs_btree_rec_offset.isra.0+0x3b/0xa0 [ 510.456523] ? xfs_alloc_compute_diff+0x23c/0x3d0 [ 510.461345] xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 510.466440] ? xfs_alloc_fix_freelist+0x685/0xeb0 [ 510.471270] ? xfs_alloc_ag_vextent_size+0x1ea0/0x1ea0 [ 510.476532] ? xfs_alloc_read_agf+0xb10/0xb10 [ 510.481013] xfs_alloc_ag_vextent+0x579/0x750 [ 510.485493] ? xfs_perag_get+0x116/0x410 [ 510.489539] ? xfs_alloc_vextent+0x470/0x2010 [ 510.494017] xfs_alloc_vextent+0x10b0/0x2010 [ 510.498419] xfs_bmap_btalloc+0x9e5/0x1b20 [ 510.502635] ? xfs_bmap_adjacent+0x1480/0x1480 [ 510.507203] ? ret_from_fork+0x24/0x30 [ 510.511087] ? __xfs_bmbt_get_all+0x16/0x100 [ 510.515483] xfs_bmap_alloc+0x107/0x160 [ 510.519441] xfs_bmapi_write+0xa49/0x1d00 [ 510.523573] ? xfs_bmapi_reserve_delalloc+0x7c0/0x7c0 [ 510.528741] ? trace_hardirqs_on+0x10/0x10 [ 510.532954] ? xfs_iext_get_ext+0xeb/0x200 [ 510.537173] ? xfs_iext_idx_to_irec+0x340/0x340 [ 510.541825] ? xfs_bmap_last_extent+0x1d0/0x1d0 [ 510.546486] xfs_iomap_write_allocate+0x42b/0xa30 [ 510.551317] ? xfs_file_iomap_begin+0x1ed0/0x1ed0 [ 510.556133] ? xfs_iunlock+0x248/0x3b0 [ 510.560001] ? rcu_read_lock_sched_held+0x16c/0x1d0 [ 510.565001] ? xfs_iunlock+0x21a/0x3b0 [ 510.568874] xfs_map_blocks+0x548/0x940 [ 510.572829] ? xfs_vm_set_page_dirty+0x610/0x610 [ 510.577594] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 510.583029] xfs_do_writepage+0x422/0x13d0 [ 510.587259] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 510.591576] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 510.597008] write_cache_pages+0x505/0xd20 [ 510.601227] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 510.605545] ? clear_page_dirty_for_io+0xb80/0xb80 [ 510.610462] ? trace_hardirqs_on+0x10/0x10 [ 510.614676] xfs_vm_writepages+0x258/0x340 [ 510.618888] ? xfs_vm_writepage+0xd0/0xd0 [ 510.623017] ? xfs_vm_writepage+0xd0/0xd0 [ 510.627147] do_writepages+0xc3/0x240 [ 510.630933] ? page_writeback_cpu_online+0x10/0x10 [ 510.635845] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 510.641273] __writeback_single_inode+0xda/0x1010 [ 510.646108] writeback_sb_inodes+0x48b/0xd30 [ 510.650520] ? wbc_detach_inode+0x780/0x780 [ 510.654828] ? queue_io+0x400/0x5a0 [ 510.658436] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 510.663865] wb_writeback+0x243/0xb80 [ 510.667662] ? writeback_inodes_wb.constprop.0+0x1a0/0x1a0 [ 510.673277] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 510.678708] wb_workfn+0x2bd/0xf50 [ 510.682254] ? process_one_work+0x6c4/0x14a0 [ 510.686648] ? inode_wait_for_writeback+0x30/0x30 [ 510.691508] ? lock_acquire+0x170/0x3f0 [ 510.695480] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 510.700930] process_one_work+0x793/0x14a0 [ 510.705170] ? work_busy+0x320/0x320 [ 510.708873] ? worker_thread+0x158/0xff0 [ 510.712916] ? _raw_spin_unlock_irq+0x24/0x80 [ 510.717397] worker_thread+0x5cc/0xff0 [ 510.721270] ? rescuer_thread+0xc80/0xc80 [ 510.725404] kthread+0x30d/0x420 [ 510.728760] ? kthread_create_on_node+0xd0/0xd0 [ 510.733409] ret_from_fork+0x24/0x30 [ 510.737710] XFS (loop1): page discard on page ffffea00010de180, inode 0x29, offset 1249280. [ 510.746617] XFS (loop1): Internal error XFS_WANT_CORRUPTED_RETURN at line 431 of file fs/xfs/libxfs/xfs_alloc.c. Caller xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 510.761159] CPU: 1 PID: 2818 Comm: kworker/u4:3 Not tainted 4.14.303-syzkaller #0 [ 510.768774] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023 [ 510.778124] Workqueue: writeback wb_workfn (flush-7:1) [ 510.783386] Call Trace: [ 510.785960] dump_stack+0x1b2/0x281 [ 510.789580] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 510.794843] xfs_error_report+0x98/0xa0 [ 510.798798] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 510.804053] xfs_alloc_fixup_trees+0x425/0x4f0 [ 510.808624] ? xfs_alloc_update+0x90/0x90 [ 510.812758] ? xfs_btree_rec_offset.isra.0+0x3b/0xa0 [ 510.817836] ? xfs_alloc_compute_diff+0x23c/0x3d0 [ 510.822664] xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 510.827769] ? xfs_alloc_fix_freelist+0x685/0xeb0 [ 510.832598] ? xfs_alloc_ag_vextent_size+0x1ea0/0x1ea0 [ 510.837852] ? xfs_alloc_read_agf+0xb10/0xb10 [ 510.842333] xfs_alloc_ag_vextent+0x579/0x750 [ 510.846808] ? xfs_perag_get+0x116/0x410 [ 510.850853] ? xfs_alloc_vextent+0x470/0x2010 [ 510.855324] xfs_alloc_vextent+0x10b0/0x2010 [ 510.859726] xfs_bmap_btalloc+0x9e5/0x1b20 [ 510.863941] ? xfs_bmap_adjacent+0x1480/0x1480 [ 510.868504] ? ret_from_fork+0x24/0x30 [ 510.872383] ? __xfs_bmbt_get_all+0x16/0x100 [ 510.876770] xfs_bmap_alloc+0x107/0x160 [ 510.880724] xfs_bmapi_write+0xa49/0x1d00 [ 510.884862] ? xfs_bmapi_reserve_delalloc+0x7c0/0x7c0 [ 510.890062] ? trace_hardirqs_on+0x10/0x10 [ 510.894488] ? xfs_iext_get_ext+0xeb/0x200 [ 510.898725] ? xfs_iext_idx_to_irec+0x340/0x340 [ 510.903385] ? xfs_bmap_last_extent+0x1d0/0x1d0 [ 510.908048] xfs_iomap_write_allocate+0x42b/0xa30 [ 510.912883] ? xfs_file_iomap_begin+0x1ed0/0x1ed0 [ 510.917702] ? xfs_iunlock+0x248/0x3b0 [ 510.921572] ? rcu_read_lock_sched_held+0x16c/0x1d0 [ 510.926575] ? xfs_iunlock+0x21a/0x3b0 [ 510.930452] xfs_map_blocks+0x548/0x940 [ 510.934416] ? xfs_vm_set_page_dirty+0x610/0x610 [ 510.939150] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 510.944577] xfs_do_writepage+0x422/0x13d0 [ 510.948795] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 510.953097] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 510.958527] write_cache_pages+0x505/0xd20 [ 510.962746] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 510.967056] ? clear_page_dirty_for_io+0xb80/0xb80 [ 510.972009] ? trace_hardirqs_on+0x10/0x10 [ 510.976244] xfs_vm_writepages+0x258/0x340 [ 510.980464] ? xfs_vm_writepage+0xd0/0xd0 [ 510.984610] ? xfs_vm_writepage+0xd0/0xd0 [ 510.988737] do_writepages+0xc3/0x240 [ 510.992522] ? page_writeback_cpu_online+0x10/0x10 [ 510.997438] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 511.002874] __writeback_single_inode+0xda/0x1010 [ 511.007712] writeback_sb_inodes+0x48b/0xd30 [ 511.012111] ? wbc_detach_inode+0x780/0x780 [ 511.016412] ? queue_io+0x400/0x5a0 [ 511.020016] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 511.025453] wb_writeback+0x243/0xb80 [ 511.029242] ? writeback_inodes_wb.constprop.0+0x1a0/0x1a0 [ 511.034853] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 511.040288] wb_workfn+0x2bd/0xf50 [ 511.043807] ? process_one_work+0x6c4/0x14a0 [ 511.048199] ? inode_wait_for_writeback+0x30/0x30 [ 511.053028] ? lock_acquire+0x170/0x3f0 [ 511.056985] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 511.062418] process_one_work+0x793/0x14a0 [ 511.066644] ? work_busy+0x320/0x320 [ 511.070343] ? worker_thread+0x158/0xff0 [ 511.074383] ? _raw_spin_unlock_irq+0x24/0x80 [ 511.078857] worker_thread+0x5cc/0xff0 [ 511.082731] ? rescuer_thread+0xc80/0xc80 [ 511.086871] kthread+0x30d/0x420 [ 511.090225] ? kthread_create_on_node+0xd0/0xd0 [ 511.094896] ret_from_fork+0x24/0x30 [ 511.100140] XFS (loop1): page discard on page ffffea00010de1c0, inode 0x29, offset 1253376. [ 511.109072] XFS (loop1): Internal error XFS_WANT_CORRUPTED_RETURN at line 431 of file fs/xfs/libxfs/xfs_alloc.c. Caller xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 511.123617] CPU: 1 PID: 2818 Comm: kworker/u4:3 Not tainted 4.14.303-syzkaller #0 [ 511.131232] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023 [ 511.140592] Workqueue: writeback wb_workfn (flush-7:1) [ 511.145867] Call Trace: [ 511.148450] dump_stack+0x1b2/0x281 [ 511.152065] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 511.157325] xfs_error_report+0x98/0xa0 [ 511.161284] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 511.166554] xfs_alloc_fixup_trees+0x425/0x4f0 [ 511.171126] ? xfs_alloc_update+0x90/0x90 [ 511.175252] ? xfs_btree_rec_offset.isra.0+0x3b/0xa0 [ 511.180331] ? xfs_alloc_compute_diff+0x23c/0x3d0 [ 511.185156] xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 511.190249] ? xfs_alloc_fix_freelist+0x685/0xeb0 [ 511.195065] ? xfs_alloc_ag_vextent_size+0x1ea0/0x1ea0 [ 511.200317] ? xfs_alloc_read_agf+0xb10/0xb10 [ 511.204831] xfs_alloc_ag_vextent+0x579/0x750 [ 511.209308] ? xfs_perag_get+0x116/0x410 [ 511.213349] ? xfs_alloc_vextent+0x470/0x2010 [ 511.217822] xfs_alloc_vextent+0x10b0/0x2010 [ 511.222214] xfs_bmap_btalloc+0x9e5/0x1b20 [ 511.226438] ? xfs_bmap_adjacent+0x1480/0x1480 [ 511.231003] ? ret_from_fork+0x24/0x30 [ 511.234886] ? __xfs_bmbt_get_all+0x16/0x100 [ 511.239273] xfs_bmap_alloc+0x107/0x160 [ 511.243224] xfs_bmapi_write+0xa49/0x1d00 [ 511.247365] ? xfs_bmapi_reserve_delalloc+0x7c0/0x7c0 [ 511.252541] ? trace_hardirqs_on+0x10/0x10 [ 511.256765] ? xfs_iext_get_ext+0xeb/0x200 [ 511.260987] ? xfs_iext_idx_to_irec+0x340/0x340 [ 511.265659] ? xfs_bmap_last_extent+0x1d0/0x1d0 [ 511.270319] xfs_iomap_write_allocate+0x42b/0xa30 [ 511.275144] ? xfs_file_iomap_begin+0x1ed0/0x1ed0 [ 511.279965] ? xfs_iunlock+0x248/0x3b0 [ 511.283837] ? rcu_read_lock_sched_held+0x16c/0x1d0 [ 511.288832] ? xfs_iunlock+0x21a/0x3b0 [ 511.292699] xfs_map_blocks+0x548/0x940 [ 511.296650] ? xfs_vm_set_page_dirty+0x610/0x610 [ 511.301380] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 511.306815] xfs_do_writepage+0x422/0x13d0 [ 511.311040] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 511.315338] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 511.320774] write_cache_pages+0x505/0xd20 [ 511.325002] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 511.329309] ? clear_page_dirty_for_io+0xb80/0xb80 [ 511.334223] ? trace_hardirqs_on+0x10/0x10 [ 511.338438] xfs_vm_writepages+0x258/0x340 [ 511.342659] ? xfs_vm_writepage+0xd0/0xd0 [ 511.346804] ? xfs_vm_writepage+0xd0/0xd0 [ 511.350942] do_writepages+0xc3/0x240 [ 511.354728] ? page_writeback_cpu_online+0x10/0x10 [ 511.359640] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 511.365077] __writeback_single_inode+0xda/0x1010 [ 511.369907] writeback_sb_inodes+0x48b/0xd30 [ 511.374296] ? wbc_detach_inode+0x780/0x780 [ 511.378605] ? queue_io+0x400/0x5a0 [ 511.382216] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 511.387655] wb_writeback+0x243/0xb80 [ 511.391444] ? writeback_inodes_wb.constprop.0+0x1a0/0x1a0 [ 511.397048] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 511.402474] wb_workfn+0x2bd/0xf50 [ 511.406001] ? process_one_work+0x6c4/0x14a0 [ 511.410421] ? inode_wait_for_writeback+0x30/0x30 [ 511.415244] ? lock_acquire+0x170/0x3f0 [ 511.419200] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 511.424631] process_one_work+0x793/0x14a0 [ 511.428856] ? work_busy+0x320/0x320 [ 511.432557] ? worker_thread+0x158/0xff0 [ 511.436597] ? _raw_spin_unlock_irq+0x24/0x80 [ 511.441072] worker_thread+0x5cc/0xff0 [ 511.444950] ? rescuer_thread+0xc80/0xc80 [ 511.449083] kthread+0x30d/0x420 [ 511.452424] ? kthread_create_on_node+0xd0/0xd0 [ 511.457076] ret_from_fork+0x24/0x30 [ 511.461153] XFS (loop1): page discard on page ffffea000147f300, inode 0x29, offset 1257472. [ 511.470052] XFS (loop1): Internal error XFS_WANT_CORRUPTED_RETURN at line 431 of file fs/xfs/libxfs/xfs_alloc.c. Caller xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 511.484613] CPU: 1 PID: 2818 Comm: kworker/u4:3 Not tainted 4.14.303-syzkaller #0 [ 511.492226] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023 [ 511.501578] Workqueue: writeback wb_workfn (flush-7:1) [ 511.506840] Call Trace: [ 511.509413] dump_stack+0x1b2/0x281 [ 511.513019] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 511.518271] xfs_error_report+0x98/0xa0 [ 511.522225] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 511.527501] xfs_alloc_fixup_trees+0x425/0x4f0 [ 511.532070] ? xfs_alloc_update+0x90/0x90 [ 511.536194] ? xfs_btree_rec_offset.isra.0+0x3b/0xa0 [ 511.541275] ? xfs_alloc_compute_diff+0x23c/0x3d0 [ 511.546100] xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 511.551199] ? xfs_alloc_fix_freelist+0x685/0xeb0 [ 511.556018] ? xfs_alloc_ag_vextent_size+0x1ea0/0x1ea0 [ 511.561270] ? xfs_alloc_read_agf+0xb10/0xb10 [ 511.565770] xfs_alloc_ag_vextent+0x579/0x750 [ 511.570249] ? xfs_perag_get+0x116/0x410 [ 511.574309] ? xfs_alloc_vextent+0x470/0x2010 [ 511.578792] xfs_alloc_vextent+0x10b0/0x2010 [ 511.583201] xfs_bmap_btalloc+0x9e5/0x1b20 [ 511.587438] ? xfs_bmap_adjacent+0x1480/0x1480 [ 511.592006] ? ret_from_fork+0x24/0x30 [ 511.595884] ? __xfs_bmbt_get_all+0x16/0x100 [ 511.600275] xfs_bmap_alloc+0x107/0x160 [ 511.604226] xfs_bmapi_write+0xa49/0x1d00 [ 511.608367] ? xfs_bmapi_reserve_delalloc+0x7c0/0x7c0 [ 511.613544] ? trace_hardirqs_on+0x10/0x10 [ 511.617758] ? xfs_iext_get_ext+0xeb/0x200 [ 511.621967] ? xfs_iext_idx_to_irec+0x340/0x340 [ 511.626637] ? xfs_bmap_last_extent+0x1d0/0x1d0 [ 511.631296] xfs_iomap_write_allocate+0x42b/0xa30 [ 511.636121] ? xfs_file_iomap_begin+0x1ed0/0x1ed0 [ 511.640942] ? xfs_iunlock+0x248/0x3b0 [ 511.644818] ? rcu_read_lock_sched_held+0x16c/0x1d0 [ 511.649818] ? xfs_iunlock+0x21a/0x3b0 [ 511.653682] xfs_map_blocks+0x548/0x940 [ 511.657667] ? xfs_vm_set_page_dirty+0x610/0x610 [ 511.662404] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 511.667841] xfs_do_writepage+0x422/0x13d0 [ 511.672066] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 511.676369] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 511.681800] write_cache_pages+0x505/0xd20 [ 511.686023] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 511.690338] ? clear_page_dirty_for_io+0xb80/0xb80 [ 511.695262] ? trace_hardirqs_on+0x10/0x10 [ 511.699492] xfs_vm_writepages+0x258/0x340 [ 511.703706] ? xfs_vm_writepage+0xd0/0xd0 [ 511.707846] ? xfs_vm_writepage+0xd0/0xd0 [ 511.711977] do_writepages+0xc3/0x240 [ 511.715758] ? page_writeback_cpu_online+0x10/0x10 [ 511.720670] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 511.726113] __writeback_single_inode+0xda/0x1010 [ 511.730956] writeback_sb_inodes+0x48b/0xd30 [ 511.735364] ? wbc_detach_inode+0x780/0x780 [ 511.739675] ? queue_io+0x400/0x5a0 [ 511.743288] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 511.748726] wb_writeback+0x243/0xb80 [ 511.752519] ? writeback_inodes_wb.constprop.0+0x1a0/0x1a0 [ 511.758125] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 511.763555] wb_workfn+0x2bd/0xf50 [ 511.767083] ? process_one_work+0x6c4/0x14a0 [ 511.771485] ? inode_wait_for_writeback+0x30/0x30 [ 511.776316] ? lock_acquire+0x170/0x3f0 [ 511.780284] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 511.785731] process_one_work+0x793/0x14a0 [ 511.789976] ? work_busy+0x320/0x320 [ 511.793667] ? worker_thread+0x158/0xff0 [ 511.797711] ? _raw_spin_unlock_irq+0x24/0x80 [ 511.802207] worker_thread+0x5cc/0xff0 [ 511.806088] ? rescuer_thread+0xc80/0xc80 [ 511.810219] kthread+0x30d/0x420 [ 511.813566] ? kthread_create_on_node+0xd0/0xd0 [ 511.818215] ret_from_fork+0x24/0x30 [ 511.822662] XFS (loop1): page discard on page ffffea000147f340, inode 0x29, offset 1261568. [ 511.831589] XFS (loop1): Internal error XFS_WANT_CORRUPTED_RETURN at line 431 of file fs/xfs/libxfs/xfs_alloc.c. Caller xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 511.846131] CPU: 1 PID: 2818 Comm: kworker/u4:3 Not tainted 4.14.303-syzkaller #0 [ 511.853747] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023 [ 511.863102] Workqueue: writeback wb_workfn (flush-7:1) [ 511.868369] Call Trace: [ 511.870950] dump_stack+0x1b2/0x281 [ 511.874558] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 511.879818] xfs_error_report+0x98/0xa0 [ 511.883774] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 511.889035] xfs_alloc_fixup_trees+0x425/0x4f0 [ 511.893595] ? xfs_alloc_update+0x90/0x90 [ 511.897725] ? xfs_btree_rec_offset.isra.0+0x3b/0xa0 [ 511.902812] ? xfs_alloc_compute_diff+0x23c/0x3d0 [ 511.907639] xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 511.912733] ? xfs_alloc_fix_freelist+0x685/0xeb0 [ 511.917552] ? xfs_alloc_ag_vextent_size+0x1ea0/0x1ea0 [ 511.922814] ? xfs_alloc_read_agf+0xb10/0xb10 [ 511.927317] xfs_alloc_ag_vextent+0x579/0x750 [ 511.931788] ? xfs_perag_get+0x116/0x410 [ 511.935854] ? xfs_alloc_vextent+0x470/0x2010 [ 511.940335] xfs_alloc_vextent+0x10b0/0x2010 [ 511.944734] xfs_bmap_btalloc+0x9e5/0x1b20 [ 511.948950] ? xfs_bmap_adjacent+0x1480/0x1480 [ 511.953512] ? ret_from_fork+0x24/0x30 [ 511.957395] ? __xfs_bmbt_get_all+0x16/0x100 [ 511.961791] xfs_bmap_alloc+0x107/0x160 [ 511.965756] xfs_bmapi_write+0xa49/0x1d00 [ 511.969918] ? xfs_bmapi_reserve_delalloc+0x7c0/0x7c0 [ 511.975099] ? trace_hardirqs_on+0x10/0x10 [ 511.979326] ? xfs_iext_get_ext+0xeb/0x200 [ 511.983540] ? xfs_iext_idx_to_irec+0x340/0x340 [ 511.988193] ? xfs_bmap_last_extent+0x1d0/0x1d0 [ 511.992855] xfs_iomap_write_allocate+0x42b/0xa30 [ 511.997688] ? xfs_file_iomap_begin+0x1ed0/0x1ed0 [ 512.002513] ? xfs_iunlock+0x248/0x3b0 [ 512.006395] ? rcu_read_lock_sched_held+0x16c/0x1d0 [ 512.011392] ? xfs_iunlock+0x21a/0x3b0 [ 512.015263] xfs_map_blocks+0x548/0x940 [ 512.019225] ? xfs_vm_set_page_dirty+0x610/0x610 [ 512.023963] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 512.029393] xfs_do_writepage+0x422/0x13d0 [ 512.033612] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 512.037918] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 512.043349] write_cache_pages+0x505/0xd20 [ 512.047576] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 512.051882] ? clear_page_dirty_for_io+0xb80/0xb80 [ 512.056798] ? trace_hardirqs_on+0x10/0x10 [ 512.061011] xfs_vm_writepages+0x258/0x340 [ 512.065227] ? xfs_vm_writepage+0xd0/0xd0 [ 512.069365] ? xfs_vm_writepage+0xd0/0xd0 [ 512.073491] do_writepages+0xc3/0x240 [ 512.077278] ? page_writeback_cpu_online+0x10/0x10 [ 512.082189] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 512.087620] __writeback_single_inode+0xda/0x1010 [ 512.092454] writeback_sb_inodes+0x48b/0xd30 [ 512.096859] ? wbc_detach_inode+0x780/0x780 [ 512.101173] ? queue_io+0x400/0x5a0 [ 512.104777] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 512.110218] wb_writeback+0x243/0xb80 [ 512.114015] ? writeback_inodes_wb.constprop.0+0x1a0/0x1a0 [ 512.119629] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 512.125067] wb_workfn+0x2bd/0xf50 [ 512.128597] ? process_one_work+0x6c4/0x14a0 [ 512.132985] ? inode_wait_for_writeback+0x30/0x30 [ 512.137806] ? lock_acquire+0x170/0x3f0 [ 512.141760] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 512.147188] process_one_work+0x793/0x14a0 [ 512.151404] ? work_busy+0x320/0x320 [ 512.155129] ? worker_thread+0x158/0xff0 [ 512.159179] ? _raw_spin_unlock_irq+0x24/0x80 [ 512.163694] worker_thread+0x5cc/0xff0 [ 512.167572] ? rescuer_thread+0xc80/0xc80 [ 512.171697] kthread+0x30d/0x420 [ 512.175049] ? kthread_create_on_node+0xd0/0xd0 [ 512.179705] ret_from_fork+0x24/0x30 [ 512.184249] XFS (loop1): page discard on page ffffea000147f380, inode 0x29, offset 1265664. [ 512.193151] XFS (loop1): Internal error XFS_WANT_CORRUPTED_RETURN at line 431 of file fs/xfs/libxfs/xfs_alloc.c. Caller xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 512.207701] CPU: 1 PID: 2818 Comm: kworker/u4:3 Not tainted 4.14.303-syzkaller #0 [ 512.215313] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023 [ 512.224661] Workqueue: writeback wb_workfn (flush-7:1) [ 512.230476] Call Trace: [ 512.233045] dump_stack+0x1b2/0x281 [ 512.236660] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 512.241921] xfs_error_report+0x98/0xa0 [ 512.245875] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 512.251139] xfs_alloc_fixup_trees+0x425/0x4f0 [ 512.255708] ? xfs_alloc_update+0x90/0x90 [ 512.259849] ? xfs_btree_rec_offset.isra.0+0x3b/0xa0 [ 512.264943] ? xfs_alloc_compute_diff+0x23c/0x3d0 [ 512.269778] xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 512.274881] ? xfs_alloc_fix_freelist+0x685/0xeb0 [ 512.279716] ? xfs_alloc_ag_vextent_size+0x1ea0/0x1ea0 [ 512.284986] ? xfs_alloc_read_agf+0xb10/0xb10 [ 512.289489] xfs_alloc_ag_vextent+0x579/0x750 [ 512.293958] ? xfs_perag_get+0x116/0x410 [ 512.297995] ? xfs_alloc_vextent+0x470/0x2010 [ 512.302476] xfs_alloc_vextent+0x10b0/0x2010 [ 512.306865] xfs_bmap_btalloc+0x9e5/0x1b20 [ 512.311101] ? xfs_bmap_adjacent+0x1480/0x1480 [ 512.315661] ? ret_from_fork+0x24/0x30 [ 512.319541] ? __xfs_bmbt_get_all+0x16/0x100 [ 512.323934] xfs_bmap_alloc+0x107/0x160 [ 512.327891] xfs_bmapi_write+0xa49/0x1d00 [ 512.332017] ? xfs_bmapi_reserve_delalloc+0x7c0/0x7c0 [ 512.337193] ? trace_hardirqs_on+0x10/0x10 [ 512.341410] ? xfs_iext_get_ext+0xeb/0x200 [ 512.345627] ? xfs_iext_idx_to_irec+0x340/0x340 [ 512.350310] ? xfs_bmap_last_extent+0x1d0/0x1d0 [ 512.354968] xfs_iomap_write_allocate+0x42b/0xa30 [ 512.359809] ? xfs_file_iomap_begin+0x1ed0/0x1ed0 [ 512.364632] ? xfs_iunlock+0x248/0x3b0 [ 512.368504] ? rcu_read_lock_sched_held+0x16c/0x1d0 [ 512.373496] ? xfs_iunlock+0x21a/0x3b0 [ 512.377361] xfs_map_blocks+0x548/0x940 [ 512.381317] ? xfs_vm_set_page_dirty+0x610/0x610 [ 512.386056] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 512.391490] xfs_do_writepage+0x422/0x13d0 [ 512.395715] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 512.400021] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 512.405461] write_cache_pages+0x505/0xd20 [ 512.409679] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 512.413981] ? clear_page_dirty_for_io+0xb80/0xb80 [ 512.418897] ? trace_hardirqs_on+0x10/0x10 [ 512.423120] xfs_vm_writepages+0x258/0x340 [ 512.427334] ? xfs_vm_writepage+0xd0/0xd0 [ 512.431468] ? xfs_vm_writepage+0xd0/0xd0 [ 512.435598] do_writepages+0xc3/0x240 [ 512.439383] ? page_writeback_cpu_online+0x10/0x10 [ 512.444294] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 512.449750] __writeback_single_inode+0xda/0x1010 [ 512.454572] writeback_sb_inodes+0x48b/0xd30 [ 512.458986] ? wbc_detach_inode+0x780/0x780 [ 512.463286] ? queue_io+0x400/0x5a0 [ 512.466890] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 512.472320] wb_writeback+0x243/0xb80 [ 512.476111] ? writeback_inodes_wb.constprop.0+0x1a0/0x1a0 [ 512.481724] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 512.487162] wb_workfn+0x2bd/0xf50 [ 512.490685] ? process_one_work+0x6c4/0x14a0 [ 512.495078] ? inode_wait_for_writeback+0x30/0x30 [ 512.499914] ? lock_acquire+0x170/0x3f0 [ 512.503875] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 512.509311] process_one_work+0x793/0x14a0 [ 512.513538] ? work_busy+0x320/0x320 [ 512.517235] ? worker_thread+0x158/0xff0 [ 512.521278] ? _raw_spin_unlock_irq+0x24/0x80 [ 512.525762] worker_thread+0x5cc/0xff0 [ 512.529638] ? rescuer_thread+0xc80/0xc80 [ 512.533761] kthread+0x30d/0x420 [ 512.537108] ? kthread_create_on_node+0xd0/0xd0 [ 512.541759] ret_from_fork+0x24/0x30 [ 512.545829] XFS (loop1): page discard on page ffffea000147f3c0, inode 0x29, offset 1269760. [ 512.554701] XFS (loop1): Internal error XFS_WANT_CORRUPTED_RETURN at line 431 of file fs/xfs/libxfs/xfs_alloc.c. Caller xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 512.569261] CPU: 1 PID: 2818 Comm: kworker/u4:3 Not tainted 4.14.303-syzkaller #0 [ 512.576876] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023 [ 512.586227] Workqueue: writeback wb_workfn (flush-7:1) [ 512.591484] Call Trace: [ 512.594054] dump_stack+0x1b2/0x281 [ 512.597668] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 512.602930] xfs_error_report+0x98/0xa0 [ 512.606882] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 512.612139] xfs_alloc_fixup_trees+0x425/0x4f0 [ 512.616712] ? xfs_alloc_update+0x90/0x90 [ 512.620847] ? xfs_btree_rec_offset.isra.0+0x3b/0xa0 [ 512.625933] ? xfs_alloc_compute_diff+0x23c/0x3d0 [ 512.630752] xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 512.635861] ? xfs_alloc_fix_freelist+0x685/0xeb0 [ 512.640712] ? xfs_alloc_ag_vextent_size+0x1ea0/0x1ea0 [ 512.645975] ? xfs_alloc_read_agf+0xb10/0xb10 [ 512.650466] xfs_alloc_ag_vextent+0x579/0x750 [ 512.654956] ? xfs_perag_get+0x116/0x410 [ 512.659001] ? xfs_alloc_vextent+0x470/0x2010 [ 512.663473] xfs_alloc_vextent+0x10b0/0x2010 [ 512.667863] xfs_bmap_btalloc+0x9e5/0x1b20 [ 512.672079] ? xfs_bmap_adjacent+0x1480/0x1480 [ 512.676646] ? ret_from_fork+0x24/0x30 [ 512.680522] ? __xfs_bmbt_get_all+0x16/0x100 [ 512.684918] xfs_bmap_alloc+0x107/0x160 [ 512.688880] xfs_bmapi_write+0xa49/0x1d00 [ 512.693013] ? xfs_bmapi_reserve_delalloc+0x7c0/0x7c0 [ 512.698316] ? trace_hardirqs_on+0x10/0x10 [ 512.702537] ? xfs_iext_get_ext+0xeb/0x200 [ 512.706751] ? xfs_iext_idx_to_irec+0x340/0x340 [ 512.711406] ? xfs_bmap_last_extent+0x1d0/0x1d0 [ 512.716066] xfs_iomap_write_allocate+0x42b/0xa30 [ 512.720901] ? xfs_file_iomap_begin+0x1ed0/0x1ed0 [ 512.725720] ? xfs_iunlock+0x248/0x3b0 [ 512.729590] ? rcu_read_lock_sched_held+0x16c/0x1d0 [ 512.734586] ? xfs_iunlock+0x21a/0x3b0 [ 512.738460] xfs_map_blocks+0x548/0x940 [ 512.742423] ? xfs_vm_set_page_dirty+0x610/0x610 [ 512.747160] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 512.752594] xfs_do_writepage+0x422/0x13d0 [ 512.756824] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 512.761134] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 512.766567] write_cache_pages+0x505/0xd20 [ 512.770785] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 512.775095] ? clear_page_dirty_for_io+0xb80/0xb80 [ 512.780014] ? trace_hardirqs_on+0x10/0x10 [ 512.784227] xfs_vm_writepages+0x258/0x340 [ 512.788441] ? xfs_vm_writepage+0xd0/0xd0 [ 512.792571] ? xfs_vm_writepage+0xd0/0xd0 [ 512.796700] do_writepages+0xc3/0x240 [ 512.800487] ? page_writeback_cpu_online+0x10/0x10 [ 512.805406] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 512.810846] __writeback_single_inode+0xda/0x1010 [ 512.815685] writeback_sb_inodes+0x48b/0xd30 [ 512.820201] ? wbc_detach_inode+0x780/0x780 [ 512.824515] ? queue_io+0x400/0x5a0 [ 512.828122] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 512.833556] wb_writeback+0x243/0xb80 [ 512.837352] ? writeback_inodes_wb.constprop.0+0x1a0/0x1a0 [ 512.842971] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 512.848411] wb_workfn+0x2bd/0xf50 [ 512.851937] ? process_one_work+0x6c4/0x14a0 [ 512.856330] ? inode_wait_for_writeback+0x30/0x30 [ 512.861157] ? lock_acquire+0x170/0x3f0 [ 512.865119] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 512.870558] process_one_work+0x793/0x14a0 [ 512.874784] ? work_busy+0x320/0x320 [ 512.878492] ? worker_thread+0x158/0xff0 [ 512.882542] ? _raw_spin_unlock_irq+0x24/0x80 [ 512.887032] worker_thread+0x5cc/0xff0 [ 512.890911] ? rescuer_thread+0xc80/0xc80 [ 512.895058] kthread+0x30d/0x420 [ 512.898419] ? kthread_create_on_node+0xd0/0xd0 [ 512.903070] ret_from_fork+0x24/0x30 [ 512.907370] XFS (loop1): page discard on page ffffea000115d400, inode 0x29, offset 1273856. [ 512.916305] XFS (loop1): Internal error XFS_WANT_CORRUPTED_RETURN at line 431 of file fs/xfs/libxfs/xfs_alloc.c. Caller xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 512.930850] CPU: 1 PID: 2818 Comm: kworker/u4:3 Not tainted 4.14.303-syzkaller #0 [ 512.938469] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023 [ 512.947819] Workqueue: writeback wb_workfn (flush-7:1) [ 512.953080] Call Trace: [ 512.955657] dump_stack+0x1b2/0x281 [ 512.959271] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 512.964526] xfs_error_report+0x98/0xa0 [ 512.968479] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 512.973755] xfs_alloc_fixup_trees+0x425/0x4f0 [ 512.978327] ? xfs_alloc_update+0x90/0x90 [ 512.982465] ? xfs_btree_rec_offset.isra.0+0x3b/0xa0 [ 512.987558] ? xfs_alloc_compute_diff+0x23c/0x3d0 [ 512.992389] xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 512.997485] ? xfs_alloc_fix_freelist+0x685/0xeb0 [ 513.002311] ? xfs_alloc_ag_vextent_size+0x1ea0/0x1ea0 [ 513.007566] ? xfs_alloc_read_agf+0xb10/0xb10 [ 513.012045] xfs_alloc_ag_vextent+0x579/0x750 [ 513.016525] ? xfs_perag_get+0x116/0x410 [ 513.020569] ? xfs_alloc_vextent+0x470/0x2010 [ 513.025046] xfs_alloc_vextent+0x10b0/0x2010 [ 513.029447] xfs_bmap_btalloc+0x9e5/0x1b20 [ 513.033663] ? xfs_bmap_adjacent+0x1480/0x1480 [ 513.038228] ? ret_from_fork+0x24/0x30 [ 513.042275] ? __xfs_bmbt_get_all+0x16/0x100 [ 513.046667] xfs_bmap_alloc+0x107/0x160 [ 513.050621] xfs_bmapi_write+0xa49/0x1d00 [ 513.054754] ? xfs_bmapi_reserve_delalloc+0x7c0/0x7c0 [ 513.059933] ? trace_hardirqs_on+0x10/0x10 [ 513.064145] ? xfs_iext_get_ext+0xeb/0x200 [ 513.068360] ? xfs_iext_idx_to_irec+0x340/0x340 [ 513.073014] ? xfs_bmap_last_extent+0x1d0/0x1d0 [ 513.077675] xfs_iomap_write_allocate+0x42b/0xa30 [ 513.082509] ? xfs_file_iomap_begin+0x1ed0/0x1ed0 [ 513.087333] ? xfs_iunlock+0x248/0x3b0 [ 513.091203] ? rcu_read_lock_sched_held+0x16c/0x1d0 [ 513.096205] ? xfs_iunlock+0x21a/0x3b0 [ 513.100078] xfs_map_blocks+0x548/0x940 [ 513.104039] ? xfs_vm_set_page_dirty+0x610/0x610 [ 513.108781] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 513.114207] xfs_do_writepage+0x422/0x13d0 [ 513.118430] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 513.122730] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 513.128159] write_cache_pages+0x505/0xd20 [ 513.132379] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 513.136688] ? clear_page_dirty_for_io+0xb80/0xb80 [ 513.141615] ? trace_hardirqs_on+0x10/0x10 [ 513.145835] xfs_vm_writepages+0x258/0x340 [ 513.150046] ? xfs_vm_writepage+0xd0/0xd0 [ 513.154172] ? xfs_vm_writepage+0xd0/0xd0 [ 513.158298] do_writepages+0xc3/0x240 [ 513.162078] ? page_writeback_cpu_online+0x10/0x10 [ 513.166989] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 513.172417] __writeback_single_inode+0xda/0x1010 [ 513.177245] writeback_sb_inodes+0x48b/0xd30 [ 513.181642] ? wbc_detach_inode+0x780/0x780 [ 513.185942] ? queue_io+0x400/0x5a0 [ 513.189548] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 513.194980] wb_writeback+0x243/0xb80 [ 513.198769] ? writeback_inodes_wb.constprop.0+0x1a0/0x1a0 [ 513.204379] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 513.209809] wb_workfn+0x2bd/0xf50 [ 513.213328] ? process_one_work+0x6c4/0x14a0 [ 513.217722] ? inode_wait_for_writeback+0x30/0x30 [ 513.222555] ? lock_acquire+0x170/0x3f0 [ 513.226515] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 513.231941] process_one_work+0x793/0x14a0 [ 513.236166] ? work_busy+0x320/0x320 [ 513.239862] ? worker_thread+0x158/0xff0 [ 513.243899] ? _raw_spin_unlock_irq+0x24/0x80 [ 513.248375] worker_thread+0x5cc/0xff0 [ 513.252246] ? rescuer_thread+0xc80/0xc80 [ 513.256381] kthread+0x30d/0x420 [ 513.259732] ? kthread_create_on_node+0xd0/0xd0 [ 513.264382] ret_from_fork+0x24/0x30 [ 513.268474] XFS (loop1): page discard on page ffffea000115d440, inode 0x29, offset 1277952. [ 513.277357] XFS (loop1): Internal error XFS_WANT_CORRUPTED_RETURN at line 431 of file fs/xfs/libxfs/xfs_alloc.c. Caller xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 513.291922] CPU: 1 PID: 2818 Comm: kworker/u4:3 Not tainted 4.14.303-syzkaller #0 [ 513.299535] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023 [ 513.308885] Workqueue: writeback wb_workfn (flush-7:1) [ 513.314141] Call Trace: [ 513.316704] dump_stack+0x1b2/0x281 [ 513.320345] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 513.325607] xfs_error_report+0x98/0xa0 [ 513.329566] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 513.334825] xfs_alloc_fixup_trees+0x425/0x4f0 [ 513.339395] ? xfs_alloc_update+0x90/0x90 [ 513.343520] ? xfs_btree_rec_offset.isra.0+0x3b/0xa0 [ 513.348599] ? xfs_alloc_compute_diff+0x23c/0x3d0 [ 513.353420] xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 513.358508] ? xfs_alloc_fix_freelist+0x685/0xeb0 [ 513.363327] ? xfs_alloc_ag_vextent_size+0x1ea0/0x1ea0 [ 513.368601] ? xfs_alloc_read_agf+0xb10/0xb10 [ 513.373081] xfs_alloc_ag_vextent+0x579/0x750 [ 513.377558] ? xfs_perag_get+0x116/0x410 [ 513.381593] ? xfs_alloc_vextent+0x470/0x2010 [ 513.386073] xfs_alloc_vextent+0x10b0/0x2010 [ 513.390468] xfs_bmap_btalloc+0x9e5/0x1b20 [ 513.394679] ? xfs_bmap_adjacent+0x1480/0x1480 [ 513.399235] ? ret_from_fork+0x24/0x30 [ 513.403122] ? __xfs_bmbt_get_all+0x16/0x100 [ 513.407507] xfs_bmap_alloc+0x107/0x160 [ 513.411457] xfs_bmapi_write+0xa49/0x1d00 [ 513.415598] ? xfs_bmapi_reserve_delalloc+0x7c0/0x7c0 [ 513.420947] ? trace_hardirqs_on+0x10/0x10 [ 513.425166] ? xfs_iext_get_ext+0xeb/0x200 [ 513.429384] ? xfs_iext_idx_to_irec+0x340/0x340 [ 513.434030] ? xfs_bmap_last_extent+0x1d0/0x1d0 [ 513.438679] xfs_iomap_write_allocate+0x42b/0xa30 [ 513.443499] ? xfs_file_iomap_begin+0x1ed0/0x1ed0 [ 513.448317] ? xfs_iunlock+0x248/0x3b0 [ 513.452188] ? rcu_read_lock_sched_held+0x16c/0x1d0 [ 513.457189] ? xfs_iunlock+0x21a/0x3b0 [ 513.461075] xfs_map_blocks+0x548/0x940 [ 513.465041] ? xfs_vm_set_page_dirty+0x610/0x610 [ 513.469784] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 513.475222] xfs_do_writepage+0x422/0x13d0 [ 513.479444] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 513.483745] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 513.489177] write_cache_pages+0x505/0xd20 [ 513.493391] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 513.497695] ? clear_page_dirty_for_io+0xb80/0xb80 [ 513.502603] ? trace_hardirqs_on+0x10/0x10 [ 513.506828] xfs_vm_writepages+0x258/0x340 [ 513.511046] ? xfs_vm_writepage+0xd0/0xd0 [ 513.515191] ? xfs_vm_writepage+0xd0/0xd0 [ 513.519322] do_writepages+0xc3/0x240 [ 513.523100] ? page_writeback_cpu_online+0x10/0x10 [ 513.528027] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 513.533456] __writeback_single_inode+0xda/0x1010 [ 513.538381] writeback_sb_inodes+0x48b/0xd30 [ 513.542781] ? wbc_detach_inode+0x780/0x780 [ 513.547089] ? queue_io+0x400/0x5a0 [ 513.550724] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 513.556159] wb_writeback+0x243/0xb80 [ 513.559946] ? writeback_inodes_wb.constprop.0+0x1a0/0x1a0 [ 513.565561] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 513.570995] wb_workfn+0x2bd/0xf50 [ 513.574512] ? process_one_work+0x6c4/0x14a0 [ 513.578895] ? inode_wait_for_writeback+0x30/0x30 [ 513.583712] ? lock_acquire+0x170/0x3f0 [ 513.587668] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 513.593098] process_one_work+0x793/0x14a0 [ 513.597313] ? work_busy+0x320/0x320 [ 513.601002] ? worker_thread+0x158/0xff0 [ 513.605044] ? _raw_spin_unlock_irq+0x24/0x80 [ 513.609523] worker_thread+0x5cc/0xff0 [ 513.613392] ? rescuer_thread+0xc80/0xc80 [ 513.617516] kthread+0x30d/0x420 [ 513.620874] ? kthread_create_on_node+0xd0/0xd0 [ 513.625527] ret_from_fork+0x24/0x30 [ 513.629608] XFS (loop1): page discard on page ffffea000115d480, inode 0x29, offset 1282048. [ 513.638517] XFS (loop1): Internal error XFS_WANT_CORRUPTED_RETURN at line 431 of file fs/xfs/libxfs/xfs_alloc.c. Caller xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 513.653078] CPU: 1 PID: 2818 Comm: kworker/u4:3 Not tainted 4.14.303-syzkaller #0 [ 513.660695] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023 [ 513.670057] Workqueue: writeback wb_workfn (flush-7:1) [ 513.675318] Call Trace: [ 513.677896] dump_stack+0x1b2/0x281 [ 513.681500] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 513.686760] xfs_error_report+0x98/0xa0 [ 513.690736] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 513.696002] xfs_alloc_fixup_trees+0x425/0x4f0 [ 513.700569] ? xfs_alloc_update+0x90/0x90 [ 513.704692] ? xfs_btree_rec_offset.isra.0+0x3b/0xa0 [ 513.709772] ? xfs_alloc_compute_diff+0x23c/0x3d0 [ 513.714592] xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 513.719672] ? xfs_alloc_fix_freelist+0x685/0xeb0 [ 513.724505] ? xfs_alloc_ag_vextent_size+0x1ea0/0x1ea0 [ 513.729759] ? xfs_alloc_read_agf+0xb10/0xb10 [ 513.734238] xfs_alloc_ag_vextent+0x579/0x750 [ 513.738708] ? xfs_perag_get+0x116/0x410 [ 513.742742] ? xfs_alloc_vextent+0x470/0x2010 [ 513.747210] xfs_alloc_vextent+0x10b0/0x2010 [ 513.751613] xfs_bmap_btalloc+0x9e5/0x1b20 [ 513.755837] ? xfs_bmap_adjacent+0x1480/0x1480 [ 513.760405] ? ret_from_fork+0x24/0x30 [ 513.764274] ? __xfs_bmbt_get_all+0x16/0x100 [ 513.768657] xfs_bmap_alloc+0x107/0x160 [ 513.772623] xfs_bmapi_write+0xa49/0x1d00 [ 513.776755] ? xfs_bmapi_reserve_delalloc+0x7c0/0x7c0 [ 513.781920] ? trace_hardirqs_on+0x10/0x10 [ 513.786142] ? xfs_iext_get_ext+0xeb/0x200 [ 513.790385] ? xfs_iext_idx_to_irec+0x340/0x340 [ 513.795048] ? xfs_bmap_last_extent+0x1d0/0x1d0 [ 513.799701] xfs_iomap_write_allocate+0x42b/0xa30 [ 513.804525] ? xfs_file_iomap_begin+0x1ed0/0x1ed0 [ 513.809350] ? xfs_iunlock+0x248/0x3b0 [ 513.813219] ? rcu_read_lock_sched_held+0x16c/0x1d0 [ 513.818210] ? xfs_iunlock+0x21a/0x3b0 [ 513.822072] xfs_map_blocks+0x548/0x940 [ 513.826032] ? xfs_vm_set_page_dirty+0x610/0x610 [ 513.830798] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 513.836238] xfs_do_writepage+0x422/0x13d0 [ 513.840486] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 513.844805] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 513.850260] write_cache_pages+0x505/0xd20 [ 513.854477] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 513.858783] ? clear_page_dirty_for_io+0xb80/0xb80 [ 513.863697] ? trace_hardirqs_on+0x10/0x10 [ 513.867911] xfs_vm_writepages+0x258/0x340 [ 513.872120] ? xfs_vm_writepage+0xd0/0xd0 [ 513.876246] ? xfs_vm_writepage+0xd0/0xd0 [ 513.880477] do_writepages+0xc3/0x240 [ 513.884254] ? page_writeback_cpu_online+0x10/0x10 [ 513.889161] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 513.894587] __writeback_single_inode+0xda/0x1010 [ 513.899408] writeback_sb_inodes+0x48b/0xd30 [ 513.903795] ? wbc_detach_inode+0x780/0x780 [ 513.908095] ? queue_io+0x400/0x5a0 [ 513.911697] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 513.917122] wb_writeback+0x243/0xb80 [ 513.920901] ? writeback_inodes_wb.constprop.0+0x1a0/0x1a0 [ 513.926515] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 513.931962] wb_workfn+0x2bd/0xf50 [ 513.935494] ? process_one_work+0x6c4/0x14a0 [ 513.939883] ? inode_wait_for_writeback+0x30/0x30 [ 513.944702] ? lock_acquire+0x170/0x3f0 [ 513.948655] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 513.954083] process_one_work+0x793/0x14a0 [ 513.958298] ? work_busy+0x320/0x320 [ 513.961988] ? worker_thread+0x158/0xff0 [ 513.966032] ? _raw_spin_unlock_irq+0x24/0x80 [ 513.970521] worker_thread+0x5cc/0xff0 [ 513.974415] ? rescuer_thread+0xc80/0xc80 [ 513.978541] kthread+0x30d/0x420 [ 513.981883] ? kthread_create_on_node+0xd0/0xd0 [ 513.986537] ret_from_fork+0x24/0x30 [ 513.990995] XFS (loop1): page discard on page ffffea000115d4c0, inode 0x29, offset 1286144. [ 513.999923] XFS (loop1): Internal error XFS_WANT_CORRUPTED_RETURN at line 431 of file fs/xfs/libxfs/xfs_alloc.c. Caller xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 514.014485] CPU: 1 PID: 2818 Comm: kworker/u4:3 Not tainted 4.14.303-syzkaller #0 [ 514.022095] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023 [ 514.031437] Workqueue: writeback wb_workfn (flush-7:1) [ 514.036695] Call Trace: [ 514.039263] dump_stack+0x1b2/0x281 [ 514.042876] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 514.048135] xfs_error_report+0x98/0xa0 [ 514.052093] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 514.057348] xfs_alloc_fixup_trees+0x425/0x4f0 [ 514.061904] ? xfs_alloc_update+0x90/0x90 [ 514.066031] ? xfs_btree_rec_offset.isra.0+0x3b/0xa0 [ 514.071115] ? xfs_alloc_compute_diff+0x23c/0x3d0 [ 514.075933] xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 514.081017] ? xfs_alloc_fix_freelist+0x685/0xeb0 [ 514.085841] ? xfs_alloc_ag_vextent_size+0x1ea0/0x1ea0 [ 514.091099] ? xfs_alloc_read_agf+0xb10/0xb10 [ 514.095578] xfs_alloc_ag_vextent+0x579/0x750 [ 514.100052] ? xfs_perag_get+0x116/0x410 [ 514.104085] ? xfs_alloc_vextent+0x470/0x2010 [ 514.108556] xfs_alloc_vextent+0x10b0/0x2010 [ 514.112947] xfs_bmap_btalloc+0x9e5/0x1b20 [ 514.117160] ? xfs_bmap_adjacent+0x1480/0x1480 [ 514.121717] ? ret_from_fork+0x24/0x30 [ 514.125603] ? __xfs_bmbt_get_all+0x16/0x100 [ 514.129996] xfs_bmap_alloc+0x107/0x160 [ 514.133945] xfs_bmapi_write+0xa49/0x1d00 [ 514.138071] ? xfs_bmapi_reserve_delalloc+0x7c0/0x7c0 [ 514.143234] ? trace_hardirqs_on+0x10/0x10 [ 514.147460] ? xfs_iext_get_ext+0xeb/0x200 [ 514.151677] ? xfs_iext_idx_to_irec+0x340/0x340 [ 514.156326] ? xfs_bmap_last_extent+0x1d0/0x1d0 [ 514.160974] xfs_iomap_write_allocate+0x42b/0xa30 [ 514.165807] ? xfs_file_iomap_begin+0x1ed0/0x1ed0 [ 514.170632] ? xfs_iunlock+0x248/0x3b0 [ 514.174502] ? rcu_read_lock_sched_held+0x16c/0x1d0 [ 514.179502] ? xfs_iunlock+0x21a/0x3b0 [ 514.183369] xfs_map_blocks+0x548/0x940 [ 514.187331] ? xfs_vm_set_page_dirty+0x610/0x610 [ 514.192069] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 514.197495] xfs_do_writepage+0x422/0x13d0 [ 514.201729] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 514.206035] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 514.211471] write_cache_pages+0x505/0xd20 [ 514.215682] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 514.219982] ? clear_page_dirty_for_io+0xb80/0xb80 [ 514.224906] ? trace_hardirqs_on+0x10/0x10 [ 514.229127] xfs_vm_writepages+0x258/0x340 [ 514.233341] ? xfs_vm_writepage+0xd0/0xd0 [ 514.237477] ? xfs_vm_writepage+0xd0/0xd0 [ 514.241603] do_writepages+0xc3/0x240 [ 514.245391] ? page_writeback_cpu_online+0x10/0x10 [ 514.250308] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 514.255752] __writeback_single_inode+0xda/0x1010 [ 514.260594] writeback_sb_inodes+0x48b/0xd30 [ 514.265004] ? wbc_detach_inode+0x780/0x780 [ 514.269317] ? queue_io+0x400/0x5a0 [ 514.272922] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 514.278349] wb_writeback+0x243/0xb80 [ 514.282150] ? writeback_inodes_wb.constprop.0+0x1a0/0x1a0 [ 514.287761] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 514.293194] wb_workfn+0x2bd/0xf50 [ 514.296712] ? process_one_work+0x6c4/0x14a0 [ 514.301096] ? inode_wait_for_writeback+0x30/0x30 [ 514.305918] ? lock_acquire+0x170/0x3f0 [ 514.309876] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 514.315304] process_one_work+0x793/0x14a0 [ 514.319516] ? work_busy+0x320/0x320 [ 514.323202] ? worker_thread+0x158/0xff0 [ 514.327244] ? _raw_spin_unlock_irq+0x24/0x80 [ 514.331724] worker_thread+0x5cc/0xff0 [ 514.335592] ? rescuer_thread+0xc80/0xc80 [ 514.339715] kthread+0x30d/0x420 [ 514.343055] ? kthread_create_on_node+0xd0/0xd0 [ 514.347707] ret_from_fork+0x24/0x30 [ 514.352259] XFS (loop1): page discard on page ffffea000115d700, inode 0x29, offset 1290240. [ 514.361153] XFS (loop1): Internal error XFS_WANT_CORRUPTED_RETURN at line 431 of file fs/xfs/libxfs/xfs_alloc.c. Caller xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 514.375688] CPU: 1 PID: 2818 Comm: kworker/u4:3 Not tainted 4.14.303-syzkaller #0 [ 514.383301] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023 [ 514.392647] Workqueue: writeback wb_workfn (flush-7:1) [ 514.397905] Call Trace: [ 514.400473] dump_stack+0x1b2/0x281 [ 514.404076] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 514.409336] xfs_error_report+0x98/0xa0 [ 514.413286] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 514.418538] xfs_alloc_fixup_trees+0x425/0x4f0 [ 514.423095] ? xfs_alloc_update+0x90/0x90 [ 514.427227] ? xfs_btree_rec_offset.isra.0+0x3b/0xa0 [ 514.432313] ? xfs_alloc_compute_diff+0x23c/0x3d0 [ 514.437128] xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 514.442211] ? xfs_alloc_fix_freelist+0x685/0xeb0 [ 514.447038] ? xfs_alloc_ag_vextent_size+0x1ea0/0x1ea0 [ 514.452299] ? xfs_alloc_read_agf+0xb10/0xb10 [ 514.456779] xfs_alloc_ag_vextent+0x579/0x750 [ 514.461249] ? xfs_perag_get+0x116/0x410 [ 514.465290] ? xfs_alloc_vextent+0x470/0x2010 [ 514.469768] xfs_alloc_vextent+0x10b0/0x2010 [ 514.474159] xfs_bmap_btalloc+0x9e5/0x1b20 [ 514.478376] ? xfs_bmap_adjacent+0x1480/0x1480 [ 514.482937] ? ret_from_fork+0x24/0x30 [ 514.486819] ? __xfs_bmbt_get_all+0x16/0x100 [ 514.491212] xfs_bmap_alloc+0x107/0x160 [ 514.495184] xfs_bmapi_write+0xa49/0x1d00 [ 514.499313] ? xfs_bmapi_reserve_delalloc+0x7c0/0x7c0 [ 514.504478] ? trace_hardirqs_on+0x10/0x10 [ 514.508691] ? xfs_iext_get_ext+0xeb/0x200 [ 514.512901] ? xfs_iext_idx_to_irec+0x340/0x340 [ 514.517549] ? xfs_bmap_last_extent+0x1d0/0x1d0 [ 514.522195] xfs_iomap_write_allocate+0x42b/0xa30 [ 514.527028] ? xfs_file_iomap_begin+0x1ed0/0x1ed0 [ 514.531856] ? xfs_iunlock+0x248/0x3b0 [ 514.535726] ? rcu_read_lock_sched_held+0x16c/0x1d0 [ 514.540721] ? xfs_iunlock+0x21a/0x3b0 [ 514.544585] xfs_map_blocks+0x548/0x940 [ 514.548537] ? xfs_vm_set_page_dirty+0x610/0x610 [ 514.553269] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 514.559650] xfs_do_writepage+0x422/0x13d0 [ 514.563886] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 514.568194] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 514.573629] write_cache_pages+0x505/0xd20 [ 514.577852] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 514.582183] ? clear_page_dirty_for_io+0xb80/0xb80 [ 514.587107] ? trace_hardirqs_on+0x10/0x10 [ 514.591329] xfs_vm_writepages+0x258/0x340 [ 514.595539] ? xfs_vm_writepage+0xd0/0xd0 [ 514.599665] ? xfs_vm_writepage+0xd0/0xd0 [ 514.603788] do_writepages+0xc3/0x240 [ 514.607574] ? page_writeback_cpu_online+0x10/0x10 [ 514.612491] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 514.617918] __writeback_single_inode+0xda/0x1010 [ 514.622738] writeback_sb_inodes+0x48b/0xd30 [ 514.627133] ? wbc_detach_inode+0x780/0x780 [ 514.631441] ? queue_io+0x400/0x5a0 [ 514.635049] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 514.640478] wb_writeback+0x243/0xb80 [ 514.644273] ? writeback_inodes_wb.constprop.0+0x1a0/0x1a0 [ 514.649880] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 514.655316] wb_workfn+0x2bd/0xf50 [ 514.658853] ? process_one_work+0x6c4/0x14a0 [ 514.663237] ? inode_wait_for_writeback+0x30/0x30 [ 514.668064] ? lock_acquire+0x170/0x3f0 [ 514.672041] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 514.677488] process_one_work+0x793/0x14a0 [ 514.681726] ? work_busy+0x320/0x320 [ 514.685425] ? worker_thread+0x158/0xff0 [ 514.689475] ? _raw_spin_unlock_irq+0x24/0x80 [ 514.693948] worker_thread+0x5cc/0xff0 [ 514.697815] ? rescuer_thread+0xc80/0xc80 [ 514.701938] kthread+0x30d/0x420 [ 514.705285] ? kthread_create_on_node+0xd0/0xd0 [ 514.709938] ret_from_fork+0x24/0x30 [ 514.714088] XFS (loop1): page discard on page ffffea000115d740, inode 0x29, offset 1294336. [ 514.722983] XFS (loop1): Internal error XFS_WANT_CORRUPTED_RETURN at line 431 of file fs/xfs/libxfs/xfs_alloc.c. Caller xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 514.737527] CPU: 1 PID: 2818 Comm: kworker/u4:3 Not tainted 4.14.303-syzkaller #0 [ 514.745140] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023 [ 514.754491] Workqueue: writeback wb_workfn (flush-7:1) [ 514.759749] Call Trace: [ 514.762317] dump_stack+0x1b2/0x281 [ 514.765927] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 514.771189] xfs_error_report+0x98/0xa0 [ 514.775138] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 514.780394] xfs_alloc_fixup_trees+0x425/0x4f0 [ 514.784958] ? xfs_alloc_update+0x90/0x90 [ 514.789091] ? xfs_btree_rec_offset.isra.0+0x3b/0xa0 [ 514.794177] ? xfs_alloc_compute_diff+0x23c/0x3d0 [ 514.798996] xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 514.804078] ? xfs_alloc_fix_freelist+0x685/0xeb0 [ 514.808899] ? xfs_alloc_ag_vextent_size+0x1ea0/0x1ea0 [ 514.814169] ? xfs_alloc_read_agf+0xb10/0xb10 [ 514.818670] xfs_alloc_ag_vextent+0x579/0x750 [ 514.823156] ? xfs_perag_get+0x116/0x410 [ 514.827199] ? xfs_alloc_vextent+0x470/0x2010 [ 514.831676] xfs_alloc_vextent+0x10b0/0x2010 [ 514.836063] xfs_bmap_btalloc+0x9e5/0x1b20 [ 514.840276] ? xfs_bmap_adjacent+0x1480/0x1480 [ 514.844837] ? ret_from_fork+0x24/0x30 [ 514.848712] ? __xfs_bmbt_get_all+0x16/0x100 [ 514.853096] xfs_bmap_alloc+0x107/0x160 [ 514.857047] xfs_bmapi_write+0xa49/0x1d00 [ 514.861189] ? xfs_bmapi_reserve_delalloc+0x7c0/0x7c0 [ 514.866374] ? trace_hardirqs_on+0x10/0x10 [ 514.870603] ? xfs_iext_get_ext+0xeb/0x200 [ 514.874819] ? xfs_iext_idx_to_irec+0x340/0x340 [ 514.879477] ? xfs_bmap_last_extent+0x1d0/0x1d0 [ 514.884145] xfs_iomap_write_allocate+0x42b/0xa30 [ 514.888978] ? xfs_file_iomap_begin+0x1ed0/0x1ed0 [ 514.893795] ? xfs_iunlock+0x248/0x3b0 [ 514.897670] ? rcu_read_lock_sched_held+0x16c/0x1d0 [ 514.902664] ? xfs_iunlock+0x21a/0x3b0 [ 514.906535] xfs_map_blocks+0x548/0x940 [ 514.910513] ? xfs_vm_set_page_dirty+0x610/0x610 [ 514.915248] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 514.920677] xfs_do_writepage+0x422/0x13d0 [ 514.924902] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 514.929208] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 514.934636] write_cache_pages+0x505/0xd20 [ 514.938851] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 514.943168] ? clear_page_dirty_for_io+0xb80/0xb80 [ 514.948092] ? trace_hardirqs_on+0x10/0x10 [ 514.952334] xfs_vm_writepages+0x258/0x340 [ 514.956544] ? xfs_vm_writepage+0xd0/0xd0 [ 514.960669] ? xfs_vm_writepage+0xd0/0xd0 [ 514.964796] do_writepages+0xc3/0x240 [ 514.968581] ? page_writeback_cpu_online+0x10/0x10 [ 514.973489] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 514.978927] __writeback_single_inode+0xda/0x1010 [ 514.983749] writeback_sb_inodes+0x48b/0xd30 [ 514.988154] ? wbc_detach_inode+0x780/0x780 [ 514.992458] ? queue_io+0x400/0x5a0 [ 514.996061] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 515.001507] wb_writeback+0x243/0xb80 [ 515.005294] ? writeback_inodes_wb.constprop.0+0x1a0/0x1a0 [ 515.010904] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 515.016329] wb_workfn+0x2bd/0xf50 [ 515.019847] ? process_one_work+0x6c4/0x14a0 [ 515.024235] ? inode_wait_for_writeback+0x30/0x30 [ 515.029054] ? lock_acquire+0x170/0x3f0 [ 515.033004] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 515.038431] process_one_work+0x793/0x14a0 [ 515.042644] ? work_busy+0x320/0x320 [ 515.046335] ? worker_thread+0x158/0xff0 [ 515.050381] ? _raw_spin_unlock_irq+0x24/0x80 [ 515.054856] worker_thread+0x5cc/0xff0 [ 515.058725] ? rescuer_thread+0xc80/0xc80 [ 515.062873] kthread+0x30d/0x420 [ 515.066223] ? kthread_create_on_node+0xd0/0xd0 [ 515.070885] ret_from_fork+0x24/0x30 [ 515.078698] XFS (loop1): page discard on page ffffea000115d780, inode 0x29, offset 1298432. [ 515.087632] XFS (loop1): Internal error XFS_WANT_CORRUPTED_RETURN at line 431 of file fs/xfs/libxfs/xfs_alloc.c. Caller xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 515.102603] CPU: 1 PID: 2818 Comm: kworker/u4:3 Not tainted 4.14.303-syzkaller #0 [ 515.110261] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023 [ 515.119618] Workqueue: writeback wb_workfn (flush-7:1) [ 515.124876] Call Trace: [ 515.127455] dump_stack+0x1b2/0x281 [ 515.131068] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 515.136320] xfs_error_report+0x98/0xa0 [ 515.140270] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 515.145529] xfs_alloc_fixup_trees+0x425/0x4f0 [ 515.150095] ? xfs_alloc_update+0x90/0x90 [ 515.154219] ? xfs_btree_rec_offset.isra.0+0x3b/0xa0 [ 515.159299] ? xfs_alloc_compute_diff+0x23c/0x3d0 [ 515.164118] xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 515.169199] ? xfs_alloc_fix_freelist+0x685/0xeb0 [ 515.174013] ? xfs_alloc_ag_vextent_size+0x1ea0/0x1ea0 [ 515.179264] ? xfs_alloc_read_agf+0xb10/0xb10 [ 515.183742] xfs_alloc_ag_vextent+0x579/0x750 [ 515.188218] ? xfs_perag_get+0x116/0x410 [ 515.192261] ? xfs_alloc_vextent+0x470/0x2010 [ 515.196729] xfs_alloc_vextent+0x10b0/0x2010 [ 515.201122] xfs_bmap_btalloc+0x9e5/0x1b20 [ 515.205343] ? xfs_bmap_adjacent+0x1480/0x1480 [ 515.209907] ? ret_from_fork+0x24/0x30 [ 515.213793] ? __xfs_bmbt_get_all+0x16/0x100 [ 515.218181] xfs_bmap_alloc+0x107/0x160 [ 515.222130] xfs_bmapi_write+0xa49/0x1d00 [ 515.226269] ? xfs_bmapi_reserve_delalloc+0x7c0/0x7c0 [ 515.231441] ? trace_hardirqs_on+0x10/0x10 [ 515.235652] ? xfs_iext_get_ext+0xeb/0x200 [ 515.239877] ? xfs_iext_idx_to_irec+0x340/0x340 [ 515.244526] ? xfs_bmap_last_extent+0x1d0/0x1d0 [ 515.249175] xfs_iomap_write_allocate+0x42b/0xa30 [ 515.253996] ? xfs_file_iomap_begin+0x1ed0/0x1ed0 [ 515.258812] ? xfs_iunlock+0x248/0x3b0 [ 515.262680] ? rcu_read_lock_sched_held+0x16c/0x1d0 [ 515.267678] ? xfs_iunlock+0x21a/0x3b0 [ 515.271548] xfs_map_blocks+0x548/0x940 [ 515.275501] ? xfs_vm_set_page_dirty+0x610/0x610 [ 515.280236] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 515.285665] xfs_do_writepage+0x422/0x13d0 [ 515.289886] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 515.294184] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 515.299609] write_cache_pages+0x505/0xd20 [ 515.303817] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 515.308124] ? clear_page_dirty_for_io+0xb80/0xb80 [ 515.313041] ? trace_hardirqs_on+0x10/0x10 [ 515.317254] xfs_vm_writepages+0x258/0x340 [ 515.321464] ? xfs_vm_writepage+0xd0/0xd0 [ 515.325602] ? xfs_vm_writepage+0xd0/0xd0 [ 515.329729] do_writepages+0xc3/0x240 [ 515.333504] ? page_writeback_cpu_online+0x10/0x10 [ 515.338412] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 515.343837] __writeback_single_inode+0xda/0x1010 [ 515.348657] writeback_sb_inodes+0x48b/0xd30 [ 515.353046] ? wbc_detach_inode+0x780/0x780 [ 515.357348] ? queue_io+0x400/0x5a0 [ 515.360949] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 515.366380] wb_writeback+0x243/0xb80 [ 515.370167] ? writeback_inodes_wb.constprop.0+0x1a0/0x1a0 [ 515.375771] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 515.381201] wb_workfn+0x2bd/0xf50 [ 515.384728] ? process_one_work+0x6c4/0x14a0 [ 515.389120] ? inode_wait_for_writeback+0x30/0x30 [ 515.393943] ? lock_acquire+0x170/0x3f0 [ 515.397894] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 515.403323] process_one_work+0x793/0x14a0 [ 515.407546] ? work_busy+0x320/0x320 [ 515.411244] ? worker_thread+0x158/0xff0 [ 515.415283] ? _raw_spin_unlock_irq+0x24/0x80 [ 515.419756] worker_thread+0x5cc/0xff0 [ 515.423622] ? rescuer_thread+0xc80/0xc80 [ 515.427749] kthread+0x30d/0x420 [ 515.431096] ? kthread_create_on_node+0xd0/0xd0 [ 515.435743] ret_from_fork+0x24/0x30 [ 515.439809] XFS (loop1): page discard on page ffffea000115d7c0, inode 0x29, offset 1302528. [ 515.448710] XFS (loop1): Internal error XFS_WANT_CORRUPTED_RETURN at line 431 of file fs/xfs/libxfs/xfs_alloc.c. Caller xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 515.463273] CPU: 1 PID: 2818 Comm: kworker/u4:3 Not tainted 4.14.303-syzkaller #0 [ 515.470885] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023 [ 515.480241] Workqueue: writeback wb_workfn (flush-7:1) [ 515.485497] Call Trace: [ 515.488062] dump_stack+0x1b2/0x281 [ 515.491665] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 515.496923] xfs_error_report+0x98/0xa0 [ 515.500880] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 515.506135] xfs_alloc_fixup_trees+0x425/0x4f0 [ 515.510697] ? xfs_alloc_update+0x90/0x90 [ 515.514825] ? xfs_btree_rec_offset.isra.0+0x3b/0xa0 [ 515.519911] ? xfs_alloc_compute_diff+0x23c/0x3d0 [ 515.524740] xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 515.529824] ? xfs_alloc_fix_freelist+0x685/0xeb0 [ 515.534655] ? xfs_alloc_ag_vextent_size+0x1ea0/0x1ea0 [ 515.539914] ? xfs_alloc_read_agf+0xb10/0xb10 [ 515.544393] xfs_alloc_ag_vextent+0x579/0x750 [ 515.548881] ? xfs_perag_get+0x116/0x410 [ 515.552913] ? xfs_alloc_vextent+0x470/0x2010 [ 515.557390] xfs_alloc_vextent+0x10b0/0x2010 [ 515.561790] xfs_bmap_btalloc+0x9e5/0x1b20 [ 515.566005] ? xfs_bmap_adjacent+0x1480/0x1480 [ 515.570563] ? ret_from_fork+0x24/0x30 [ 515.574433] ? __xfs_bmbt_get_all+0x16/0x100 [ 515.578818] xfs_bmap_alloc+0x107/0x160 [ 515.582767] xfs_bmapi_write+0xa49/0x1d00 [ 515.586897] ? xfs_bmapi_reserve_delalloc+0x7c0/0x7c0 [ 515.592061] ? trace_hardirqs_on+0x10/0x10 [ 515.596282] ? xfs_iext_get_ext+0xeb/0x200 [ 515.600496] ? xfs_iext_idx_to_irec+0x340/0x340 [ 515.605143] ? xfs_bmap_last_extent+0x1d0/0x1d0 [ 515.609878] xfs_iomap_write_allocate+0x42b/0xa30 [ 515.614710] ? xfs_file_iomap_begin+0x1ed0/0x1ed0 [ 515.619547] ? xfs_iunlock+0x248/0x3b0 [ 515.623442] ? rcu_read_lock_sched_held+0x16c/0x1d0 [ 515.628473] ? xfs_iunlock+0x21a/0x3b0 [ 515.632347] xfs_map_blocks+0x548/0x940 [ 515.636301] ? xfs_vm_set_page_dirty+0x610/0x610 [ 515.641034] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 515.646487] xfs_do_writepage+0x422/0x13d0 [ 515.650715] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 515.655014] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 515.660460] write_cache_pages+0x505/0xd20 [ 515.664672] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 515.668980] ? clear_page_dirty_for_io+0xb80/0xb80 [ 515.673889] ? trace_hardirqs_on+0x10/0x10 [ 515.678121] xfs_vm_writepages+0x258/0x340 [ 515.682331] ? xfs_vm_writepage+0xd0/0xd0 [ 515.686489] ? xfs_vm_writepage+0xd0/0xd0 [ 515.690620] do_writepages+0xc3/0x240 [ 515.694417] ? page_writeback_cpu_online+0x10/0x10 [ 515.699341] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 515.704780] __writeback_single_inode+0xda/0x1010 [ 515.709613] writeback_sb_inodes+0x48b/0xd30 [ 515.714003] ? wbc_detach_inode+0x780/0x780 [ 515.718310] ? queue_io+0x400/0x5a0 [ 515.721914] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 515.727349] wb_writeback+0x243/0xb80 [ 515.731136] ? writeback_inodes_wb.constprop.0+0x1a0/0x1a0 [ 515.736737] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 515.742165] wb_workfn+0x2bd/0xf50 [ 515.745692] ? process_one_work+0x6c4/0x14a0 [ 515.750085] ? inode_wait_for_writeback+0x30/0x30 [ 515.754904] ? lock_acquire+0x170/0x3f0 [ 515.758857] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 515.764287] process_one_work+0x793/0x14a0 [ 515.768512] ? work_busy+0x320/0x320 [ 515.772210] ? worker_thread+0x158/0xff0 [ 515.776251] ? _raw_spin_unlock_irq+0x24/0x80 [ 515.780722] worker_thread+0x5cc/0xff0 [ 515.784596] ? rescuer_thread+0xc80/0xc80 [ 515.788719] kthread+0x30d/0x420 [ 515.792059] ? kthread_create_on_node+0xd0/0xd0 [ 515.796707] ret_from_fork+0x24/0x30 [ 515.800854] XFS (loop1): page discard on page ffffea000147af00, inode 0x29, offset 1306624. [ 515.809762] XFS (loop1): Internal error XFS_WANT_CORRUPTED_RETURN at line 431 of file fs/xfs/libxfs/xfs_alloc.c. Caller xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 515.824327] CPU: 1 PID: 2818 Comm: kworker/u4:3 Not tainted 4.14.303-syzkaller #0 [ 515.831940] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023 [ 515.841293] Workqueue: writeback wb_workfn (flush-7:1) [ 515.846553] Call Trace: [ 515.849127] dump_stack+0x1b2/0x281 [ 515.852729] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 515.857982] xfs_error_report+0x98/0xa0 [ 515.861932] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 515.867204] xfs_alloc_fixup_trees+0x425/0x4f0 [ 515.871769] ? xfs_alloc_update+0x90/0x90 [ 515.875896] ? xfs_btree_rec_offset.isra.0+0x3b/0xa0 [ 515.880974] ? xfs_alloc_compute_diff+0x23c/0x3d0 [ 515.885811] xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 515.890914] ? xfs_alloc_fix_freelist+0x685/0xeb0 [ 515.895741] ? xfs_alloc_ag_vextent_size+0x1ea0/0x1ea0 [ 515.900997] ? xfs_alloc_read_agf+0xb10/0xb10 [ 515.905517] xfs_alloc_ag_vextent+0x579/0x750 [ 515.909999] ? xfs_perag_get+0x116/0x410 [ 515.914033] ? xfs_alloc_vextent+0x470/0x2010 [ 515.918517] xfs_alloc_vextent+0x10b0/0x2010 [ 515.922934] xfs_bmap_btalloc+0x9e5/0x1b20 [ 515.927164] ? xfs_bmap_adjacent+0x1480/0x1480 [ 515.931728] ? ret_from_fork+0x24/0x30 [ 515.935612] ? __xfs_bmbt_get_all+0x16/0x100 [ 515.940007] xfs_bmap_alloc+0x107/0x160 [ 515.943958] xfs_bmapi_write+0xa49/0x1d00 [ 515.948100] ? xfs_bmapi_reserve_delalloc+0x7c0/0x7c0 [ 515.953287] ? trace_hardirqs_on+0x10/0x10 [ 515.957497] ? xfs_iext_get_ext+0xeb/0x200 [ 515.961707] ? xfs_iext_idx_to_irec+0x340/0x340 [ 515.966368] ? xfs_bmap_last_extent+0x1d0/0x1d0 [ 515.971021] xfs_iomap_write_allocate+0x42b/0xa30 [ 515.975844] ? xfs_file_iomap_begin+0x1ed0/0x1ed0 [ 515.980663] ? xfs_iunlock+0x248/0x3b0 [ 515.984530] ? rcu_read_lock_sched_held+0x16c/0x1d0 [ 515.989520] ? xfs_iunlock+0x21a/0x3b0 [ 515.993384] xfs_map_blocks+0x548/0x940 [ 515.997335] ? xfs_vm_set_page_dirty+0x610/0x610 [ 516.002088] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 516.007522] xfs_do_writepage+0x422/0x13d0 [ 516.011745] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 516.016047] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 516.021477] write_cache_pages+0x505/0xd20 [ 516.025701] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 516.030005] ? clear_page_dirty_for_io+0xb80/0xb80 [ 516.034914] ? trace_hardirqs_on+0x10/0x10 [ 516.039123] xfs_vm_writepages+0x258/0x340 [ 516.043335] ? xfs_vm_writepage+0xd0/0xd0 [ 516.047469] ? xfs_vm_writepage+0xd0/0xd0 [ 516.051600] do_writepages+0xc3/0x240 [ 516.055378] ? page_writeback_cpu_online+0x10/0x10 [ 516.060287] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 516.065719] __writeback_single_inode+0xda/0x1010 [ 516.070550] writeback_sb_inodes+0x48b/0xd30 [ 516.074940] ? wbc_detach_inode+0x780/0x780 [ 516.079241] ? queue_io+0x400/0x5a0 [ 516.082845] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 516.088271] wb_writeback+0x243/0xb80 [ 516.092055] ? writeback_inodes_wb.constprop.0+0x1a0/0x1a0 [ 516.097657] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 516.103085] wb_workfn+0x2bd/0xf50 [ 516.106615] ? process_one_work+0x6c4/0x14a0 [ 516.111026] ? inode_wait_for_writeback+0x30/0x30 [ 516.115843] ? lock_acquire+0x170/0x3f0 [ 516.119801] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 516.125236] process_one_work+0x793/0x14a0 [ 516.129456] ? work_busy+0x320/0x320 [ 516.133143] ? worker_thread+0x158/0xff0 [ 516.137184] ? _raw_spin_unlock_irq+0x24/0x80 [ 516.141657] worker_thread+0x5cc/0xff0 [ 516.145537] ? rescuer_thread+0xc80/0xc80 [ 516.149665] kthread+0x30d/0x420 [ 516.153011] ? kthread_create_on_node+0xd0/0xd0 [ 516.157654] ret_from_fork+0x24/0x30 [ 516.162039] XFS (loop1): page discard on page ffffea000147af40, inode 0x29, offset 1310720. [ 516.170951] XFS (loop1): Internal error XFS_WANT_CORRUPTED_RETURN at line 431 of file fs/xfs/libxfs/xfs_alloc.c. Caller xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 516.185498] CPU: 1 PID: 2818 Comm: kworker/u4:3 Not tainted 4.14.303-syzkaller #0 [ 516.193104] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023 [ 516.202447] Workqueue: writeback wb_workfn (flush-7:1) [ 516.207702] Call Trace: [ 516.210269] dump_stack+0x1b2/0x281 [ 516.213874] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 516.219126] xfs_error_report+0x98/0xa0 [ 516.223076] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 516.228331] xfs_alloc_fixup_trees+0x425/0x4f0 [ 516.232887] ? xfs_alloc_update+0x90/0x90 [ 516.237015] ? xfs_btree_rec_offset.isra.0+0x3b/0xa0 [ 516.242101] ? xfs_alloc_compute_diff+0x23c/0x3d0 [ 516.246923] xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 516.252005] ? xfs_alloc_fix_freelist+0x685/0xeb0 [ 516.256829] ? xfs_alloc_ag_vextent_size+0x1ea0/0x1ea0 [ 516.262090] ? xfs_alloc_read_agf+0xb10/0xb10 [ 516.266570] xfs_alloc_ag_vextent+0x579/0x750 [ 516.271042] ? xfs_perag_get+0x116/0x410 [ 516.275080] ? xfs_alloc_vextent+0x470/0x2010 [ 516.279560] xfs_alloc_vextent+0x10b0/0x2010 [ 516.283948] xfs_bmap_btalloc+0x9e5/0x1b20 [ 516.288161] ? xfs_bmap_adjacent+0x1480/0x1480 [ 516.292717] ? ret_from_fork+0x24/0x30 [ 516.296600] ? __xfs_bmbt_get_all+0x16/0x100 [ 516.300991] xfs_bmap_alloc+0x107/0x160 [ 516.304942] xfs_bmapi_write+0xa49/0x1d00 [ 516.309070] ? xfs_bmapi_reserve_delalloc+0x7c0/0x7c0 [ 516.314260] ? trace_hardirqs_on+0x10/0x10 [ 516.318493] ? xfs_iext_get_ext+0xeb/0x200 [ 516.322719] ? xfs_iext_idx_to_irec+0x340/0x340 [ 516.327366] ? xfs_bmap_last_extent+0x1d0/0x1d0 [ 516.332013] xfs_iomap_write_allocate+0x42b/0xa30 [ 516.336850] ? xfs_file_iomap_begin+0x1ed0/0x1ed0 [ 516.341678] ? xfs_iunlock+0x248/0x3b0 [ 516.345547] ? rcu_read_lock_sched_held+0x16c/0x1d0 [ 516.350538] ? xfs_iunlock+0x21a/0x3b0 [ 516.354400] xfs_map_blocks+0x548/0x940 [ 516.358354] ? xfs_vm_set_page_dirty+0x610/0x610 [ 516.363086] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 516.368512] xfs_do_writepage+0x422/0x13d0 [ 516.372726] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 516.377036] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 516.382473] write_cache_pages+0x505/0xd20 [ 516.386684] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 516.390985] ? clear_page_dirty_for_io+0xb80/0xb80 [ 516.395906] ? trace_hardirqs_on+0x10/0x10 [ 516.400135] xfs_vm_writepages+0x258/0x340 [ 516.404344] ? xfs_vm_writepage+0xd0/0xd0 [ 516.408471] ? xfs_vm_writepage+0xd0/0xd0 [ 516.412593] do_writepages+0xc3/0x240 [ 516.416382] ? page_writeback_cpu_online+0x10/0x10 [ 516.421297] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 516.426724] __writeback_single_inode+0xda/0x1010 [ 516.431542] writeback_sb_inodes+0x48b/0xd30 [ 516.435940] ? wbc_detach_inode+0x780/0x780 [ 516.440246] ? queue_io+0x400/0x5a0 [ 516.443851] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 516.449275] wb_writeback+0x243/0xb80 [ 516.453055] ? writeback_inodes_wb.constprop.0+0x1a0/0x1a0 [ 516.458661] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 516.464088] wb_workfn+0x2bd/0xf50 [ 516.467609] ? process_one_work+0x6c4/0x14a0 [ 516.471992] ? inode_wait_for_writeback+0x30/0x30 [ 516.476817] ? lock_acquire+0x170/0x3f0 [ 516.480774] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 516.486200] process_one_work+0x793/0x14a0 [ 516.490412] ? work_busy+0x320/0x320 [ 516.494099] ? worker_thread+0x158/0xff0 [ 516.498144] ? _raw_spin_unlock_irq+0x24/0x80 [ 516.502622] worker_thread+0x5cc/0xff0 [ 516.506487] ? rescuer_thread+0xc80/0xc80 [ 516.510608] kthread+0x30d/0x420 [ 516.513949] ? kthread_create_on_node+0xd0/0xd0 [ 516.518596] ret_from_fork+0x24/0x30 [ 516.522826] XFS (loop1): page discard on page ffffea000147af80, inode 0x29, offset 1314816. [ 516.531749] XFS (loop1): Internal error XFS_WANT_CORRUPTED_RETURN at line 431 of file fs/xfs/libxfs/xfs_alloc.c. Caller xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 516.546301] CPU: 1 PID: 2818 Comm: kworker/u4:3 Not tainted 4.14.303-syzkaller #0 [ 516.553914] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023 [ 516.563285] Workqueue: writeback wb_workfn (flush-7:1) [ 516.568563] Call Trace: [ 516.571133] dump_stack+0x1b2/0x281 [ 516.574743] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 516.580007] xfs_error_report+0x98/0xa0 [ 516.583958] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 516.589215] xfs_alloc_fixup_trees+0x425/0x4f0 [ 516.593776] ? xfs_alloc_update+0x90/0x90 [ 516.597907] ? xfs_btree_rec_offset.isra.0+0x3b/0xa0 [ 516.602992] ? xfs_alloc_compute_diff+0x23c/0x3d0 [ 516.607809] xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 516.612891] ? xfs_alloc_fix_freelist+0x685/0xeb0 [ 516.617713] ? xfs_alloc_ag_vextent_size+0x1ea0/0x1ea0 [ 516.622971] ? xfs_alloc_read_agf+0xb10/0xb10 [ 516.627451] xfs_alloc_ag_vextent+0x579/0x750 [ 516.631922] ? xfs_perag_get+0x116/0x410 [ 516.635961] ? xfs_alloc_vextent+0x470/0x2010 [ 516.640441] xfs_alloc_vextent+0x10b0/0x2010 [ 516.644829] xfs_bmap_btalloc+0x9e5/0x1b20 [ 516.649040] ? xfs_bmap_adjacent+0x1480/0x1480 [ 516.653596] ? ret_from_fork+0x24/0x30 [ 516.657479] ? __xfs_bmbt_get_all+0x16/0x100 [ 516.661887] xfs_bmap_alloc+0x107/0x160 [ 516.665847] xfs_bmapi_write+0xa49/0x1d00 [ 516.669976] ? xfs_bmapi_reserve_delalloc+0x7c0/0x7c0 [ 516.675147] ? trace_hardirqs_on+0x10/0x10 [ 516.679365] ? xfs_iext_get_ext+0xeb/0x200 [ 516.683573] ? xfs_iext_idx_to_irec+0x340/0x340 [ 516.688223] ? xfs_bmap_last_extent+0x1d0/0x1d0 [ 516.692868] xfs_iomap_write_allocate+0x42b/0xa30 [ 516.697705] ? xfs_file_iomap_begin+0x1ed0/0x1ed0 [ 516.702528] ? xfs_iunlock+0x248/0x3b0 [ 516.706397] ? rcu_read_lock_sched_held+0x16c/0x1d0 [ 516.711390] ? xfs_iunlock+0x21a/0x3b0 [ 516.715261] xfs_map_blocks+0x548/0x940 [ 516.719235] ? xfs_vm_set_page_dirty+0x610/0x610 [ 516.723981] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 516.729416] xfs_do_writepage+0x422/0x13d0 [ 516.733638] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 516.737948] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 516.743393] write_cache_pages+0x505/0xd20 [ 516.747607] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 516.751907] ? clear_page_dirty_for_io+0xb80/0xb80 [ 516.756827] ? trace_hardirqs_on+0x10/0x10 [ 516.761046] xfs_vm_writepages+0x258/0x340 [ 516.765258] ? xfs_vm_writepage+0xd0/0xd0 [ 516.769384] ? xfs_vm_writepage+0xd0/0xd0 [ 516.773506] do_writepages+0xc3/0x240 [ 516.777292] ? page_writeback_cpu_online+0x10/0x10 [ 516.782209] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 516.787639] __writeback_single_inode+0xda/0x1010 [ 516.792475] writeback_sb_inodes+0x48b/0xd30 [ 516.796877] ? wbc_detach_inode+0x780/0x780 [ 516.801185] ? queue_io+0x400/0x5a0 [ 516.804794] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 516.810230] wb_writeback+0x243/0xb80 [ 516.814009] ? writeback_inodes_wb.constprop.0+0x1a0/0x1a0 [ 516.819619] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 516.825075] wb_workfn+0x2bd/0xf50 [ 516.828608] ? process_one_work+0x6c4/0x14a0 [ 516.833021] ? inode_wait_for_writeback+0x30/0x30 [ 516.837848] ? lock_acquire+0x170/0x3f0 [ 516.841823] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 516.847261] process_one_work+0x793/0x14a0 [ 516.851480] ? work_busy+0x320/0x320 [ 516.855176] ? worker_thread+0x158/0xff0 [ 516.859237] ? _raw_spin_unlock_irq+0x24/0x80 [ 516.863718] worker_thread+0x5cc/0xff0 [ 516.867590] ? rescuer_thread+0xc80/0xc80 [ 516.871716] kthread+0x30d/0x420 [ 516.875064] ? kthread_create_on_node+0xd0/0xd0 [ 516.879742] ret_from_fork+0x24/0x30 [ 516.883873] XFS (loop1): page discard on page ffffea000147afc0, inode 0x29, offset 1318912. [ 516.892776] XFS (loop1): Internal error XFS_WANT_CORRUPTED_RETURN at line 431 of file fs/xfs/libxfs/xfs_alloc.c. Caller xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 516.907351] CPU: 1 PID: 2818 Comm: kworker/u4:3 Not tainted 4.14.303-syzkaller #0 [ 516.914957] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023 [ 516.924301] Workqueue: writeback wb_workfn (flush-7:1) [ 516.929556] Call Trace: [ 516.932147] dump_stack+0x1b2/0x281 [ 516.935759] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 516.941019] xfs_error_report+0x98/0xa0 [ 516.944967] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 516.950225] xfs_alloc_fixup_trees+0x425/0x4f0 [ 516.954793] ? xfs_alloc_update+0x90/0x90 [ 516.958923] ? xfs_btree_rec_offset.isra.0+0x3b/0xa0 [ 516.964003] ? xfs_alloc_compute_diff+0x23c/0x3d0 [ 516.968822] xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 516.973908] ? xfs_alloc_fix_freelist+0x685/0xeb0 [ 516.978735] ? xfs_alloc_ag_vextent_size+0x1ea0/0x1ea0 [ 516.983999] ? xfs_alloc_read_agf+0xb10/0xb10 [ 516.988477] xfs_alloc_ag_vextent+0x579/0x750 [ 516.992944] ? xfs_perag_get+0x116/0x410 [ 516.996981] ? xfs_alloc_vextent+0x470/0x2010 [ 517.001478] xfs_alloc_vextent+0x10b0/0x2010 [ 517.005868] xfs_bmap_btalloc+0x9e5/0x1b20 [ 517.010082] ? xfs_bmap_adjacent+0x1480/0x1480 [ 517.014644] ? ret_from_fork+0x24/0x30 [ 517.018525] ? __xfs_bmbt_get_all+0x16/0x100 [ 517.022910] xfs_bmap_alloc+0x107/0x160 [ 517.026862] xfs_bmapi_write+0xa49/0x1d00 [ 517.030993] ? xfs_bmapi_reserve_delalloc+0x7c0/0x7c0 [ 517.036166] ? trace_hardirqs_on+0x10/0x10 [ 517.040383] ? xfs_iext_get_ext+0xeb/0x200 [ 517.044591] ? xfs_iext_idx_to_irec+0x340/0x340 [ 517.049261] ? xfs_bmap_last_extent+0x1d0/0x1d0 [ 517.053928] xfs_iomap_write_allocate+0x42b/0xa30 [ 517.058751] ? xfs_file_iomap_begin+0x1ed0/0x1ed0 [ 517.063569] ? xfs_iunlock+0x248/0x3b0 [ 517.067453] ? rcu_read_lock_sched_held+0x16c/0x1d0 [ 517.072442] ? xfs_iunlock+0x21a/0x3b0 [ 517.076313] xfs_map_blocks+0x548/0x940 [ 517.080271] ? xfs_vm_set_page_dirty+0x610/0x610 [ 517.085002] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 517.090428] xfs_do_writepage+0x422/0x13d0 [ 517.094654] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 517.098961] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 517.104387] write_cache_pages+0x505/0xd20 [ 517.108600] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 517.112896] ? clear_page_dirty_for_io+0xb80/0xb80 [ 517.117815] ? trace_hardirqs_on+0x10/0x10 [ 517.122034] xfs_vm_writepages+0x258/0x340 [ 517.126244] ? xfs_vm_writepage+0xd0/0xd0 [ 517.130395] ? xfs_vm_writepage+0xd0/0xd0 [ 517.134515] do_writepages+0xc3/0x240 [ 517.138292] ? page_writeback_cpu_online+0x10/0x10 [ 517.143203] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 517.148627] __writeback_single_inode+0xda/0x1010 [ 517.153471] writeback_sb_inodes+0x48b/0xd30 [ 517.157872] ? wbc_detach_inode+0x780/0x780 [ 517.162176] ? queue_io+0x400/0x5a0 [ 517.165780] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 517.171207] wb_writeback+0x243/0xb80 [ 517.174995] ? writeback_inodes_wb.constprop.0+0x1a0/0x1a0 [ 517.180601] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 517.186026] wb_workfn+0x2bd/0xf50 [ 517.189545] ? process_one_work+0x6c4/0x14a0 [ 517.193929] ? inode_wait_for_writeback+0x30/0x30 [ 517.198752] ? lock_acquire+0x170/0x3f0 [ 517.202708] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 517.208133] process_one_work+0x793/0x14a0 [ 517.212347] ? work_busy+0x320/0x320 [ 517.216042] ? worker_thread+0x158/0xff0 [ 517.220088] ? _raw_spin_unlock_irq+0x24/0x80 [ 517.224559] worker_thread+0x5cc/0xff0 [ 517.228424] ? rescuer_thread+0xc80/0xc80 [ 517.232545] kthread+0x30d/0x420 [ 517.235893] ? kthread_create_on_node+0xd0/0xd0 [ 517.240568] ret_from_fork+0x24/0x30 [ 517.245124] XFS (loop1): page discard on page ffffea0001092800, inode 0x29, offset 1323008. [ 517.253990] XFS (loop1): Internal error XFS_WANT_CORRUPTED_RETURN at line 431 of file fs/xfs/libxfs/xfs_alloc.c. Caller xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 517.268540] CPU: 1 PID: 2818 Comm: kworker/u4:3 Not tainted 4.14.303-syzkaller #0 [ 517.276151] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023 [ 517.285502] Workqueue: writeback wb_workfn (flush-7:1) [ 517.290769] Call Trace: [ 517.293334] dump_stack+0x1b2/0x281 [ 517.296948] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 517.302206] xfs_error_report+0x98/0xa0 [ 517.306160] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 517.311421] xfs_alloc_fixup_trees+0x425/0x4f0 [ 517.315990] ? xfs_alloc_update+0x90/0x90 [ 517.320122] ? xfs_btree_rec_offset.isra.0+0x3b/0xa0 [ 517.325207] ? xfs_alloc_compute_diff+0x23c/0x3d0 [ 517.330031] xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 517.335125] ? xfs_alloc_fix_freelist+0x685/0xeb0 [ 517.339946] ? xfs_alloc_ag_vextent_size+0x1ea0/0x1ea0 [ 517.345206] ? xfs_alloc_read_agf+0xb10/0xb10 [ 517.349690] xfs_alloc_ag_vextent+0x579/0x750 [ 517.354159] ? xfs_perag_get+0x116/0x410 [ 517.358194] ? xfs_alloc_vextent+0x470/0x2010 [ 517.362665] xfs_alloc_vextent+0x10b0/0x2010 [ 517.367051] xfs_bmap_btalloc+0x9e5/0x1b20 [ 517.371265] ? xfs_bmap_adjacent+0x1480/0x1480 [ 517.375824] ? ret_from_fork+0x24/0x30 [ 517.379701] ? __xfs_bmbt_get_all+0x16/0x100 [ 517.384108] xfs_bmap_alloc+0x107/0x160 [ 517.388058] xfs_bmapi_write+0xa49/0x1d00 [ 517.392185] ? xfs_bmapi_reserve_delalloc+0x7c0/0x7c0 [ 517.397350] ? trace_hardirqs_on+0x10/0x10 [ 517.401558] ? xfs_iext_get_ext+0xeb/0x200 [ 517.405774] ? xfs_iext_idx_to_irec+0x340/0x340 [ 517.410430] ? xfs_bmap_last_extent+0x1d0/0x1d0 [ 517.415087] xfs_iomap_write_allocate+0x42b/0xa30 [ 517.419917] ? xfs_file_iomap_begin+0x1ed0/0x1ed0 [ 517.424739] ? xfs_iunlock+0x248/0x3b0 [ 517.428613] ? rcu_read_lock_sched_held+0x16c/0x1d0 [ 517.433605] ? xfs_iunlock+0x21a/0x3b0 [ 517.437473] xfs_map_blocks+0x548/0x940 [ 517.441440] ? xfs_vm_set_page_dirty+0x610/0x610 [ 517.446178] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 517.451610] xfs_do_writepage+0x422/0x13d0 [ 517.455836] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 517.460149] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 517.465590] write_cache_pages+0x505/0xd20 [ 517.469828] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 517.474128] ? clear_page_dirty_for_io+0xb80/0xb80 [ 517.479038] ? trace_hardirqs_on+0x10/0x10 [ 517.483249] xfs_vm_writepages+0x258/0x340 [ 517.487458] ? xfs_vm_writepage+0xd0/0xd0 [ 517.491584] ? xfs_vm_writepage+0xd0/0xd0 [ 517.495711] do_writepages+0xc3/0x240 [ 517.499493] ? page_writeback_cpu_online+0x10/0x10 [ 517.504421] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 517.509867] __writeback_single_inode+0xda/0x1010 [ 517.514695] writeback_sb_inodes+0x48b/0xd30 [ 517.519103] ? wbc_detach_inode+0x780/0x780 [ 517.523401] ? queue_io+0x400/0x5a0 [ 517.527004] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 517.532429] wb_writeback+0x243/0xb80 [ 517.536236] ? writeback_inodes_wb.constprop.0+0x1a0/0x1a0 [ 517.541846] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 517.547273] wb_workfn+0x2bd/0xf50 [ 517.550787] ? process_one_work+0x6c4/0x14a0 [ 517.555177] ? inode_wait_for_writeback+0x30/0x30 [ 517.560004] ? lock_acquire+0x170/0x3f0 [ 517.563958] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 517.569385] process_one_work+0x793/0x14a0 [ 517.573619] ? work_busy+0x320/0x320 [ 517.577305] ? worker_thread+0x158/0xff0 [ 517.581344] ? _raw_spin_unlock_irq+0x24/0x80 [ 517.585821] worker_thread+0x5cc/0xff0 [ 517.589696] ? rescuer_thread+0xc80/0xc80 [ 517.593821] kthread+0x30d/0x420 [ 517.597165] ? kthread_create_on_node+0xd0/0xd0 [ 517.601811] ret_from_fork+0x24/0x30 [ 517.605881] XFS (loop1): page discard on page ffffea0001092840, inode 0x29, offset 1327104. [ 517.614765] XFS (loop1): Internal error XFS_WANT_CORRUPTED_RETURN at line 431 of file fs/xfs/libxfs/xfs_alloc.c. Caller xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 517.629284] CPU: 1 PID: 2818 Comm: kworker/u4:3 Not tainted 4.14.303-syzkaller #0 [ 517.636893] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023 [ 517.646241] Workqueue: writeback wb_workfn (flush-7:1) [ 517.651492] Call Trace: [ 517.654052] dump_stack+0x1b2/0x281 [ 517.657664] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 517.662918] xfs_error_report+0x98/0xa0 [ 517.666867] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 517.672290] xfs_alloc_fixup_trees+0x425/0x4f0 [ 517.676857] ? xfs_alloc_update+0x90/0x90 [ 517.680995] ? xfs_btree_rec_offset.isra.0+0x3b/0xa0 [ 517.686073] ? xfs_alloc_compute_diff+0x23c/0x3d0 [ 517.690888] xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 517.695978] ? xfs_alloc_fix_freelist+0x685/0xeb0 [ 517.700813] ? xfs_alloc_ag_vextent_size+0x1ea0/0x1ea0 [ 517.706074] ? xfs_alloc_read_agf+0xb10/0xb10 [ 517.710581] xfs_alloc_ag_vextent+0x579/0x750 [ 517.715057] ? xfs_perag_get+0x116/0x410 [ 517.719118] ? xfs_alloc_vextent+0x470/0x2010 [ 517.723586] xfs_alloc_vextent+0x10b0/0x2010 [ 517.727977] xfs_bmap_btalloc+0x9e5/0x1b20 [ 517.732188] ? xfs_bmap_adjacent+0x1480/0x1480 [ 517.736751] ? ret_from_fork+0x24/0x30 [ 517.740633] ? __xfs_bmbt_get_all+0x16/0x100 [ 517.745028] xfs_bmap_alloc+0x107/0x160 [ 517.749002] xfs_bmapi_write+0xa49/0x1d00 [ 517.753133] ? xfs_bmapi_reserve_delalloc+0x7c0/0x7c0 [ 517.758297] ? trace_hardirqs_on+0x10/0x10 [ 517.762510] ? xfs_iext_get_ext+0xeb/0x200 [ 517.766719] ? xfs_iext_idx_to_irec+0x340/0x340 [ 517.771369] ? xfs_bmap_last_extent+0x1d0/0x1d0 [ 517.776029] xfs_iomap_write_allocate+0x42b/0xa30 [ 517.780859] ? xfs_file_iomap_begin+0x1ed0/0x1ed0 [ 517.785675] ? xfs_iunlock+0x248/0x3b0 [ 517.789543] ? rcu_read_lock_sched_held+0x16c/0x1d0 [ 517.794531] ? xfs_iunlock+0x21a/0x3b0 [ 517.798395] xfs_map_blocks+0x548/0x940 [ 517.802347] ? xfs_vm_set_page_dirty+0x610/0x610 [ 517.807081] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 517.812505] xfs_do_writepage+0x422/0x13d0 [ 517.816728] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 517.821032] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 517.826479] write_cache_pages+0x505/0xd20 [ 517.830691] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 517.834997] ? clear_page_dirty_for_io+0xb80/0xb80 [ 517.839916] ? trace_hardirqs_on+0x10/0x10 [ 517.844145] xfs_vm_writepages+0x258/0x340 [ 517.848354] ? xfs_vm_writepage+0xd0/0xd0 [ 517.852479] ? xfs_vm_writepage+0xd0/0xd0 [ 517.856607] do_writepages+0xc3/0x240 [ 517.860390] ? page_writeback_cpu_online+0x10/0x10 [ 517.865299] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 517.870722] __writeback_single_inode+0xda/0x1010 [ 517.875549] writeback_sb_inodes+0x48b/0xd30 [ 517.879955] ? wbc_detach_inode+0x780/0x780 [ 517.884264] ? queue_io+0x400/0x5a0 [ 517.887874] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 517.893396] wb_writeback+0x243/0xb80 [ 517.897189] ? writeback_inodes_wb.constprop.0+0x1a0/0x1a0 [ 517.902798] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 517.908226] wb_workfn+0x2bd/0xf50 [ 517.911742] ? process_one_work+0x6c4/0x14a0 [ 517.916132] ? inode_wait_for_writeback+0x30/0x30 [ 517.920959] ? lock_acquire+0x170/0x3f0 [ 517.924916] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 517.930350] process_one_work+0x793/0x14a0 [ 517.934562] ? work_busy+0x320/0x320 [ 517.938251] ? worker_thread+0x158/0xff0 [ 517.942287] ? _raw_spin_unlock_irq+0x24/0x80 [ 517.946762] worker_thread+0x5cc/0xff0 [ 517.950714] ? rescuer_thread+0xc80/0xc80 [ 517.954852] kthread+0x30d/0x420 [ 517.958204] ? kthread_create_on_node+0xd0/0xd0 [ 517.962853] ret_from_fork+0x24/0x30 [ 517.967012] XFS (loop1): page discard on page ffffea0001092880, inode 0x29, offset 1331200. [ 517.975924] XFS (loop1): Internal error XFS_WANT_CORRUPTED_RETURN at line 431 of file fs/xfs/libxfs/xfs_alloc.c. Caller xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 517.990465] CPU: 1 PID: 2818 Comm: kworker/u4:3 Not tainted 4.14.303-syzkaller #0 [ 517.998078] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023 [ 518.007426] Workqueue: writeback wb_workfn (flush-7:1) [ 518.012680] Call Trace: [ 518.015250] dump_stack+0x1b2/0x281 [ 518.018868] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 518.024132] xfs_error_report+0x98/0xa0 [ 518.028080] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 518.033335] xfs_alloc_fixup_trees+0x425/0x4f0 [ 518.037896] ? xfs_alloc_update+0x90/0x90 [ 518.042022] ? xfs_btree_rec_offset.isra.0+0x3b/0xa0 [ 518.047104] ? xfs_alloc_compute_diff+0x23c/0x3d0 [ 518.051920] xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 518.057015] ? xfs_alloc_fix_freelist+0x685/0xeb0 [ 518.061839] ? xfs_alloc_ag_vextent_size+0x1ea0/0x1ea0 [ 518.067093] ? xfs_alloc_read_agf+0xb10/0xb10 [ 518.071574] xfs_alloc_ag_vextent+0x579/0x750 [ 518.076049] ? xfs_perag_get+0x116/0x410 [ 518.080093] ? xfs_alloc_vextent+0x470/0x2010 [ 518.084560] xfs_alloc_vextent+0x10b0/0x2010 [ 518.088951] xfs_bmap_btalloc+0x9e5/0x1b20 [ 518.093165] ? xfs_bmap_adjacent+0x1480/0x1480 [ 518.097720] ? ret_from_fork+0x24/0x30 [ 518.101591] ? __xfs_bmbt_get_all+0x16/0x100 [ 518.105977] xfs_bmap_alloc+0x107/0x160 [ 518.109928] xfs_bmapi_write+0xa49/0x1d00 [ 518.114056] ? xfs_bmapi_reserve_delalloc+0x7c0/0x7c0 [ 518.119222] ? trace_hardirqs_on+0x10/0x10 [ 518.123436] ? xfs_iext_get_ext+0xeb/0x200 [ 518.127645] ? xfs_iext_idx_to_irec+0x340/0x340 [ 518.132291] ? xfs_bmap_last_extent+0x1d0/0x1d0 [ 518.136945] xfs_iomap_write_allocate+0x42b/0xa30 [ 518.141790] ? xfs_file_iomap_begin+0x1ed0/0x1ed0 [ 518.146614] ? xfs_iunlock+0x248/0x3b0 [ 518.150489] ? rcu_read_lock_sched_held+0x16c/0x1d0 [ 518.155487] ? xfs_iunlock+0x21a/0x3b0 [ 518.159366] xfs_map_blocks+0x548/0x940 [ 518.163321] ? xfs_vm_set_page_dirty+0x610/0x610 [ 518.168054] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 518.173484] xfs_do_writepage+0x422/0x13d0 [ 518.177704] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 518.182016] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 518.187442] write_cache_pages+0x505/0xd20 [ 518.191663] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 518.195972] ? clear_page_dirty_for_io+0xb80/0xb80 [ 518.200900] ? trace_hardirqs_on+0x10/0x10 [ 518.205123] xfs_vm_writepages+0x258/0x340 [ 518.209340] ? xfs_vm_writepage+0xd0/0xd0 [ 518.213470] ? xfs_vm_writepage+0xd0/0xd0 [ 518.217597] do_writepages+0xc3/0x240 [ 518.221379] ? page_writeback_cpu_online+0x10/0x10 [ 518.226287] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 518.231715] __writeback_single_inode+0xda/0x1010 [ 518.236546] writeback_sb_inodes+0x48b/0xd30 [ 518.240963] ? wbc_detach_inode+0x780/0x780 [ 518.245290] ? queue_io+0x400/0x5a0 [ 518.248891] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 518.254318] wb_writeback+0x243/0xb80 [ 518.258110] ? writeback_inodes_wb.constprop.0+0x1a0/0x1a0 [ 518.263736] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 518.269165] wb_workfn+0x2bd/0xf50 [ 518.272686] ? process_one_work+0x6c4/0x14a0 [ 518.277077] ? inode_wait_for_writeback+0x30/0x30 [ 518.281901] ? lock_acquire+0x170/0x3f0 [ 518.285850] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 518.291274] process_one_work+0x793/0x14a0 [ 518.295498] ? work_busy+0x320/0x320 [ 518.299195] ? worker_thread+0x158/0xff0 [ 518.303230] ? _raw_spin_unlock_irq+0x24/0x80 [ 518.307700] worker_thread+0x5cc/0xff0 [ 518.311564] ? rescuer_thread+0xc80/0xc80 [ 518.315692] kthread+0x30d/0x420 [ 518.319041] ? kthread_create_on_node+0xd0/0xd0 [ 518.323686] ret_from_fork+0x24/0x30 [ 518.328025] XFS (loop1): page discard on page ffffea00010928c0, inode 0x29, offset 1335296. [ 518.336927] XFS (loop1): Internal error XFS_WANT_CORRUPTED_RETURN at line 431 of file fs/xfs/libxfs/xfs_alloc.c. Caller xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 518.351474] CPU: 1 PID: 2818 Comm: kworker/u4:3 Not tainted 4.14.303-syzkaller #0 [ 518.359084] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023 [ 518.368435] Workqueue: writeback wb_workfn (flush-7:1) [ 518.373700] Call Trace: [ 518.376267] dump_stack+0x1b2/0x281 [ 518.379870] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 518.385128] xfs_error_report+0x98/0xa0 [ 518.389109] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 518.394363] xfs_alloc_fixup_trees+0x425/0x4f0 [ 518.398933] ? xfs_alloc_update+0x90/0x90 [ 518.403059] ? xfs_btree_rec_offset.isra.0+0x3b/0xa0 [ 518.408143] ? xfs_alloc_compute_diff+0x23c/0x3d0 [ 518.412974] xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 518.418076] ? xfs_alloc_fix_freelist+0x685/0xeb0 [ 518.422898] ? xfs_alloc_ag_vextent_size+0x1ea0/0x1ea0 [ 518.428154] ? xfs_alloc_read_agf+0xb10/0xb10 [ 518.432637] xfs_alloc_ag_vextent+0x579/0x750 [ 518.437108] ? xfs_perag_get+0x116/0x410 [ 518.441145] ? xfs_alloc_vextent+0x470/0x2010 [ 518.445625] xfs_alloc_vextent+0x10b0/0x2010 [ 518.450024] xfs_bmap_btalloc+0x9e5/0x1b20 [ 518.454239] ? xfs_bmap_adjacent+0x1480/0x1480 [ 518.458797] ? ret_from_fork+0x24/0x30 [ 518.462665] ? __xfs_bmbt_get_all+0x16/0x100 [ 518.467058] xfs_bmap_alloc+0x107/0x160 [ 518.471016] xfs_bmapi_write+0xa49/0x1d00 [ 518.475147] ? xfs_bmapi_reserve_delalloc+0x7c0/0x7c0 [ 518.480312] ? trace_hardirqs_on+0x10/0x10 [ 518.484521] ? xfs_iext_get_ext+0xeb/0x200 [ 518.488729] ? xfs_iext_idx_to_irec+0x340/0x340 [ 518.493378] ? xfs_bmap_last_extent+0x1d0/0x1d0 [ 518.498030] xfs_iomap_write_allocate+0x42b/0xa30 [ 518.502858] ? xfs_file_iomap_begin+0x1ed0/0x1ed0 [ 518.507683] ? xfs_iunlock+0x248/0x3b0 [ 518.511586] ? rcu_read_lock_sched_held+0x16c/0x1d0 [ 518.516577] ? xfs_iunlock+0x21a/0x3b0 [ 518.520442] xfs_map_blocks+0x548/0x940 [ 518.524409] ? xfs_vm_set_page_dirty+0x610/0x610 [ 518.529145] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 518.534573] xfs_do_writepage+0x422/0x13d0 [ 518.538793] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 518.543093] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 518.548519] write_cache_pages+0x505/0xd20 [ 518.552730] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 518.557033] ? clear_page_dirty_for_io+0xb80/0xb80 [ 518.561956] ? trace_hardirqs_on+0x10/0x10 [ 518.566176] xfs_vm_writepages+0x258/0x340 [ 518.570393] ? xfs_vm_writepage+0xd0/0xd0 [ 518.574518] ? xfs_vm_writepage+0xd0/0xd0 [ 518.578639] do_writepages+0xc3/0x240 [ 518.582417] ? page_writeback_cpu_online+0x10/0x10 [ 518.587334] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 518.592770] __writeback_single_inode+0xda/0x1010 [ 518.597590] writeback_sb_inodes+0x48b/0xd30 [ 518.601977] ? wbc_detach_inode+0x780/0x780 [ 518.606287] ? queue_io+0x400/0x5a0 [ 518.609899] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 518.615325] wb_writeback+0x243/0xb80 [ 518.619106] ? writeback_inodes_wb.constprop.0+0x1a0/0x1a0 [ 518.624716] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 518.630151] wb_workfn+0x2bd/0xf50 [ 518.633668] ? process_one_work+0x6c4/0x14a0 [ 518.638054] ? inode_wait_for_writeback+0x30/0x30 [ 518.642869] ? lock_acquire+0x170/0x3f0 [ 518.646830] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 518.652264] process_one_work+0x793/0x14a0 [ 518.656477] ? work_busy+0x320/0x320 [ 518.660166] ? worker_thread+0x158/0xff0 [ 518.664201] ? _raw_spin_unlock_irq+0x24/0x80 [ 518.668677] worker_thread+0x5cc/0xff0 [ 518.672543] ? rescuer_thread+0xc80/0xc80 [ 518.676667] kthread+0x30d/0x420 [ 518.680009] ? kthread_create_on_node+0xd0/0xd0 [ 518.684660] ret_from_fork+0x24/0x30 [ 518.688951] XFS (loop1): page discard on page ffffea0001092900, inode 0x29, offset 1339392. [ 518.697863] XFS (loop1): Internal error XFS_WANT_CORRUPTED_RETURN at line 431 of file fs/xfs/libxfs/xfs_alloc.c. Caller xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 518.712442] CPU: 1 PID: 2818 Comm: kworker/u4:3 Not tainted 4.14.303-syzkaller #0 [ 518.720052] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023 [ 518.729393] Workqueue: writeback wb_workfn (flush-7:1) [ 518.734653] Call Trace: [ 518.737232] dump_stack+0x1b2/0x281 [ 518.740850] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 518.746109] xfs_error_report+0x98/0xa0 [ 518.750067] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 518.755320] xfs_alloc_fixup_trees+0x425/0x4f0 [ 518.759878] ? xfs_alloc_update+0x90/0x90 [ 518.764021] ? xfs_btree_rec_offset.isra.0+0x3b/0xa0 [ 518.769102] ? xfs_alloc_compute_diff+0x23c/0x3d0 [ 518.773920] xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 518.779019] ? xfs_alloc_fix_freelist+0x685/0xeb0 [ 518.783835] ? xfs_alloc_ag_vextent_size+0x1ea0/0x1ea0 [ 518.789091] ? xfs_alloc_read_agf+0xb10/0xb10 [ 518.793567] xfs_alloc_ag_vextent+0x579/0x750 [ 518.798038] ? xfs_perag_get+0x116/0x410 [ 518.802074] ? xfs_alloc_vextent+0x470/0x2010 [ 518.806550] xfs_alloc_vextent+0x10b0/0x2010 [ 518.810946] xfs_bmap_btalloc+0x9e5/0x1b20 [ 518.815181] ? xfs_bmap_adjacent+0x1480/0x1480 [ 518.819736] ? ret_from_fork+0x24/0x30 [ 518.823605] ? __xfs_bmbt_get_all+0x16/0x100 [ 518.828000] xfs_bmap_alloc+0x107/0x160 [ 518.831958] xfs_bmapi_write+0xa49/0x1d00 [ 518.836086] ? xfs_bmapi_reserve_delalloc+0x7c0/0x7c0 [ 518.841254] ? trace_hardirqs_on+0x10/0x10 [ 518.845471] ? xfs_iext_get_ext+0xeb/0x200 [ 518.849700] ? xfs_iext_idx_to_irec+0x340/0x340 [ 518.854364] ? xfs_bmap_last_extent+0x1d0/0x1d0 [ 518.859029] xfs_iomap_write_allocate+0x42b/0xa30 [ 518.863860] ? xfs_file_iomap_begin+0x1ed0/0x1ed0 [ 518.868686] ? xfs_iunlock+0x248/0x3b0 [ 518.872553] ? rcu_read_lock_sched_held+0x16c/0x1d0 [ 518.877541] ? xfs_iunlock+0x21a/0x3b0 [ 518.881405] xfs_map_blocks+0x548/0x940 [ 518.885364] ? xfs_vm_set_page_dirty+0x610/0x610 [ 518.890102] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 518.895530] xfs_do_writepage+0x422/0x13d0 [ 518.899745] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 518.904043] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 518.909471] write_cache_pages+0x505/0xd20 [ 518.913685] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 518.917985] ? clear_page_dirty_for_io+0xb80/0xb80 [ 518.922914] ? trace_hardirqs_on+0x10/0x10 [ 518.927134] xfs_vm_writepages+0x258/0x340 [ 518.931354] ? xfs_vm_writepage+0xd0/0xd0 [ 518.935480] ? xfs_vm_writepage+0xd0/0xd0 [ 518.939603] do_writepages+0xc3/0x240 [ 518.943380] ? page_writeback_cpu_online+0x10/0x10 [ 518.948288] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 518.953713] __writeback_single_inode+0xda/0x1010 [ 518.958530] writeback_sb_inodes+0x48b/0xd30 [ 518.962916] ? wbc_detach_inode+0x780/0x780 [ 518.967227] ? queue_io+0x400/0x5a0 [ 518.970839] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 518.976286] wb_writeback+0x243/0xb80 [ 518.980068] ? writeback_inodes_wb.constprop.0+0x1a0/0x1a0 [ 518.985676] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 518.991114] wb_workfn+0x2bd/0xf50 [ 518.994636] ? process_one_work+0x6c4/0x14a0 [ 518.999025] ? inode_wait_for_writeback+0x30/0x30 [ 519.003840] ? lock_acquire+0x170/0x3f0 [ 519.007801] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 519.013232] process_one_work+0x793/0x14a0 [ 519.017448] ? work_busy+0x320/0x320 [ 519.021138] ? worker_thread+0x158/0xff0 [ 519.025183] ? _raw_spin_unlock_irq+0x24/0x80 [ 519.029661] worker_thread+0x5cc/0xff0 [ 519.033527] ? rescuer_thread+0xc80/0xc80 [ 519.037673] kthread+0x30d/0x420 [ 519.041015] ? kthread_create_on_node+0xd0/0xd0 [ 519.045669] ret_from_fork+0x24/0x30 [ 519.049761] XFS (loop1): page discard on page ffffea0001092940, inode 0x29, offset 1343488. [ 519.058680] XFS (loop1): Internal error XFS_WANT_CORRUPTED_RETURN at line 431 of file fs/xfs/libxfs/xfs_alloc.c. Caller xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 519.073227] CPU: 1 PID: 2818 Comm: kworker/u4:3 Not tainted 4.14.303-syzkaller #0 [ 519.080841] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023 [ 519.090189] Workqueue: writeback wb_workfn (flush-7:1) [ 519.095443] Call Trace: [ 519.098009] dump_stack+0x1b2/0x281 [ 519.101612] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 519.106867] xfs_error_report+0x98/0xa0 [ 519.110823] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 519.116079] xfs_alloc_fixup_trees+0x425/0x4f0 [ 519.120638] ? xfs_alloc_update+0x90/0x90 [ 519.124767] ? xfs_btree_rec_offset.isra.0+0x3b/0xa0 [ 519.129856] ? xfs_alloc_compute_diff+0x23c/0x3d0 [ 519.134672] xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 519.139754] ? xfs_alloc_fix_freelist+0x685/0xeb0 [ 519.144573] ? xfs_alloc_ag_vextent_size+0x1ea0/0x1ea0 [ 519.149834] ? xfs_alloc_read_agf+0xb10/0xb10 [ 519.154314] xfs_alloc_ag_vextent+0x579/0x750 [ 519.158782] ? xfs_perag_get+0x116/0x410 [ 519.162816] ? xfs_alloc_vextent+0x470/0x2010 [ 519.167291] xfs_alloc_vextent+0x10b0/0x2010 [ 519.171686] xfs_bmap_btalloc+0x9e5/0x1b20 [ 519.175902] ? xfs_bmap_adjacent+0x1480/0x1480 [ 519.180476] ? ret_from_fork+0x24/0x30 [ 519.184346] ? __xfs_bmbt_get_all+0x16/0x100 [ 519.188755] xfs_bmap_alloc+0x107/0x160 [ 519.192720] xfs_bmapi_write+0xa49/0x1d00 [ 519.196849] ? xfs_bmapi_reserve_delalloc+0x7c0/0x7c0 [ 519.202016] ? trace_hardirqs_on+0x10/0x10 [ 519.206235] ? xfs_iext_get_ext+0xeb/0x200 [ 519.210454] ? xfs_iext_idx_to_irec+0x340/0x340 [ 519.215104] ? xfs_bmap_last_extent+0x1d0/0x1d0 [ 519.219774] xfs_iomap_write_allocate+0x42b/0xa30 [ 519.224607] ? xfs_file_iomap_begin+0x1ed0/0x1ed0 [ 519.229431] ? xfs_iunlock+0x248/0x3b0 [ 519.233299] ? rcu_read_lock_sched_held+0x16c/0x1d0 [ 519.238291] ? xfs_iunlock+0x21a/0x3b0 [ 519.242158] xfs_map_blocks+0x548/0x940 [ 519.246114] ? xfs_vm_set_page_dirty+0x610/0x610 [ 519.250855] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 519.256283] xfs_do_writepage+0x422/0x13d0 [ 519.260499] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 519.264806] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 519.270240] write_cache_pages+0x505/0xd20 [ 519.274454] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 519.278754] ? clear_page_dirty_for_io+0xb80/0xb80 [ 519.283663] ? trace_hardirqs_on+0x10/0x10 [ 519.287887] xfs_vm_writepages+0x258/0x340 [ 519.292104] ? xfs_vm_writepage+0xd0/0xd0 [ 519.296233] ? xfs_vm_writepage+0xd0/0xd0 [ 519.300355] do_writepages+0xc3/0x240 [ 519.304137] ? page_writeback_cpu_online+0x10/0x10 [ 519.309054] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 519.314480] __writeback_single_inode+0xda/0x1010 [ 519.319300] writeback_sb_inodes+0x48b/0xd30 [ 519.323686] ? wbc_detach_inode+0x780/0x780 [ 519.327998] ? queue_io+0x400/0x5a0 [ 519.331608] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 519.337055] wb_writeback+0x243/0xb80 [ 519.340834] ? writeback_inodes_wb.constprop.0+0x1a0/0x1a0 [ 519.346442] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 519.351894] wb_workfn+0x2bd/0xf50 [ 519.355414] ? process_one_work+0x6c4/0x14a0 [ 519.359796] ? inode_wait_for_writeback+0x30/0x30 [ 519.364619] ? lock_acquire+0x170/0x3f0 [ 519.368752] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 519.374199] process_one_work+0x793/0x14a0 [ 519.378417] ? work_busy+0x320/0x320 [ 519.382107] ? worker_thread+0x158/0xff0 [ 519.386152] ? _raw_spin_unlock_irq+0x24/0x80 [ 519.390633] worker_thread+0x5cc/0xff0 [ 519.394499] ? rescuer_thread+0xc80/0xc80 [ 519.398620] kthread+0x30d/0x420 [ 519.401962] ? kthread_create_on_node+0xd0/0xd0 [ 519.406616] ret_from_fork+0x24/0x30 [ 519.410855] XFS (loop1): page discard on page ffffea0001092980, inode 0x29, offset 1347584. [ 519.419759] XFS (loop1): Internal error XFS_WANT_CORRUPTED_RETURN at line 431 of file fs/xfs/libxfs/xfs_alloc.c. Caller xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 519.434323] CPU: 1 PID: 2818 Comm: kworker/u4:3 Not tainted 4.14.303-syzkaller #0 [ 519.441929] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023 [ 519.451274] Workqueue: writeback wb_workfn (flush-7:1) [ 519.456531] Call Trace: [ 519.459100] dump_stack+0x1b2/0x281 [ 519.462705] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 519.467963] xfs_error_report+0x98/0xa0 [ 519.471941] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 519.477195] xfs_alloc_fixup_trees+0x425/0x4f0 [ 519.481752] ? xfs_alloc_update+0x90/0x90 [ 519.485880] ? xfs_btree_rec_offset.isra.0+0x3b/0xa0 [ 519.490971] ? xfs_alloc_compute_diff+0x23c/0x3d0 [ 519.495787] xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 519.500889] ? xfs_alloc_fix_freelist+0x685/0xeb0 [ 519.505711] ? xfs_alloc_ag_vextent_size+0x1ea0/0x1ea0 [ 519.510994] ? xfs_alloc_read_agf+0xb10/0xb10 [ 519.515471] xfs_alloc_ag_vextent+0x579/0x750 [ 519.519941] ? xfs_perag_get+0x116/0x410 [ 519.523983] ? xfs_alloc_vextent+0x470/0x2010 [ 519.528456] xfs_alloc_vextent+0x10b0/0x2010 [ 519.532847] xfs_bmap_btalloc+0x9e5/0x1b20 [ 519.537061] ? xfs_bmap_adjacent+0x1480/0x1480 [ 519.541615] ? ret_from_fork+0x24/0x30 [ 519.545494] ? __xfs_bmbt_get_all+0x16/0x100 [ 519.549885] xfs_bmap_alloc+0x107/0x160 [ 519.553835] xfs_bmapi_write+0xa49/0x1d00 [ 519.557965] ? xfs_bmapi_reserve_delalloc+0x7c0/0x7c0 [ 519.563147] ? trace_hardirqs_on+0x10/0x10 [ 519.567368] ? xfs_iext_get_ext+0xeb/0x200 [ 519.571586] ? xfs_iext_idx_to_irec+0x340/0x340 [ 519.576236] ? xfs_bmap_last_extent+0x1d0/0x1d0 [ 519.580883] xfs_iomap_write_allocate+0x42b/0xa30 [ 519.585720] ? xfs_file_iomap_begin+0x1ed0/0x1ed0 [ 519.590542] ? xfs_iunlock+0x248/0x3b0 [ 519.594408] ? rcu_read_lock_sched_held+0x16c/0x1d0 [ 519.599401] ? xfs_iunlock+0x21a/0x3b0 [ 519.603263] xfs_map_blocks+0x548/0x940 [ 519.607221] ? xfs_vm_set_page_dirty+0x610/0x610 [ 519.611983] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 519.617409] xfs_do_writepage+0x422/0x13d0 [ 519.621621] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 519.625927] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 519.631361] write_cache_pages+0x505/0xd20 [ 519.635570] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 519.639868] ? clear_page_dirty_for_io+0xb80/0xb80 [ 519.644802] ? trace_hardirqs_on+0x10/0x10 [ 519.649048] xfs_vm_writepages+0x258/0x340 [ 519.653261] ? xfs_vm_writepage+0xd0/0xd0 [ 519.657387] ? xfs_vm_writepage+0xd0/0xd0 [ 519.661511] do_writepages+0xc3/0x240 [ 519.665295] ? page_writeback_cpu_online+0x10/0x10 [ 519.670218] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 519.675651] __writeback_single_inode+0xda/0x1010 [ 519.680475] writeback_sb_inodes+0x48b/0xd30 [ 519.684877] ? wbc_detach_inode+0x780/0x780 [ 519.689214] ? queue_io+0x400/0x5a0 [ 519.692817] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 519.698252] wb_writeback+0x243/0xb80 [ 519.702033] ? writeback_inodes_wb.constprop.0+0x1a0/0x1a0 [ 519.707644] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 519.713079] wb_workfn+0x2bd/0xf50 [ 519.716612] ? process_one_work+0x6c4/0x14a0 [ 519.721009] ? inode_wait_for_writeback+0x30/0x30 [ 519.725847] ? lock_acquire+0x170/0x3f0 [ 519.729835] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 519.735264] process_one_work+0x793/0x14a0 [ 519.739497] ? work_busy+0x320/0x320 [ 519.743198] ? worker_thread+0x158/0xff0 [ 519.747253] ? _raw_spin_unlock_irq+0x24/0x80 [ 519.751733] worker_thread+0x5cc/0xff0 [ 519.755604] ? rescuer_thread+0xc80/0xc80 [ 519.759738] kthread+0x30d/0x420 [ 519.763082] ? kthread_create_on_node+0xd0/0xd0 [ 519.767737] ret_from_fork+0x24/0x30 [ 519.771872] XFS (loop1): page discard on page ffffea00010929c0, inode 0x29, offset 1351680. [ 519.780802] XFS (loop1): Internal error XFS_WANT_CORRUPTED_RETURN at line 431 of file fs/xfs/libxfs/xfs_alloc.c. Caller xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 519.795350] CPU: 1 PID: 2818 Comm: kworker/u4:3 Not tainted 4.14.303-syzkaller #0 [ 519.802966] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023 [ 519.812323] Workqueue: writeback wb_workfn (flush-7:1) [ 519.817593] Call Trace: [ 519.820159] dump_stack+0x1b2/0x281 [ 519.823765] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 519.829023] xfs_error_report+0x98/0xa0 [ 519.832976] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 519.838234] xfs_alloc_fixup_trees+0x425/0x4f0 [ 519.842794] ? xfs_alloc_update+0x90/0x90 [ 519.846925] ? xfs_btree_rec_offset.isra.0+0x3b/0xa0 [ 519.852019] ? xfs_alloc_compute_diff+0x23c/0x3d0 [ 519.856840] xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 519.861925] ? xfs_alloc_fix_freelist+0x685/0xeb0 [ 519.866757] ? xfs_alloc_ag_vextent_size+0x1ea0/0x1ea0 [ 519.872026] ? xfs_alloc_read_agf+0xb10/0xb10 [ 519.876510] xfs_alloc_ag_vextent+0x579/0x750 [ 519.880993] ? xfs_perag_get+0x116/0x410 [ 519.885043] ? xfs_alloc_vextent+0x470/0x2010 [ 519.889528] xfs_alloc_vextent+0x10b0/0x2010 [ 519.893922] xfs_bmap_btalloc+0x9e5/0x1b20 [ 519.898136] ? xfs_bmap_adjacent+0x1480/0x1480 [ 519.902694] ? ret_from_fork+0x24/0x30 [ 519.906577] ? __xfs_bmbt_get_all+0x16/0x100 [ 519.910974] xfs_bmap_alloc+0x107/0x160 [ 519.914925] xfs_bmapi_write+0xa49/0x1d00 [ 519.919051] ? xfs_bmapi_reserve_delalloc+0x7c0/0x7c0 [ 519.924218] ? trace_hardirqs_on+0x10/0x10 [ 519.928443] ? xfs_iext_get_ext+0xeb/0x200 [ 519.932660] ? xfs_iext_idx_to_irec+0x340/0x340 [ 519.937310] ? xfs_bmap_last_extent+0x1d0/0x1d0 [ 519.941964] xfs_iomap_write_allocate+0x42b/0xa30 [ 519.946800] ? xfs_file_iomap_begin+0x1ed0/0x1ed0 [ 519.951625] ? xfs_iunlock+0x248/0x3b0 [ 519.955497] ? rcu_read_lock_sched_held+0x16c/0x1d0 [ 519.960487] ? xfs_iunlock+0x21a/0x3b0 [ 519.964349] xfs_map_blocks+0x548/0x940 [ 519.968322] ? xfs_vm_set_page_dirty+0x610/0x610 [ 519.973072] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 519.978495] xfs_do_writepage+0x422/0x13d0 [ 519.982725] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 519.987033] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 519.992468] write_cache_pages+0x505/0xd20 [ 519.996701] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 520.001001] ? clear_page_dirty_for_io+0xb80/0xb80 [ 520.005926] ? trace_hardirqs_on+0x10/0x10 [ 520.010142] xfs_vm_writepages+0x258/0x340 [ 520.014353] ? xfs_vm_writepage+0xd0/0xd0 [ 520.018490] ? xfs_vm_writepage+0xd0/0xd0 [ 520.022615] do_writepages+0xc3/0x240 [ 520.026401] ? page_writeback_cpu_online+0x10/0x10 [ 520.031319] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 520.036744] __writeback_single_inode+0xda/0x1010 [ 520.041563] writeback_sb_inodes+0x48b/0xd30 [ 520.045960] ? wbc_detach_inode+0x780/0x780 [ 520.050265] ? queue_io+0x400/0x5a0 [ 520.053869] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 520.059317] wb_writeback+0x243/0xb80 [ 520.063101] ? writeback_inodes_wb.constprop.0+0x1a0/0x1a0 [ 520.068707] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 520.074163] wb_workfn+0x2bd/0xf50 [ 520.077701] ? process_one_work+0x6c4/0x14a0 [ 520.082084] ? inode_wait_for_writeback+0x30/0x30 [ 520.086909] ? lock_acquire+0x170/0x3f0 [ 520.090867] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 520.096304] process_one_work+0x793/0x14a0 [ 520.100540] ? work_busy+0x320/0x320 [ 520.104262] ? worker_thread+0x158/0xff0 [ 520.108317] ? _raw_spin_unlock_irq+0x24/0x80 [ 520.112798] worker_thread+0x5cc/0xff0 [ 520.116687] ? rescuer_thread+0xc80/0xc80 [ 520.120828] kthread+0x30d/0x420 [ 520.124171] ? kthread_create_on_node+0xd0/0xd0 [ 520.128818] ret_from_fork+0x24/0x30 [ 520.137640] XFS (loop1): page discard on page ffffea0001092a00, inode 0x29, offset 1355776. [ 520.146575] XFS (loop1): Internal error XFS_WANT_CORRUPTED_RETURN at line 431 of file fs/xfs/libxfs/xfs_alloc.c. Caller xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 520.161650] CPU: 1 PID: 2818 Comm: kworker/u4:3 Not tainted 4.14.303-syzkaller #0 [ 520.169266] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023 [ 520.178602] Workqueue: writeback wb_workfn (flush-7:1) [ 520.183855] Call Trace: [ 520.186428] dump_stack+0x1b2/0x281 [ 520.190039] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 520.195291] xfs_error_report+0x98/0xa0 [ 520.199263] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 520.204516] xfs_alloc_fixup_trees+0x425/0x4f0 [ 520.209087] ? xfs_alloc_update+0x90/0x90 [ 520.213208] ? xfs_btree_rec_offset.isra.0+0x3b/0xa0 [ 520.218287] ? xfs_alloc_compute_diff+0x23c/0x3d0 [ 520.223106] xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 520.228188] ? xfs_alloc_fix_freelist+0x685/0xeb0 [ 520.233009] ? xfs_alloc_ag_vextent_size+0x1ea0/0x1ea0 [ 520.238265] ? xfs_alloc_read_agf+0xb10/0xb10 [ 520.242744] xfs_alloc_ag_vextent+0x579/0x750 [ 520.247217] ? xfs_perag_get+0x116/0x410 [ 520.251257] ? xfs_alloc_vextent+0x470/0x2010 [ 520.255735] xfs_alloc_vextent+0x10b0/0x2010 [ 520.260131] xfs_bmap_btalloc+0x9e5/0x1b20 [ 520.264361] ? xfs_bmap_adjacent+0x1480/0x1480 [ 520.268943] ? ret_from_fork+0x24/0x30 [ 520.272833] ? __xfs_bmbt_get_all+0x16/0x100 [ 520.277228] xfs_bmap_alloc+0x107/0x160 [ 520.281178] xfs_bmapi_write+0xa49/0x1d00 [ 520.285317] ? xfs_bmapi_reserve_delalloc+0x7c0/0x7c0 [ 520.290492] ? trace_hardirqs_on+0x10/0x10 [ 520.294705] ? xfs_iext_get_ext+0xeb/0x200 [ 520.298916] ? xfs_iext_idx_to_irec+0x340/0x340 [ 520.303566] ? xfs_bmap_last_extent+0x1d0/0x1d0 [ 520.308216] xfs_iomap_write_allocate+0x42b/0xa30 [ 520.313038] ? xfs_file_iomap_begin+0x1ed0/0x1ed0 [ 520.317854] ? xfs_iunlock+0x248/0x3b0 [ 520.321723] ? rcu_read_lock_sched_held+0x16c/0x1d0 [ 520.326718] ? xfs_iunlock+0x21a/0x3b0 [ 520.330587] xfs_map_blocks+0x548/0x940 [ 520.334542] ? xfs_vm_set_page_dirty+0x610/0x610 [ 520.339279] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 520.344711] xfs_do_writepage+0x422/0x13d0 [ 520.348932] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 520.353231] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 520.358659] write_cache_pages+0x505/0xd20 [ 520.362869] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 520.367178] ? clear_page_dirty_for_io+0xb80/0xb80 [ 520.372092] ? trace_hardirqs_on+0x10/0x10 [ 520.376307] xfs_vm_writepages+0x258/0x340 [ 520.380517] ? xfs_vm_writepage+0xd0/0xd0 [ 520.384651] ? xfs_vm_writepage+0xd0/0xd0 [ 520.388782] do_writepages+0xc3/0x240 [ 520.392561] ? page_writeback_cpu_online+0x10/0x10 [ 520.397470] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 520.402896] __writeback_single_inode+0xda/0x1010 [ 520.407722] writeback_sb_inodes+0x48b/0xd30 [ 520.412117] ? wbc_detach_inode+0x780/0x780 [ 520.416424] ? queue_io+0x400/0x5a0 [ 520.420030] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 520.425465] wb_writeback+0x243/0xb80 [ 520.429252] ? writeback_inodes_wb.constprop.0+0x1a0/0x1a0 [ 520.434856] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 520.440281] wb_workfn+0x2bd/0xf50 [ 520.443826] ? process_one_work+0x6c4/0x14a0 [ 520.448218] ? inode_wait_for_writeback+0x30/0x30 [ 520.453044] ? lock_acquire+0x170/0x3f0 [ 520.456994] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 520.462419] process_one_work+0x793/0x14a0 [ 520.466642] ? work_busy+0x320/0x320 [ 520.470336] ? worker_thread+0x158/0xff0 [ 520.474378] ? _raw_spin_unlock_irq+0x24/0x80 [ 520.478854] worker_thread+0x5cc/0xff0 [ 520.482721] ? rescuer_thread+0xc80/0xc80 [ 520.486850] kthread+0x30d/0x420 [ 520.490197] ? kthread_create_on_node+0xd0/0xd0 [ 520.494841] ret_from_fork+0x24/0x30 [ 520.499210] XFS (loop1): page discard on page ffffea0001092a40, inode 0x29, offset 1359872. [ 520.508118] XFS (loop1): Internal error XFS_WANT_CORRUPTED_RETURN at line 431 of file fs/xfs/libxfs/xfs_alloc.c. Caller xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 520.522673] CPU: 1 PID: 2818 Comm: kworker/u4:3 Not tainted 4.14.303-syzkaller #0 [ 520.530278] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023 [ 520.539617] Workqueue: writeback wb_workfn (flush-7:1) [ 520.544873] Call Trace: [ 520.547453] dump_stack+0x1b2/0x281 [ 520.551057] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 520.556313] xfs_error_report+0x98/0xa0 [ 520.560271] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 520.565527] xfs_alloc_fixup_trees+0x425/0x4f0 [ 520.570084] ? xfs_alloc_update+0x90/0x90 [ 520.574206] ? xfs_btree_rec_offset.isra.0+0x3b/0xa0 [ 520.579287] ? xfs_alloc_compute_diff+0x23c/0x3d0 [ 520.584126] xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 520.589208] ? xfs_alloc_fix_freelist+0x685/0xeb0 [ 520.594028] ? xfs_alloc_ag_vextent_size+0x1ea0/0x1ea0 [ 520.599281] ? xfs_alloc_read_agf+0xb10/0xb10 [ 520.603758] xfs_alloc_ag_vextent+0x579/0x750 [ 520.608230] ? xfs_perag_get+0x116/0x410 [ 520.612267] ? xfs_alloc_vextent+0x470/0x2010 [ 520.616744] xfs_alloc_vextent+0x10b0/0x2010 [ 520.621141] xfs_bmap_btalloc+0x9e5/0x1b20 [ 520.625356] ? xfs_bmap_adjacent+0x1480/0x1480 [ 520.629916] ? ret_from_fork+0x24/0x30 [ 520.633783] ? __xfs_bmbt_get_all+0x16/0x100 [ 520.638169] xfs_bmap_alloc+0x107/0x160 [ 520.642121] xfs_bmapi_write+0xa49/0x1d00 [ 520.646249] ? xfs_bmapi_reserve_delalloc+0x7c0/0x7c0 [ 520.651415] ? trace_hardirqs_on+0x10/0x10 [ 520.655635] ? xfs_iext_get_ext+0xeb/0x200 [ 520.659854] ? xfs_iext_idx_to_irec+0x340/0x340 [ 520.664537] ? xfs_bmap_last_extent+0x1d0/0x1d0 [ 520.669190] xfs_iomap_write_allocate+0x42b/0xa30 [ 520.674012] ? xfs_file_iomap_begin+0x1ed0/0x1ed0 [ 520.678832] ? xfs_iunlock+0x248/0x3b0 [ 520.682700] ? rcu_read_lock_sched_held+0x16c/0x1d0 [ 520.687702] ? xfs_iunlock+0x21a/0x3b0 [ 520.691579] xfs_map_blocks+0x548/0x940 [ 520.695551] ? xfs_vm_set_page_dirty+0x610/0x610 [ 520.700295] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 520.705721] xfs_do_writepage+0x422/0x13d0 [ 520.709941] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 520.714253] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 520.719689] write_cache_pages+0x505/0xd20 [ 520.723904] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 520.728206] ? clear_page_dirty_for_io+0xb80/0xb80 [ 520.733118] ? trace_hardirqs_on+0x10/0x10 [ 520.737341] xfs_vm_writepages+0x258/0x340 [ 520.741563] ? xfs_vm_writepage+0xd0/0xd0 [ 520.745690] ? xfs_vm_writepage+0xd0/0xd0 [ 520.749813] do_writepages+0xc3/0x240 [ 520.753595] ? page_writeback_cpu_online+0x10/0x10 [ 520.758506] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 520.763937] __writeback_single_inode+0xda/0x1010 [ 520.768756] writeback_sb_inodes+0x48b/0xd30 [ 520.773140] ? wbc_detach_inode+0x780/0x780 [ 520.777446] ? queue_io+0x400/0x5a0 [ 520.781053] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 520.786478] wb_writeback+0x243/0xb80 [ 520.790254] ? writeback_inodes_wb.constprop.0+0x1a0/0x1a0 [ 520.795865] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 520.801298] wb_workfn+0x2bd/0xf50 [ 520.804816] ? process_one_work+0x6c4/0x14a0 [ 520.809202] ? inode_wait_for_writeback+0x30/0x30 [ 520.814024] ? lock_acquire+0x170/0x3f0 [ 520.817983] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 520.823426] process_one_work+0x793/0x14a0 [ 520.827647] ? work_busy+0x320/0x320 [ 520.831336] ? worker_thread+0x158/0xff0 [ 520.835383] ? _raw_spin_unlock_irq+0x24/0x80 [ 520.839863] worker_thread+0x5cc/0xff0 [ 520.843727] ? rescuer_thread+0xc80/0xc80 [ 520.847851] kthread+0x30d/0x420 [ 520.851189] ? kthread_create_on_node+0xd0/0xd0 [ 520.855845] ret_from_fork+0x24/0x30 [ 520.860154] XFS (loop1): page discard on page ffffea0001092a80, inode 0x29, offset 1363968. [ 520.869071] XFS (loop1): Internal error XFS_WANT_CORRUPTED_RETURN at line 431 of file fs/xfs/libxfs/xfs_alloc.c. Caller xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 520.883624] CPU: 1 PID: 2818 Comm: kworker/u4:3 Not tainted 4.14.303-syzkaller #0 [ 520.891230] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023 [ 520.900579] Workqueue: writeback wb_workfn (flush-7:1) [ 520.905836] Call Trace: [ 520.908400] dump_stack+0x1b2/0x281 [ 520.912005] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 520.917263] xfs_error_report+0x98/0xa0 [ 520.921220] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 520.926476] xfs_alloc_fixup_trees+0x425/0x4f0 [ 520.931035] ? xfs_alloc_update+0x90/0x90 [ 520.935163] ? xfs_btree_rec_offset.isra.0+0x3b/0xa0 [ 520.940253] ? xfs_alloc_compute_diff+0x23c/0x3d0 [ 520.945074] xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 520.950158] ? xfs_alloc_fix_freelist+0x685/0xeb0 [ 520.954981] ? xfs_alloc_ag_vextent_size+0x1ea0/0x1ea0 [ 520.960240] ? xfs_alloc_read_agf+0xb10/0xb10 [ 520.964734] xfs_alloc_ag_vextent+0x579/0x750 [ 520.969209] ? xfs_perag_get+0x116/0x410 [ 520.973244] ? xfs_alloc_vextent+0x470/0x2010 [ 520.977719] xfs_alloc_vextent+0x10b0/0x2010 [ 520.982114] xfs_bmap_btalloc+0x9e5/0x1b20 [ 520.986325] ? xfs_bmap_adjacent+0x1480/0x1480 [ 520.990883] ? ret_from_fork+0x24/0x30 [ 520.994763] ? __xfs_bmbt_get_all+0x16/0x100 [ 520.999151] xfs_bmap_alloc+0x107/0x160 [ 521.003100] xfs_bmapi_write+0xa49/0x1d00 [ 521.007225] ? xfs_bmapi_reserve_delalloc+0x7c0/0x7c0 [ 521.012391] ? trace_hardirqs_on+0x10/0x10 [ 521.016609] ? xfs_iext_get_ext+0xeb/0x200 [ 521.020825] ? xfs_iext_idx_to_irec+0x340/0x340 [ 521.025475] ? xfs_bmap_last_extent+0x1d0/0x1d0 [ 521.030120] xfs_iomap_write_allocate+0x42b/0xa30 [ 521.034954] ? xfs_file_iomap_begin+0x1ed0/0x1ed0 [ 521.039779] ? xfs_iunlock+0x248/0x3b0 [ 521.043660] ? rcu_read_lock_sched_held+0x16c/0x1d0 [ 521.048647] ? xfs_iunlock+0x21a/0x3b0 [ 521.052510] xfs_map_blocks+0x548/0x940 [ 521.056471] ? xfs_vm_set_page_dirty+0x610/0x610 [ 521.061210] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 521.066634] xfs_do_writepage+0x422/0x13d0 [ 521.070846] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 521.075159] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 521.080595] write_cache_pages+0x505/0xd20 [ 521.084805] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 521.089103] ? clear_page_dirty_for_io+0xb80/0xb80 [ 521.094010] ? trace_hardirqs_on+0x10/0x10 [ 521.098226] xfs_vm_writepages+0x258/0x340 [ 521.102445] ? xfs_vm_writepage+0xd0/0xd0 [ 521.106570] ? xfs_vm_writepage+0xd0/0xd0 [ 521.110690] do_writepages+0xc3/0x240 [ 521.114468] ? page_writeback_cpu_online+0x10/0x10 [ 521.119378] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 521.124814] __writeback_single_inode+0xda/0x1010 [ 521.129662] writeback_sb_inodes+0x48b/0xd30 [ 521.134048] ? wbc_detach_inode+0x780/0x780 [ 521.138360] ? queue_io+0x400/0x5a0 [ 521.141971] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 521.147399] wb_writeback+0x243/0xb80 [ 521.151179] ? writeback_inodes_wb.constprop.0+0x1a0/0x1a0 [ 521.156788] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 521.162242] wb_workfn+0x2bd/0xf50 [ 521.165776] ? process_one_work+0x6c4/0x14a0 [ 521.170158] ? inode_wait_for_writeback+0x30/0x30 [ 521.174982] ? lock_acquire+0x170/0x3f0 [ 521.178946] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 521.184373] process_one_work+0x793/0x14a0 [ 521.188586] ? work_busy+0x320/0x320 [ 521.192272] ? worker_thread+0x158/0xff0 [ 521.196317] ? _raw_spin_unlock_irq+0x24/0x80 [ 521.200815] worker_thread+0x5cc/0xff0 [ 521.204683] ? rescuer_thread+0xc80/0xc80 [ 521.208805] kthread+0x30d/0x420 [ 521.212147] ? kthread_create_on_node+0xd0/0xd0 [ 521.216796] ret_from_fork+0x24/0x30 [ 521.220891] XFS (loop1): page discard on page ffffea0001092ac0, inode 0x29, offset 1368064. [ 521.229794] XFS (loop1): Internal error XFS_WANT_CORRUPTED_RETURN at line 431 of file fs/xfs/libxfs/xfs_alloc.c. Caller xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 521.244337] CPU: 1 PID: 2818 Comm: kworker/u4:3 Not tainted 4.14.303-syzkaller #0 [ 521.251944] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023 [ 521.261292] Workqueue: writeback wb_workfn (flush-7:1) [ 521.266548] Call Trace: [ 521.269119] dump_stack+0x1b2/0x281 [ 521.272722] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 521.277978] xfs_error_report+0x98/0xa0 [ 521.281962] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 521.287215] xfs_alloc_fixup_trees+0x425/0x4f0 [ 521.291776] ? xfs_alloc_update+0x90/0x90 [ 521.295907] ? xfs_btree_rec_offset.isra.0+0x3b/0xa0 [ 521.300994] ? xfs_alloc_compute_diff+0x23c/0x3d0 [ 521.305813] xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 521.310916] ? xfs_alloc_fix_freelist+0x685/0xeb0 [ 521.315739] ? xfs_alloc_ag_vextent_size+0x1ea0/0x1ea0 [ 521.321004] ? xfs_alloc_read_agf+0xb10/0xb10 [ 521.325486] xfs_alloc_ag_vextent+0x579/0x750 [ 521.329957] ? xfs_perag_get+0x116/0x410 [ 521.333992] ? xfs_alloc_vextent+0x470/0x2010 [ 521.338462] xfs_alloc_vextent+0x10b0/0x2010 [ 521.342858] xfs_bmap_btalloc+0x9e5/0x1b20 [ 521.347072] ? xfs_bmap_adjacent+0x1480/0x1480 [ 521.351631] ? ret_from_fork+0x24/0x30 [ 521.355510] ? __xfs_bmbt_get_all+0x16/0x100 [ 521.359924] xfs_bmap_alloc+0x107/0x160 [ 521.363877] xfs_bmapi_write+0xa49/0x1d00 [ 521.368002] ? xfs_bmapi_reserve_delalloc+0x7c0/0x7c0 [ 521.373170] ? trace_hardirqs_on+0x10/0x10 [ 521.377388] ? xfs_iext_get_ext+0xeb/0x200 [ 521.381608] ? xfs_iext_idx_to_irec+0x340/0x340 [ 521.386275] ? xfs_bmap_last_extent+0x1d0/0x1d0 [ 521.390924] xfs_iomap_write_allocate+0x42b/0xa30 [ 521.395756] ? xfs_file_iomap_begin+0x1ed0/0x1ed0 [ 521.400590] ? xfs_iunlock+0x248/0x3b0 [ 521.404459] ? rcu_read_lock_sched_held+0x16c/0x1d0 [ 521.409451] ? xfs_iunlock+0x21a/0x3b0 [ 521.413312] xfs_map_blocks+0x548/0x940 [ 521.417269] ? xfs_vm_set_page_dirty+0x610/0x610 [ 521.422009] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 521.427436] xfs_do_writepage+0x422/0x13d0 [ 521.431648] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 521.435954] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 521.441387] write_cache_pages+0x505/0xd20 [ 521.445599] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 521.449899] ? clear_page_dirty_for_io+0xb80/0xb80 [ 521.454826] ? trace_hardirqs_on+0x10/0x10 [ 521.459054] xfs_vm_writepages+0x258/0x340 [ 521.463273] ? xfs_vm_writepage+0xd0/0xd0 [ 521.467399] ? xfs_vm_writepage+0xd0/0xd0 [ 521.471521] do_writepages+0xc3/0x240 [ 521.475307] ? page_writeback_cpu_online+0x10/0x10 [ 521.480220] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 521.485650] __writeback_single_inode+0xda/0x1010 [ 521.490467] writeback_sb_inodes+0x48b/0xd30 [ 521.494864] ? wbc_detach_inode+0x780/0x780 [ 521.499173] ? queue_io+0x400/0x5a0 [ 521.502796] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 521.508238] wb_writeback+0x243/0xb80 [ 521.512023] ? writeback_inodes_wb.constprop.0+0x1a0/0x1a0 [ 521.517635] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 521.523066] wb_workfn+0x2bd/0xf50 [ 521.526582] ? process_one_work+0x6c4/0x14a0 [ 521.531052] ? inode_wait_for_writeback+0x30/0x30 [ 521.535881] ? lock_acquire+0x170/0x3f0 [ 521.539840] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 521.545266] process_one_work+0x793/0x14a0 [ 521.549479] ? work_busy+0x320/0x320 [ 521.553166] ? worker_thread+0x158/0xff0 [ 521.557212] ? _raw_spin_unlock_irq+0x24/0x80 [ 521.561691] worker_thread+0x5cc/0xff0 [ 521.565558] ? rescuer_thread+0xc80/0xc80 [ 521.569681] kthread+0x30d/0x420 [ 521.573020] ? kthread_create_on_node+0xd0/0xd0 [ 521.577668] ret_from_fork+0x24/0x30 [ 521.581907] XFS (loop1): page discard on page ffffea0001092b00, inode 0x29, offset 1372160. [ 521.590807] XFS (loop1): Internal error XFS_WANT_CORRUPTED_RETURN at line 431 of file fs/xfs/libxfs/xfs_alloc.c. Caller xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 521.605355] CPU: 1 PID: 2818 Comm: kworker/u4:3 Not tainted 4.14.303-syzkaller #0 [ 521.612957] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023 [ 521.622298] Workqueue: writeback wb_workfn (flush-7:1) [ 521.627573] Call Trace: [ 521.630152] dump_stack+0x1b2/0x281 [ 521.633754] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 521.639010] xfs_error_report+0x98/0xa0 [ 521.642963] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 521.648218] xfs_alloc_fixup_trees+0x425/0x4f0 [ 521.652778] ? xfs_alloc_update+0x90/0x90 [ 521.656908] ? xfs_btree_rec_offset.isra.0+0x3b/0xa0 [ 521.661993] ? xfs_alloc_compute_diff+0x23c/0x3d0 [ 521.666816] xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 521.671899] ? xfs_alloc_fix_freelist+0x685/0xeb0 [ 521.676721] ? xfs_alloc_ag_vextent_size+0x1ea0/0x1ea0 [ 521.681985] ? xfs_alloc_read_agf+0xb10/0xb10 [ 521.686466] xfs_alloc_ag_vextent+0x579/0x750 [ 521.690935] ? xfs_perag_get+0x116/0x410 [ 521.694971] ? xfs_alloc_vextent+0x470/0x2010 [ 521.699449] xfs_alloc_vextent+0x10b0/0x2010 [ 521.703858] xfs_bmap_btalloc+0x9e5/0x1b20 [ 521.708074] ? xfs_bmap_adjacent+0x1480/0x1480 [ 521.712630] ? ret_from_fork+0x24/0x30 [ 521.716511] ? __xfs_bmbt_get_all+0x16/0x100 [ 521.720904] xfs_bmap_alloc+0x107/0x160 [ 521.724854] xfs_bmapi_write+0xa49/0x1d00 [ 521.728983] ? xfs_bmapi_reserve_delalloc+0x7c0/0x7c0 [ 521.734148] ? trace_hardirqs_on+0x10/0x10 [ 521.738360] ? xfs_iext_get_ext+0xeb/0x200 [ 521.742571] ? xfs_iext_idx_to_irec+0x340/0x340 [ 521.747239] ? xfs_bmap_last_extent+0x1d0/0x1d0 [ 521.751888] xfs_iomap_write_allocate+0x42b/0xa30 [ 521.756725] ? xfs_file_iomap_begin+0x1ed0/0x1ed0 [ 521.761548] ? xfs_iunlock+0x248/0x3b0 [ 521.765418] ? rcu_read_lock_sched_held+0x16c/0x1d0 [ 521.770410] ? xfs_iunlock+0x21a/0x3b0 [ 521.774273] xfs_map_blocks+0x548/0x940 [ 521.778223] ? xfs_vm_set_page_dirty+0x610/0x610 [ 521.782956] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 521.788399] xfs_do_writepage+0x422/0x13d0 [ 521.792613] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 521.796925] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 521.802358] write_cache_pages+0x505/0xd20 [ 521.806568] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 521.810883] ? clear_page_dirty_for_io+0xb80/0xb80 [ 521.815813] ? trace_hardirqs_on+0x10/0x10 [ 521.820032] xfs_vm_writepages+0x258/0x340 [ 521.824243] ? xfs_vm_writepage+0xd0/0xd0 [ 521.828367] ? xfs_vm_writepage+0xd0/0xd0 [ 521.832507] do_writepages+0xc3/0x240 [ 521.836305] ? page_writeback_cpu_online+0x10/0x10 [ 521.841230] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 521.846667] __writeback_single_inode+0xda/0x1010 [ 521.851491] writeback_sb_inodes+0x48b/0xd30 [ 521.855890] ? wbc_detach_inode+0x780/0x780 [ 521.860211] ? queue_io+0x400/0x5a0 [ 521.863827] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 521.869261] wb_writeback+0x243/0xb80 [ 521.873038] ? writeback_inodes_wb.constprop.0+0x1a0/0x1a0 [ 521.878637] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 521.884062] wb_workfn+0x2bd/0xf50 [ 521.887578] ? process_one_work+0x6c4/0x14a0 [ 521.891962] ? inode_wait_for_writeback+0x30/0x30 [ 521.896782] ? lock_acquire+0x170/0x3f0 [ 521.900732] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 521.906167] process_one_work+0x793/0x14a0 [ 521.910389] ? work_busy+0x320/0x320 [ 521.914075] ? worker_thread+0x158/0xff0 [ 521.918113] ? _raw_spin_unlock_irq+0x24/0x80 [ 521.922583] worker_thread+0x5cc/0xff0 [ 521.926448] ? rescuer_thread+0xc80/0xc80 [ 521.930568] kthread+0x30d/0x420 [ 521.933911] ? kthread_create_on_node+0xd0/0xd0 [ 521.938554] ret_from_fork+0x24/0x30 [ 521.942678] XFS (loop1): page discard on page ffffea0001092b40, inode 0x29, offset 1376256. [ 521.951577] XFS (loop1): Internal error XFS_WANT_CORRUPTED_RETURN at line 431 of file fs/xfs/libxfs/xfs_alloc.c. Caller xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 521.966127] CPU: 1 PID: 2818 Comm: kworker/u4:3 Not tainted 4.14.303-syzkaller #0 [ 521.973736] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023 [ 521.983103] Workqueue: writeback wb_workfn (flush-7:1) [ 521.988359] Call Trace: [ 521.990923] dump_stack+0x1b2/0x281 [ 521.994536] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 521.999799] xfs_error_report+0x98/0xa0 [ 522.003768] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 522.009036] xfs_alloc_fixup_trees+0x425/0x4f0 [ 522.013601] ? xfs_alloc_update+0x90/0x90 [ 522.017734] ? xfs_btree_rec_offset.isra.0+0x3b/0xa0 [ 522.022831] ? xfs_alloc_compute_diff+0x23c/0x3d0 [ 522.027650] xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 522.032821] ? xfs_alloc_fix_freelist+0x685/0xeb0 [ 522.037644] ? xfs_alloc_ag_vextent_size+0x1ea0/0x1ea0 [ 522.042908] ? xfs_alloc_read_agf+0xb10/0xb10 [ 522.047409] xfs_alloc_ag_vextent+0x579/0x750 [ 522.051883] ? xfs_perag_get+0x116/0x410 [ 522.055931] ? xfs_alloc_vextent+0x470/0x2010 [ 522.060408] xfs_alloc_vextent+0x10b0/0x2010 [ 522.064815] xfs_bmap_btalloc+0x9e5/0x1b20 [ 522.069029] ? xfs_bmap_adjacent+0x1480/0x1480 [ 522.073592] ? ret_from_fork+0x24/0x30 [ 522.077481] ? __xfs_bmbt_get_all+0x16/0x100 [ 522.081891] xfs_bmap_alloc+0x107/0x160 [ 522.085841] xfs_bmapi_write+0xa49/0x1d00 [ 522.089968] ? xfs_bmapi_reserve_delalloc+0x7c0/0x7c0 [ 522.095137] ? trace_hardirqs_on+0x10/0x10 [ 522.099356] ? xfs_iext_get_ext+0xeb/0x200 [ 522.103565] ? xfs_iext_idx_to_irec+0x340/0x340 [ 522.108212] ? xfs_bmap_last_extent+0x1d0/0x1d0 [ 522.112864] xfs_iomap_write_allocate+0x42b/0xa30 [ 522.117701] ? xfs_file_iomap_begin+0x1ed0/0x1ed0 [ 522.122527] ? xfs_iunlock+0x248/0x3b0 [ 522.126394] ? rcu_read_lock_sched_held+0x16c/0x1d0 [ 522.131383] ? xfs_iunlock+0x21a/0x3b0 [ 522.135253] xfs_map_blocks+0x548/0x940 [ 522.139210] ? xfs_vm_set_page_dirty+0x610/0x610 [ 522.143942] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 522.149367] xfs_do_writepage+0x422/0x13d0 [ 522.153579] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 522.157891] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 522.163328] write_cache_pages+0x505/0xd20 [ 522.167538] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 522.171837] ? clear_page_dirty_for_io+0xb80/0xb80 [ 522.176766] ? trace_hardirqs_on+0x10/0x10 [ 522.180988] xfs_vm_writepages+0x258/0x340 [ 522.185198] ? xfs_vm_writepage+0xd0/0xd0 [ 522.189323] ? xfs_vm_writepage+0xd0/0xd0 [ 522.193444] do_writepages+0xc3/0x240 [ 522.197231] ? page_writeback_cpu_online+0x10/0x10 [ 522.202144] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 522.207572] __writeback_single_inode+0xda/0x1010 [ 522.212391] writeback_sb_inodes+0x48b/0xd30 [ 522.216788] ? wbc_detach_inode+0x780/0x780 [ 522.221093] ? queue_io+0x400/0x5a0 [ 522.224696] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 522.230120] wb_writeback+0x243/0xb80 [ 522.233898] ? writeback_inodes_wb.constprop.0+0x1a0/0x1a0 [ 522.239500] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 522.244927] wb_workfn+0x2bd/0xf50 [ 522.248445] ? process_one_work+0x6c4/0x14a0 [ 522.252828] ? inode_wait_for_writeback+0x30/0x30 [ 522.257652] ? lock_acquire+0x170/0x3f0 [ 522.261609] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 522.267036] process_one_work+0x793/0x14a0 [ 522.271250] ? work_busy+0x320/0x320 [ 522.274943] ? worker_thread+0x158/0xff0 [ 522.278985] ? _raw_spin_unlock_irq+0x24/0x80 [ 522.283455] worker_thread+0x5cc/0xff0 [ 522.287323] ? rescuer_thread+0xc80/0xc80 [ 522.291444] kthread+0x30d/0x420 [ 522.294791] ? kthread_create_on_node+0xd0/0xd0 [ 522.299443] ret_from_fork+0x24/0x30 [ 522.303745] XFS (loop1): page discard on page ffffea0001092b80, inode 0x29, offset 1380352. [ 522.312641] XFS (loop1): Internal error XFS_WANT_CORRUPTED_RETURN at line 431 of file fs/xfs/libxfs/xfs_alloc.c. Caller xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 522.327180] CPU: 1 PID: 2818 Comm: kworker/u4:3 Not tainted 4.14.303-syzkaller #0 [ 522.334791] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023 [ 522.344132] Workqueue: writeback wb_workfn (flush-7:1) [ 522.349384] Call Trace: [ 522.351947] dump_stack+0x1b2/0x281 [ 522.355558] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 522.360817] xfs_error_report+0x98/0xa0 [ 522.364768] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 522.370020] xfs_alloc_fixup_trees+0x425/0x4f0 [ 522.374583] ? xfs_alloc_update+0x90/0x90 [ 522.378712] ? xfs_btree_rec_offset.isra.0+0x3b/0xa0 [ 522.383796] ? xfs_alloc_compute_diff+0x23c/0x3d0 [ 522.388612] xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 522.393692] ? xfs_alloc_fix_freelist+0x685/0xeb0 [ 522.398514] ? xfs_alloc_ag_vextent_size+0x1ea0/0x1ea0 [ 522.403767] ? xfs_alloc_read_agf+0xb10/0xb10 [ 522.408244] xfs_alloc_ag_vextent+0x579/0x750 [ 522.412716] ? xfs_perag_get+0x116/0x410 [ 522.416761] ? xfs_alloc_vextent+0x470/0x2010 [ 522.421240] xfs_alloc_vextent+0x10b0/0x2010 [ 522.425627] xfs_bmap_btalloc+0x9e5/0x1b20 [ 522.429839] ? xfs_bmap_adjacent+0x1480/0x1480 [ 522.434395] ? ret_from_fork+0x24/0x30 [ 522.438264] ? __xfs_bmbt_get_all+0x16/0x100 [ 522.442649] xfs_bmap_alloc+0x107/0x160 [ 522.446600] xfs_bmapi_write+0xa49/0x1d00 [ 522.450730] ? xfs_bmapi_reserve_delalloc+0x7c0/0x7c0 [ 522.455901] ? trace_hardirqs_on+0x10/0x10 [ 522.460120] ? xfs_iext_get_ext+0xeb/0x200 [ 522.464326] ? xfs_iext_idx_to_irec+0x340/0x340 [ 522.468973] ? xfs_bmap_last_extent+0x1d0/0x1d0 [ 522.473620] xfs_iomap_write_allocate+0x42b/0xa30 [ 522.478444] ? xfs_file_iomap_begin+0x1ed0/0x1ed0 [ 522.483262] ? xfs_iunlock+0x248/0x3b0 [ 522.487129] ? rcu_read_lock_sched_held+0x16c/0x1d0 [ 522.492118] ? xfs_iunlock+0x21a/0x3b0 [ 522.495990] xfs_map_blocks+0x548/0x940 [ 522.499948] ? xfs_vm_set_page_dirty+0x610/0x610 [ 522.504680] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 522.510104] xfs_do_writepage+0x422/0x13d0 [ 522.514316] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 522.518615] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 522.524039] write_cache_pages+0x505/0xd20 [ 522.528250] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 522.532547] ? clear_page_dirty_for_io+0xb80/0xb80 [ 522.537465] ? trace_hardirqs_on+0x10/0x10 [ 522.541684] xfs_vm_writepages+0x258/0x340 [ 522.545892] ? xfs_vm_writepage+0xd0/0xd0 [ 522.550018] ? xfs_vm_writepage+0xd0/0xd0 [ 522.554137] do_writepages+0xc3/0x240 [ 522.557920] ? page_writeback_cpu_online+0x10/0x10 [ 522.562838] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 522.568265] __writeback_single_inode+0xda/0x1010 [ 522.573082] writeback_sb_inodes+0x48b/0xd30 [ 522.577481] ? wbc_detach_inode+0x780/0x780 [ 522.581786] ? queue_io+0x400/0x5a0 [ 522.585389] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 522.590815] wb_writeback+0x243/0xb80 [ 522.594601] ? writeback_inodes_wb.constprop.0+0x1a0/0x1a0 [ 522.600207] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 522.605632] wb_workfn+0x2bd/0xf50 [ 522.609150] ? process_one_work+0x6c4/0x14a0 [ 522.613534] ? inode_wait_for_writeback+0x30/0x30 [ 522.618352] ? lock_acquire+0x170/0x3f0 [ 522.622304] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 522.627734] process_one_work+0x793/0x14a0 [ 522.631944] ? work_busy+0x320/0x320 [ 522.635635] ? worker_thread+0x158/0xff0 [ 522.639691] ? _raw_spin_unlock_irq+0x24/0x80 [ 522.644162] worker_thread+0x5cc/0xff0 [ 522.648026] ? rescuer_thread+0xc80/0xc80 [ 522.652150] kthread+0x30d/0x420 [ 522.655501] ? kthread_create_on_node+0xd0/0xd0 [ 522.660153] ret_from_fork+0x24/0x30 [ 522.664522] XFS (loop1): page discard on page ffffea0001092bc0, inode 0x29, offset 1384448. [ 522.673381] XFS (loop1): Internal error XFS_WANT_CORRUPTED_RETURN at line 431 of file fs/xfs/libxfs/xfs_alloc.c. Caller xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 522.688009] CPU: 1 PID: 2818 Comm: kworker/u4:3 Not tainted 4.14.303-syzkaller #0 [ 522.695616] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023 [ 522.704964] Workqueue: writeback wb_workfn (flush-7:1) [ 522.710239] Call Trace: [ 522.712806] dump_stack+0x1b2/0x281 [ 522.716419] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 522.721677] xfs_error_report+0x98/0xa0 [ 522.725624] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 522.730879] xfs_alloc_fixup_trees+0x425/0x4f0 [ 522.735445] ? xfs_alloc_update+0x90/0x90 [ 522.739577] ? xfs_btree_rec_offset.isra.0+0x3b/0xa0 [ 522.744656] ? xfs_alloc_compute_diff+0x23c/0x3d0 [ 522.749475] xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 522.754566] ? xfs_alloc_fix_freelist+0x685/0xeb0 [ 522.759388] ? xfs_alloc_ag_vextent_size+0x1ea0/0x1ea0 [ 522.764638] ? xfs_alloc_read_agf+0xb10/0xb10 [ 522.769115] xfs_alloc_ag_vextent+0x579/0x750 [ 522.773581] ? xfs_perag_get+0x116/0x410 [ 522.777621] ? xfs_alloc_vextent+0x470/0x2010 [ 522.782100] xfs_alloc_vextent+0x10b0/0x2010 [ 522.786487] xfs_bmap_btalloc+0x9e5/0x1b20 [ 522.790705] ? xfs_bmap_adjacent+0x1480/0x1480 [ 522.795269] ? ret_from_fork+0x24/0x30 [ 522.799143] ? __xfs_bmbt_get_all+0x16/0x100 [ 522.803528] xfs_bmap_alloc+0x107/0x160 [ 522.807477] xfs_bmapi_write+0xa49/0x1d00 [ 522.811602] ? xfs_bmapi_reserve_delalloc+0x7c0/0x7c0 [ 522.816771] ? trace_hardirqs_on+0x10/0x10 [ 522.820990] ? xfs_iext_get_ext+0xeb/0x200 [ 522.825222] ? xfs_iext_idx_to_irec+0x340/0x340 [ 522.829871] ? xfs_bmap_last_extent+0x1d0/0x1d0 [ 522.834526] xfs_iomap_write_allocate+0x42b/0xa30 [ 522.839355] ? xfs_file_iomap_begin+0x1ed0/0x1ed0 [ 522.844174] ? xfs_iunlock+0x248/0x3b0 [ 522.848046] ? rcu_read_lock_sched_held+0x16c/0x1d0 [ 522.853035] ? xfs_iunlock+0x21a/0x3b0 [ 522.856903] xfs_map_blocks+0x548/0x940 [ 522.860875] ? xfs_vm_set_page_dirty+0x610/0x610 [ 522.865613] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 522.871048] xfs_do_writepage+0x422/0x13d0 [ 522.875272] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 522.879582] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 522.885011] write_cache_pages+0x505/0xd20 [ 522.889227] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 522.893526] ? clear_page_dirty_for_io+0xb80/0xb80 [ 522.898453] ? trace_hardirqs_on+0x10/0x10 [ 522.902681] xfs_vm_writepages+0x258/0x340 [ 522.906902] ? xfs_vm_writepage+0xd0/0xd0 [ 522.911032] ? xfs_vm_writepage+0xd0/0xd0 [ 522.915159] do_writepages+0xc3/0x240 [ 522.918945] ? page_writeback_cpu_online+0x10/0x10 [ 522.923854] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 522.929279] __writeback_single_inode+0xda/0x1010 [ 522.934096] writeback_sb_inodes+0x48b/0xd30 [ 522.938483] ? wbc_detach_inode+0x780/0x780 [ 522.942790] ? queue_io+0x400/0x5a0 [ 522.946391] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 522.951820] wb_writeback+0x243/0xb80 [ 522.955609] ? writeback_inodes_wb.constprop.0+0x1a0/0x1a0 [ 522.961220] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 522.966644] wb_workfn+0x2bd/0xf50 [ 522.970165] ? process_one_work+0x6c4/0x14a0 [ 522.974557] ? inode_wait_for_writeback+0x30/0x30 [ 522.979380] ? lock_acquire+0x170/0x3f0 [ 522.983330] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 522.988757] process_one_work+0x793/0x14a0 [ 522.992971] ? work_busy+0x320/0x320 [ 522.996667] ? worker_thread+0x158/0xff0 [ 523.000712] ? _raw_spin_unlock_irq+0x24/0x80 [ 523.005202] worker_thread+0x5cc/0xff0 [ 523.009067] ? rescuer_thread+0xc80/0xc80 [ 523.013194] kthread+0x30d/0x420 [ 523.016539] ? kthread_create_on_node+0xd0/0xd0 [ 523.021189] ret_from_fork+0x24/0x30 [ 523.025465] XFS (loop1): page discard on page ffffea0001092c00, inode 0x29, offset 1388544. [ 523.034333] XFS (loop1): Internal error XFS_WANT_CORRUPTED_RETURN at line 431 of file fs/xfs/libxfs/xfs_alloc.c. Caller xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 523.048877] CPU: 1 PID: 2818 Comm: kworker/u4:3 Not tainted 4.14.303-syzkaller #0 [ 523.056490] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023 [ 523.065842] Workqueue: writeback wb_workfn (flush-7:1) [ 523.071094] Call Trace: [ 523.073656] dump_stack+0x1b2/0x281 [ 523.077283] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 523.082551] xfs_error_report+0x98/0xa0 [ 523.086505] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 523.091775] xfs_alloc_fixup_trees+0x425/0x4f0 [ 523.096356] ? xfs_alloc_update+0x90/0x90 [ 523.100498] ? xfs_btree_rec_offset.isra.0+0x3b/0xa0 [ 523.105587] ? xfs_alloc_compute_diff+0x23c/0x3d0 [ 523.110406] xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 523.115508] ? xfs_alloc_fix_freelist+0x685/0xeb0 [ 523.120335] ? xfs_alloc_ag_vextent_size+0x1ea0/0x1ea0 [ 523.125586] ? xfs_alloc_read_agf+0xb10/0xb10 [ 523.130067] xfs_alloc_ag_vextent+0x579/0x750 [ 523.134545] ? xfs_perag_get+0x116/0x410 [ 523.138589] ? xfs_alloc_vextent+0x470/0x2010 [ 523.143069] xfs_alloc_vextent+0x10b0/0x2010 [ 523.147490] xfs_bmap_btalloc+0x9e5/0x1b20 [ 523.151705] ? xfs_bmap_adjacent+0x1480/0x1480 [ 523.156267] ? ret_from_fork+0x24/0x30 [ 523.160147] ? __xfs_bmbt_get_all+0x16/0x100 [ 523.164543] xfs_bmap_alloc+0x107/0x160 [ 523.168500] xfs_bmapi_write+0xa49/0x1d00 [ 523.172629] ? xfs_bmapi_reserve_delalloc+0x7c0/0x7c0 [ 523.177809] ? trace_hardirqs_on+0x10/0x10 [ 523.182041] ? xfs_iext_get_ext+0xeb/0x200 [ 523.186251] ? xfs_iext_idx_to_irec+0x340/0x340 [ 523.190933] ? xfs_bmap_last_extent+0x1d0/0x1d0 [ 523.195598] xfs_iomap_write_allocate+0x42b/0xa30 [ 523.200436] ? xfs_file_iomap_begin+0x1ed0/0x1ed0 [ 523.205263] ? xfs_iunlock+0x248/0x3b0 [ 523.209141] ? rcu_read_lock_sched_held+0x16c/0x1d0 [ 523.214151] ? xfs_iunlock+0x21a/0x3b0 [ 523.218036] xfs_map_blocks+0x548/0x940 [ 523.222008] ? xfs_vm_set_page_dirty+0x610/0x610 [ 523.226748] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 523.232180] xfs_do_writepage+0x422/0x13d0 [ 523.236419] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 523.240738] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 523.246216] write_cache_pages+0x505/0xd20 [ 523.250448] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 523.254770] ? clear_page_dirty_for_io+0xb80/0xb80 [ 523.259706] ? trace_hardirqs_on+0x10/0x10 [ 523.263938] xfs_vm_writepages+0x258/0x340 [ 523.268169] ? xfs_vm_writepage+0xd0/0xd0 [ 523.272302] ? xfs_vm_writepage+0xd0/0xd0 [ 523.276436] do_writepages+0xc3/0x240 [ 523.280230] ? page_writeback_cpu_online+0x10/0x10 [ 523.285142] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 523.290579] __writeback_single_inode+0xda/0x1010 [ 523.295414] writeback_sb_inodes+0x48b/0xd30 [ 523.299816] ? wbc_detach_inode+0x780/0x780 [ 523.304118] ? queue_io+0x400/0x5a0 [ 523.307726] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 523.313155] wb_writeback+0x243/0xb80 [ 523.316947] ? writeback_inodes_wb.constprop.0+0x1a0/0x1a0 [ 523.322562] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 523.327995] wb_workfn+0x2bd/0xf50 [ 523.331517] ? process_one_work+0x6c4/0x14a0 [ 523.335912] ? inode_wait_for_writeback+0x30/0x30 [ 523.340744] ? lock_acquire+0x170/0x3f0 [ 523.344700] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 523.350130] process_one_work+0x793/0x14a0 [ 523.354345] ? work_busy+0x320/0x320 [ 523.358042] ? worker_thread+0x158/0xff0 [ 523.362084] ? _raw_spin_unlock_irq+0x24/0x80 [ 523.366561] worker_thread+0x5cc/0xff0 [ 523.370435] ? rescuer_thread+0xc80/0xc80 [ 523.374568] kthread+0x30d/0x420 [ 523.377931] ? kthread_create_on_node+0xd0/0xd0 [ 523.382587] ret_from_fork+0x24/0x30 [ 523.386653] XFS (loop1): page discard on page ffffea0001092c40, inode 0x29, offset 1392640. [ 523.395567] XFS (loop1): Internal error XFS_WANT_CORRUPTED_RETURN at line 431 of file fs/xfs/libxfs/xfs_alloc.c. Caller xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 523.410131] CPU: 1 PID: 2818 Comm: kworker/u4:3 Not tainted 4.14.303-syzkaller #0 [ 523.417749] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023 [ 523.427104] Workqueue: writeback wb_workfn (flush-7:1) [ 523.432360] Call Trace: [ 523.434938] dump_stack+0x1b2/0x281 [ 523.438555] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 523.443811] xfs_error_report+0x98/0xa0 [ 523.447768] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 523.453025] xfs_alloc_fixup_trees+0x425/0x4f0 [ 523.457598] ? xfs_alloc_update+0x90/0x90 [ 523.461733] ? xfs_btree_rec_offset.isra.0+0x3b/0xa0 [ 523.466817] ? xfs_alloc_compute_diff+0x23c/0x3d0 [ 523.471637] xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 523.476735] ? xfs_alloc_fix_freelist+0x685/0xeb0 [ 523.481564] ? xfs_alloc_ag_vextent_size+0x1ea0/0x1ea0 [ 523.486819] ? xfs_alloc_read_agf+0xb10/0xb10 [ 523.491301] xfs_alloc_ag_vextent+0x579/0x750 [ 523.495783] ? xfs_perag_get+0x116/0x410 [ 523.499830] ? xfs_alloc_vextent+0x470/0x2010 [ 523.504303] xfs_alloc_vextent+0x10b0/0x2010 [ 523.508697] xfs_bmap_btalloc+0x9e5/0x1b20 [ 523.512913] ? xfs_bmap_adjacent+0x1480/0x1480 [ 523.517482] ? ret_from_fork+0x24/0x30 [ 523.521363] ? __xfs_bmbt_get_all+0x16/0x100 [ 523.525749] xfs_bmap_alloc+0x107/0x160 [ 523.529705] xfs_bmapi_write+0xa49/0x1d00 [ 523.533836] ? xfs_bmapi_reserve_delalloc+0x7c0/0x7c0 [ 523.539016] ? trace_hardirqs_on+0x10/0x10 [ 523.543243] ? xfs_iext_get_ext+0xeb/0x200 [ 523.547457] ? xfs_iext_idx_to_irec+0x340/0x340 [ 523.552110] ? xfs_bmap_last_extent+0x1d0/0x1d0 [ 523.556770] xfs_iomap_write_allocate+0x42b/0xa30 [ 523.561603] ? xfs_file_iomap_begin+0x1ed0/0x1ed0 [ 523.566423] ? xfs_iunlock+0x248/0x3b0 [ 523.570294] ? rcu_read_lock_sched_held+0x16c/0x1d0 [ 523.575292] ? xfs_iunlock+0x21a/0x3b0 [ 523.579167] xfs_map_blocks+0x548/0x940 [ 523.583128] ? xfs_vm_set_page_dirty+0x610/0x610 [ 523.587865] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 523.593293] xfs_do_writepage+0x422/0x13d0 [ 523.597525] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 523.601835] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 523.607268] write_cache_pages+0x505/0xd20 [ 523.611482] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 523.615796] ? clear_page_dirty_for_io+0xb80/0xb80 [ 523.620718] ? trace_hardirqs_on+0x10/0x10 [ 523.624937] xfs_vm_writepages+0x258/0x340 [ 523.629150] ? xfs_vm_writepage+0xd0/0xd0 [ 523.633280] ? xfs_vm_writepage+0xd0/0xd0 [ 523.637416] do_writepages+0xc3/0x240 [ 523.641203] ? page_writeback_cpu_online+0x10/0x10 [ 523.646112] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 523.651540] __writeback_single_inode+0xda/0x1010 [ 523.656372] writeback_sb_inodes+0x48b/0xd30 [ 523.660773] ? wbc_detach_inode+0x780/0x780 [ 523.665077] ? queue_io+0x400/0x5a0 [ 523.668682] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 523.674109] wb_writeback+0x243/0xb80 [ 523.677902] ? writeback_inodes_wb.constprop.0+0x1a0/0x1a0 [ 523.683517] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 523.688956] wb_workfn+0x2bd/0xf50 [ 523.692495] ? process_one_work+0x6c4/0x14a0 [ 523.696899] ? inode_wait_for_writeback+0x30/0x30 [ 523.701740] ? lock_acquire+0x170/0x3f0 [ 523.705698] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 523.711129] process_one_work+0x793/0x14a0 [ 523.715359] ? work_busy+0x320/0x320 [ 523.719058] ? worker_thread+0x158/0xff0 [ 523.723100] ? _raw_spin_unlock_irq+0x24/0x80 [ 523.727578] worker_thread+0x5cc/0xff0 [ 523.731448] ? rescuer_thread+0xc80/0xc80 [ 523.735585] kthread+0x30d/0x420 [ 523.738935] ? kthread_create_on_node+0xd0/0xd0 [ 523.743586] ret_from_fork+0x24/0x30 [ 523.747896] XFS (loop1): page discard on page ffffea0001092c80, inode 0x29, offset 1396736. [ 523.756801] XFS (loop1): Internal error XFS_WANT_CORRUPTED_RETURN at line 431 of file fs/xfs/libxfs/xfs_alloc.c. Caller xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 523.771348] CPU: 1 PID: 2818 Comm: kworker/u4:3 Not tainted 4.14.303-syzkaller #0 [ 523.778958] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023 [ 523.788308] Workqueue: writeback wb_workfn (flush-7:1) [ 523.793564] Call Trace: [ 523.796135] dump_stack+0x1b2/0x281 [ 523.799745] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 523.805004] xfs_error_report+0x98/0xa0 [ 523.808964] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 523.814221] xfs_alloc_fixup_trees+0x425/0x4f0 [ 523.818786] ? xfs_alloc_update+0x90/0x90 [ 523.822912] ? xfs_btree_rec_offset.isra.0+0x3b/0xa0 [ 523.827996] ? xfs_alloc_compute_diff+0x23c/0x3d0 [ 523.832816] xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 523.837900] ? xfs_alloc_fix_freelist+0x685/0xeb0 [ 523.842724] ? xfs_alloc_ag_vextent_size+0x1ea0/0x1ea0 [ 523.847982] ? xfs_alloc_read_agf+0xb10/0xb10 [ 523.852465] xfs_alloc_ag_vextent+0x579/0x750 [ 523.856939] ? xfs_perag_get+0x116/0x410 [ 523.860976] ? xfs_alloc_vextent+0x470/0x2010 [ 523.865460] xfs_alloc_vextent+0x10b0/0x2010 [ 523.869858] xfs_bmap_btalloc+0x9e5/0x1b20 [ 523.874074] ? xfs_bmap_adjacent+0x1480/0x1480 [ 523.878638] ? ret_from_fork+0x24/0x30 [ 523.882513] ? __xfs_bmbt_get_all+0x16/0x100 [ 523.886907] xfs_bmap_alloc+0x107/0x160 [ 523.890871] xfs_bmapi_write+0xa49/0x1d00 [ 523.895019] ? xfs_bmapi_reserve_delalloc+0x7c0/0x7c0 [ 523.900200] ? trace_hardirqs_on+0x10/0x10 [ 523.904425] ? xfs_iext_get_ext+0xeb/0x200 [ 523.908647] ? xfs_iext_idx_to_irec+0x340/0x340 [ 523.913301] ? xfs_bmap_last_extent+0x1d0/0x1d0 [ 523.917954] xfs_iomap_write_allocate+0x42b/0xa30 [ 523.922782] ? xfs_file_iomap_begin+0x1ed0/0x1ed0 [ 523.927603] ? xfs_iunlock+0x248/0x3b0 [ 523.931475] ? rcu_read_lock_sched_held+0x16c/0x1d0 [ 523.936475] ? xfs_iunlock+0x21a/0x3b0 [ 523.940359] xfs_map_blocks+0x548/0x940 [ 523.944331] ? xfs_vm_set_page_dirty+0x610/0x610 [ 523.949077] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 523.954513] xfs_do_writepage+0x422/0x13d0 [ 523.958739] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 523.963042] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 523.968476] write_cache_pages+0x505/0xd20 [ 523.972697] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 523.977002] ? clear_page_dirty_for_io+0xb80/0xb80 [ 523.981916] ? trace_hardirqs_on+0x10/0x10 [ 523.986140] xfs_vm_writepages+0x258/0x340 [ 523.990360] ? xfs_vm_writepage+0xd0/0xd0 [ 523.994499] ? xfs_vm_writepage+0xd0/0xd0 [ 523.998632] do_writepages+0xc3/0x240 [ 524.002416] ? page_writeback_cpu_online+0x10/0x10 [ 524.007338] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 524.012771] __writeback_single_inode+0xda/0x1010 [ 524.017596] writeback_sb_inodes+0x48b/0xd30 [ 524.021986] ? wbc_detach_inode+0x780/0x780 [ 524.026296] ? queue_io+0x400/0x5a0 [ 524.029911] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 524.035342] wb_writeback+0x243/0xb80 [ 524.039126] ? writeback_inodes_wb.constprop.0+0x1a0/0x1a0 [ 524.044744] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 524.050181] wb_workfn+0x2bd/0xf50 [ 524.053709] ? process_one_work+0x6c4/0x14a0 [ 524.058098] ? inode_wait_for_writeback+0x30/0x30 [ 524.062924] ? lock_acquire+0x170/0x3f0 [ 524.066890] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 524.072330] process_one_work+0x793/0x14a0 [ 524.076550] ? work_busy+0x320/0x320 [ 524.080242] ? worker_thread+0x158/0xff0 [ 524.084284] ? _raw_spin_unlock_irq+0x24/0x80 [ 524.088763] worker_thread+0x5cc/0xff0 [ 524.092634] ? rescuer_thread+0xc80/0xc80 [ 524.096764] kthread+0x30d/0x420 [ 524.100108] ? kthread_create_on_node+0xd0/0xd0 [ 524.104766] ret_from_fork+0x24/0x30 [ 524.108870] XFS (loop1): page discard on page ffffea0001092cc0, inode 0x29, offset 1400832. [ 524.117788] XFS (loop1): Internal error XFS_WANT_CORRUPTED_RETURN at line 431 of file fs/xfs/libxfs/xfs_alloc.c. Caller xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 524.132337] CPU: 1 PID: 2818 Comm: kworker/u4:3 Not tainted 4.14.303-syzkaller #0 [ 524.139949] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023 [ 524.149297] Workqueue: writeback wb_workfn (flush-7:1) [ 524.154554] Call Trace: [ 524.157121] dump_stack+0x1b2/0x281 [ 524.160733] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 524.165991] xfs_error_report+0x98/0xa0 [ 524.169952] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 524.175213] xfs_alloc_fixup_trees+0x425/0x4f0 [ 524.179777] ? xfs_alloc_update+0x90/0x90 [ 524.183904] ? xfs_btree_rec_offset.isra.0+0x3b/0xa0 [ 524.188988] ? xfs_alloc_compute_diff+0x23c/0x3d0 [ 524.193812] xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 524.198900] ? xfs_alloc_fix_freelist+0x685/0xeb0 [ 524.203723] ? xfs_alloc_ag_vextent_size+0x1ea0/0x1ea0 [ 524.208978] ? xfs_alloc_read_agf+0xb10/0xb10 [ 524.213459] xfs_alloc_ag_vextent+0x579/0x750 [ 524.217935] ? xfs_perag_get+0x116/0x410 [ 524.221972] ? xfs_alloc_vextent+0x470/0x2010 [ 524.226453] xfs_alloc_vextent+0x10b0/0x2010 [ 524.230853] xfs_bmap_btalloc+0x9e5/0x1b20 [ 524.235072] ? xfs_bmap_adjacent+0x1480/0x1480 [ 524.239632] ? ret_from_fork+0x24/0x30 [ 524.243506] ? __xfs_bmbt_get_all+0x16/0x100 [ 524.247906] xfs_bmap_alloc+0x107/0x160 [ 524.251867] xfs_bmapi_write+0xa49/0x1d00 [ 524.256014] ? xfs_bmapi_reserve_delalloc+0x7c0/0x7c0 [ 524.261205] ? trace_hardirqs_on+0x10/0x10 [ 524.265441] ? xfs_iext_get_ext+0xeb/0x200 [ 524.269668] ? xfs_iext_idx_to_irec+0x340/0x340 [ 524.274327] ? xfs_bmap_last_extent+0x1d0/0x1d0 [ 524.278983] xfs_iomap_write_allocate+0x42b/0xa30 [ 524.283816] ? xfs_file_iomap_begin+0x1ed0/0x1ed0 [ 524.288648] ? xfs_iunlock+0x248/0x3b0 [ 524.292525] ? rcu_read_lock_sched_held+0x16c/0x1d0 [ 524.297521] ? xfs_iunlock+0x21a/0x3b0 [ 524.301386] xfs_map_blocks+0x548/0x940 [ 524.305353] ? xfs_vm_set_page_dirty+0x610/0x610 [ 524.310099] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 524.315528] xfs_do_writepage+0x422/0x13d0 [ 524.319744] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 524.324047] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 524.329477] write_cache_pages+0x505/0xd20 [ 524.333692] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 524.337993] ? clear_page_dirty_for_io+0xb80/0xb80 [ 524.342907] ? trace_hardirqs_on+0x10/0x10 [ 524.347128] xfs_vm_writepages+0x258/0x340 [ 524.351348] ? xfs_vm_writepage+0xd0/0xd0 [ 524.355479] ? xfs_vm_writepage+0xd0/0xd0 [ 524.359606] do_writepages+0xc3/0x240 [ 524.363393] ? page_writeback_cpu_online+0x10/0x10 [ 524.368308] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 524.373742] __writeback_single_inode+0xda/0x1010 [ 524.378563] writeback_sb_inodes+0x48b/0xd30 [ 524.382954] ? wbc_detach_inode+0x780/0x780 [ 524.387266] ? queue_io+0x400/0x5a0 [ 524.390880] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 524.396312] wb_writeback+0x243/0xb80 [ 524.400096] ? writeback_inodes_wb.constprop.0+0x1a0/0x1a0 [ 524.405711] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 524.411147] wb_workfn+0x2bd/0xf50 [ 524.414673] ? process_one_work+0x6c4/0x14a0 [ 524.419060] ? inode_wait_for_writeback+0x30/0x30 [ 524.423883] ? lock_acquire+0x170/0x3f0 [ 524.427844] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 524.433283] process_one_work+0x793/0x14a0 [ 524.437530] ? work_busy+0x320/0x320 [ 524.441224] ? worker_thread+0x158/0xff0 [ 524.445273] ? _raw_spin_unlock_irq+0x24/0x80 [ 524.449756] worker_thread+0x5cc/0xff0 [ 524.453628] ? rescuer_thread+0xc80/0xc80 [ 524.457755] kthread+0x30d/0x420 [ 524.461100] ? kthread_create_on_node+0xd0/0xd0 [ 524.465763] ret_from_fork+0x24/0x30 [ 524.469854] XFS (loop1): page discard on page ffffea0001092d00, inode 0x29, offset 1404928. [ 524.478801] XFS (loop1): Internal error XFS_WANT_CORRUPTED_RETURN at line 431 of file fs/xfs/libxfs/xfs_alloc.c. Caller xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 524.493369] CPU: 1 PID: 2818 Comm: kworker/u4:3 Not tainted 4.14.303-syzkaller #0 [ 524.500987] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023 [ 524.510351] Workqueue: writeback wb_workfn (flush-7:1) [ 524.515613] Call Trace: [ 524.518203] dump_stack+0x1b2/0x281 [ 524.521814] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 524.527075] xfs_error_report+0x98/0xa0 [ 524.531037] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 524.536298] xfs_alloc_fixup_trees+0x425/0x4f0 [ 524.540861] ? xfs_alloc_update+0x90/0x90 [ 524.544995] ? xfs_btree_rec_offset.isra.0+0x3b/0xa0 [ 524.550084] ? xfs_alloc_compute_diff+0x23c/0x3d0 [ 524.554906] xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 524.559993] ? xfs_alloc_fix_freelist+0x685/0xeb0 [ 524.564819] ? xfs_alloc_ag_vextent_size+0x1ea0/0x1ea0 [ 524.570082] ? xfs_alloc_read_agf+0xb10/0xb10 [ 524.574581] xfs_alloc_ag_vextent+0x579/0x750 [ 524.579067] ? xfs_perag_get+0x116/0x410 [ 524.583109] ? xfs_alloc_vextent+0x470/0x2010 [ 524.587598] xfs_alloc_vextent+0x10b0/0x2010 [ 524.591999] xfs_bmap_btalloc+0x9e5/0x1b20 [ 524.596217] ? xfs_bmap_adjacent+0x1480/0x1480 [ 524.600779] ? ret_from_fork+0x24/0x30 [ 524.604667] ? __xfs_bmbt_get_all+0x16/0x100 [ 524.609064] xfs_bmap_alloc+0x107/0x160 [ 524.613047] xfs_bmapi_write+0xa49/0x1d00 [ 524.617207] ? xfs_bmapi_reserve_delalloc+0x7c0/0x7c0 [ 524.622379] ? trace_hardirqs_on+0x10/0x10 [ 524.626605] ? xfs_iext_get_ext+0xeb/0x200 [ 524.630825] ? xfs_iext_idx_to_irec+0x340/0x340 [ 524.635477] ? xfs_bmap_last_extent+0x1d0/0x1d0 [ 524.640128] xfs_iomap_write_allocate+0x42b/0xa30 [ 524.644969] ? xfs_file_iomap_begin+0x1ed0/0x1ed0 [ 524.649796] ? xfs_iunlock+0x248/0x3b0 [ 524.653671] ? rcu_read_lock_sched_held+0x16c/0x1d0 [ 524.658663] ? xfs_iunlock+0x21a/0x3b0 [ 524.662532] xfs_map_blocks+0x548/0x940 [ 524.666497] ? xfs_vm_set_page_dirty+0x610/0x610 [ 524.671240] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 524.676706] xfs_do_writepage+0x422/0x13d0 [ 524.680922] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 524.685231] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 524.690667] write_cache_pages+0x505/0xd20 [ 524.694883] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 524.699219] ? clear_page_dirty_for_io+0xb80/0xb80 [ 524.704132] ? trace_hardirqs_on+0x10/0x10 [ 524.708351] xfs_vm_writepages+0x258/0x340 [ 524.712563] ? xfs_vm_writepage+0xd0/0xd0 [ 524.716696] ? xfs_vm_writepage+0xd0/0xd0 [ 524.720821] do_writepages+0xc3/0x240 [ 524.724612] ? page_writeback_cpu_online+0x10/0x10 [ 524.729536] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 524.734976] __writeback_single_inode+0xda/0x1010 [ 524.739809] writeback_sb_inodes+0x48b/0xd30 [ 524.744201] ? wbc_detach_inode+0x780/0x780 [ 524.748505] ? queue_io+0x400/0x5a0 [ 524.752124] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 524.757557] wb_writeback+0x243/0xb80 [ 524.761338] ? writeback_inodes_wb.constprop.0+0x1a0/0x1a0 [ 524.766953] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 524.772389] wb_workfn+0x2bd/0xf50 [ 524.775913] ? process_one_work+0x6c4/0x14a0 [ 524.780304] ? inode_wait_for_writeback+0x30/0x30 [ 524.785131] ? lock_acquire+0x170/0x3f0 [ 524.789125] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 524.794558] process_one_work+0x793/0x14a0 [ 524.798773] ? work_busy+0x320/0x320 [ 524.802464] ? worker_thread+0x158/0xff0 [ 524.806509] ? _raw_spin_unlock_irq+0x24/0x80 [ 524.810994] worker_thread+0x5cc/0xff0 [ 524.814866] ? rescuer_thread+0xc80/0xc80 [ 524.818994] kthread+0x30d/0x420 [ 524.822369] ? kthread_create_on_node+0xd0/0xd0 [ 524.827023] ret_from_fork+0x24/0x30 [ 524.831504] XFS (loop1): page discard on page ffffea0001092d40, inode 0x29, offset 1409024. [ 524.840421] XFS (loop1): Internal error XFS_WANT_CORRUPTED_RETURN at line 431 of file fs/xfs/libxfs/xfs_alloc.c. Caller xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 524.855097] CPU: 1 PID: 2818 Comm: kworker/u4:3 Not tainted 4.14.303-syzkaller #0 [ 524.862709] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023 [ 524.872060] Workqueue: writeback wb_workfn (flush-7:1) [ 524.877359] Call Trace: [ 524.879929] dump_stack+0x1b2/0x281 [ 524.883539] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 524.888799] xfs_error_report+0x98/0xa0 [ 524.892755] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 524.898013] xfs_alloc_fixup_trees+0x425/0x4f0 [ 524.902578] ? xfs_alloc_update+0x90/0x90 [ 524.906715] ? xfs_btree_rec_offset.isra.0+0x3b/0xa0 [ 524.911807] ? xfs_alloc_compute_diff+0x23c/0x3d0 [ 524.916660] xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 524.921746] ? xfs_alloc_fix_freelist+0x685/0xeb0 [ 524.926572] ? xfs_alloc_ag_vextent_size+0x1ea0/0x1ea0 [ 524.931836] ? xfs_alloc_read_agf+0xb10/0xb10 [ 524.936319] xfs_alloc_ag_vextent+0x579/0x750 [ 524.940791] ? xfs_perag_get+0x116/0x410 [ 524.944836] ? xfs_alloc_vextent+0x470/0x2010 [ 524.949318] xfs_alloc_vextent+0x10b0/0x2010 [ 524.953711] xfs_bmap_btalloc+0x9e5/0x1b20 [ 524.957927] ? xfs_bmap_adjacent+0x1480/0x1480 [ 524.962488] ? ret_from_fork+0x24/0x30 [ 524.966381] ? __xfs_bmbt_get_all+0x16/0x100 [ 524.970776] xfs_bmap_alloc+0x107/0x160 [ 524.974740] xfs_bmapi_write+0xa49/0x1d00 [ 524.978895] ? xfs_bmapi_reserve_delalloc+0x7c0/0x7c0 [ 524.984075] ? trace_hardirqs_on+0x10/0x10 [ 524.988296] ? xfs_iext_get_ext+0xeb/0x200 [ 524.992512] ? xfs_iext_idx_to_irec+0x340/0x340 [ 524.997168] ? xfs_bmap_last_extent+0x1d0/0x1d0 [ 525.001824] xfs_iomap_write_allocate+0x42b/0xa30 [ 525.006668] ? xfs_file_iomap_begin+0x1ed0/0x1ed0 [ 525.011496] ? xfs_iunlock+0x248/0x3b0 [ 525.015369] ? rcu_read_lock_sched_held+0x16c/0x1d0 [ 525.020362] ? xfs_iunlock+0x21a/0x3b0 [ 525.024228] xfs_map_blocks+0x548/0x940 [ 525.028185] ? xfs_vm_set_page_dirty+0x610/0x610 [ 525.032923] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 525.038353] xfs_do_writepage+0x422/0x13d0 [ 525.042571] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 525.046884] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 525.052318] write_cache_pages+0x505/0xd20 [ 525.056538] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 525.060839] ? clear_page_dirty_for_io+0xb80/0xb80 [ 525.065765] ? trace_hardirqs_on+0x10/0x10 [ 525.069988] xfs_vm_writepages+0x258/0x340 [ 525.074203] ? xfs_vm_writepage+0xd0/0xd0 [ 525.078331] ? xfs_vm_writepage+0xd0/0xd0 [ 525.082458] do_writepages+0xc3/0x240 [ 525.086244] ? page_writeback_cpu_online+0x10/0x10 [ 525.091162] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 525.096596] __writeback_single_inode+0xda/0x1010 [ 525.101421] writeback_sb_inodes+0x48b/0xd30 [ 525.105826] ? wbc_detach_inode+0x780/0x780 [ 525.110139] ? queue_io+0x400/0x5a0 [ 525.113745] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 525.119175] wb_writeback+0x243/0xb80 [ 525.122956] ? writeback_inodes_wb.constprop.0+0x1a0/0x1a0 [ 525.128566] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 525.133994] wb_workfn+0x2bd/0xf50 [ 525.137516] ? process_one_work+0x6c4/0x14a0 [ 525.141904] ? inode_wait_for_writeback+0x30/0x30 [ 525.146734] ? lock_acquire+0x170/0x3f0 [ 525.150696] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 525.156152] process_one_work+0x793/0x14a0 [ 525.160371] ? work_busy+0x320/0x320 [ 525.164060] ? worker_thread+0x158/0xff0 [ 525.168109] ? _raw_spin_unlock_irq+0x24/0x80 [ 525.172588] worker_thread+0x5cc/0xff0 [ 525.176457] ? rescuer_thread+0xc80/0xc80 [ 525.180583] kthread+0x30d/0x420 [ 525.183956] ? kthread_create_on_node+0xd0/0xd0 [ 525.188614] ret_from_fork+0x24/0x30 [ 525.193162] XFS (loop1): page discard on page ffffea0001092d80, inode 0x29, offset 1413120. [ 525.202072] XFS (loop1): Internal error XFS_WANT_CORRUPTED_RETURN at line 431 of file fs/xfs/libxfs/xfs_alloc.c. Caller xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 525.220171] CPU: 1 PID: 2818 Comm: kworker/u4:3 Not tainted 4.14.303-syzkaller #0 [ 525.227795] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023 [ 525.237151] Workqueue: writeback wb_workfn (flush-7:1) [ 525.242417] Call Trace: [ 525.244995] dump_stack+0x1b2/0x281 [ 525.248614] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 525.253870] xfs_error_report+0x98/0xa0 [ 525.257824] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 525.263084] xfs_alloc_fixup_trees+0x425/0x4f0 [ 525.267659] ? xfs_alloc_update+0x90/0x90 [ 525.271793] ? xfs_btree_rec_offset.isra.0+0x3b/0xa0 [ 525.276875] ? xfs_alloc_compute_diff+0x23c/0x3d0 [ 525.281699] xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 525.286798] ? xfs_alloc_fix_freelist+0x685/0xeb0 [ 525.291629] ? xfs_alloc_ag_vextent_size+0x1ea0/0x1ea0 [ 525.296889] ? xfs_alloc_read_agf+0xb10/0xb10 [ 525.301373] xfs_alloc_ag_vextent+0x579/0x750 [ 525.305854] ? xfs_perag_get+0x116/0x410 [ 525.309900] ? xfs_alloc_vextent+0x470/0x2010 [ 525.314379] xfs_alloc_vextent+0x10b0/0x2010 [ 525.318775] xfs_bmap_btalloc+0x9e5/0x1b20 [ 525.322991] ? xfs_bmap_adjacent+0x1480/0x1480 [ 525.327556] ? ret_from_fork+0x24/0x30 [ 525.331440] ? __xfs_bmbt_get_all+0x16/0x100 [ 525.335827] xfs_bmap_alloc+0x107/0x160 [ 525.339809] xfs_bmapi_write+0xa49/0x1d00 [ 525.343941] ? xfs_bmapi_reserve_delalloc+0x7c0/0x7c0 [ 525.349111] ? trace_hardirqs_on+0x10/0x10 [ 525.353326] ? xfs_iext_get_ext+0xeb/0x200 [ 525.357540] ? xfs_iext_idx_to_irec+0x340/0x340 [ 525.362193] ? xfs_bmap_last_extent+0x1d0/0x1d0 [ 525.366856] xfs_iomap_write_allocate+0x42b/0xa30 [ 525.371694] ? xfs_file_iomap_begin+0x1ed0/0x1ed0 [ 525.376521] ? xfs_iunlock+0x248/0x3b0 [ 525.380398] ? rcu_read_lock_sched_held+0x16c/0x1d0 [ 525.385399] ? xfs_iunlock+0x21a/0x3b0 [ 525.389275] xfs_map_blocks+0x548/0x940 [ 525.393233] ? xfs_vm_set_page_dirty+0x610/0x610 [ 525.397967] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 525.403398] xfs_do_writepage+0x422/0x13d0 [ 525.407626] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 525.411937] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 525.417369] write_cache_pages+0x505/0xd20 [ 525.421584] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 525.425898] ? clear_page_dirty_for_io+0xb80/0xb80 [ 525.430819] ? trace_hardirqs_on+0x10/0x10 [ 525.435034] xfs_vm_writepages+0x258/0x340 [ 525.439245] ? xfs_vm_writepage+0xd0/0xd0 [ 525.443376] ? xfs_vm_writepage+0xd0/0xd0 [ 525.447515] do_writepages+0xc3/0x240 [ 525.451305] ? page_writeback_cpu_online+0x10/0x10 [ 525.456215] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 525.461645] __writeback_single_inode+0xda/0x1010 [ 525.466477] writeback_sb_inodes+0x48b/0xd30 [ 525.470874] ? wbc_detach_inode+0x780/0x780 [ 525.475175] ? queue_io+0x400/0x5a0 [ 525.478784] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 525.484214] wb_writeback+0x243/0xb80 [ 525.487998] ? writeback_inodes_wb.constprop.0+0x1a0/0x1a0 [ 525.493606] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 525.499034] wb_workfn+0x2bd/0xf50 [ 525.502555] ? process_one_work+0x6c4/0x14a0 [ 525.506953] ? inode_wait_for_writeback+0x30/0x30 [ 525.511779] ? lock_acquire+0x170/0x3f0 [ 525.515736] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 525.521168] process_one_work+0x793/0x14a0 [ 525.525393] ? work_busy+0x320/0x320 [ 525.529091] ? worker_thread+0x158/0xff0 [ 525.533131] ? _raw_spin_unlock_irq+0x24/0x80 [ 525.537604] worker_thread+0x5cc/0xff0 [ 525.541475] ? rescuer_thread+0xc80/0xc80 [ 525.545609] kthread+0x30d/0x420 [ 525.548959] ? kthread_create_on_node+0xd0/0xd0 [ 525.553609] ret_from_fork+0x24/0x30 [ 525.557671] XFS (loop1): page discard on page ffffea0001092dc0, inode 0x29, offset 1417216. [ 525.566572] XFS (loop1): Internal error XFS_WANT_CORRUPTED_RETURN at line 431 of file fs/xfs/libxfs/xfs_alloc.c. Caller xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 525.581116] CPU: 1 PID: 2818 Comm: kworker/u4:3 Not tainted 4.14.303-syzkaller #0 [ 525.588730] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023 [ 525.598081] Workqueue: writeback wb_workfn (flush-7:1) [ 525.603339] Call Trace: [ 525.605913] dump_stack+0x1b2/0x281 [ 525.609530] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 525.614791] xfs_error_report+0x98/0xa0 [ 525.618751] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 525.624011] xfs_alloc_fixup_trees+0x425/0x4f0 [ 525.628576] ? xfs_alloc_update+0x90/0x90 [ 525.632706] ? xfs_btree_rec_offset.isra.0+0x3b/0xa0 [ 525.637789] ? xfs_alloc_compute_diff+0x23c/0x3d0 [ 525.642612] xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 525.647708] ? xfs_alloc_fix_freelist+0x685/0xeb0 [ 525.652536] ? xfs_alloc_ag_vextent_size+0x1ea0/0x1ea0 [ 525.657790] ? xfs_alloc_read_agf+0xb10/0xb10 [ 525.662273] xfs_alloc_ag_vextent+0x579/0x750 [ 525.666752] ? xfs_perag_get+0x116/0x410 [ 525.670797] ? xfs_alloc_vextent+0x470/0x2010 [ 525.675268] xfs_alloc_vextent+0x10b0/0x2010 [ 525.679661] xfs_bmap_btalloc+0x9e5/0x1b20 [ 525.683879] ? xfs_bmap_adjacent+0x1480/0x1480 [ 525.688439] ? ret_from_fork+0x24/0x30 [ 525.692310] ? __xfs_bmbt_get_all+0x16/0x100 [ 525.696698] xfs_bmap_alloc+0x107/0x160 [ 525.700649] xfs_bmapi_write+0xa49/0x1d00 [ 525.704788] ? xfs_bmapi_reserve_delalloc+0x7c0/0x7c0 [ 525.709964] ? trace_hardirqs_on+0x10/0x10 [ 525.714179] ? xfs_iext_get_ext+0xeb/0x200 [ 525.718392] ? xfs_iext_idx_to_irec+0x340/0x340 [ 525.723045] ? xfs_bmap_last_extent+0x1d0/0x1d0 [ 525.727706] xfs_iomap_write_allocate+0x42b/0xa30 [ 525.732543] ? xfs_file_iomap_begin+0x1ed0/0x1ed0 [ 525.737363] ? xfs_iunlock+0x248/0x3b0 [ 525.741235] ? rcu_read_lock_sched_held+0x16c/0x1d0 [ 525.746238] ? xfs_iunlock+0x21a/0x3b0 [ 525.750113] xfs_map_blocks+0x548/0x940 [ 525.754067] ? xfs_vm_set_page_dirty+0x610/0x610 [ 525.758807] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 525.764239] xfs_do_writepage+0x422/0x13d0 [ 525.768458] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 525.772762] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 525.778190] write_cache_pages+0x505/0xd20 [ 525.782404] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 525.786718] ? clear_page_dirty_for_io+0xb80/0xb80 [ 525.791642] ? trace_hardirqs_on+0x10/0x10 [ 525.795882] xfs_vm_writepages+0x258/0x340 [ 525.800098] ? xfs_vm_writepage+0xd0/0xd0 [ 525.804230] ? xfs_vm_writepage+0xd0/0xd0 [ 525.808360] do_writepages+0xc3/0x240 [ 525.812139] ? page_writeback_cpu_online+0x10/0x10 [ 525.817049] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 525.822478] __writeback_single_inode+0xda/0x1010 [ 525.827313] writeback_sb_inodes+0x48b/0xd30 [ 525.831713] ? wbc_detach_inode+0x780/0x780 [ 525.836013] ? queue_io+0x400/0x5a0 [ 525.839620] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 525.845053] wb_writeback+0x243/0xb80 [ 525.848843] ? writeback_inodes_wb.constprop.0+0x1a0/0x1a0 [ 525.854456] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 525.859901] wb_workfn+0x2bd/0xf50 [ 525.863424] ? process_one_work+0x6c4/0x14a0 [ 525.867824] ? inode_wait_for_writeback+0x30/0x30 [ 525.872683] ? lock_acquire+0x170/0x3f0 [ 525.876640] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 525.882072] process_one_work+0x793/0x14a0 [ 525.886300] ? work_busy+0x320/0x320 [ 525.889997] ? worker_thread+0x158/0xff0 [ 525.894040] ? _raw_spin_unlock_irq+0x24/0x80 [ 525.898519] worker_thread+0x5cc/0xff0 [ 525.902391] ? rescuer_thread+0xc80/0xc80 [ 525.906522] kthread+0x30d/0x420 [ 525.909875] ? kthread_create_on_node+0xd0/0xd0 [ 525.914523] ret_from_fork+0x24/0x30 [ 525.919121] XFS (loop1): page discard on page ffffea0001092e00, inode 0x29, offset 1421312. [ 525.928020] XFS (loop1): Internal error XFS_WANT_CORRUPTED_RETURN at line 431 of file fs/xfs/libxfs/xfs_alloc.c. Caller xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 525.942571] CPU: 1 PID: 2818 Comm: kworker/u4:3 Not tainted 4.14.303-syzkaller #0 [ 525.950176] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023 [ 525.959515] Workqueue: writeback wb_workfn (flush-7:1) [ 525.964772] Call Trace: [ 525.967337] dump_stack+0x1b2/0x281 [ 525.970944] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 525.976206] xfs_error_report+0x98/0xa0 [ 525.980165] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 525.985419] xfs_alloc_fixup_trees+0x425/0x4f0 [ 525.990008] ? xfs_alloc_update+0x90/0x90 [ 525.994136] ? xfs_btree_rec_offset.isra.0+0x3b/0xa0 [ 525.999223] ? xfs_alloc_compute_diff+0x23c/0x3d0 [ 526.004044] xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 526.009131] ? xfs_alloc_fix_freelist+0x685/0xeb0 [ 526.013954] ? xfs_alloc_ag_vextent_size+0x1ea0/0x1ea0 [ 526.019223] ? xfs_alloc_read_agf+0xb10/0xb10 [ 526.023730] xfs_alloc_ag_vextent+0x579/0x750 [ 526.028209] ? xfs_perag_get+0x116/0x410 [ 526.032250] ? xfs_alloc_vextent+0x470/0x2010 [ 526.036730] xfs_alloc_vextent+0x10b0/0x2010 [ 526.041129] xfs_bmap_btalloc+0x9e5/0x1b20 [ 526.045347] ? xfs_bmap_adjacent+0x1480/0x1480 [ 526.049907] ? ret_from_fork+0x24/0x30 [ 526.053778] ? __xfs_bmbt_get_all+0x16/0x100 [ 526.058166] xfs_bmap_alloc+0x107/0x160 [ 526.062121] xfs_bmapi_write+0xa49/0x1d00 [ 526.066255] ? xfs_bmapi_reserve_delalloc+0x7c0/0x7c0 [ 526.071422] ? trace_hardirqs_on+0x10/0x10 [ 526.075651] ? xfs_iext_get_ext+0xeb/0x200 [ 526.079873] ? xfs_iext_idx_to_irec+0x340/0x340 [ 526.084528] ? xfs_bmap_last_extent+0x1d0/0x1d0 [ 526.089179] xfs_iomap_write_allocate+0x42b/0xa30 [ 526.094004] ? xfs_file_iomap_begin+0x1ed0/0x1ed0 [ 526.098827] ? xfs_iunlock+0x248/0x3b0 [ 526.102700] ? rcu_read_lock_sched_held+0x16c/0x1d0 [ 526.107697] ? xfs_iunlock+0x21a/0x3b0 [ 526.111568] xfs_map_blocks+0x548/0x940 [ 526.115535] ? xfs_vm_set_page_dirty+0x610/0x610 [ 526.120277] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 526.125711] xfs_do_writepage+0x422/0x13d0 [ 526.129929] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 526.134229] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 526.139658] write_cache_pages+0x505/0xd20 [ 526.143872] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 526.148179] ? clear_page_dirty_for_io+0xb80/0xb80 [ 526.153092] ? trace_hardirqs_on+0x10/0x10 [ 526.157313] xfs_vm_writepages+0x258/0x340 [ 526.161532] ? xfs_vm_writepage+0xd0/0xd0 [ 526.165661] ? xfs_vm_writepage+0xd0/0xd0 [ 526.169786] do_writepages+0xc3/0x240 [ 526.173570] ? page_writeback_cpu_online+0x10/0x10 [ 526.178483] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 526.183912] __writeback_single_inode+0xda/0x1010 [ 526.188732] writeback_sb_inodes+0x48b/0xd30 [ 526.193121] ? wbc_detach_inode+0x780/0x780 [ 526.197432] ? queue_io+0x400/0x5a0 [ 526.201048] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 526.206476] wb_writeback+0x243/0xb80 [ 526.210259] ? writeback_inodes_wb.constprop.0+0x1a0/0x1a0 [ 526.215871] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 526.221309] wb_workfn+0x2bd/0xf50 [ 526.224834] ? process_one_work+0x6c4/0x14a0 [ 526.229222] ? inode_wait_for_writeback+0x30/0x30 [ 526.234042] ? lock_acquire+0x170/0x3f0 [ 526.238004] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 526.243435] process_one_work+0x793/0x14a0 [ 526.247653] ? work_busy+0x320/0x320 [ 526.251344] ? worker_thread+0x158/0xff0 [ 526.255395] ? _raw_spin_unlock_irq+0x24/0x80 [ 526.259889] worker_thread+0x5cc/0xff0 [ 526.263771] ? rescuer_thread+0xc80/0xc80 [ 526.267898] kthread+0x30d/0x420 [ 526.271245] ? kthread_create_on_node+0xd0/0xd0 [ 526.275905] ret_from_fork+0x24/0x30 [ 526.279988] XFS (loop1): page discard on page ffffea0001092e40, inode 0x29, offset 1425408. [ 526.288888] XFS (loop1): Internal error XFS_WANT_CORRUPTED_RETURN at line 431 of file fs/xfs/libxfs/xfs_alloc.c. Caller xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 526.303427] CPU: 1 PID: 2818 Comm: kworker/u4:3 Not tainted 4.14.303-syzkaller #0 [ 526.311040] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023 [ 526.320420] Workqueue: writeback wb_workfn (flush-7:1) [ 526.325681] Call Trace: [ 526.328248] dump_stack+0x1b2/0x281 [ 526.331858] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 526.337118] xfs_error_report+0x98/0xa0 [ 526.341079] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 526.346337] xfs_alloc_fixup_trees+0x425/0x4f0 [ 526.350898] ? xfs_alloc_update+0x90/0x90 [ 526.355031] ? xfs_btree_rec_offset.isra.0+0x3b/0xa0 [ 526.360118] ? xfs_alloc_compute_diff+0x23c/0x3d0 [ 526.364938] xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 526.370024] ? xfs_alloc_fix_freelist+0x685/0xeb0 [ 526.374851] ? xfs_alloc_ag_vextent_size+0x1ea0/0x1ea0 [ 526.380112] ? xfs_alloc_read_agf+0xb10/0xb10 [ 526.384600] xfs_alloc_ag_vextent+0x579/0x750 [ 526.389074] ? xfs_perag_get+0x116/0x410 [ 526.393113] ? xfs_alloc_vextent+0x470/0x2010 [ 526.397595] xfs_alloc_vextent+0x10b0/0x2010 [ 526.401997] xfs_bmap_btalloc+0x9e5/0x1b20 [ 526.406213] ? xfs_bmap_adjacent+0x1480/0x1480 [ 526.410774] ? ret_from_fork+0x24/0x30 [ 526.414659] ? __xfs_bmbt_get_all+0x16/0x100 [ 526.419056] xfs_bmap_alloc+0x107/0x160 [ 526.423008] xfs_bmapi_write+0xa49/0x1d00 [ 526.427138] ? xfs_bmapi_reserve_delalloc+0x7c0/0x7c0 [ 526.432308] ? trace_hardirqs_on+0x10/0x10 [ 526.436529] ? xfs_iext_get_ext+0xeb/0x200 [ 526.440752] ? xfs_iext_idx_to_irec+0x340/0x340 [ 526.445406] ? xfs_bmap_last_extent+0x1d0/0x1d0 [ 526.450054] xfs_iomap_write_allocate+0x42b/0xa30 [ 526.454895] ? xfs_file_iomap_begin+0x1ed0/0x1ed0 [ 526.459724] ? xfs_iunlock+0x248/0x3b0 [ 526.463599] ? rcu_read_lock_sched_held+0x16c/0x1d0 [ 526.468596] ? xfs_iunlock+0x21a/0x3b0 [ 526.472464] xfs_map_blocks+0x548/0x940 [ 526.476424] ? xfs_vm_set_page_dirty+0x610/0x610 [ 526.481171] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 526.486602] xfs_do_writepage+0x422/0x13d0 [ 526.490818] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 526.495131] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 526.500574] write_cache_pages+0x505/0xd20 [ 526.504791] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 526.509091] ? clear_page_dirty_for_io+0xb80/0xb80 [ 526.514005] ? trace_hardirqs_on+0x10/0x10 [ 526.518218] xfs_vm_writepages+0x258/0x340 [ 526.522436] ? xfs_vm_writepage+0xd0/0xd0 [ 526.526568] ? xfs_vm_writepage+0xd0/0xd0 [ 526.530694] do_writepages+0xc3/0x240 [ 526.534482] ? page_writeback_cpu_online+0x10/0x10 [ 526.539418] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 526.544849] __writeback_single_inode+0xda/0x1010 [ 526.549667] writeback_sb_inodes+0x48b/0xd30 [ 526.554058] ? wbc_detach_inode+0x780/0x780 [ 526.558365] ? queue_io+0x400/0x5a0 [ 526.561969] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 526.567402] wb_writeback+0x243/0xb80 [ 526.571184] ? writeback_inodes_wb.constprop.0+0x1a0/0x1a0 [ 526.576796] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 526.582234] wb_workfn+0x2bd/0xf50 [ 526.585759] ? process_one_work+0x6c4/0x14a0 [ 526.590148] ? inode_wait_for_writeback+0x30/0x30 [ 526.594981] ? lock_acquire+0x170/0x3f0 [ 526.598944] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 526.604381] process_one_work+0x793/0x14a0 [ 526.608604] ? work_busy+0x320/0x320 [ 526.612299] ? worker_thread+0x158/0xff0 [ 526.616344] ? _raw_spin_unlock_irq+0x24/0x80 [ 526.620825] worker_thread+0x5cc/0xff0 [ 526.624695] ? rescuer_thread+0xc80/0xc80 [ 526.628821] kthread+0x30d/0x420 [ 526.632189] ? kthread_create_on_node+0xd0/0xd0 [ 526.636843] ret_from_fork+0x24/0x30 [ 526.640916] XFS (loop1): page discard on page ffffea0001092e80, inode 0x29, offset 1429504. [ 526.649824] XFS (loop1): Internal error XFS_WANT_CORRUPTED_RETURN at line 431 of file fs/xfs/libxfs/xfs_alloc.c. Caller xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 526.664361] CPU: 1 PID: 2818 Comm: kworker/u4:3 Not tainted 4.14.303-syzkaller #0 [ 526.671973] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023 [ 526.681324] Workqueue: writeback wb_workfn (flush-7:1) [ 526.686585] Call Trace: [ 526.689156] dump_stack+0x1b2/0x281 [ 526.692762] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 526.698021] xfs_error_report+0x98/0xa0 [ 526.701975] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 526.707234] xfs_alloc_fixup_trees+0x425/0x4f0 [ 526.711797] ? xfs_alloc_update+0x90/0x90 [ 526.715939] ? xfs_btree_rec_offset.isra.0+0x3b/0xa0 [ 526.721036] ? xfs_alloc_compute_diff+0x23c/0x3d0 [ 526.725860] xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 526.730947] ? xfs_alloc_fix_freelist+0x685/0xeb0 [ 526.735784] ? xfs_alloc_ag_vextent_size+0x1ea0/0x1ea0 [ 526.741058] ? xfs_alloc_read_agf+0xb10/0xb10 [ 526.745543] xfs_alloc_ag_vextent+0x579/0x750 [ 526.750016] ? xfs_perag_get+0x116/0x410 [ 526.754057] ? xfs_alloc_vextent+0x470/0x2010 [ 526.758533] xfs_alloc_vextent+0x10b0/0x2010 [ 526.762933] xfs_bmap_btalloc+0x9e5/0x1b20 [ 526.767152] ? xfs_bmap_adjacent+0x1480/0x1480 [ 526.771718] ? ret_from_fork+0x24/0x30 [ 526.775605] ? __xfs_bmbt_get_all+0x16/0x100 [ 526.780003] xfs_bmap_alloc+0x107/0x160 [ 526.783961] xfs_bmapi_write+0xa49/0x1d00 [ 526.788093] ? xfs_bmapi_reserve_delalloc+0x7c0/0x7c0 [ 526.793265] ? trace_hardirqs_on+0x10/0x10 [ 526.797497] ? xfs_iext_get_ext+0xeb/0x200 [ 526.801724] ? xfs_iext_idx_to_irec+0x340/0x340 [ 526.806384] ? xfs_bmap_last_extent+0x1d0/0x1d0 [ 526.811036] xfs_iomap_write_allocate+0x42b/0xa30 [ 526.815878] ? xfs_file_iomap_begin+0x1ed0/0x1ed0 [ 526.820713] ? xfs_iunlock+0x248/0x3b0 [ 526.824588] ? rcu_read_lock_sched_held+0x16c/0x1d0 [ 526.829584] ? xfs_iunlock+0x21a/0x3b0 [ 526.833456] xfs_map_blocks+0x548/0x940 [ 526.837422] ? xfs_vm_set_page_dirty+0x610/0x610 [ 526.842171] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 526.847601] xfs_do_writepage+0x422/0x13d0 [ 526.851823] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 526.856139] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 526.861575] write_cache_pages+0x505/0xd20 [ 526.865794] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 526.870095] ? clear_page_dirty_for_io+0xb80/0xb80 [ 526.875018] ? trace_hardirqs_on+0x10/0x10 [ 526.879244] xfs_vm_writepages+0x258/0x340 [ 526.883458] ? xfs_vm_writepage+0xd0/0xd0 [ 526.887588] ? xfs_vm_writepage+0xd0/0xd0 [ 526.891719] do_writepages+0xc3/0x240 [ 526.895512] ? page_writeback_cpu_online+0x10/0x10 [ 526.900441] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 526.905873] __writeback_single_inode+0xda/0x1010 [ 526.910696] writeback_sb_inodes+0x48b/0xd30 [ 526.915097] ? wbc_detach_inode+0x780/0x780 [ 526.919428] ? queue_io+0x400/0x5a0 [ 526.923040] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 526.928473] wb_writeback+0x243/0xb80 [ 526.932257] ? writeback_inodes_wb.constprop.0+0x1a0/0x1a0 [ 526.937874] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 526.943333] wb_workfn+0x2bd/0xf50 [ 526.946858] ? process_one_work+0x6c4/0x14a0 [ 526.951244] ? inode_wait_for_writeback+0x30/0x30 [ 526.956073] ? lock_acquire+0x170/0x3f0 [ 526.960036] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 526.965468] process_one_work+0x793/0x14a0 [ 526.969689] ? work_busy+0x320/0x320 [ 526.973413] ? worker_thread+0x158/0xff0 [ 526.977477] ? _raw_spin_unlock_irq+0x24/0x80 [ 526.981963] worker_thread+0x5cc/0xff0 [ 526.985833] ? rescuer_thread+0xc80/0xc80 [ 526.989959] kthread+0x30d/0x420 [ 526.993305] ? kthread_create_on_node+0xd0/0xd0 [ 526.997990] ret_from_fork+0x24/0x30 [ 527.002693] XFS (loop1): page discard on page ffffea0001092ec0, inode 0x29, offset 1433600. [ 527.011605] XFS (loop1): Internal error XFS_WANT_CORRUPTED_RETURN at line 431 of file fs/xfs/libxfs/xfs_alloc.c. Caller xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 527.026147] CPU: 1 PID: 2818 Comm: kworker/u4:3 Not tainted 4.14.303-syzkaller #0 [ 527.033758] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023 [ 527.043139] Workqueue: writeback wb_workfn (flush-7:1) [ 527.048398] Call Trace: [ 527.050968] dump_stack+0x1b2/0x281 [ 527.054589] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 527.059863] xfs_error_report+0x98/0xa0 [ 527.063831] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 527.069094] xfs_alloc_fixup_trees+0x425/0x4f0 [ 527.073654] ? xfs_alloc_update+0x90/0x90 [ 527.077787] ? xfs_btree_rec_offset.isra.0+0x3b/0xa0 [ 527.082881] ? xfs_alloc_compute_diff+0x23c/0x3d0 [ 527.087703] xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 527.092787] ? xfs_alloc_fix_freelist+0x685/0xeb0 [ 527.097615] ? xfs_alloc_ag_vextent_size+0x1ea0/0x1ea0 [ 527.102879] ? xfs_alloc_read_agf+0xb10/0xb10 [ 527.107362] xfs_alloc_ag_vextent+0x579/0x750 [ 527.111834] ? xfs_perag_get+0x116/0x410 [ 527.115879] ? xfs_alloc_vextent+0x470/0x2010 [ 527.120360] xfs_alloc_vextent+0x10b0/0x2010 [ 527.124757] xfs_bmap_btalloc+0x9e5/0x1b20 [ 527.128971] ? xfs_bmap_adjacent+0x1480/0x1480 [ 527.133529] ? ret_from_fork+0x24/0x30 [ 527.137424] ? __xfs_bmbt_get_all+0x16/0x100 [ 527.141823] xfs_bmap_alloc+0x107/0x160 [ 527.145779] xfs_bmapi_write+0xa49/0x1d00 [ 527.149911] ? xfs_bmapi_reserve_delalloc+0x7c0/0x7c0 [ 527.155085] ? trace_hardirqs_on+0x10/0x10 [ 527.159307] ? xfs_iext_get_ext+0xeb/0x200 [ 527.163521] ? xfs_iext_idx_to_irec+0x340/0x340 [ 527.168174] ? xfs_bmap_last_extent+0x1d0/0x1d0 [ 527.172825] xfs_iomap_write_allocate+0x42b/0xa30 [ 527.177662] ? xfs_file_iomap_begin+0x1ed0/0x1ed0 [ 527.182521] ? xfs_iunlock+0x248/0x3b0 [ 527.186397] ? rcu_read_lock_sched_held+0x16c/0x1d0 [ 527.191400] ? xfs_iunlock+0x21a/0x3b0 [ 527.195277] xfs_map_blocks+0x548/0x940 [ 527.199241] ? xfs_vm_set_page_dirty+0x610/0x610 [ 527.203976] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 527.209405] xfs_do_writepage+0x422/0x13d0 [ 527.213630] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 527.217935] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 527.223366] write_cache_pages+0x505/0xd20 [ 527.227582] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 527.231886] ? clear_page_dirty_for_io+0xb80/0xb80 [ 527.236811] ? trace_hardirqs_on+0x10/0x10 [ 527.241034] xfs_vm_writepages+0x258/0x340 [ 527.245251] ? xfs_vm_writepage+0xd0/0xd0 [ 527.249383] ? xfs_vm_writepage+0xd0/0xd0 [ 527.253514] do_writepages+0xc3/0x240 [ 527.257304] ? page_writeback_cpu_online+0x10/0x10 [ 527.262221] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 527.267654] __writeback_single_inode+0xda/0x1010 [ 527.272479] writeback_sb_inodes+0x48b/0xd30 [ 527.276882] ? wbc_detach_inode+0x780/0x780 [ 527.281194] ? queue_io+0x400/0x5a0 [ 527.284802] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 527.290230] wb_writeback+0x243/0xb80 [ 527.294012] ? writeback_inodes_wb.constprop.0+0x1a0/0x1a0 [ 527.299622] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 527.305053] wb_workfn+0x2bd/0xf50 [ 527.308579] ? process_one_work+0x6c4/0x14a0 [ 527.312964] ? inode_wait_for_writeback+0x30/0x30 [ 527.317796] ? lock_acquire+0x170/0x3f0 [ 527.321759] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 527.327189] process_one_work+0x793/0x14a0 [ 527.331409] ? work_busy+0x320/0x320 [ 527.335109] ? worker_thread+0x158/0xff0 [ 527.339277] ? _raw_spin_unlock_irq+0x24/0x80 [ 527.343759] worker_thread+0x5cc/0xff0 [ 527.347636] ? rescuer_thread+0xc80/0xc80 [ 527.351767] kthread+0x30d/0x420 [ 527.355121] ? kthread_create_on_node+0xd0/0xd0 [ 527.359782] ret_from_fork+0x24/0x30 [ 527.364009] XFS (loop1): page discard on page ffffea0001092f00, inode 0x29, offset 1437696. [ 527.372920] XFS (loop1): Internal error XFS_WANT_CORRUPTED_RETURN at line 431 of file fs/xfs/libxfs/xfs_alloc.c. Caller xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 527.387478] CPU: 1 PID: 2818 Comm: kworker/u4:3 Not tainted 4.14.303-syzkaller #0 [ 527.395093] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023 [ 527.404449] Workqueue: writeback wb_workfn (flush-7:1) [ 527.409713] Call Trace: [ 527.412291] dump_stack+0x1b2/0x281 [ 527.415909] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 527.421172] xfs_error_report+0x98/0xa0 [ 527.425125] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 527.430385] xfs_alloc_fixup_trees+0x425/0x4f0 [ 527.434957] ? xfs_alloc_update+0x90/0x90 [ 527.439093] ? xfs_btree_rec_offset.isra.0+0x3b/0xa0 [ 527.444178] ? xfs_alloc_compute_diff+0x23c/0x3d0 [ 527.448998] xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 527.454081] ? xfs_alloc_fix_freelist+0x685/0xeb0 [ 527.458903] ? xfs_alloc_ag_vextent_size+0x1ea0/0x1ea0 [ 527.464157] ? xfs_alloc_read_agf+0xb10/0xb10 [ 527.468639] xfs_alloc_ag_vextent+0x579/0x750 [ 527.473111] ? xfs_perag_get+0x116/0x410 [ 527.477153] ? xfs_alloc_vextent+0x470/0x2010 [ 527.481634] xfs_alloc_vextent+0x10b0/0x2010 [ 527.486026] xfs_bmap_btalloc+0x9e5/0x1b20 [ 527.490241] ? xfs_bmap_adjacent+0x1480/0x1480 [ 527.494808] ? ret_from_fork+0x24/0x30 [ 527.498690] ? __xfs_bmbt_get_all+0x16/0x100 [ 527.503078] xfs_bmap_alloc+0x107/0x160 [ 527.507032] xfs_bmapi_write+0xa49/0x1d00 [ 527.511165] ? xfs_bmapi_reserve_delalloc+0x7c0/0x7c0 [ 527.516338] ? trace_hardirqs_on+0x10/0x10 [ 527.520559] ? xfs_iext_get_ext+0xeb/0x200 [ 527.524769] ? xfs_iext_idx_to_irec+0x340/0x340 [ 527.529421] ? xfs_bmap_last_extent+0x1d0/0x1d0 [ 527.534072] xfs_iomap_write_allocate+0x42b/0xa30 [ 527.538901] ? xfs_file_iomap_begin+0x1ed0/0x1ed0 [ 527.543723] ? xfs_iunlock+0x248/0x3b0 [ 527.547598] ? rcu_read_lock_sched_held+0x16c/0x1d0 [ 527.552593] ? xfs_iunlock+0x21a/0x3b0 [ 527.556467] xfs_map_blocks+0x548/0x940 [ 527.560429] ? xfs_vm_set_page_dirty+0x610/0x610 [ 527.565164] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 527.570593] xfs_do_writepage+0x422/0x13d0 [ 527.574822] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 527.579133] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 527.584565] write_cache_pages+0x505/0xd20 [ 527.588781] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 527.593092] ? clear_page_dirty_for_io+0xb80/0xb80 [ 527.598017] ? trace_hardirqs_on+0x10/0x10 [ 527.602239] xfs_vm_writepages+0x258/0x340 [ 527.606453] ? xfs_vm_writepage+0xd0/0xd0 [ 527.610582] ? xfs_vm_writepage+0xd0/0xd0 [ 527.614716] do_writepages+0xc3/0x240 [ 527.618506] ? page_writeback_cpu_online+0x10/0x10 [ 527.623422] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 527.628853] __writeback_single_inode+0xda/0x1010 [ 527.633678] writeback_sb_inodes+0x48b/0xd30 [ 527.638068] ? wbc_detach_inode+0x780/0x780 [ 527.642372] ? queue_io+0x400/0x5a0 [ 527.645977] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 527.651406] wb_writeback+0x243/0xb80 [ 527.655199] ? writeback_inodes_wb.constprop.0+0x1a0/0x1a0 [ 527.660811] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 527.666242] wb_workfn+0x2bd/0xf50 [ 527.669764] ? process_one_work+0x6c4/0x14a0 [ 527.674150] ? inode_wait_for_writeback+0x30/0x30 [ 527.678984] ? lock_acquire+0x170/0x3f0 [ 527.682945] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 527.688380] process_one_work+0x793/0x14a0 [ 527.692599] ? work_busy+0x320/0x320 [ 527.696302] ? worker_thread+0x158/0xff0 [ 527.700359] ? _raw_spin_unlock_irq+0x24/0x80 [ 527.704840] worker_thread+0x5cc/0xff0 [ 527.708718] ? rescuer_thread+0xc80/0xc80 [ 527.712856] kthread+0x30d/0x420 [ 527.716212] ? kthread_create_on_node+0xd0/0xd0 [ 527.720885] ret_from_fork+0x24/0x30 [ 527.725048] XFS (loop1): page discard on page ffffea0001092f40, inode 0x29, offset 1441792. [ 527.733896] XFS (loop1): Internal error XFS_WANT_CORRUPTED_RETURN at line 431 of file fs/xfs/libxfs/xfs_alloc.c. Caller xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 527.748445] CPU: 1 PID: 2818 Comm: kworker/u4:3 Not tainted 4.14.303-syzkaller #0 [ 527.756057] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023 [ 527.765414] Workqueue: writeback wb_workfn (flush-7:1) [ 527.770678] Call Trace: [ 527.773251] dump_stack+0x1b2/0x281 [ 527.776870] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 527.782279] xfs_error_report+0x98/0xa0 [ 527.786239] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 527.791708] xfs_alloc_fixup_trees+0x425/0x4f0 [ 527.796283] ? xfs_alloc_update+0x90/0x90 [ 527.800426] ? xfs_btree_rec_offset.isra.0+0x3b/0xa0 [ 527.805522] ? xfs_alloc_compute_diff+0x23c/0x3d0 [ 527.810351] xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 527.815454] ? xfs_alloc_fix_freelist+0x685/0xeb0 [ 527.820308] ? xfs_alloc_ag_vextent_size+0x1ea0/0x1ea0 [ 527.825571] ? xfs_alloc_read_agf+0xb10/0xb10 [ 527.830054] xfs_alloc_ag_vextent+0x579/0x750 [ 527.834534] ? xfs_perag_get+0x116/0x410 [ 527.838582] ? xfs_alloc_vextent+0x470/0x2010 [ 527.843058] xfs_alloc_vextent+0x10b0/0x2010 [ 527.847455] xfs_bmap_btalloc+0x9e5/0x1b20 [ 527.851720] ? xfs_bmap_adjacent+0x1480/0x1480 [ 527.856294] ? ret_from_fork+0x24/0x30 [ 527.860211] ? __xfs_bmbt_get_all+0x16/0x100 [ 527.864629] xfs_bmap_alloc+0x107/0x160 [ 527.868587] xfs_bmapi_write+0xa49/0x1d00 [ 527.872723] ? xfs_bmapi_reserve_delalloc+0x7c0/0x7c0 [ 527.877901] ? trace_hardirqs_on+0x10/0x10 [ 527.882120] ? xfs_iext_get_ext+0xeb/0x200 [ 527.886334] ? xfs_iext_idx_to_irec+0x340/0x340 [ 527.890991] ? xfs_bmap_last_extent+0x1d0/0x1d0 [ 527.895710] xfs_iomap_write_allocate+0x42b/0xa30 [ 527.900547] ? xfs_file_iomap_begin+0x1ed0/0x1ed0 [ 527.905375] ? xfs_iunlock+0x248/0x3b0 [ 527.909249] ? rcu_read_lock_sched_held+0x16c/0x1d0 [ 527.914251] ? xfs_iunlock+0x21a/0x3b0 [ 527.918124] xfs_map_blocks+0x548/0x940 [ 527.922080] ? xfs_vm_set_page_dirty+0x610/0x610 [ 527.926814] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 527.932245] xfs_do_writepage+0x422/0x13d0 [ 527.936475] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 527.940788] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 527.946220] write_cache_pages+0x505/0xd20 [ 527.950465] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 527.954781] ? clear_page_dirty_for_io+0xb80/0xb80 [ 527.959706] ? trace_hardirqs_on+0x10/0x10 [ 527.963925] xfs_vm_writepages+0x258/0x340 [ 527.968141] ? xfs_vm_writepage+0xd0/0xd0 [ 527.972273] ? xfs_vm_writepage+0xd0/0xd0 [ 527.976408] do_writepages+0xc3/0x240 [ 527.980196] ? page_writeback_cpu_online+0x10/0x10 [ 527.985114] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 527.990575] __writeback_single_inode+0xda/0x1010 [ 527.995414] writeback_sb_inodes+0x48b/0xd30 [ 527.999817] ? wbc_detach_inode+0x780/0x780 [ 528.004118] ? queue_io+0x400/0x5a0 [ 528.007727] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 528.013159] wb_writeback+0x243/0xb80 [ 528.016953] ? writeback_inodes_wb.constprop.0+0x1a0/0x1a0 [ 528.022569] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 528.027997] wb_workfn+0x2bd/0xf50 [ 528.031524] ? process_one_work+0x6c4/0x14a0 [ 528.035919] ? inode_wait_for_writeback+0x30/0x30 [ 528.040747] ? lock_acquire+0x170/0x3f0 [ 528.044703] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 528.050135] process_one_work+0x793/0x14a0 [ 528.054362] ? work_busy+0x320/0x320 [ 528.058062] ? worker_thread+0x158/0xff0 [ 528.062103] ? _raw_spin_unlock_irq+0x24/0x80 [ 528.066585] worker_thread+0x5cc/0xff0 [ 528.070470] ? rescuer_thread+0xc80/0xc80 [ 528.074605] kthread+0x30d/0x420 [ 528.077965] ? kthread_create_on_node+0xd0/0xd0 [ 528.082614] ret_from_fork+0x24/0x30 [ 528.086895] XFS (loop1): page discard on page ffffea0001092f80, inode 0x29, offset 1445888. [ 528.095805] XFS (loop1): Internal error XFS_WANT_CORRUPTED_RETURN at line 431 of file fs/xfs/libxfs/xfs_alloc.c. Caller xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 528.110363] CPU: 1 PID: 2818 Comm: kworker/u4:3 Not tainted 4.14.303-syzkaller #0 [ 528.117977] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023 [ 528.127342] Workqueue: writeback wb_workfn (flush-7:1) [ 528.132611] Call Trace: [ 528.135187] dump_stack+0x1b2/0x281 [ 528.138802] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 528.144060] xfs_error_report+0x98/0xa0 [ 528.148016] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 528.153275] xfs_alloc_fixup_trees+0x425/0x4f0 [ 528.157846] ? xfs_alloc_update+0x90/0x90 [ 528.161983] ? xfs_btree_rec_offset.isra.0+0x3b/0xa0 [ 528.167064] ? xfs_alloc_compute_diff+0x23c/0x3d0 [ 528.171884] xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 528.176978] ? xfs_alloc_fix_freelist+0x685/0xeb0 [ 528.181811] ? xfs_alloc_ag_vextent_size+0x1ea0/0x1ea0 [ 528.187066] ? xfs_alloc_read_agf+0xb10/0xb10 [ 528.191549] xfs_alloc_ag_vextent+0x579/0x750 [ 528.196028] ? xfs_perag_get+0x116/0x410 [ 528.200073] ? xfs_alloc_vextent+0x470/0x2010 [ 528.204550] xfs_alloc_vextent+0x10b0/0x2010 [ 528.208945] xfs_bmap_btalloc+0x9e5/0x1b20 [ 528.213163] ? xfs_bmap_adjacent+0x1480/0x1480 [ 528.217728] ? ret_from_fork+0x24/0x30 [ 528.221617] ? __xfs_bmbt_get_all+0x16/0x100 [ 528.226008] xfs_bmap_alloc+0x107/0x160 [ 528.229961] xfs_bmapi_write+0xa49/0x1d00 [ 528.234092] ? xfs_bmapi_reserve_delalloc+0x7c0/0x7c0 [ 528.239263] ? trace_hardirqs_on+0x10/0x10 [ 528.243480] ? xfs_iext_get_ext+0xeb/0x200 [ 528.247718] ? xfs_iext_idx_to_irec+0x340/0x340 [ 528.252376] ? xfs_bmap_last_extent+0x1d0/0x1d0 [ 528.257036] xfs_iomap_write_allocate+0x42b/0xa30 [ 528.261871] ? xfs_file_iomap_begin+0x1ed0/0x1ed0 [ 528.266693] ? xfs_iunlock+0x248/0x3b0 [ 528.270568] ? rcu_read_lock_sched_held+0x16c/0x1d0 [ 528.275569] ? xfs_iunlock+0x21a/0x3b0 [ 528.279444] xfs_map_blocks+0x548/0x940 [ 528.283406] ? xfs_vm_set_page_dirty+0x610/0x610 [ 528.288164] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 528.293593] xfs_do_writepage+0x422/0x13d0 [ 528.297811] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 528.302141] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 528.307573] write_cache_pages+0x505/0xd20 [ 528.311788] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 528.316096] ? clear_page_dirty_for_io+0xb80/0xb80 [ 528.321016] ? trace_hardirqs_on+0x10/0x10 [ 528.325261] xfs_vm_writepages+0x258/0x340 [ 528.329476] ? xfs_vm_writepage+0xd0/0xd0 [ 528.333604] ? xfs_vm_writepage+0xd0/0xd0 [ 528.337742] do_writepages+0xc3/0x240 [ 528.341532] ? page_writeback_cpu_online+0x10/0x10 [ 528.346449] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 528.351878] __writeback_single_inode+0xda/0x1010 [ 528.356708] writeback_sb_inodes+0x48b/0xd30 [ 528.361105] ? wbc_detach_inode+0x780/0x780 [ 528.365415] ? queue_io+0x400/0x5a0 [ 528.369021] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 528.374465] wb_writeback+0x243/0xb80 [ 528.378267] ? writeback_inodes_wb.constprop.0+0x1a0/0x1a0 [ 528.383880] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 528.389312] wb_workfn+0x2bd/0xf50 [ 528.392840] ? process_one_work+0x6c4/0x14a0 [ 528.397236] ? inode_wait_for_writeback+0x30/0x30 [ 528.402066] ? lock_acquire+0x170/0x3f0 [ 528.406020] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 528.411453] process_one_work+0x793/0x14a0 [ 528.415680] ? work_busy+0x320/0x320 [ 528.419388] ? worker_thread+0x158/0xff0 [ 528.423438] ? _raw_spin_unlock_irq+0x24/0x80 [ 528.427912] worker_thread+0x5cc/0xff0 [ 528.431783] ? rescuer_thread+0xc80/0xc80 [ 528.435919] kthread+0x30d/0x420 [ 528.439288] ? kthread_create_on_node+0xd0/0xd0 [ 528.443935] ret_from_fork+0x24/0x30 [ 528.448008] XFS (loop1): page discard on page ffffea0001092fc0, inode 0x29, offset 1449984. [ 528.456898] XFS (loop1): Internal error XFS_WANT_CORRUPTED_RETURN at line 431 of file fs/xfs/libxfs/xfs_alloc.c. Caller xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 528.471457] CPU: 1 PID: 2818 Comm: kworker/u4:3 Not tainted 4.14.303-syzkaller #0 [ 528.479067] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023 [ 528.488422] Workqueue: writeback wb_workfn (flush-7:1) [ 528.493681] Call Trace: [ 528.496252] dump_stack+0x1b2/0x281 [ 528.499863] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 528.505123] xfs_error_report+0x98/0xa0 [ 528.509082] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 528.514343] xfs_alloc_fixup_trees+0x425/0x4f0 [ 528.518913] ? xfs_alloc_update+0x90/0x90 [ 528.523042] ? xfs_btree_rec_offset.isra.0+0x3b/0xa0 [ 528.528122] ? xfs_alloc_compute_diff+0x23c/0x3d0 [ 528.532948] xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 528.538035] ? xfs_alloc_fix_freelist+0x685/0xeb0 [ 528.542855] ? xfs_alloc_ag_vextent_size+0x1ea0/0x1ea0 [ 528.548112] ? xfs_alloc_read_agf+0xb10/0xb10 [ 528.552594] xfs_alloc_ag_vextent+0x579/0x750 [ 528.557068] ? xfs_perag_get+0x116/0x410 [ 528.561109] ? xfs_alloc_vextent+0x470/0x2010 [ 528.565608] xfs_alloc_vextent+0x10b0/0x2010 [ 528.570095] xfs_bmap_btalloc+0x9e5/0x1b20 [ 528.574335] ? xfs_bmap_adjacent+0x1480/0x1480 [ 528.578931] ? ret_from_fork+0x24/0x30 [ 528.582806] ? __xfs_bmbt_get_all+0x16/0x100 [ 528.587223] xfs_bmap_alloc+0x107/0x160 [ 528.591203] xfs_bmapi_write+0xa49/0x1d00 [ 528.595356] ? xfs_bmapi_reserve_delalloc+0x7c0/0x7c0 [ 528.600532] ? trace_hardirqs_on+0x10/0x10 [ 528.604756] ? xfs_iext_get_ext+0xeb/0x200 [ 528.608977] ? xfs_iext_idx_to_irec+0x340/0x340 [ 528.613671] ? xfs_bmap_last_extent+0x1d0/0x1d0 [ 528.618327] xfs_iomap_write_allocate+0x42b/0xa30 [ 528.623155] ? xfs_file_iomap_begin+0x1ed0/0x1ed0 [ 528.628006] ? xfs_iunlock+0x248/0x3b0 [ 528.631877] ? rcu_read_lock_sched_held+0x16c/0x1d0 [ 528.636872] ? xfs_iunlock+0x21a/0x3b0 [ 528.640738] xfs_map_blocks+0x548/0x940 [ 528.644700] ? xfs_vm_set_page_dirty+0x610/0x610 [ 528.649442] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 528.654881] xfs_do_writepage+0x422/0x13d0 [ 528.659105] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 528.663411] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 528.668844] write_cache_pages+0x505/0xd20 [ 528.673060] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 528.677367] ? clear_page_dirty_for_io+0xb80/0xb80 [ 528.682280] ? trace_hardirqs_on+0x10/0x10 [ 528.686512] xfs_vm_writepages+0x258/0x340 [ 528.690728] ? xfs_vm_writepage+0xd0/0xd0 [ 528.694874] ? xfs_vm_writepage+0xd0/0xd0 [ 528.699019] do_writepages+0xc3/0x240 [ 528.702804] ? page_writeback_cpu_online+0x10/0x10 [ 528.707720] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 528.713158] __writeback_single_inode+0xda/0x1010 [ 528.717987] writeback_sb_inodes+0x48b/0xd30 [ 528.722387] ? wbc_detach_inode+0x780/0x780 [ 528.726693] ? queue_io+0x400/0x5a0 [ 528.730302] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 528.735746] wb_writeback+0x243/0xb80 [ 528.739536] ? writeback_inodes_wb.constprop.0+0x1a0/0x1a0 [ 528.745151] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 528.750590] wb_workfn+0x2bd/0xf50 [ 528.754113] ? process_one_work+0x6c4/0x14a0 [ 528.758500] ? inode_wait_for_writeback+0x30/0x30 [ 528.763329] ? lock_acquire+0x170/0x3f0 [ 528.767292] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 528.772758] process_one_work+0x793/0x14a0 [ 528.777007] ? work_busy+0x320/0x320 [ 528.780702] ? worker_thread+0x158/0xff0 [ 528.784748] ? _raw_spin_unlock_irq+0x24/0x80 [ 528.789234] worker_thread+0x5cc/0xff0 [ 528.793129] ? rescuer_thread+0xc80/0xc80 [ 528.797295] kthread+0x30d/0x420 [ 528.800644] ? kthread_create_on_node+0xd0/0xd0 [ 528.805302] ret_from_fork+0x24/0x30 [ 528.809446] XFS (loop1): page discard on page ffffea0001093000, inode 0x29, offset 1454080. [ 528.818404] XFS (loop1): Internal error XFS_WANT_CORRUPTED_RETURN at line 431 of file fs/xfs/libxfs/xfs_alloc.c. Caller xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 528.833055] CPU: 1 PID: 2818 Comm: kworker/u4:3 Not tainted 4.14.303-syzkaller #0 [ 528.840670] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023 [ 528.850029] Workqueue: writeback wb_workfn (flush-7:1) [ 528.855290] Call Trace: [ 528.857857] dump_stack+0x1b2/0x281 [ 528.861464] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 528.866728] xfs_error_report+0x98/0xa0 [ 528.870690] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 528.876024] xfs_alloc_fixup_trees+0x425/0x4f0 [ 528.880600] ? xfs_alloc_update+0x90/0x90 [ 528.884744] ? xfs_btree_rec_offset.isra.0+0x3b/0xa0 [ 528.889842] ? xfs_alloc_compute_diff+0x23c/0x3d0 [ 528.894683] xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 528.899781] ? xfs_alloc_fix_freelist+0x685/0xeb0 [ 528.904619] ? xfs_alloc_ag_vextent_size+0x1ea0/0x1ea0 [ 528.909895] ? xfs_alloc_read_agf+0xb10/0xb10 [ 528.914387] xfs_alloc_ag_vextent+0x579/0x750 [ 528.918862] ? xfs_perag_get+0x116/0x410 [ 528.922905] ? xfs_alloc_vextent+0x470/0x2010 [ 528.927389] xfs_alloc_vextent+0x10b0/0x2010 [ 528.931791] xfs_bmap_btalloc+0x9e5/0x1b20 [ 528.936016] ? xfs_bmap_adjacent+0x1480/0x1480 [ 528.940582] ? ret_from_fork+0x24/0x30 [ 528.944471] ? __xfs_bmbt_get_all+0x16/0x100 [ 528.948870] xfs_bmap_alloc+0x107/0x160 [ 528.952824] xfs_bmapi_write+0xa49/0x1d00 [ 528.956959] ? xfs_bmapi_reserve_delalloc+0x7c0/0x7c0 [ 528.962132] ? trace_hardirqs_on+0x10/0x10 [ 528.966360] ? xfs_iext_get_ext+0xeb/0x200 [ 528.970583] ? xfs_iext_idx_to_irec+0x340/0x340 [ 528.975269] ? xfs_bmap_last_extent+0x1d0/0x1d0 [ 528.979925] xfs_iomap_write_allocate+0x42b/0xa30 [ 528.984780] ? xfs_file_iomap_begin+0x1ed0/0x1ed0 [ 528.989617] ? xfs_iunlock+0x248/0x3b0 [ 528.993497] ? rcu_read_lock_sched_held+0x16c/0x1d0 [ 528.998495] ? xfs_iunlock+0x21a/0x3b0 [ 529.002367] xfs_map_blocks+0x548/0x940 [ 529.006333] ? xfs_vm_set_page_dirty+0x610/0x610 [ 529.011083] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 529.016521] xfs_do_writepage+0x422/0x13d0 [ 529.020771] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 529.025086] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 529.030523] write_cache_pages+0x505/0xd20 [ 529.034750] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 529.039056] ? clear_page_dirty_for_io+0xb80/0xb80 [ 529.043978] ? trace_hardirqs_on+0x10/0x10 [ 529.048197] xfs_vm_writepages+0x258/0x340 [ 529.052414] ? xfs_vm_writepage+0xd0/0xd0 [ 529.056545] ? xfs_vm_writepage+0xd0/0xd0 [ 529.060671] do_writepages+0xc3/0x240 [ 529.064460] ? page_writeback_cpu_online+0x10/0x10 [ 529.069493] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 529.074928] __writeback_single_inode+0xda/0x1010 [ 529.079754] writeback_sb_inodes+0x48b/0xd30 [ 529.084151] ? wbc_detach_inode+0x780/0x780 [ 529.088462] ? queue_io+0x400/0x5a0 [ 529.092073] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 529.097503] wb_writeback+0x243/0xb80 [ 529.101286] ? writeback_inodes_wb.constprop.0+0x1a0/0x1a0 [ 529.106901] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 529.112342] wb_workfn+0x2bd/0xf50 [ 529.115862] ? process_one_work+0x6c4/0x14a0 [ 529.120286] ? inode_wait_for_writeback+0x30/0x30 [ 529.125126] ? lock_acquire+0x170/0x3f0 [ 529.129089] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 529.134540] process_one_work+0x793/0x14a0 [ 529.138782] ? work_busy+0x320/0x320 [ 529.142484] ? worker_thread+0x158/0xff0 [ 529.146538] ? _raw_spin_unlock_irq+0x24/0x80 [ 529.151023] worker_thread+0x5cc/0xff0 [ 529.154896] ? rescuer_thread+0xc80/0xc80 [ 529.159022] kthread+0x30d/0x420 [ 529.162372] ? kthread_create_on_node+0xd0/0xd0 [ 529.167027] ret_from_fork+0x24/0x30 [ 529.171703] XFS (loop1): page discard on page ffffea0001093040, inode 0x29, offset 1458176. [ 529.180612] XFS (loop1): Internal error XFS_WANT_CORRUPTED_RETURN at line 431 of file fs/xfs/libxfs/xfs_alloc.c. Caller xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 529.195300] CPU: 1 PID: 2818 Comm: kworker/u4:3 Not tainted 4.14.303-syzkaller #0 [ 529.202905] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023 [ 529.212253] Workqueue: writeback wb_workfn (flush-7:1) [ 529.217513] Call Trace: [ 529.220087] dump_stack+0x1b2/0x281 [ 529.223697] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 529.228954] xfs_error_report+0x98/0xa0 [ 529.232906] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 529.238170] xfs_alloc_fixup_trees+0x425/0x4f0 [ 529.242735] ? xfs_alloc_update+0x90/0x90 [ 529.246869] ? xfs_btree_rec_offset.isra.0+0x3b/0xa0 [ 529.251958] ? xfs_alloc_compute_diff+0x23c/0x3d0 [ 529.256798] xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 529.261902] ? xfs_alloc_fix_freelist+0x685/0xeb0 [ 529.266739] ? xfs_alloc_ag_vextent_size+0x1ea0/0x1ea0 [ 529.272003] ? xfs_alloc_read_agf+0xb10/0xb10 [ 529.276486] xfs_alloc_ag_vextent+0x579/0x750 [ 529.280994] ? xfs_perag_get+0x116/0x410 [ 529.285039] ? xfs_alloc_vextent+0x470/0x2010 [ 529.289522] xfs_alloc_vextent+0x10b0/0x2010 [ 529.293928] xfs_bmap_btalloc+0x9e5/0x1b20 [ 529.298149] ? xfs_bmap_adjacent+0x1480/0x1480 [ 529.302715] ? ret_from_fork+0x24/0x30 [ 529.306606] ? __xfs_bmbt_get_all+0x16/0x100 [ 529.311002] xfs_bmap_alloc+0x107/0x160 [ 529.314958] xfs_bmapi_write+0xa49/0x1d00 [ 529.319126] ? xfs_bmapi_reserve_delalloc+0x7c0/0x7c0 [ 529.324306] ? trace_hardirqs_on+0x10/0x10 [ 529.328532] ? xfs_iext_get_ext+0xeb/0x200 [ 529.332747] ? xfs_iext_idx_to_irec+0x340/0x340 [ 529.337406] ? xfs_bmap_last_extent+0x1d0/0x1d0 [ 529.342059] xfs_iomap_write_allocate+0x42b/0xa30 [ 529.346898] ? xfs_file_iomap_begin+0x1ed0/0x1ed0 [ 529.351729] ? xfs_iunlock+0x248/0x3b0 [ 529.355603] ? rcu_read_lock_sched_held+0x16c/0x1d0 [ 529.360598] ? xfs_iunlock+0x21a/0x3b0 [ 529.364470] xfs_map_blocks+0x548/0x940 [ 529.368431] ? xfs_vm_set_page_dirty+0x610/0x610 [ 529.373165] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 529.378597] xfs_do_writepage+0x422/0x13d0 [ 529.382814] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 529.387127] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 529.392569] write_cache_pages+0x505/0xd20 [ 529.396784] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 529.401088] ? clear_page_dirty_for_io+0xb80/0xb80 [ 529.406015] ? trace_hardirqs_on+0x10/0x10 [ 529.410243] xfs_vm_writepages+0x258/0x340 [ 529.414462] ? xfs_vm_writepage+0xd0/0xd0 [ 529.418600] ? xfs_vm_writepage+0xd0/0xd0 [ 529.422727] do_writepages+0xc3/0x240 [ 529.426516] ? page_writeback_cpu_online+0x10/0x10 [ 529.431436] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 529.436870] __writeback_single_inode+0xda/0x1010 [ 529.441693] writeback_sb_inodes+0x48b/0xd30 [ 529.446097] ? wbc_detach_inode+0x780/0x780 [ 529.450407] ? queue_io+0x400/0x5a0 [ 529.454014] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 529.459447] wb_writeback+0x243/0xb80 [ 529.463235] ? writeback_inodes_wb.constprop.0+0x1a0/0x1a0 [ 529.468876] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 529.474314] wb_workfn+0x2bd/0xf50 [ 529.477837] ? process_one_work+0x6c4/0x14a0 [ 529.482259] ? inode_wait_for_writeback+0x30/0x30 [ 529.487091] ? lock_acquire+0x170/0x3f0 [ 529.491055] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 529.496486] process_one_work+0x793/0x14a0 [ 529.500729] ? work_busy+0x320/0x320 [ 529.504428] ? worker_thread+0x158/0xff0 [ 529.508477] ? _raw_spin_unlock_irq+0x24/0x80 [ 529.512954] worker_thread+0x5cc/0xff0 [ 529.516848] ? rescuer_thread+0xc80/0xc80 [ 529.520977] kthread+0x30d/0x420 [ 529.524331] ? kthread_create_on_node+0xd0/0xd0 [ 529.528988] ret_from_fork+0x24/0x30 [ 529.533190] XFS (loop1): page discard on page ffffea0001093080, inode 0x29, offset 1462272. [ 529.542458] XFS (loop1): Internal error XFS_WANT_CORRUPTED_RETURN at line 431 of file fs/xfs/libxfs/xfs_alloc.c. Caller xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 529.557012] CPU: 1 PID: 2818 Comm: kworker/u4:3 Not tainted 4.14.303-syzkaller #0 [ 529.564627] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023 [ 529.573980] Workqueue: writeback wb_workfn (flush-7:1) [ 529.579243] Call Trace: [ 529.581950] dump_stack+0x1b2/0x281 [ 529.585576] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 529.590847] xfs_error_report+0x98/0xa0 [ 529.594807] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 529.600071] xfs_alloc_fixup_trees+0x425/0x4f0 [ 529.604645] ? xfs_alloc_update+0x90/0x90 [ 529.608782] ? xfs_btree_rec_offset.isra.0+0x3b/0xa0 [ 529.613864] ? xfs_alloc_compute_diff+0x23c/0x3d0 [ 529.618688] xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 529.623795] ? xfs_alloc_fix_freelist+0x685/0xeb0 [ 529.628620] ? xfs_alloc_ag_vextent_size+0x1ea0/0x1ea0 [ 529.633880] ? xfs_alloc_read_agf+0xb10/0xb10 [ 529.638366] xfs_alloc_ag_vextent+0x579/0x750 [ 529.643189] ? xfs_perag_get+0x116/0x410 [ 529.647232] ? xfs_alloc_vextent+0x470/0x2010 [ 529.651716] xfs_alloc_vextent+0x10b0/0x2010 [ 529.656137] xfs_bmap_btalloc+0x9e5/0x1b20 [ 529.660355] ? xfs_bmap_adjacent+0x1480/0x1480 [ 529.664921] ? ret_from_fork+0x24/0x30 [ 529.668801] ? __xfs_bmbt_get_all+0x16/0x100 [ 529.673189] xfs_bmap_alloc+0x107/0x160 [ 529.677144] xfs_bmapi_write+0xa49/0x1d00 [ 529.681278] ? xfs_bmapi_reserve_delalloc+0x7c0/0x7c0 [ 529.686457] ? trace_hardirqs_on+0x10/0x10 [ 529.690681] ? xfs_iext_get_ext+0xeb/0x200 [ 529.694897] ? xfs_iext_idx_to_irec+0x340/0x340 [ 529.699550] ? xfs_bmap_last_extent+0x1d0/0x1d0 [ 529.704239] xfs_iomap_write_allocate+0x42b/0xa30 [ 529.709086] ? xfs_file_iomap_begin+0x1ed0/0x1ed0 [ 529.713926] ? xfs_iunlock+0x248/0x3b0 [ 529.717808] ? rcu_read_lock_sched_held+0x16c/0x1d0 [ 529.722805] ? xfs_iunlock+0x21a/0x3b0 [ 529.726684] xfs_map_blocks+0x548/0x940 [ 529.730650] ? xfs_vm_set_page_dirty+0x610/0x610 [ 529.735393] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 529.740824] xfs_do_writepage+0x422/0x13d0 [ 529.745059] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 529.749383] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 529.754814] write_cache_pages+0x505/0xd20 [ 529.759030] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 529.763334] ? clear_page_dirty_for_io+0xb80/0xb80 [ 529.768254] ? trace_hardirqs_on+0x10/0x10 [ 529.772470] xfs_vm_writepages+0x258/0x340 [ 529.776685] ? xfs_vm_writepage+0xd0/0xd0 [ 529.780817] ? xfs_vm_writepage+0xd0/0xd0 [ 529.784954] do_writepages+0xc3/0x240 [ 529.788744] ? page_writeback_cpu_online+0x10/0x10 [ 529.793655] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 529.799086] __writeback_single_inode+0xda/0x1010 [ 529.803912] writeback_sb_inodes+0x48b/0xd30 [ 529.808305] ? wbc_detach_inode+0x780/0x780 [ 529.812608] ? queue_io+0x400/0x5a0 [ 529.816221] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 529.821653] wb_writeback+0x243/0xb80 [ 529.825443] ? writeback_inodes_wb.constprop.0+0x1a0/0x1a0 [ 529.831054] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 529.836498] wb_workfn+0x2bd/0xf50 [ 529.840538] ? process_one_work+0x6c4/0x14a0 [ 529.844934] ? inode_wait_for_writeback+0x30/0x30 [ 529.849764] ? lock_acquire+0x170/0x3f0 [ 529.853721] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 529.859158] process_one_work+0x793/0x14a0 [ 529.863401] ? work_busy+0x320/0x320 [ 529.867102] ? worker_thread+0x158/0xff0 [ 529.871154] ? _raw_spin_unlock_irq+0x24/0x80 [ 529.875635] worker_thread+0x5cc/0xff0 [ 529.879508] ? rescuer_thread+0xc80/0xc80 [ 529.883635] kthread+0x30d/0x420 [ 529.886990] ? kthread_create_on_node+0xd0/0xd0 [ 529.891648] ret_from_fork+0x24/0x30 [ 529.895795] XFS (loop1): page discard on page ffffea00010930c0, inode 0x29, offset 1466368. [ 529.904675] XFS (loop1): Internal error XFS_WANT_CORRUPTED_RETURN at line 431 of file fs/xfs/libxfs/xfs_alloc.c. Caller xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 529.919270] CPU: 1 PID: 2818 Comm: kworker/u4:3 Not tainted 4.14.303-syzkaller #0 [ 529.927007] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023 [ 529.936360] Workqueue: writeback wb_workfn (flush-7:1) [ 529.941627] Call Trace: [ 529.944209] dump_stack+0x1b2/0x281 [ 529.947839] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 529.953106] xfs_error_report+0x98/0xa0 [ 529.957069] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 529.962334] xfs_alloc_fixup_trees+0x425/0x4f0 [ 529.966905] ? xfs_alloc_update+0x90/0x90 [ 529.971039] ? xfs_btree_rec_offset.isra.0+0x3b/0xa0 [ 529.976125] ? xfs_alloc_compute_diff+0x23c/0x3d0 [ 529.980948] xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 529.986047] ? xfs_alloc_fix_freelist+0x685/0xeb0 [ 529.990875] ? xfs_alloc_ag_vextent_size+0x1ea0/0x1ea0 [ 529.996132] ? xfs_alloc_read_agf+0xb10/0xb10 [ 530.000615] xfs_alloc_ag_vextent+0x579/0x750 [ 530.005095] ? xfs_perag_get+0x116/0x410 [ 530.009142] ? xfs_alloc_vextent+0x470/0x2010 [ 530.013618] xfs_alloc_vextent+0x10b0/0x2010 [ 530.018015] xfs_bmap_btalloc+0x9e5/0x1b20 [ 530.022236] ? xfs_bmap_adjacent+0x1480/0x1480 [ 530.026804] ? ret_from_fork+0x24/0x30 [ 530.030686] ? __xfs_bmbt_get_all+0x16/0x100 [ 530.035077] xfs_bmap_alloc+0x107/0x160 [ 530.039032] xfs_bmapi_write+0xa49/0x1d00 [ 530.043514] ? xfs_bmapi_reserve_delalloc+0x7c0/0x7c0 [ 530.048686] ? trace_hardirqs_on+0x10/0x10 [ 530.052912] ? xfs_iext_get_ext+0xeb/0x200 [ 530.057129] ? xfs_iext_idx_to_irec+0x340/0x340 [ 530.061797] ? xfs_bmap_last_extent+0x1d0/0x1d0 [ 530.066464] xfs_iomap_write_allocate+0x42b/0xa30 [ 530.071298] ? xfs_file_iomap_begin+0x1ed0/0x1ed0 [ 530.076122] ? xfs_iunlock+0x248/0x3b0 [ 530.080023] ? rcu_read_lock_sched_held+0x16c/0x1d0 [ 530.085025] ? xfs_iunlock+0x21a/0x3b0 [ 530.088901] xfs_map_blocks+0x548/0x940 [ 530.092856] ? xfs_vm_set_page_dirty+0x610/0x610 [ 530.097632] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 530.103090] xfs_do_writepage+0x422/0x13d0 [ 530.107324] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 530.111638] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 530.117071] write_cache_pages+0x505/0xd20 [ 530.121285] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 530.125596] ? clear_page_dirty_for_io+0xb80/0xb80 [ 530.130517] ? trace_hardirqs_on+0x10/0x10 [ 530.134733] xfs_vm_writepages+0x258/0x340 [ 530.138947] ? xfs_vm_writepage+0xd0/0xd0 [ 530.143344] ? xfs_vm_writepage+0xd0/0xd0 [ 530.147476] do_writepages+0xc3/0x240 [ 530.151267] ? page_writeback_cpu_online+0x10/0x10 [ 530.156187] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 530.161629] __writeback_single_inode+0xda/0x1010 [ 530.166464] writeback_sb_inodes+0x48b/0xd30 [ 530.170870] ? wbc_detach_inode+0x780/0x780 [ 530.175184] ? queue_io+0x400/0x5a0 [ 530.178811] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 530.184259] wb_writeback+0x243/0xb80 [ 530.188056] ? writeback_inodes_wb.constprop.0+0x1a0/0x1a0 [ 530.193662] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 530.199091] wb_workfn+0x2bd/0xf50 [ 530.202614] ? process_one_work+0x6c4/0x14a0 [ 530.207009] ? inode_wait_for_writeback+0x30/0x30 [ 530.211836] ? lock_acquire+0x170/0x3f0 [ 530.215792] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 530.221227] process_one_work+0x793/0x14a0 [ 530.225454] ? work_busy+0x320/0x320 [ 530.229154] ? worker_thread+0x158/0xff0 [ 530.233195] ? _raw_spin_unlock_irq+0x24/0x80 [ 530.237671] worker_thread+0x5cc/0xff0 [ 530.241543] ? rescuer_thread+0xc80/0xc80 [ 530.245678] kthread+0x30d/0x420 [ 530.249032] ? kthread_create_on_node+0xd0/0xd0 [ 530.253682] ret_from_fork+0x24/0x30 [ 530.257959] XFS (loop1): page discard on page ffffea0001093100, inode 0x29, offset 1470464. [ 530.266884] XFS (loop1): Internal error XFS_WANT_CORRUPTED_RETURN at line 431 of file fs/xfs/libxfs/xfs_alloc.c. Caller xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 530.281446] CPU: 1 PID: 2818 Comm: kworker/u4:3 Not tainted 4.14.303-syzkaller #0 [ 530.289059] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023 [ 530.298415] Workqueue: writeback wb_workfn (flush-7:1) [ 530.303671] Call Trace: [ 530.306248] dump_stack+0x1b2/0x281 [ 530.309863] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 530.315123] xfs_error_report+0x98/0xa0 [ 530.319079] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 530.324345] xfs_alloc_fixup_trees+0x425/0x4f0 [ 530.328918] ? xfs_alloc_update+0x90/0x90 [ 530.333044] ? xfs_btree_rec_offset.isra.0+0x3b/0xa0 [ 530.338132] ? xfs_alloc_compute_diff+0x23c/0x3d0 [ 530.342953] xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 530.348039] ? xfs_alloc_fix_freelist+0x685/0xeb0 [ 530.352861] ? xfs_alloc_ag_vextent_size+0x1ea0/0x1ea0 [ 530.358119] ? xfs_alloc_read_agf+0xb10/0xb10 [ 530.362600] xfs_alloc_ag_vextent+0x579/0x750 [ 530.367078] ? xfs_perag_get+0x116/0x410 [ 530.371126] ? xfs_alloc_vextent+0x470/0x2010 [ 530.375599] xfs_alloc_vextent+0x10b0/0x2010 [ 530.379994] xfs_bmap_btalloc+0x9e5/0x1b20 [ 530.384220] ? xfs_bmap_adjacent+0x1480/0x1480 [ 530.388786] ? ret_from_fork+0x24/0x30 [ 530.392663] ? __xfs_bmbt_get_all+0x16/0x100 [ 530.397049] xfs_bmap_alloc+0x107/0x160 [ 530.401006] xfs_bmapi_write+0xa49/0x1d00 [ 530.405145] ? xfs_bmapi_reserve_delalloc+0x7c0/0x7c0 [ 530.410320] ? trace_hardirqs_on+0x10/0x10 [ 530.414548] ? xfs_iext_get_ext+0xeb/0x200 [ 530.418767] ? xfs_iext_idx_to_irec+0x340/0x340 [ 530.423420] ? xfs_bmap_last_extent+0x1d0/0x1d0 [ 530.428072] xfs_iomap_write_allocate+0x42b/0xa30 [ 530.432898] ? xfs_file_iomap_begin+0x1ed0/0x1ed0 [ 530.437718] ? xfs_iunlock+0x248/0x3b0 [ 530.441590] ? rcu_read_lock_sched_held+0x16c/0x1d0 [ 530.446593] ? xfs_iunlock+0x21a/0x3b0 [ 530.450464] xfs_map_blocks+0x548/0x940 [ 530.454428] ? xfs_vm_set_page_dirty+0x610/0x610 [ 530.459172] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 530.464609] xfs_do_writepage+0x422/0x13d0 [ 530.468831] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 530.473137] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 530.478571] write_cache_pages+0x505/0xd20 [ 530.482789] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 530.487099] ? clear_page_dirty_for_io+0xb80/0xb80 [ 530.492019] ? trace_hardirqs_on+0x10/0x10 [ 530.496244] xfs_vm_writepages+0x258/0x340 [ 530.500465] ? xfs_vm_writepage+0xd0/0xd0 [ 530.504607] ? xfs_vm_writepage+0xd0/0xd0 [ 530.508741] do_writepages+0xc3/0x240 [ 530.512524] ? page_writeback_cpu_online+0x10/0x10 [ 530.517437] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 530.522870] __writeback_single_inode+0xda/0x1010 [ 530.527701] writeback_sb_inodes+0x48b/0xd30 [ 530.532099] ? wbc_detach_inode+0x780/0x780 [ 530.536401] ? queue_io+0x400/0x5a0 [ 530.540008] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 530.545445] wb_writeback+0x243/0xb80 [ 530.549238] ? writeback_inodes_wb.constprop.0+0x1a0/0x1a0 [ 530.554846] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 530.560306] wb_workfn+0x2bd/0xf50 [ 530.563829] ? process_one_work+0x6c4/0x14a0 [ 530.568220] ? inode_wait_for_writeback+0x30/0x30 [ 530.573041] ? lock_acquire+0x170/0x3f0 [ 530.576996] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 530.582426] process_one_work+0x793/0x14a0 [ 530.586654] ? work_busy+0x320/0x320 [ 530.590359] ? worker_thread+0x158/0xff0 [ 530.594426] ? _raw_spin_unlock_irq+0x24/0x80 [ 530.598900] worker_thread+0x5cc/0xff0 [ 530.602787] ? rescuer_thread+0xc80/0xc80 [ 530.606920] kthread+0x30d/0x420 [ 530.610274] ? kthread_create_on_node+0xd0/0xd0 [ 530.614923] ret_from_fork+0x24/0x30 [ 530.619264] XFS (loop1): page discard on page ffffea0001093140, inode 0x29, offset 1474560. [ 530.628160] XFS (loop1): Internal error XFS_WANT_CORRUPTED_RETURN at line 431 of file fs/xfs/libxfs/xfs_alloc.c. Caller xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 530.642705] CPU: 1 PID: 2818 Comm: kworker/u4:3 Not tainted 4.14.303-syzkaller #0 [ 530.650318] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023 [ 530.659666] Workqueue: writeback wb_workfn (flush-7:1) [ 530.664931] Call Trace: [ 530.667525] dump_stack+0x1b2/0x281 [ 530.671152] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 530.676417] xfs_error_report+0x98/0xa0 [ 530.680376] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 530.685658] xfs_alloc_fixup_trees+0x425/0x4f0 [ 530.690235] ? xfs_alloc_update+0x90/0x90 [ 530.694363] ? xfs_btree_rec_offset.isra.0+0x3b/0xa0 [ 530.699448] ? xfs_alloc_compute_diff+0x23c/0x3d0 [ 530.704279] xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 530.709374] ? xfs_alloc_fix_freelist+0x685/0xeb0 [ 530.714201] ? xfs_alloc_ag_vextent_size+0x1ea0/0x1ea0 [ 530.719467] ? xfs_alloc_read_agf+0xb10/0xb10 [ 530.723954] xfs_alloc_ag_vextent+0x579/0x750 [ 530.728430] ? xfs_perag_get+0x116/0x410 [ 530.732486] ? xfs_alloc_vextent+0x470/0x2010 [ 530.737082] xfs_alloc_vextent+0x10b0/0x2010 [ 530.741482] xfs_bmap_btalloc+0x9e5/0x1b20 [ 530.745708] ? xfs_bmap_adjacent+0x1480/0x1480 [ 530.750279] ? ret_from_fork+0x24/0x30 [ 530.754158] ? __xfs_bmbt_get_all+0x16/0x100 [ 530.758580] xfs_bmap_alloc+0x107/0x160 [ 530.762542] xfs_bmapi_write+0xa49/0x1d00 [ 530.766687] ? xfs_bmapi_reserve_delalloc+0x7c0/0x7c0 [ 530.771864] ? trace_hardirqs_on+0x10/0x10 [ 530.776080] ? xfs_iext_get_ext+0xeb/0x200 [ 530.780293] ? xfs_iext_idx_to_irec+0x340/0x340 [ 530.784959] ? xfs_bmap_last_extent+0x1d0/0x1d0 [ 530.789619] xfs_iomap_write_allocate+0x42b/0xa30 [ 530.794464] ? xfs_file_iomap_begin+0x1ed0/0x1ed0 [ 530.799290] ? xfs_iunlock+0x248/0x3b0 [ 530.803237] ? rcu_read_lock_sched_held+0x16c/0x1d0 [ 530.808246] ? xfs_iunlock+0x21a/0x3b0 [ 530.812118] xfs_map_blocks+0x548/0x940 [ 530.816087] ? xfs_vm_set_page_dirty+0x610/0x610 [ 530.820844] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 530.826290] xfs_do_writepage+0x422/0x13d0 [ 530.830521] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 530.834830] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 530.840266] write_cache_pages+0x505/0xd20 [ 530.844495] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 530.848810] ? clear_page_dirty_for_io+0xb80/0xb80 [ 530.853731] ? trace_hardirqs_on+0x10/0x10 [ 530.857981] xfs_vm_writepages+0x258/0x340 [ 530.862217] ? xfs_vm_writepage+0xd0/0xd0 [ 530.866366] ? xfs_vm_writepage+0xd0/0xd0 [ 530.870502] do_writepages+0xc3/0x240 [ 530.874288] ? page_writeback_cpu_online+0x10/0x10 [ 530.879205] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 530.884648] __writeback_single_inode+0xda/0x1010 [ 530.889482] writeback_sb_inodes+0x48b/0xd30 [ 530.893873] ? wbc_detach_inode+0x780/0x780 [ 530.898184] ? queue_io+0x400/0x5a0 [ 530.901797] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 530.907235] wb_writeback+0x243/0xb80 [ 530.911027] ? writeback_inodes_wb.constprop.0+0x1a0/0x1a0 [ 530.916635] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 530.922091] wb_workfn+0x2bd/0xf50 [ 530.925624] ? process_one_work+0x6c4/0x14a0 [ 530.930020] ? inode_wait_for_writeback+0x30/0x30 [ 530.934846] ? lock_acquire+0x170/0x3f0 [ 530.938803] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 530.944244] process_one_work+0x793/0x14a0 [ 530.948468] ? work_busy+0x320/0x320 [ 530.952164] ? worker_thread+0x158/0xff0 [ 530.956211] ? _raw_spin_unlock_irq+0x24/0x80 [ 530.960687] worker_thread+0x5cc/0xff0 [ 530.964572] ? rescuer_thread+0xc80/0xc80 [ 530.968706] kthread+0x30d/0x420 [ 530.972051] ? kthread_create_on_node+0xd0/0xd0 [ 530.976698] ret_from_fork+0x24/0x30 [ 530.981078] XFS (loop1): page discard on page ffffea0001093180, inode 0x29, offset 1478656. [ 530.990005] XFS (loop1): Internal error XFS_WANT_CORRUPTED_RETURN at line 431 of file fs/xfs/libxfs/xfs_alloc.c. Caller xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 531.004568] CPU: 1 PID: 2818 Comm: kworker/u4:3 Not tainted 4.14.303-syzkaller #0 [ 531.012183] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023 [ 531.021539] Workqueue: writeback wb_workfn (flush-7:1) [ 531.026811] Call Trace: [ 531.029392] dump_stack+0x1b2/0x281 [ 531.033010] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 531.038269] xfs_error_report+0x98/0xa0 [ 531.042226] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 531.047484] xfs_alloc_fixup_trees+0x425/0x4f0 [ 531.052046] ? xfs_alloc_update+0x90/0x90 [ 531.056181] ? xfs_btree_rec_offset.isra.0+0x3b/0xa0 [ 531.061275] ? xfs_alloc_compute_diff+0x23c/0x3d0 [ 531.066097] xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 531.071188] ? xfs_alloc_fix_freelist+0x685/0xeb0 [ 531.076016] ? xfs_alloc_ag_vextent_size+0x1ea0/0x1ea0 [ 531.081278] ? xfs_alloc_read_agf+0xb10/0xb10 [ 531.085760] xfs_alloc_ag_vextent+0x579/0x750 [ 531.090239] ? xfs_perag_get+0x116/0x410 [ 531.094285] ? xfs_alloc_vextent+0x470/0x2010 [ 531.098765] xfs_alloc_vextent+0x10b0/0x2010 [ 531.103159] xfs_bmap_btalloc+0x9e5/0x1b20 [ 531.107379] ? xfs_bmap_adjacent+0x1480/0x1480 [ 531.111940] ? ret_from_fork+0x24/0x30 [ 531.115825] ? __xfs_bmbt_get_all+0x16/0x100 [ 531.120226] xfs_bmap_alloc+0x107/0x160 [ 531.124194] xfs_bmapi_write+0xa49/0x1d00 [ 531.128333] ? xfs_bmapi_reserve_delalloc+0x7c0/0x7c0 [ 531.133500] ? trace_hardirqs_on+0x10/0x10 [ 531.137721] ? xfs_iext_get_ext+0xeb/0x200 [ 531.141941] ? xfs_iext_idx_to_irec+0x340/0x340 [ 531.146596] ? xfs_bmap_last_extent+0x1d0/0x1d0 [ 531.151247] xfs_iomap_write_allocate+0x42b/0xa30 [ 531.156086] ? xfs_file_iomap_begin+0x1ed0/0x1ed0 [ 531.160913] ? xfs_iunlock+0x248/0x3b0 [ 531.164792] ? rcu_read_lock_sched_held+0x16c/0x1d0 [ 531.169784] ? xfs_iunlock+0x21a/0x3b0 [ 531.173649] xfs_map_blocks+0x548/0x940 [ 531.177610] ? xfs_vm_set_page_dirty+0x610/0x610 [ 531.182354] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 531.187784] xfs_do_writepage+0x422/0x13d0 [ 531.192001] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 531.196312] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 531.201756] write_cache_pages+0x505/0xd20 [ 531.205974] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 531.210279] ? clear_page_dirty_for_io+0xb80/0xb80 [ 531.215211] ? trace_hardirqs_on+0x10/0x10 [ 531.219445] xfs_vm_writepages+0x258/0x340 [ 531.223668] ? xfs_vm_writepage+0xd0/0xd0 [ 531.227800] ? xfs_vm_writepage+0xd0/0xd0 [ 531.231927] do_writepages+0xc3/0x240 [ 531.235715] ? page_writeback_cpu_online+0x10/0x10 [ 531.240634] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 531.246064] __writeback_single_inode+0xda/0x1010 [ 531.250888] writeback_sb_inodes+0x48b/0xd30 [ 531.255287] ? wbc_detach_inode+0x780/0x780 [ 531.259596] ? queue_io+0x400/0x5a0 [ 531.263204] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 531.268632] wb_writeback+0x243/0xb80 [ 531.272418] ? writeback_inodes_wb.constprop.0+0x1a0/0x1a0 [ 531.278023] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 531.283453] wb_workfn+0x2bd/0xf50 [ 531.286977] ? process_one_work+0x6c4/0x14a0 [ 531.291363] ? inode_wait_for_writeback+0x30/0x30 [ 531.296196] ? lock_acquire+0x170/0x3f0 [ 531.300158] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 531.305589] process_one_work+0x793/0x14a0 [ 531.309804] ? work_busy+0x320/0x320 [ 531.313496] ? worker_thread+0x158/0xff0 [ 531.317545] ? _raw_spin_unlock_irq+0x24/0x80 [ 531.322028] worker_thread+0x5cc/0xff0 [ 531.325899] ? rescuer_thread+0xc80/0xc80 [ 531.330027] kthread+0x30d/0x420 [ 531.333372] ? kthread_create_on_node+0xd0/0xd0 [ 531.338020] ret_from_fork+0x24/0x30 [ 531.342410] XFS (loop1): page discard on page ffffea00010931c0, inode 0x29, offset 1482752. [ 531.351331] XFS (loop1): Internal error XFS_WANT_CORRUPTED_RETURN at line 431 of file fs/xfs/libxfs/xfs_alloc.c. Caller xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 531.365876] CPU: 1 PID: 2818 Comm: kworker/u4:3 Not tainted 4.14.303-syzkaller #0 [ 531.373485] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023 [ 531.382825] Workqueue: writeback wb_workfn (flush-7:1) [ 531.388080] Call Trace: [ 531.390651] dump_stack+0x1b2/0x281 [ 531.394264] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 531.399525] xfs_error_report+0x98/0xa0 [ 531.403476] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 531.408734] xfs_alloc_fixup_trees+0x425/0x4f0 [ 531.413295] ? xfs_alloc_update+0x90/0x90 [ 531.417430] ? xfs_btree_rec_offset.isra.0+0x3b/0xa0 [ 531.422519] ? xfs_alloc_compute_diff+0x23c/0x3d0 [ 531.427344] xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 531.432427] ? xfs_alloc_fix_freelist+0x685/0xeb0 [ 531.437260] ? xfs_alloc_ag_vextent_size+0x1ea0/0x1ea0 [ 531.442521] ? xfs_alloc_read_agf+0xb10/0xb10 [ 531.447005] xfs_alloc_ag_vextent+0x579/0x750 [ 531.451478] ? xfs_perag_get+0x116/0x410 [ 531.455525] ? xfs_alloc_vextent+0x470/0x2010 [ 531.460004] xfs_alloc_vextent+0x10b0/0x2010 [ 531.464397] xfs_bmap_btalloc+0x9e5/0x1b20 [ 531.468612] ? xfs_bmap_adjacent+0x1480/0x1480 [ 531.473174] ? ret_from_fork+0x24/0x30 [ 531.477058] ? __xfs_bmbt_get_all+0x16/0x100 [ 531.481458] xfs_bmap_alloc+0x107/0x160 [ 531.485410] xfs_bmapi_write+0xa49/0x1d00 [ 531.489543] ? xfs_bmapi_reserve_delalloc+0x7c0/0x7c0 [ 531.494722] ? trace_hardirqs_on+0x10/0x10 [ 531.498950] ? xfs_iext_get_ext+0xeb/0x200 [ 531.503167] ? xfs_iext_idx_to_irec+0x340/0x340 [ 531.507820] ? xfs_bmap_last_extent+0x1d0/0x1d0 [ 531.512472] xfs_iomap_write_allocate+0x42b/0xa30 [ 531.517315] ? xfs_file_iomap_begin+0x1ed0/0x1ed0 [ 531.522145] ? xfs_iunlock+0x248/0x3b0 [ 531.526020] ? rcu_read_lock_sched_held+0x16c/0x1d0 [ 531.531014] ? xfs_iunlock+0x21a/0x3b0 [ 531.534887] xfs_map_blocks+0x548/0x940 [ 531.538856] ? xfs_vm_set_page_dirty+0x610/0x610 [ 531.543600] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 531.549032] xfs_do_writepage+0x422/0x13d0 [ 531.553252] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 531.557562] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 531.562999] write_cache_pages+0x505/0xd20 [ 531.567216] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 531.571517] ? clear_page_dirty_for_io+0xb80/0xb80 [ 531.576441] ? trace_hardirqs_on+0x10/0x10 [ 531.580664] xfs_vm_writepages+0x258/0x340 [ 531.584877] ? xfs_vm_writepage+0xd0/0xd0 [ 531.589007] ? xfs_vm_writepage+0xd0/0xd0 [ 531.593133] do_writepages+0xc3/0x240 [ 531.596924] ? page_writeback_cpu_online+0x10/0x10 [ 531.601845] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 531.607279] __writeback_single_inode+0xda/0x1010 [ 531.612106] writeback_sb_inodes+0x48b/0xd30 [ 531.616510] ? wbc_detach_inode+0x780/0x780 [ 531.620820] ? queue_io+0x400/0x5a0 [ 531.624430] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 531.629865] wb_writeback+0x243/0xb80 [ 531.633648] ? writeback_inodes_wb.constprop.0+0x1a0/0x1a0 [ 531.639256] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 531.644686] wb_workfn+0x2bd/0xf50 [ 531.648211] ? process_one_work+0x6c4/0x14a0 [ 531.652600] ? inode_wait_for_writeback+0x30/0x30 [ 531.657426] ? lock_acquire+0x170/0x3f0 [ 531.661390] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 531.666819] process_one_work+0x793/0x14a0 [ 531.671038] ? work_busy+0x320/0x320 [ 531.674733] ? worker_thread+0x158/0xff0 [ 531.678784] ? _raw_spin_unlock_irq+0x24/0x80 [ 531.683259] worker_thread+0x5cc/0xff0 [ 531.687132] ? rescuer_thread+0xc80/0xc80 [ 531.691261] kthread+0x30d/0x420 [ 531.694609] ? kthread_create_on_node+0xd0/0xd0 [ 531.699271] ret_from_fork+0x24/0x30 [ 531.703552] XFS (loop1): page discard on page ffffea0001093200, inode 0x29, offset 1486848. [ 531.712472] XFS (loop1): Internal error XFS_WANT_CORRUPTED_RETURN at line 431 of file fs/xfs/libxfs/xfs_alloc.c. Caller xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 531.727013] CPU: 1 PID: 2818 Comm: kworker/u4:3 Not tainted 4.14.303-syzkaller #0 [ 531.734623] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023 [ 531.744322] Workqueue: writeback wb_workfn (flush-7:1) [ 531.749579] Call Trace: [ 531.752146] dump_stack+0x1b2/0x281 [ 531.755769] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 531.761037] xfs_error_report+0x98/0xa0 [ 531.764990] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 531.770248] xfs_alloc_fixup_trees+0x425/0x4f0 [ 531.774825] ? xfs_alloc_update+0x90/0x90 [ 531.778961] ? xfs_btree_rec_offset.isra.0+0x3b/0xa0 [ 531.784046] ? xfs_alloc_compute_diff+0x23c/0x3d0 [ 531.788870] xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 531.793957] ? xfs_alloc_fix_freelist+0x685/0xeb0 [ 531.798782] ? xfs_alloc_ag_vextent_size+0x1ea0/0x1ea0 [ 531.804039] ? xfs_alloc_read_agf+0xb10/0xb10 [ 531.808525] xfs_alloc_ag_vextent+0x579/0x750 [ 531.812997] ? xfs_perag_get+0x116/0x410 [ 531.817044] ? xfs_alloc_vextent+0x470/0x2010 [ 531.821524] xfs_alloc_vextent+0x10b0/0x2010 [ 531.825919] xfs_bmap_btalloc+0x9e5/0x1b20 [ 531.830135] ? xfs_bmap_adjacent+0x1480/0x1480 [ 531.834701] ? ret_from_fork+0x24/0x30 [ 531.838582] ? __xfs_bmbt_get_all+0x16/0x100 [ 531.842969] xfs_bmap_alloc+0x107/0x160 [ 531.846925] xfs_bmapi_write+0xa49/0x1d00 [ 531.851057] ? xfs_bmapi_reserve_delalloc+0x7c0/0x7c0 [ 531.856237] ? trace_hardirqs_on+0x10/0x10 [ 531.860460] ? xfs_iext_get_ext+0xeb/0x200 [ 531.864674] ? xfs_iext_idx_to_irec+0x340/0x340 [ 531.869326] ? xfs_bmap_last_extent+0x1d0/0x1d0 [ 531.873977] xfs_iomap_write_allocate+0x42b/0xa30 [ 531.878803] ? xfs_file_iomap_begin+0x1ed0/0x1ed0 [ 531.883638] ? xfs_iunlock+0x248/0x3b0 [ 531.887516] ? rcu_read_lock_sched_held+0x16c/0x1d0 [ 531.892510] ? xfs_iunlock+0x21a/0x3b0 [ 531.896388] xfs_map_blocks+0x548/0x940 [ 531.900380] ? xfs_vm_set_page_dirty+0x610/0x610 [ 531.905118] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 531.910548] xfs_do_writepage+0x422/0x13d0 [ 531.914780] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 531.919097] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 531.924532] write_cache_pages+0x505/0xd20 [ 531.928751] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 531.933059] ? clear_page_dirty_for_io+0xb80/0xb80 [ 531.937989] ? trace_hardirqs_on+0x10/0x10 [ 531.942216] xfs_vm_writepages+0x258/0x340 [ 531.946437] ? xfs_vm_writepage+0xd0/0xd0 [ 531.950567] ? xfs_vm_writepage+0xd0/0xd0 [ 531.954702] do_writepages+0xc3/0x240 [ 531.958489] ? page_writeback_cpu_online+0x10/0x10 [ 531.963400] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 531.968833] __writeback_single_inode+0xda/0x1010 [ 531.973664] writeback_sb_inodes+0x48b/0xd30 [ 531.978067] ? wbc_detach_inode+0x780/0x780 [ 531.982371] ? queue_io+0x400/0x5a0 [ 531.985979] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 531.991446] wb_writeback+0x243/0xb80 [ 531.995247] ? writeback_inodes_wb.constprop.0+0x1a0/0x1a0 [ 532.000862] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 532.006293] wb_workfn+0x2bd/0xf50 [ 532.009817] ? process_one_work+0x6c4/0x14a0 [ 532.014214] ? inode_wait_for_writeback+0x30/0x30 [ 532.019058] ? lock_acquire+0x170/0x3f0 [ 532.023016] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 532.028449] process_one_work+0x793/0x14a0 [ 532.033103] ? work_busy+0x320/0x320 [ 532.036806] ? worker_thread+0x158/0xff0 [ 532.040857] ? _raw_spin_unlock_irq+0x24/0x80 [ 532.045336] worker_thread+0x5cc/0xff0 [ 532.049210] ? rescuer_thread+0xc80/0xc80 [ 532.053342] kthread+0x30d/0x420 [ 532.056784] ? kthread_create_on_node+0xd0/0xd0 [ 532.061444] ret_from_fork+0x24/0x30 [ 532.065554] XFS (loop1): page discard on page ffffea0001093240, inode 0x29, offset 1490944. [ 532.074440] XFS (loop1): Internal error XFS_WANT_CORRUPTED_RETURN at line 431 of file fs/xfs/libxfs/xfs_alloc.c. Caller xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 532.088968] CPU: 1 PID: 2818 Comm: kworker/u4:3 Not tainted 4.14.303-syzkaller #0 [ 532.096583] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023 [ 532.105933] Workqueue: writeback wb_workfn (flush-7:1) [ 532.111194] Call Trace: [ 532.113763] dump_stack+0x1b2/0x281 [ 532.117466] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 532.122727] xfs_error_report+0x98/0xa0 [ 532.126681] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 532.131940] xfs_alloc_fixup_trees+0x425/0x4f0 [ 532.136511] ? xfs_alloc_update+0x90/0x90 [ 532.140646] ? xfs_btree_rec_offset.isra.0+0x3b/0xa0 [ 532.145728] ? xfs_alloc_compute_diff+0x23c/0x3d0 [ 532.150574] xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 532.155672] ? xfs_alloc_fix_freelist+0x685/0xeb0 [ 532.160501] ? xfs_alloc_ag_vextent_size+0x1ea0/0x1ea0 [ 532.165760] ? xfs_alloc_read_agf+0xb10/0xb10 [ 532.170243] xfs_alloc_ag_vextent+0x579/0x750 [ 532.174724] ? xfs_perag_get+0x116/0x410 [ 532.178772] ? xfs_alloc_vextent+0x470/0x2010 [ 532.183248] xfs_alloc_vextent+0x10b0/0x2010 [ 532.187641] xfs_bmap_btalloc+0x9e5/0x1b20 [ 532.191857] ? xfs_bmap_adjacent+0x1480/0x1480 [ 532.196424] ? ret_from_fork+0x24/0x30 [ 532.200306] ? __xfs_bmbt_get_all+0x16/0x100 [ 532.204695] xfs_bmap_alloc+0x107/0x160 [ 532.208647] xfs_bmapi_write+0xa49/0x1d00 [ 532.212780] ? xfs_bmapi_reserve_delalloc+0x7c0/0x7c0 [ 532.217984] ? trace_hardirqs_on+0x10/0x10 [ 532.222207] ? xfs_iext_get_ext+0xeb/0x200 [ 532.226447] ? xfs_iext_idx_to_irec+0x340/0x340 [ 532.231101] ? xfs_bmap_last_extent+0x1d0/0x1d0 [ 532.235767] xfs_iomap_write_allocate+0x42b/0xa30 [ 532.240630] ? xfs_file_iomap_begin+0x1ed0/0x1ed0 [ 532.245455] ? xfs_iunlock+0x248/0x3b0 [ 532.249329] ? rcu_read_lock_sched_held+0x16c/0x1d0 [ 532.254337] ? xfs_iunlock+0x21a/0x3b0 [ 532.258270] xfs_map_blocks+0x548/0x940 [ 532.262248] ? xfs_vm_set_page_dirty+0x610/0x610 [ 532.266993] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 532.272422] xfs_do_writepage+0x422/0x13d0 [ 532.276652] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 532.280966] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 532.286398] write_cache_pages+0x505/0xd20 [ 532.290612] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 532.294921] ? clear_page_dirty_for_io+0xb80/0xb80 [ 532.299844] ? trace_hardirqs_on+0x10/0x10 [ 532.304064] xfs_vm_writepages+0x258/0x340 [ 532.308278] ? xfs_vm_writepage+0xd0/0xd0 [ 532.312408] ? xfs_vm_writepage+0xd0/0xd0 [ 532.316557] do_writepages+0xc3/0x240 [ 532.320348] ? page_writeback_cpu_online+0x10/0x10 [ 532.325261] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 532.330692] __writeback_single_inode+0xda/0x1010 [ 532.335524] writeback_sb_inodes+0x48b/0xd30 [ 532.339922] ? wbc_detach_inode+0x780/0x780 [ 532.344235] ? queue_io+0x400/0x5a0 [ 532.347846] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 532.353281] wb_writeback+0x243/0xb80 [ 532.357076] ? writeback_inodes_wb.constprop.0+0x1a0/0x1a0 [ 532.362697] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 532.368126] wb_workfn+0x2bd/0xf50 [ 532.371648] ? process_one_work+0x6c4/0x14a0 [ 532.376041] ? inode_wait_for_writeback+0x30/0x30 [ 532.380871] ? lock_acquire+0x170/0x3f0 [ 532.384827] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 532.390258] process_one_work+0x793/0x14a0 [ 532.394486] ? work_busy+0x320/0x320 [ 532.398185] ? worker_thread+0x158/0xff0 [ 532.402250] ? _raw_spin_unlock_irq+0x24/0x80 [ 532.406729] worker_thread+0x5cc/0xff0 [ 532.410599] ? rescuer_thread+0xc80/0xc80 [ 532.414734] kthread+0x30d/0x420 [ 532.418089] ? kthread_create_on_node+0xd0/0xd0 [ 532.422742] ret_from_fork+0x24/0x30 [ 532.426997] XFS (loop1): page discard on page ffffea0001093280, inode 0x29, offset 1495040. [ 532.435910] XFS (loop1): Internal error XFS_WANT_CORRUPTED_RETURN at line 431 of file fs/xfs/libxfs/xfs_alloc.c. Caller xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 532.450456] CPU: 1 PID: 2818 Comm: kworker/u4:3 Not tainted 4.14.303-syzkaller #0 [ 532.458068] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023 [ 532.467420] Workqueue: writeback wb_workfn (flush-7:1) [ 532.472681] Call Trace: [ 532.475257] dump_stack+0x1b2/0x281 [ 532.478873] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 532.484139] xfs_error_report+0x98/0xa0 [ 532.488096] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 532.493356] xfs_alloc_fixup_trees+0x425/0x4f0 [ 532.497926] ? xfs_alloc_update+0x90/0x90 [ 532.502062] ? xfs_btree_rec_offset.isra.0+0x3b/0xa0 [ 532.507146] ? xfs_alloc_compute_diff+0x23c/0x3d0 [ 532.511989] xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 532.517092] ? xfs_alloc_fix_freelist+0x685/0xeb0 [ 532.521921] ? xfs_alloc_ag_vextent_size+0x1ea0/0x1ea0 [ 532.527178] ? xfs_alloc_read_agf+0xb10/0xb10 [ 532.531667] xfs_alloc_ag_vextent+0x579/0x750 [ 532.536161] ? xfs_perag_get+0x116/0x410 [ 532.540211] ? xfs_alloc_vextent+0x470/0x2010 [ 532.544687] xfs_alloc_vextent+0x10b0/0x2010 [ 532.549085] xfs_bmap_btalloc+0x9e5/0x1b20 [ 532.553332] ? xfs_bmap_adjacent+0x1480/0x1480 [ 532.557892] ? ret_from_fork+0x24/0x30 [ 532.561766] ? __xfs_bmbt_get_all+0x16/0x100 [ 532.566160] xfs_bmap_alloc+0x107/0x160 [ 532.570117] xfs_bmapi_write+0xa49/0x1d00 [ 532.574259] ? xfs_bmapi_reserve_delalloc+0x7c0/0x7c0 [ 532.579441] ? trace_hardirqs_on+0x10/0x10 [ 532.583663] ? xfs_iext_get_ext+0xeb/0x200 [ 532.587879] ? xfs_iext_idx_to_irec+0x340/0x340 [ 532.592531] ? xfs_bmap_last_extent+0x1d0/0x1d0 [ 532.597200] xfs_iomap_write_allocate+0x42b/0xa30 [ 532.602033] ? xfs_file_iomap_begin+0x1ed0/0x1ed0 [ 532.606855] ? xfs_iunlock+0x248/0x3b0 [ 532.610728] ? rcu_read_lock_sched_held+0x16c/0x1d0 [ 532.615729] ? xfs_iunlock+0x21a/0x3b0 [ 532.619605] xfs_map_blocks+0x548/0x940 [ 532.623557] ? xfs_vm_set_page_dirty+0x610/0x610 [ 532.628295] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 532.633724] xfs_do_writepage+0x422/0x13d0 [ 532.637940] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 532.642242] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 532.647672] write_cache_pages+0x505/0xd20 [ 532.651885] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 532.656205] ? clear_page_dirty_for_io+0xb80/0xb80 [ 532.661135] ? trace_hardirqs_on+0x10/0x10 [ 532.665393] xfs_vm_writepages+0x258/0x340 [ 532.669619] ? xfs_vm_writepage+0xd0/0xd0 [ 532.673754] ? xfs_vm_writepage+0xd0/0xd0 [ 532.677884] do_writepages+0xc3/0x240 [ 532.681671] ? page_writeback_cpu_online+0x10/0x10 [ 532.686585] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 532.692019] __writeback_single_inode+0xda/0x1010 [ 532.696853] writeback_sb_inodes+0x48b/0xd30 [ 532.701254] ? wbc_detach_inode+0x780/0x780 [ 532.705595] ? queue_io+0x400/0x5a0 [ 532.709204] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 532.714641] wb_writeback+0x243/0xb80 [ 532.718444] ? writeback_inodes_wb.constprop.0+0x1a0/0x1a0 [ 532.724063] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 532.729503] wb_workfn+0x2bd/0xf50 [ 532.733046] ? process_one_work+0x6c4/0x14a0 [ 532.737452] ? inode_wait_for_writeback+0x30/0x30 [ 532.742293] ? lock_acquire+0x170/0x3f0 [ 532.746294] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 532.751761] process_one_work+0x793/0x14a0 [ 532.755989] ? work_busy+0x320/0x320 [ 532.759692] ? worker_thread+0x158/0xff0 [ 532.763734] ? _raw_spin_unlock_irq+0x24/0x80 [ 532.768212] worker_thread+0x5cc/0xff0 [ 532.772099] ? rescuer_thread+0xc80/0xc80 [ 532.776236] kthread+0x30d/0x420 [ 532.779593] ? kthread_create_on_node+0xd0/0xd0 [ 532.784249] ret_from_fork+0x24/0x30 [ 532.788406] XFS (loop1): page discard on page ffffea00010932c0, inode 0x29, offset 1499136. [ 532.797348] XFS (loop1): Internal error XFS_WANT_CORRUPTED_RETURN at line 431 of file fs/xfs/libxfs/xfs_alloc.c. Caller xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 532.811893] CPU: 1 PID: 2818 Comm: kworker/u4:3 Not tainted 4.14.303-syzkaller #0 [ 532.819509] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023 [ 532.828861] Workqueue: writeback wb_workfn (flush-7:1) [ 532.834140] Call Trace: [ 532.836721] dump_stack+0x1b2/0x281 [ 532.840339] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 532.845603] xfs_error_report+0x98/0xa0 [ 532.849561] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 532.854830] xfs_alloc_fixup_trees+0x425/0x4f0 [ 532.859402] ? xfs_alloc_update+0x90/0x90 [ 532.863531] ? xfs_btree_rec_offset.isra.0+0x3b/0xa0 [ 532.868630] ? xfs_alloc_compute_diff+0x23c/0x3d0 [ 532.873464] xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 532.878556] ? xfs_alloc_fix_freelist+0x685/0xeb0 [ 532.883390] ? xfs_alloc_ag_vextent_size+0x1ea0/0x1ea0 [ 532.888653] ? xfs_alloc_read_agf+0xb10/0xb10 [ 532.893141] xfs_alloc_ag_vextent+0x579/0x750 [ 532.897629] ? xfs_perag_get+0x116/0x410 [ 532.901677] ? xfs_alloc_vextent+0x470/0x2010 [ 532.906156] xfs_alloc_vextent+0x10b0/0x2010 [ 532.910560] xfs_bmap_btalloc+0x9e5/0x1b20 [ 532.914790] ? xfs_bmap_adjacent+0x1480/0x1480 [ 532.919359] ? ret_from_fork+0x24/0x30 [ 532.923236] ? __xfs_bmbt_get_all+0x16/0x100 [ 532.927669] xfs_bmap_alloc+0x107/0x160 [ 532.931625] xfs_bmapi_write+0xa49/0x1d00 [ 532.935773] ? xfs_bmapi_reserve_delalloc+0x7c0/0x7c0 [ 532.940954] ? trace_hardirqs_on+0x10/0x10 [ 532.945180] ? xfs_iext_get_ext+0xeb/0x200 [ 532.949423] ? xfs_iext_idx_to_irec+0x340/0x340 [ 532.954079] ? xfs_bmap_last_extent+0x1d0/0x1d0 [ 532.958742] xfs_iomap_write_allocate+0x42b/0xa30 [ 532.963573] ? xfs_file_iomap_begin+0x1ed0/0x1ed0 [ 532.968398] ? xfs_iunlock+0x248/0x3b0 [ 532.972274] ? rcu_read_lock_sched_held+0x16c/0x1d0 [ 532.977278] ? xfs_iunlock+0x21a/0x3b0 [ 532.981179] xfs_map_blocks+0x548/0x940 [ 532.985134] ? xfs_vm_set_page_dirty+0x610/0x610 [ 532.989874] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 532.995310] xfs_do_writepage+0x422/0x13d0 [ 532.999538] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 533.003841] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 533.009269] write_cache_pages+0x505/0xd20 [ 533.013483] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 533.017789] ? clear_page_dirty_for_io+0xb80/0xb80 [ 533.022701] ? trace_hardirqs_on+0x10/0x10 [ 533.026914] xfs_vm_writepages+0x258/0x340 [ 533.031124] ? xfs_vm_writepage+0xd0/0xd0 [ 533.035262] ? xfs_vm_writepage+0xd0/0xd0 [ 533.039393] do_writepages+0xc3/0x240 [ 533.043174] ? page_writeback_cpu_online+0x10/0x10 [ 533.048083] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 533.053550] __writeback_single_inode+0xda/0x1010 [ 533.058382] writeback_sb_inodes+0x48b/0xd30 [ 533.062786] ? wbc_detach_inode+0x780/0x780 [ 533.067089] ? queue_io+0x400/0x5a0 [ 533.070703] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 533.077100] wb_writeback+0x243/0xb80 [ 533.080891] ? writeback_inodes_wb.constprop.0+0x1a0/0x1a0 [ 533.086499] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 533.091926] wb_workfn+0x2bd/0xf50 [ 533.095460] ? process_one_work+0x6c4/0x14a0 [ 533.099873] ? inode_wait_for_writeback+0x30/0x30 [ 533.104703] ? lock_acquire+0x170/0x3f0 [ 533.108675] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 533.114131] process_one_work+0x793/0x14a0 [ 533.118361] ? work_busy+0x320/0x320 [ 533.122068] ? worker_thread+0x158/0xff0 [ 533.126148] ? _raw_spin_unlock_irq+0x24/0x80 [ 533.130628] worker_thread+0x5cc/0xff0 [ 533.134515] ? rescuer_thread+0xc80/0xc80 [ 533.138669] kthread+0x30d/0x420 [ 533.142036] ? kthread_create_on_node+0xd0/0xd0 [ 533.146694] ret_from_fork+0x24/0x30 [ 533.151069] XFS (loop1): page discard on page ffffea0001093300, inode 0x29, offset 1503232. [ 533.160087] XFS (loop1): Internal error XFS_WANT_CORRUPTED_RETURN at line 431 of file fs/xfs/libxfs/xfs_alloc.c. Caller xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 533.174632] CPU: 1 PID: 2818 Comm: kworker/u4:3 Not tainted 4.14.303-syzkaller #0 [ 533.182241] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023 [ 533.191584] Workqueue: writeback wb_workfn (flush-7:1) [ 533.196842] Call Trace: [ 533.199409] dump_stack+0x1b2/0x281 [ 533.203015] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 533.208274] xfs_error_report+0x98/0xa0 [ 533.212225] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 533.217479] xfs_alloc_fixup_trees+0x425/0x4f0 [ 533.222039] ? xfs_alloc_update+0x90/0x90 [ 533.226169] ? xfs_btree_rec_offset.isra.0+0x3b/0xa0 [ 533.231267] ? xfs_alloc_compute_diff+0x23c/0x3d0 [ 533.236102] xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 533.241212] ? xfs_alloc_fix_freelist+0x685/0xeb0 [ 533.246046] ? xfs_alloc_ag_vextent_size+0x1ea0/0x1ea0 [ 533.251318] ? xfs_alloc_read_agf+0xb10/0xb10 [ 533.255803] xfs_alloc_ag_vextent+0x579/0x750 [ 533.260284] ? xfs_perag_get+0x116/0x410 [ 533.264327] ? xfs_alloc_vextent+0x470/0x2010 [ 533.268986] xfs_alloc_vextent+0x10b0/0x2010 [ 533.273383] xfs_bmap_btalloc+0x9e5/0x1b20 [ 533.277602] ? xfs_bmap_adjacent+0x1480/0x1480 [ 533.282172] ? ret_from_fork+0x24/0x30 [ 533.286062] ? __xfs_bmbt_get_all+0x16/0x100 [ 533.290461] xfs_bmap_alloc+0x107/0x160 [ 533.294425] xfs_bmapi_write+0xa49/0x1d00 [ 533.298586] ? xfs_bmapi_reserve_delalloc+0x7c0/0x7c0 [ 533.303772] ? trace_hardirqs_on+0x10/0x10 [ 533.307990] ? xfs_iext_get_ext+0xeb/0x200 [ 533.312209] ? xfs_iext_idx_to_irec+0x340/0x340 [ 533.316868] ? xfs_bmap_last_extent+0x1d0/0x1d0 [ 533.321518] xfs_iomap_write_allocate+0x42b/0xa30 [ 533.326363] ? xfs_file_iomap_begin+0x1ed0/0x1ed0 [ 533.331205] ? xfs_iunlock+0x248/0x3b0 [ 533.335084] ? rcu_read_lock_sched_held+0x16c/0x1d0 [ 533.340080] ? xfs_iunlock+0x21a/0x3b0 [ 533.343946] xfs_map_blocks+0x548/0x940 [ 533.347900] ? xfs_vm_set_page_dirty+0x610/0x610 [ 533.352898] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 533.358345] xfs_do_writepage+0x422/0x13d0 [ 533.362559] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 533.366869] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 533.372317] write_cache_pages+0x505/0xd20 [ 533.376532] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 533.380854] ? clear_page_dirty_for_io+0xb80/0xb80 [ 533.385790] ? trace_hardirqs_on+0x10/0x10 [ 533.390022] xfs_vm_writepages+0x258/0x340 [ 533.394235] ? xfs_vm_writepage+0xd0/0xd0 [ 533.398369] ? xfs_vm_writepage+0xd0/0xd0 [ 533.402510] do_writepages+0xc3/0x240 [ 533.406304] ? page_writeback_cpu_online+0x10/0x10 [ 533.411355] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 533.416788] __writeback_single_inode+0xda/0x1010 [ 533.421615] writeback_sb_inodes+0x48b/0xd30 [ 533.426019] ? wbc_detach_inode+0x780/0x780 [ 533.430326] ? queue_io+0x400/0x5a0 [ 533.433929] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 533.439355] wb_writeback+0x243/0xb80 [ 533.443131] ? writeback_inodes_wb.constprop.0+0x1a0/0x1a0 [ 533.448732] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 533.454158] wb_workfn+0x2bd/0xf50 [ 533.457679] ? process_one_work+0x6c4/0x14a0 [ 533.462064] ? inode_wait_for_writeback+0x30/0x30 [ 533.466885] ? lock_acquire+0x170/0x3f0 [ 533.470841] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 533.476327] process_one_work+0x793/0x14a0 [ 533.480557] ? work_busy+0x320/0x320 [ 533.484258] ? worker_thread+0x158/0xff0 [ 533.488305] ? _raw_spin_unlock_irq+0x24/0x80 [ 533.492781] worker_thread+0x5cc/0xff0 [ 533.496649] ? rescuer_thread+0xc80/0xc80 [ 533.500797] kthread+0x30d/0x420 [ 533.504146] ? kthread_create_on_node+0xd0/0xd0 [ 533.508802] ret_from_fork+0x24/0x30 [ 533.513191] XFS (loop1): page discard on page ffffea0001093340, inode 0x29, offset 1507328. [ 533.522131] XFS (loop1): Internal error XFS_WANT_CORRUPTED_RETURN at line 431 of file fs/xfs/libxfs/xfs_alloc.c. Caller xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 533.536723] CPU: 1 PID: 2818 Comm: kworker/u4:3 Not tainted 4.14.303-syzkaller #0 [ 533.544794] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023 [ 533.554153] Workqueue: writeback wb_workfn (flush-7:1) [ 533.559407] Call Trace: [ 533.561970] dump_stack+0x1b2/0x281 [ 533.565581] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 533.570841] xfs_error_report+0x98/0xa0 [ 533.574789] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 533.580042] xfs_alloc_fixup_trees+0x425/0x4f0 [ 533.584609] ? xfs_alloc_update+0x90/0x90 [ 533.588735] ? xfs_btree_rec_offset.isra.0+0x3b/0xa0 [ 533.593826] ? xfs_alloc_compute_diff+0x23c/0x3d0 [ 533.598645] xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 533.603726] ? xfs_alloc_fix_freelist+0x685/0xeb0 [ 533.608561] ? xfs_alloc_ag_vextent_size+0x1ea0/0x1ea0 [ 533.613822] ? xfs_alloc_read_agf+0xb10/0xb10 [ 533.618302] xfs_alloc_ag_vextent+0x579/0x750 [ 533.622770] ? xfs_perag_get+0x116/0x410 [ 533.626809] ? xfs_alloc_vextent+0x470/0x2010 [ 533.631309] xfs_alloc_vextent+0x10b0/0x2010 [ 533.635696] xfs_bmap_btalloc+0x9e5/0x1b20 [ 533.639907] ? xfs_bmap_adjacent+0x1480/0x1480 [ 533.644469] ? ret_from_fork+0x24/0x30 [ 533.648346] ? __xfs_bmbt_get_all+0x16/0x100 [ 533.652729] xfs_bmap_alloc+0x107/0x160 [ 533.656674] xfs_bmapi_write+0xa49/0x1d00 [ 533.660802] ? xfs_bmapi_reserve_delalloc+0x7c0/0x7c0 [ 533.665971] ? trace_hardirqs_on+0x10/0x10 [ 533.670189] ? xfs_iext_get_ext+0xeb/0x200 [ 533.674397] ? xfs_iext_idx_to_irec+0x340/0x340 [ 533.679046] ? xfs_bmap_last_extent+0x1d0/0x1d0 [ 533.683692] xfs_iomap_write_allocate+0x42b/0xa30 [ 533.688524] ? xfs_file_iomap_begin+0x1ed0/0x1ed0 [ 533.693345] ? xfs_iunlock+0x248/0x3b0 [ 533.697213] ? rcu_read_lock_sched_held+0x16c/0x1d0 [ 533.702222] ? xfs_iunlock+0x21a/0x3b0 [ 533.706099] xfs_map_blocks+0x548/0x940 [ 533.710058] ? xfs_vm_set_page_dirty+0x610/0x610 [ 533.714791] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 533.720216] xfs_do_writepage+0x422/0x13d0 [ 533.724437] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 533.728741] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 533.734166] write_cache_pages+0x505/0xd20 [ 533.738376] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 533.742672] ? clear_page_dirty_for_io+0xb80/0xb80 [ 533.747589] ? trace_hardirqs_on+0x10/0x10 [ 533.751804] xfs_vm_writepages+0x258/0x340 [ 533.756015] ? xfs_vm_writepage+0xd0/0xd0 [ 533.760141] ? xfs_vm_writepage+0xd0/0xd0 [ 533.764266] do_writepages+0xc3/0x240 [ 533.768140] ? page_writeback_cpu_online+0x10/0x10 [ 533.773065] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 533.778497] __writeback_single_inode+0xda/0x1010 [ 533.783320] writeback_sb_inodes+0x48b/0xd30 [ 533.787715] ? wbc_detach_inode+0x780/0x780 [ 533.792036] ? queue_io+0x400/0x5a0 [ 533.795640] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 533.801066] wb_writeback+0x243/0xb80 [ 533.804852] ? writeback_inodes_wb.constprop.0+0x1a0/0x1a0 [ 533.810463] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 533.815889] wb_workfn+0x2bd/0xf50 [ 533.819413] ? process_one_work+0x6c4/0x14a0 [ 533.823795] ? inode_wait_for_writeback+0x30/0x30 [ 533.828628] ? lock_acquire+0x170/0x3f0 [ 533.832578] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 533.838004] process_one_work+0x793/0x14a0 [ 533.842597] ? work_busy+0x320/0x320 [ 533.846289] ? worker_thread+0x158/0xff0 [ 533.850334] ? _raw_spin_unlock_irq+0x24/0x80 [ 533.854805] worker_thread+0x5cc/0xff0 [ 533.858684] ? rescuer_thread+0xc80/0xc80 [ 533.862825] kthread+0x30d/0x420 [ 533.866180] ? kthread_create_on_node+0xd0/0xd0 [ 533.870848] ret_from_fork+0x24/0x30 [ 533.875145] XFS (loop1): page discard on page ffffea0001093380, inode 0x29, offset 1511424. [ 533.884024] XFS (loop1): Internal error XFS_WANT_CORRUPTED_RETURN at line 431 of file fs/xfs/libxfs/xfs_alloc.c. Caller xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 533.898579] CPU: 1 PID: 2818 Comm: kworker/u4:3 Not tainted 4.14.303-syzkaller #0 [ 533.906197] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023 [ 533.915543] Workqueue: writeback wb_workfn (flush-7:1) [ 533.920797] Call Trace: [ 533.923362] dump_stack+0x1b2/0x281 [ 533.926981] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 533.932240] xfs_error_report+0x98/0xa0 [ 533.936187] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 533.941454] xfs_alloc_fixup_trees+0x425/0x4f0 [ 533.946017] ? xfs_alloc_update+0x90/0x90 [ 533.950161] ? xfs_btree_rec_offset.isra.0+0x3b/0xa0 [ 533.955251] ? xfs_alloc_compute_diff+0x23c/0x3d0 [ 533.960069] xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 533.965159] ? xfs_alloc_fix_freelist+0x685/0xeb0 [ 533.969983] ? xfs_alloc_ag_vextent_size+0x1ea0/0x1ea0 [ 533.975240] ? xfs_alloc_read_agf+0xb10/0xb10 [ 533.979719] xfs_alloc_ag_vextent+0x579/0x750 [ 533.984195] ? xfs_perag_get+0x116/0x410 [ 533.988251] ? xfs_alloc_vextent+0x470/0x2010 [ 533.992718] xfs_alloc_vextent+0x10b0/0x2010 [ 533.997123] xfs_bmap_btalloc+0x9e5/0x1b20 [ 534.001333] ? xfs_bmap_adjacent+0x1480/0x1480 [ 534.005894] ? ret_from_fork+0x24/0x30 [ 534.009771] ? __xfs_bmbt_get_all+0x16/0x100 [ 534.014161] xfs_bmap_alloc+0x107/0x160 [ 534.018115] xfs_bmapi_write+0xa49/0x1d00 [ 534.022241] ? xfs_bmapi_reserve_delalloc+0x7c0/0x7c0 [ 534.027411] ? trace_hardirqs_on+0x10/0x10 [ 534.031627] ? xfs_iext_get_ext+0xeb/0x200 [ 534.035832] ? xfs_iext_idx_to_irec+0x340/0x340 [ 534.040480] ? xfs_bmap_last_extent+0x1d0/0x1d0 [ 534.045135] xfs_iomap_write_allocate+0x42b/0xa30 [ 534.049969] ? xfs_file_iomap_begin+0x1ed0/0x1ed0 [ 534.054786] ? xfs_iunlock+0x248/0x3b0 [ 534.058652] ? rcu_read_lock_sched_held+0x16c/0x1d0 [ 534.063640] ? xfs_iunlock+0x21a/0x3b0 [ 534.067509] xfs_map_blocks+0x548/0x940 [ 534.071463] ? xfs_vm_set_page_dirty+0x610/0x610 [ 534.076198] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 534.081623] xfs_do_writepage+0x422/0x13d0 [ 534.085843] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 534.090148] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 534.095571] write_cache_pages+0x505/0xd20 [ 534.099782] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 534.104271] ? clear_page_dirty_for_io+0xb80/0xb80 [ 534.109187] ? trace_hardirqs_on+0x10/0x10 [ 534.113408] xfs_vm_writepages+0x258/0x340 [ 534.117618] ? xfs_vm_writepage+0xd0/0xd0 [ 534.121754] ? xfs_vm_writepage+0xd0/0xd0 [ 534.125879] do_writepages+0xc3/0x240 [ 534.129664] ? page_writeback_cpu_online+0x10/0x10 [ 534.134570] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 534.139998] __writeback_single_inode+0xda/0x1010 [ 534.144831] writeback_sb_inodes+0x48b/0xd30 [ 534.149223] ? wbc_detach_inode+0x780/0x780 [ 534.153519] ? queue_io+0x400/0x5a0 [ 534.157118] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 534.162540] wb_writeback+0x243/0xb80 [ 534.166329] ? writeback_inodes_wb.constprop.0+0x1a0/0x1a0 [ 534.171937] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 534.177379] wb_workfn+0x2bd/0xf50 [ 534.180897] ? process_one_work+0x6c4/0x14a0 [ 534.185284] ? inode_wait_for_writeback+0x30/0x30 [ 534.190105] ? lock_acquire+0x170/0x3f0 [ 534.194055] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 534.199486] process_one_work+0x793/0x14a0 [ 534.203696] ? work_busy+0x320/0x320 [ 534.207389] ? worker_thread+0x158/0xff0 [ 534.211429] ? _raw_spin_unlock_irq+0x24/0x80 [ 534.215902] worker_thread+0x5cc/0xff0 [ 534.219767] ? rescuer_thread+0xc80/0xc80 [ 534.223907] kthread+0x30d/0x420 [ 534.227254] ? kthread_create_on_node+0xd0/0xd0 [ 534.231903] ret_from_fork+0x24/0x30 [ 534.235997] XFS (loop1): page discard on page ffffea00010933c0, inode 0x29, offset 1515520. [ 534.244884] XFS (loop1): Internal error XFS_WANT_CORRUPTED_RETURN at line 431 of file fs/xfs/libxfs/xfs_alloc.c. Caller xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 534.259434] CPU: 1 PID: 2818 Comm: kworker/u4:3 Not tainted 4.14.303-syzkaller #0 [ 534.267043] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023 [ 534.276390] Workqueue: writeback wb_workfn (flush-7:1) [ 534.281645] Call Trace: [ 534.284214] dump_stack+0x1b2/0x281 [ 534.287825] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 534.293073] xfs_error_report+0x98/0xa0 [ 534.297040] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 534.302293] xfs_alloc_fixup_trees+0x425/0x4f0 [ 534.306855] ? xfs_alloc_update+0x90/0x90 [ 534.310983] ? xfs_btree_rec_offset.isra.0+0x3b/0xa0 [ 534.316057] ? xfs_alloc_compute_diff+0x23c/0x3d0 [ 534.320872] xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 534.325970] ? xfs_alloc_fix_freelist+0x685/0xeb0 [ 534.330792] ? xfs_alloc_ag_vextent_size+0x1ea0/0x1ea0 [ 534.336054] ? xfs_alloc_read_agf+0xb10/0xb10 [ 534.340539] xfs_alloc_ag_vextent+0x579/0x750 [ 534.345012] ? xfs_perag_get+0x116/0x410 [ 534.349050] ? xfs_alloc_vextent+0x470/0x2010 [ 534.353516] xfs_alloc_vextent+0x10b0/0x2010 [ 534.357905] xfs_bmap_btalloc+0x9e5/0x1b20 [ 534.362129] ? xfs_bmap_adjacent+0x1480/0x1480 [ 534.366690] ? ret_from_fork+0x24/0x30 [ 534.370563] ? __xfs_bmbt_get_all+0x16/0x100 [ 534.374948] xfs_bmap_alloc+0x107/0x160 [ 534.378898] xfs_bmapi_write+0xa49/0x1d00 [ 534.383023] ? xfs_bmapi_reserve_delalloc+0x7c0/0x7c0 [ 534.388189] ? trace_hardirqs_on+0x10/0x10 [ 534.392396] ? xfs_iext_get_ext+0xeb/0x200 [ 534.396603] ? xfs_iext_idx_to_irec+0x340/0x340 [ 534.401252] ? xfs_bmap_last_extent+0x1d0/0x1d0 [ 534.405910] xfs_iomap_write_allocate+0x42b/0xa30 [ 534.410741] ? xfs_file_iomap_begin+0x1ed0/0x1ed0 [ 534.415568] ? xfs_iunlock+0x248/0x3b0 [ 534.419435] ? rcu_read_lock_sched_held+0x16c/0x1d0 [ 534.424428] ? xfs_iunlock+0x21a/0x3b0 [ 534.428298] xfs_map_blocks+0x548/0x940 [ 534.432245] ? xfs_vm_set_page_dirty+0x610/0x610 [ 534.436975] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 534.442400] xfs_do_writepage+0x422/0x13d0 [ 534.446623] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 534.450931] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 534.456356] write_cache_pages+0x505/0xd20 [ 534.460582] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 534.464888] ? clear_page_dirty_for_io+0xb80/0xb80 [ 534.469802] ? trace_hardirqs_on+0x10/0x10 [ 534.474010] xfs_vm_writepages+0x258/0x340 [ 534.478218] ? xfs_vm_writepage+0xd0/0xd0 [ 534.482344] ? xfs_vm_writepage+0xd0/0xd0 [ 534.486469] do_writepages+0xc3/0x240 [ 534.490252] ? page_writeback_cpu_online+0x10/0x10 [ 534.495173] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 534.500597] __writeback_single_inode+0xda/0x1010 [ 534.505422] writeback_sb_inodes+0x48b/0xd30 [ 534.509815] ? wbc_detach_inode+0x780/0x780 [ 534.514120] ? queue_io+0x400/0x5a0 [ 534.517723] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 534.523146] wb_writeback+0x243/0xb80 [ 534.526939] ? writeback_inodes_wb.constprop.0+0x1a0/0x1a0 [ 534.532546] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 534.537969] wb_workfn+0x2bd/0xf50 [ 534.541485] ? process_one_work+0x6c4/0x14a0 [ 534.545874] ? inode_wait_for_writeback+0x30/0x30 [ 534.550696] ? lock_acquire+0x170/0x3f0 [ 534.554645] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 534.560073] process_one_work+0x793/0x14a0 [ 534.564293] ? work_busy+0x320/0x320 [ 534.567987] ? worker_thread+0x158/0xff0 [ 534.572023] ? _raw_spin_unlock_irq+0x24/0x80 [ 534.576492] worker_thread+0x5cc/0xff0 [ 534.580358] ? rescuer_thread+0xc80/0xc80 [ 534.584485] kthread+0x30d/0x420 [ 534.587830] ? kthread_create_on_node+0xd0/0xd0 [ 534.592473] ret_from_fork+0x24/0x30 [ 534.596685] XFS (loop1): page discard on page ffffea0001093400, inode 0x29, offset 1519616. [ 534.605606] XFS (loop1): Internal error XFS_WANT_CORRUPTED_RETURN at line 431 of file fs/xfs/libxfs/xfs_alloc.c. Caller xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 534.620145] CPU: 1 PID: 2818 Comm: kworker/u4:3 Not tainted 4.14.303-syzkaller #0 [ 534.627754] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023 [ 534.637105] Workqueue: writeback wb_workfn (flush-7:1) [ 534.642793] Call Trace: [ 534.645364] dump_stack+0x1b2/0x281 [ 534.648975] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 534.654233] xfs_error_report+0x98/0xa0 [ 534.658188] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 534.663439] xfs_alloc_fixup_trees+0x425/0x4f0 [ 534.667998] ? xfs_alloc_update+0x90/0x90 [ 534.672136] ? xfs_btree_rec_offset.isra.0+0x3b/0xa0 [ 534.677225] ? xfs_alloc_compute_diff+0x23c/0x3d0 [ 534.682039] xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 534.687134] ? xfs_alloc_fix_freelist+0x685/0xeb0 [ 534.691958] ? xfs_alloc_ag_vextent_size+0x1ea0/0x1ea0 [ 534.697211] ? xfs_alloc_read_agf+0xb10/0xb10 [ 534.701688] xfs_alloc_ag_vextent+0x579/0x750 [ 534.706171] ? xfs_perag_get+0x116/0x410 [ 534.710217] ? xfs_alloc_vextent+0x470/0x2010 [ 534.714691] xfs_alloc_vextent+0x10b0/0x2010 [ 534.719084] xfs_bmap_btalloc+0x9e5/0x1b20 [ 534.723304] ? xfs_bmap_adjacent+0x1480/0x1480 [ 534.727894] ? ret_from_fork+0x24/0x30 [ 534.731773] ? __xfs_bmbt_get_all+0x16/0x100 [ 534.736158] xfs_bmap_alloc+0x107/0x160 [ 534.740600] xfs_bmapi_write+0xa49/0x1d00 [ 534.744740] ? xfs_bmapi_reserve_delalloc+0x7c0/0x7c0 [ 534.749919] ? trace_hardirqs_on+0x10/0x10 [ 534.754134] ? xfs_iext_get_ext+0xeb/0x200 [ 534.758344] ? xfs_iext_idx_to_irec+0x340/0x340 [ 534.762997] ? xfs_bmap_last_extent+0x1d0/0x1d0 [ 534.767659] xfs_iomap_write_allocate+0x42b/0xa30 [ 534.772502] ? xfs_file_iomap_begin+0x1ed0/0x1ed0 [ 534.777321] ? xfs_iunlock+0x248/0x3b0 [ 534.781189] ? rcu_read_lock_sched_held+0x16c/0x1d0 [ 534.786184] ? xfs_iunlock+0x21a/0x3b0 [ 534.790054] xfs_map_blocks+0x548/0x940 [ 534.794005] ? xfs_vm_set_page_dirty+0x610/0x610 [ 534.798737] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 534.804166] xfs_do_writepage+0x422/0x13d0 [ 534.808392] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 534.812691] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 534.818113] write_cache_pages+0x505/0xd20 [ 534.822321] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 534.826628] ? clear_page_dirty_for_io+0xb80/0xb80 [ 534.831541] ? trace_hardirqs_on+0x10/0x10 [ 534.835748] xfs_vm_writepages+0x258/0x340 [ 534.839957] ? xfs_vm_writepage+0xd0/0xd0 [ 534.844090] ? xfs_vm_writepage+0xd0/0xd0 [ 534.848219] do_writepages+0xc3/0x240 [ 534.851994] ? page_writeback_cpu_online+0x10/0x10 [ 534.856915] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 534.862341] __writeback_single_inode+0xda/0x1010 [ 534.867166] writeback_sb_inodes+0x48b/0xd30 [ 534.871575] ? wbc_detach_inode+0x780/0x780 [ 534.875871] ? queue_io+0x400/0x5a0 [ 534.879471] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 534.884900] wb_writeback+0x243/0xb80 [ 534.888687] ? writeback_inodes_wb.constprop.0+0x1a0/0x1a0 [ 534.894295] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 534.899726] wb_workfn+0x2bd/0xf50 [ 534.903281] ? process_one_work+0x6c4/0x14a0 [ 534.907681] ? inode_wait_for_writeback+0x30/0x30 [ 534.912519] ? lock_acquire+0x170/0x3f0 [ 534.916472] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 534.921901] process_one_work+0x793/0x14a0 [ 534.926124] ? work_busy+0x320/0x320 [ 534.929834] ? worker_thread+0x158/0xff0 [ 534.933869] ? _raw_spin_unlock_irq+0x24/0x80 [ 534.938359] worker_thread+0x5cc/0xff0 [ 534.942663] ? rescuer_thread+0xc80/0xc80 [ 534.946791] kthread+0x30d/0x420 [ 534.950137] ? kthread_create_on_node+0xd0/0xd0 [ 534.954780] ret_from_fork+0x24/0x30 [ 534.958927] XFS (loop1): page discard on page ffffea0001093440, inode 0x29, offset 1523712. [ 534.967839] XFS (loop1): Internal error XFS_WANT_CORRUPTED_RETURN at line 431 of file fs/xfs/libxfs/xfs_alloc.c. Caller xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 534.982660] CPU: 1 PID: 2818 Comm: kworker/u4:3 Not tainted 4.14.303-syzkaller #0 [ 534.990273] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023 [ 534.999618] Workqueue: writeback wb_workfn (flush-7:1) [ 535.004871] Call Trace: [ 535.007434] dump_stack+0x1b2/0x281 [ 535.011036] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 535.016292] xfs_error_report+0x98/0xa0 [ 535.020249] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 535.025503] xfs_alloc_fixup_trees+0x425/0x4f0 [ 535.030057] ? xfs_alloc_update+0x90/0x90 [ 535.034182] ? xfs_btree_rec_offset.isra.0+0x3b/0xa0 [ 535.039271] ? xfs_alloc_compute_diff+0x23c/0x3d0 [ 535.044099] xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 535.049190] ? xfs_alloc_fix_freelist+0x685/0xeb0 [ 535.054006] ? xfs_alloc_ag_vextent_size+0x1ea0/0x1ea0 [ 535.059263] ? xfs_alloc_read_agf+0xb10/0xb10 [ 535.063741] xfs_alloc_ag_vextent+0x579/0x750 [ 535.068211] ? xfs_perag_get+0x116/0x410 [ 535.072248] ? xfs_alloc_vextent+0x470/0x2010 [ 535.076726] xfs_alloc_vextent+0x10b0/0x2010 [ 535.081124] xfs_bmap_btalloc+0x9e5/0x1b20 [ 535.085336] ? xfs_bmap_adjacent+0x1480/0x1480 [ 535.089893] ? ret_from_fork+0x24/0x30 [ 535.093764] ? __xfs_bmbt_get_all+0x16/0x100 [ 535.098149] xfs_bmap_alloc+0x107/0x160 [ 535.102098] xfs_bmapi_write+0xa49/0x1d00 [ 535.106226] ? xfs_bmapi_reserve_delalloc+0x7c0/0x7c0 [ 535.111388] ? trace_hardirqs_on+0x10/0x10 [ 535.115608] ? xfs_iext_get_ext+0xeb/0x200 [ 535.119826] ? xfs_iext_idx_to_irec+0x340/0x340 [ 535.124473] ? xfs_bmap_last_extent+0x1d0/0x1d0 [ 535.129120] xfs_iomap_write_allocate+0x42b/0xa30 [ 535.133942] ? xfs_file_iomap_begin+0x1ed0/0x1ed0 [ 535.138756] ? xfs_iunlock+0x248/0x3b0 [ 535.142971] ? rcu_read_lock_sched_held+0x16c/0x1d0 [ 535.147963] ? xfs_iunlock+0x21a/0x3b0 [ 535.151827] xfs_map_blocks+0x548/0x940 [ 535.155788] ? xfs_vm_set_page_dirty+0x610/0x610 [ 535.160531] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 535.165957] xfs_do_writepage+0x422/0x13d0 [ 535.170169] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 535.174476] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 535.179910] write_cache_pages+0x505/0xd20 [ 535.184120] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 535.188417] ? clear_page_dirty_for_io+0xb80/0xb80 [ 535.193325] ? trace_hardirqs_on+0x10/0x10 [ 535.197545] xfs_vm_writepages+0x258/0x340 [ 535.201758] ? xfs_vm_writepage+0xd0/0xd0 [ 535.205885] ? xfs_vm_writepage+0xd0/0xd0 [ 535.210006] do_writepages+0xc3/0x240 [ 535.213783] ? page_writeback_cpu_online+0x10/0x10 [ 535.218690] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 535.224117] __writeback_single_inode+0xda/0x1010 [ 535.228933] writeback_sb_inodes+0x48b/0xd30 [ 535.233318] ? wbc_detach_inode+0x780/0x780 [ 535.237627] ? queue_io+0x400/0x5a0 [ 535.241603] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 535.247026] wb_writeback+0x243/0xb80 [ 535.250808] ? writeback_inodes_wb.constprop.0+0x1a0/0x1a0 [ 535.256420] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 535.261854] wb_workfn+0x2bd/0xf50 [ 535.265372] ? process_one_work+0x6c4/0x14a0 [ 535.269753] ? inode_wait_for_writeback+0x30/0x30 [ 535.274685] ? lock_acquire+0x170/0x3f0 [ 535.278651] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 535.284090] process_one_work+0x793/0x14a0 [ 535.288319] ? work_busy+0x320/0x320 [ 535.292015] ? worker_thread+0x158/0xff0 [ 535.296065] ? _raw_spin_unlock_irq+0x24/0x80 [ 535.300551] worker_thread+0x5cc/0xff0 [ 535.304418] ? rescuer_thread+0xc80/0xc80 [ 535.308541] kthread+0x30d/0x420 [ 535.311880] ? kthread_create_on_node+0xd0/0xd0 [ 535.316530] ret_from_fork+0x24/0x30 [ 535.320580] XFS (loop1): page discard on page ffffea0001093480, inode 0x29, offset 1527808. [ 535.329474] XFS (loop1): Internal error XFS_WANT_CORRUPTED_RETURN at line 431 of file fs/xfs/libxfs/xfs_alloc.c. Caller xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 535.344050] CPU: 1 PID: 2818 Comm: kworker/u4:3 Not tainted 4.14.303-syzkaller #0 [ 535.351654] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023 [ 535.360992] Workqueue: writeback wb_workfn (flush-7:1) [ 535.366246] Call Trace: [ 535.368808] dump_stack+0x1b2/0x281 [ 535.372412] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 535.377667] xfs_error_report+0x98/0xa0 [ 535.381629] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 535.386891] xfs_alloc_fixup_trees+0x425/0x4f0 [ 535.391446] ? xfs_alloc_update+0x90/0x90 [ 535.395574] ? xfs_btree_rec_offset.isra.0+0x3b/0xa0 [ 535.400659] ? xfs_alloc_compute_diff+0x23c/0x3d0 [ 535.405473] xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 535.410553] ? xfs_alloc_fix_freelist+0x685/0xeb0 [ 535.415374] ? xfs_alloc_ag_vextent_size+0x1ea0/0x1ea0 [ 535.420632] ? xfs_alloc_read_agf+0xb10/0xb10 [ 535.425110] xfs_alloc_ag_vextent+0x579/0x750 [ 535.429579] ? xfs_perag_get+0x116/0x410 [ 535.433612] ? xfs_alloc_vextent+0x470/0x2010 [ 535.438079] xfs_alloc_vextent+0x10b0/0x2010 [ 535.442469] xfs_bmap_btalloc+0x9e5/0x1b20 [ 535.446702] ? xfs_bmap_adjacent+0x1480/0x1480 [ 535.451257] ? ret_from_fork+0x24/0x30 [ 535.455137] ? __xfs_bmbt_get_all+0x16/0x100 [ 535.459529] xfs_bmap_alloc+0x107/0x160 [ 535.463479] xfs_bmapi_write+0xa49/0x1d00 [ 535.467608] ? xfs_bmapi_reserve_delalloc+0x7c0/0x7c0 [ 535.472771] ? trace_hardirqs_on+0x10/0x10 [ 535.476994] ? xfs_iext_get_ext+0xeb/0x200 [ 535.481206] ? xfs_iext_idx_to_irec+0x340/0x340 [ 535.485874] ? xfs_bmap_last_extent+0x1d0/0x1d0 [ 535.490521] xfs_iomap_write_allocate+0x42b/0xa30 [ 535.495351] ? xfs_file_iomap_begin+0x1ed0/0x1ed0 [ 535.500189] ? xfs_iunlock+0x248/0x3b0 [ 535.504065] ? rcu_read_lock_sched_held+0x16c/0x1d0 [ 535.509060] ? xfs_iunlock+0x21a/0x3b0 [ 535.512920] xfs_map_blocks+0x548/0x940 [ 535.516879] ? xfs_vm_set_page_dirty+0x610/0x610 [ 535.521613] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 535.527038] xfs_do_writepage+0x422/0x13d0 [ 535.531250] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 535.535552] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 535.540985] write_cache_pages+0x505/0xd20 [ 535.545196] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 535.549505] ? clear_page_dirty_for_io+0xb80/0xb80 [ 535.554423] ? trace_hardirqs_on+0x10/0x10 [ 535.558638] xfs_vm_writepages+0x258/0x340 [ 535.562848] ? xfs_vm_writepage+0xd0/0xd0 [ 535.566971] ? xfs_vm_writepage+0xd0/0xd0 [ 535.571091] do_writepages+0xc3/0x240 [ 535.574875] ? page_writeback_cpu_online+0x10/0x10 [ 535.579787] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 535.585210] __writeback_single_inode+0xda/0x1010 [ 535.590024] writeback_sb_inodes+0x48b/0xd30 [ 535.594420] ? wbc_detach_inode+0x780/0x780 [ 535.598723] ? queue_io+0x400/0x5a0 [ 535.602321] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 535.607742] wb_writeback+0x243/0xb80 [ 535.611518] ? writeback_inodes_wb.constprop.0+0x1a0/0x1a0 [ 535.617132] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 535.622574] wb_workfn+0x2bd/0xf50 [ 535.626090] ? process_one_work+0x6c4/0x14a0 [ 535.630471] ? inode_wait_for_writeback+0x30/0x30 [ 535.635295] ? lock_acquire+0x170/0x3f0 [ 535.639598] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 535.645022] process_one_work+0x793/0x14a0 [ 535.649230] ? work_busy+0x320/0x320 [ 535.652918] ? worker_thread+0x158/0xff0 [ 535.656957] ? _raw_spin_unlock_irq+0x24/0x80 [ 535.661521] worker_thread+0x5cc/0xff0 [ 535.665388] ? rescuer_thread+0xc80/0xc80 [ 535.669507] kthread+0x30d/0x420 [ 535.672873] ? kthread_create_on_node+0xd0/0xd0 [ 535.677528] ret_from_fork+0x24/0x30 [ 535.682431] XFS (loop1): page discard on page ffffea00010934c0, inode 0x29, offset 1531904. [ 535.691321] XFS (loop1): Internal error XFS_WANT_CORRUPTED_RETURN at line 431 of file fs/xfs/libxfs/xfs_alloc.c. Caller xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 535.705859] CPU: 1 PID: 2818 Comm: kworker/u4:3 Not tainted 4.14.303-syzkaller #0 [ 535.713462] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023 [ 535.722813] Workqueue: writeback wb_workfn (flush-7:1) [ 535.728064] Call Trace: [ 535.730625] dump_stack+0x1b2/0x281 [ 535.734232] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 535.739498] xfs_error_report+0x98/0xa0 [ 535.743447] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 535.748703] xfs_alloc_fixup_trees+0x425/0x4f0 [ 535.753267] ? xfs_alloc_update+0x90/0x90 [ 535.757397] ? xfs_btree_rec_offset.isra.0+0x3b/0xa0 [ 535.762486] ? xfs_alloc_compute_diff+0x23c/0x3d0 [ 535.767303] xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 535.772386] ? xfs_alloc_fix_freelist+0x685/0xeb0 [ 535.777206] ? xfs_alloc_ag_vextent_size+0x1ea0/0x1ea0 [ 535.782463] ? xfs_alloc_read_agf+0xb10/0xb10 [ 535.786942] xfs_alloc_ag_vextent+0x579/0x750 [ 535.791411] ? xfs_perag_get+0x116/0x410 [ 535.795453] ? xfs_alloc_vextent+0x470/0x2010 [ 535.799929] xfs_alloc_vextent+0x10b0/0x2010 [ 535.804343] xfs_bmap_btalloc+0x9e5/0x1b20 [ 535.808555] ? xfs_bmap_adjacent+0x1480/0x1480 [ 535.813109] ? ret_from_fork+0x24/0x30 [ 535.816992] ? __xfs_bmbt_get_all+0x16/0x100 [ 535.821391] xfs_bmap_alloc+0x107/0x160 [ 535.825341] xfs_bmapi_write+0xa49/0x1d00 [ 535.829470] ? xfs_bmapi_reserve_delalloc+0x7c0/0x7c0 [ 535.834640] ? trace_hardirqs_on+0x10/0x10 [ 535.839320] ? xfs_iext_get_ext+0xeb/0x200 [ 535.843529] ? xfs_iext_idx_to_irec+0x340/0x340 [ 535.848177] ? xfs_bmap_last_extent+0x1d0/0x1d0 [ 535.852837] xfs_iomap_write_allocate+0x42b/0xa30 [ 535.857678] ? xfs_file_iomap_begin+0x1ed0/0x1ed0 [ 535.862502] ? xfs_iunlock+0x248/0x3b0 [ 535.866371] ? rcu_read_lock_sched_held+0x16c/0x1d0 [ 535.871376] ? xfs_iunlock+0x21a/0x3b0 [ 535.875248] xfs_map_blocks+0x548/0x940 [ 535.879204] ? xfs_vm_set_page_dirty+0x610/0x610 [ 535.883933] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 535.889370] xfs_do_writepage+0x422/0x13d0 [ 535.893582] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 535.897905] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 535.903342] write_cache_pages+0x505/0xd20 [ 535.907555] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 535.911875] ? clear_page_dirty_for_io+0xb80/0xb80 [ 535.916806] ? trace_hardirqs_on+0x10/0x10 [ 535.921027] xfs_vm_writepages+0x258/0x340 [ 535.925233] ? xfs_vm_writepage+0xd0/0xd0 [ 535.929359] ? xfs_vm_writepage+0xd0/0xd0 [ 535.933486] do_writepages+0xc3/0x240 [ 535.937273] ? page_writeback_cpu_online+0x10/0x10 [ 535.942684] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 535.948113] __writeback_single_inode+0xda/0x1010 [ 535.952930] writeback_sb_inodes+0x48b/0xd30 [ 535.957325] ? wbc_detach_inode+0x780/0x780 [ 535.961634] ? queue_io+0x400/0x5a0 [ 535.965238] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 535.970666] wb_writeback+0x243/0xb80 [ 535.974452] ? writeback_inodes_wb.constprop.0+0x1a0/0x1a0 [ 535.980073] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 535.985499] wb_workfn+0x2bd/0xf50 [ 535.989016] ? process_one_work+0x6c4/0x14a0 [ 535.993482] ? inode_wait_for_writeback+0x30/0x30 [ 535.998301] ? lock_acquire+0x170/0x3f0 [ 536.002253] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 536.007679] process_one_work+0x793/0x14a0 [ 536.011889] ? work_busy+0x320/0x320 [ 536.015588] ? worker_thread+0x158/0xff0 [ 536.019647] ? _raw_spin_unlock_irq+0x24/0x80 [ 536.024123] worker_thread+0x5cc/0xff0 [ 536.027986] ? rescuer_thread+0xc80/0xc80 [ 536.032123] kthread+0x30d/0x420 [ 536.035471] ? kthread_create_on_node+0xd0/0xd0 [ 536.040550] ret_from_fork+0x24/0x30 [ 536.044812] XFS (loop1): page discard on page ffffea0001093500, inode 0x29, offset 1536000. [ 536.053673] XFS (loop1): Internal error XFS_WANT_CORRUPTED_RETURN at line 431 of file fs/xfs/libxfs/xfs_alloc.c. Caller xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 536.068272] CPU: 1 PID: 2818 Comm: kworker/u4:3 Not tainted 4.14.303-syzkaller #0 [ 536.075879] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023 [ 536.085247] Workqueue: writeback wb_workfn (flush-7:1) [ 536.090587] Call Trace: [ 536.093153] dump_stack+0x1b2/0x281 [ 536.096763] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 536.102030] xfs_error_report+0x98/0xa0 [ 536.105984] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 536.111240] xfs_alloc_fixup_trees+0x425/0x4f0 [ 536.115803] ? xfs_alloc_update+0x90/0x90 [ 536.119931] ? xfs_btree_rec_offset.isra.0+0x3b/0xa0 [ 536.125009] ? xfs_alloc_compute_diff+0x23c/0x3d0 [ 536.129824] xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 536.134912] ? xfs_alloc_fix_freelist+0x685/0xeb0 [ 536.139738] ? xfs_alloc_ag_vextent_size+0x1ea0/0x1ea0 [ 536.144992] ? xfs_alloc_read_agf+0xb10/0xb10 [ 536.149468] xfs_alloc_ag_vextent+0x579/0x750 [ 536.153934] ? xfs_perag_get+0x116/0x410 [ 536.157969] ? xfs_alloc_vextent+0x470/0x2010 [ 536.162436] xfs_alloc_vextent+0x10b0/0x2010 [ 536.166823] xfs_bmap_btalloc+0x9e5/0x1b20 [ 536.171037] ? xfs_bmap_adjacent+0x1480/0x1480 [ 536.175599] ? ret_from_fork+0x24/0x30 [ 536.179489] ? __xfs_bmbt_get_all+0x16/0x100 [ 536.183871] xfs_bmap_alloc+0x107/0x160 [ 536.187834] xfs_bmapi_write+0xa49/0x1d00 [ 536.191958] ? xfs_bmapi_reserve_delalloc+0x7c0/0x7c0 [ 536.197147] ? trace_hardirqs_on+0x10/0x10 [ 536.201367] ? xfs_iext_get_ext+0xeb/0x200 [ 536.205573] ? xfs_iext_idx_to_irec+0x340/0x340 [ 536.210219] ? xfs_bmap_last_extent+0x1d0/0x1d0 [ 536.214877] xfs_iomap_write_allocate+0x42b/0xa30 [ 536.219704] ? xfs_file_iomap_begin+0x1ed0/0x1ed0 [ 536.224520] ? xfs_iunlock+0x248/0x3b0 [ 536.228386] ? rcu_read_lock_sched_held+0x16c/0x1d0 [ 536.233374] ? xfs_iunlock+0x21a/0x3b0 [ 536.237249] xfs_map_blocks+0x548/0x940 [ 536.241208] ? xfs_vm_set_page_dirty+0x610/0x610 [ 536.245958] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 536.251382] xfs_do_writepage+0x422/0x13d0 [ 536.255602] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 536.259912] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 536.265341] write_cache_pages+0x505/0xd20 [ 536.269574] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 536.273871] ? clear_page_dirty_for_io+0xb80/0xb80 [ 536.278779] ? trace_hardirqs_on+0x10/0x10 [ 536.282990] xfs_vm_writepages+0x258/0x340 [ 536.287195] ? xfs_vm_writepage+0xd0/0xd0 [ 536.291317] ? xfs_vm_writepage+0xd0/0xd0 [ 536.295444] do_writepages+0xc3/0x240 [ 536.299236] ? page_writeback_cpu_online+0x10/0x10 [ 536.304152] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 536.309586] __writeback_single_inode+0xda/0x1010 [ 536.314410] writeback_sb_inodes+0x48b/0xd30 [ 536.318804] ? wbc_detach_inode+0x780/0x780 [ 536.323109] ? queue_io+0x400/0x5a0 [ 536.326712] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 536.332142] wb_writeback+0x243/0xb80 [ 536.335930] ? writeback_inodes_wb.constprop.0+0x1a0/0x1a0 [ 536.341538] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 536.346961] wb_workfn+0x2bd/0xf50 [ 536.350477] ? process_one_work+0x6c4/0x14a0 [ 536.354866] ? inode_wait_for_writeback+0x30/0x30 [ 536.359703] ? lock_acquire+0x170/0x3f0 [ 536.363654] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 536.369085] process_one_work+0x793/0x14a0 [ 536.373296] ? work_busy+0x320/0x320 [ 536.376986] ? worker_thread+0x158/0xff0 [ 536.381046] ? _raw_spin_unlock_irq+0x24/0x80 [ 536.385515] worker_thread+0x5cc/0xff0 [ 536.389391] ? rescuer_thread+0xc80/0xc80 [ 536.393509] kthread+0x30d/0x420 [ 536.396855] ? kthread_create_on_node+0xd0/0xd0 [ 536.401505] ret_from_fork+0x24/0x30 [ 536.406772] XFS (loop1): page discard on page ffffea0001093540, inode 0x29, offset 1540096. [ 536.415676] XFS (loop1): Internal error XFS_WANT_CORRUPTED_RETURN at line 431 of file fs/xfs/libxfs/xfs_alloc.c. Caller xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 536.430219] CPU: 1 PID: 2818 Comm: kworker/u4:3 Not tainted 4.14.303-syzkaller #0 [ 536.437824] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023 [ 536.447173] Workqueue: writeback wb_workfn (flush-7:1) [ 536.452434] Call Trace: [ 536.455002] dump_stack+0x1b2/0x281 [ 536.458610] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 536.463866] xfs_error_report+0x98/0xa0 [ 536.467834] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 536.473085] xfs_alloc_fixup_trees+0x425/0x4f0 [ 536.477645] ? xfs_alloc_update+0x90/0x90 [ 536.481771] ? xfs_btree_rec_offset.isra.0+0x3b/0xa0 [ 536.486849] ? xfs_alloc_compute_diff+0x23c/0x3d0 [ 536.491663] xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 536.496751] ? xfs_alloc_fix_freelist+0x685/0xeb0 [ 536.501586] ? xfs_alloc_ag_vextent_size+0x1ea0/0x1ea0 [ 536.506838] ? xfs_alloc_read_agf+0xb10/0xb10 [ 536.511312] xfs_alloc_ag_vextent+0x579/0x750 [ 536.515788] ? xfs_perag_get+0x116/0x410 [ 536.519828] ? xfs_alloc_vextent+0x470/0x2010 [ 536.524297] xfs_alloc_vextent+0x10b0/0x2010 [ 536.528683] xfs_bmap_btalloc+0x9e5/0x1b20 [ 536.532896] ? xfs_bmap_adjacent+0x1480/0x1480 [ 536.537456] ? ret_from_fork+0x24/0x30 [ 536.541332] ? __xfs_bmbt_get_all+0x16/0x100 [ 536.545712] xfs_bmap_alloc+0x107/0x160 [ 536.549660] xfs_bmapi_write+0xa49/0x1d00 [ 536.553789] ? xfs_bmapi_reserve_delalloc+0x7c0/0x7c0 [ 536.558957] ? trace_hardirqs_on+0x10/0x10 [ 536.563166] ? xfs_iext_get_ext+0xeb/0x200 [ 536.567372] ? xfs_iext_idx_to_irec+0x340/0x340 [ 536.572018] ? xfs_bmap_last_extent+0x1d0/0x1d0 [ 536.576670] xfs_iomap_write_allocate+0x42b/0xa30 [ 536.581499] ? xfs_file_iomap_begin+0x1ed0/0x1ed0 [ 536.586314] ? xfs_iunlock+0x248/0x3b0 [ 536.590178] ? rcu_read_lock_sched_held+0x16c/0x1d0 [ 536.595170] ? xfs_iunlock+0x21a/0x3b0 [ 536.599037] xfs_map_blocks+0x548/0x940 [ 536.602985] ? xfs_vm_set_page_dirty+0x610/0x610 [ 536.607715] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 536.613138] xfs_do_writepage+0x422/0x13d0 [ 536.617361] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 536.621666] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 536.627089] write_cache_pages+0x505/0xd20 [ 536.631297] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 536.635602] ? clear_page_dirty_for_io+0xb80/0xb80 [ 536.640516] ? trace_hardirqs_on+0x10/0x10 [ 536.644725] xfs_vm_writepages+0x258/0x340 [ 536.648932] ? xfs_vm_writepage+0xd0/0xd0 [ 536.653061] ? xfs_vm_writepage+0xd0/0xd0 [ 536.657188] do_writepages+0xc3/0x240 [ 536.660987] ? page_writeback_cpu_online+0x10/0x10 [ 536.665902] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 536.671338] __writeback_single_inode+0xda/0x1010 [ 536.676175] writeback_sb_inodes+0x48b/0xd30 [ 536.680629] ? wbc_detach_inode+0x780/0x780 [ 536.685036] ? queue_io+0x400/0x5a0 [ 536.688644] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 536.694080] wb_writeback+0x243/0xb80 [ 536.697877] ? writeback_inodes_wb.constprop.0+0x1a0/0x1a0 [ 536.703487] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 536.708914] wb_workfn+0x2bd/0xf50 [ 536.712432] ? process_one_work+0x6c4/0x14a0 [ 536.716832] ? inode_wait_for_writeback+0x30/0x30 [ 536.721666] ? lock_acquire+0x170/0x3f0 [ 536.725622] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 536.731052] process_one_work+0x793/0x14a0 [ 536.735274] ? work_busy+0x320/0x320 [ 536.739321] ? worker_thread+0x158/0xff0 [ 536.743364] ? _raw_spin_unlock_irq+0x24/0x80 [ 536.747835] worker_thread+0x5cc/0xff0 [ 536.751700] ? rescuer_thread+0xc80/0xc80 [ 536.755827] kthread+0x30d/0x420 [ 536.759172] ? kthread_create_on_node+0xd0/0xd0 [ 536.763815] ret_from_fork+0x24/0x30 [ 536.768115] XFS (loop1): page discard on page ffffea0001093580, inode 0x29, offset 1544192. [ 536.777014] XFS (loop1): Internal error XFS_WANT_CORRUPTED_RETURN at line 431 of file fs/xfs/libxfs/xfs_alloc.c. Caller xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 536.791559] CPU: 1 PID: 2818 Comm: kworker/u4:3 Not tainted 4.14.303-syzkaller #0 [ 536.799165] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023 [ 536.808512] Workqueue: writeback wb_workfn (flush-7:1) [ 536.813765] Call Trace: [ 536.816336] dump_stack+0x1b2/0x281 [ 536.819947] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 536.825196] xfs_error_report+0x98/0xa0 [ 536.829143] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 536.834404] xfs_alloc_fixup_trees+0x425/0x4f0 [ 536.838969] ? xfs_alloc_update+0x90/0x90 [ 536.843090] ? xfs_btree_rec_offset.isra.0+0x3b/0xa0 [ 536.848180] ? xfs_alloc_compute_diff+0x23c/0x3d0 [ 536.852993] xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 536.858075] ? xfs_alloc_fix_freelist+0x685/0xeb0 [ 536.862892] ? xfs_alloc_ag_vextent_size+0x1ea0/0x1ea0 [ 536.868141] ? xfs_alloc_read_agf+0xb10/0xb10 [ 536.872629] xfs_alloc_ag_vextent+0x579/0x750 [ 536.877112] ? xfs_perag_get+0x116/0x410 [ 536.881152] ? xfs_alloc_vextent+0x470/0x2010 [ 536.885624] xfs_alloc_vextent+0x10b0/0x2010 [ 536.890011] xfs_bmap_btalloc+0x9e5/0x1b20 [ 536.894231] ? xfs_bmap_adjacent+0x1480/0x1480 [ 536.898795] ? ret_from_fork+0x24/0x30 [ 536.902668] ? __xfs_bmbt_get_all+0x16/0x100 [ 536.907056] xfs_bmap_alloc+0x107/0x160 [ 536.911020] xfs_bmapi_write+0xa49/0x1d00 [ 536.915162] ? xfs_bmapi_reserve_delalloc+0x7c0/0x7c0 [ 536.920337] ? trace_hardirqs_on+0x10/0x10 [ 536.924562] ? xfs_iext_get_ext+0xeb/0x200 [ 536.928768] ? xfs_iext_idx_to_irec+0x340/0x340 [ 536.933414] ? xfs_bmap_last_extent+0x1d0/0x1d0 [ 536.938062] xfs_iomap_write_allocate+0x42b/0xa30 [ 536.942889] ? xfs_file_iomap_begin+0x1ed0/0x1ed0 [ 536.947708] ? xfs_iunlock+0x248/0x3b0 [ 536.951574] ? rcu_read_lock_sched_held+0x16c/0x1d0 [ 536.956570] ? xfs_iunlock+0x21a/0x3b0 [ 536.960437] xfs_map_blocks+0x548/0x940 [ 536.964386] ? xfs_vm_set_page_dirty+0x610/0x610 [ 536.969114] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 536.974548] xfs_do_writepage+0x422/0x13d0 [ 536.978775] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 536.983101] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 536.988532] write_cache_pages+0x505/0xd20 [ 536.992761] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 536.997078] ? clear_page_dirty_for_io+0xb80/0xb80 [ 537.001999] ? trace_hardirqs_on+0x10/0x10 [ 537.006210] xfs_vm_writepages+0x258/0x340 [ 537.010417] ? xfs_vm_writepage+0xd0/0xd0 [ 537.014550] ? xfs_vm_writepage+0xd0/0xd0 [ 537.018696] do_writepages+0xc3/0x240 [ 537.022475] ? page_writeback_cpu_online+0x10/0x10 [ 537.027400] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 537.032827] __writeback_single_inode+0xda/0x1010 [ 537.037647] writeback_sb_inodes+0x48b/0xd30 [ 537.042545] ? wbc_detach_inode+0x780/0x780 [ 537.046843] ? queue_io+0x400/0x5a0 [ 537.050445] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 537.055877] wb_writeback+0x243/0xb80 [ 537.059688] ? writeback_inodes_wb.constprop.0+0x1a0/0x1a0 [ 537.065289] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 537.070715] wb_workfn+0x2bd/0xf50 [ 537.074242] ? process_one_work+0x6c4/0x14a0 [ 537.078629] ? inode_wait_for_writeback+0x30/0x30 [ 537.083458] ? lock_acquire+0x170/0x3f0 [ 537.087415] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 537.092841] process_one_work+0x793/0x14a0 [ 537.097066] ? work_busy+0x320/0x320 [ 537.100760] ? worker_thread+0x158/0xff0 [ 537.104796] ? _raw_spin_unlock_irq+0x24/0x80 [ 537.109268] worker_thread+0x5cc/0xff0 [ 537.113135] ? rescuer_thread+0xc80/0xc80 [ 537.117265] kthread+0x30d/0x420 [ 537.120614] ? kthread_create_on_node+0xd0/0xd0 [ 537.125258] ret_from_fork+0x24/0x30 [ 537.129615] XFS (loop1): page discard on page ffffea00010935c0, inode 0x29, offset 1548288. [ 537.138636] XFS (loop1): Internal error XFS_WANT_CORRUPTED_RETURN at line 431 of file fs/xfs/libxfs/xfs_alloc.c. Caller xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 537.153210] CPU: 1 PID: 2818 Comm: kworker/u4:3 Not tainted 4.14.303-syzkaller #0 [ 537.160816] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023 [ 537.170170] Workqueue: writeback wb_workfn (flush-7:1) [ 537.175427] Call Trace: [ 537.177995] dump_stack+0x1b2/0x281 [ 537.181599] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 537.186855] xfs_error_report+0x98/0xa0 [ 537.190814] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 537.196073] xfs_alloc_fixup_trees+0x425/0x4f0 [ 537.200634] ? xfs_alloc_update+0x90/0x90 [ 537.204765] ? xfs_btree_rec_offset.isra.0+0x3b/0xa0 [ 537.209863] ? xfs_alloc_compute_diff+0x23c/0x3d0 [ 537.214680] xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 537.219764] ? xfs_alloc_fix_freelist+0x685/0xeb0 [ 537.224589] ? xfs_alloc_ag_vextent_size+0x1ea0/0x1ea0 [ 537.229865] ? xfs_alloc_read_agf+0xb10/0xb10 [ 537.234344] xfs_alloc_ag_vextent+0x579/0x750 [ 537.238812] ? xfs_perag_get+0x116/0x410 [ 537.242845] ? xfs_alloc_vextent+0x470/0x2010 [ 537.247322] xfs_alloc_vextent+0x10b0/0x2010 [ 537.251716] xfs_bmap_btalloc+0x9e5/0x1b20 [ 537.255927] ? xfs_bmap_adjacent+0x1480/0x1480 [ 537.260481] ? ret_from_fork+0x24/0x30 [ 537.264362] ? __xfs_bmbt_get_all+0x16/0x100 [ 537.268753] xfs_bmap_alloc+0x107/0x160 [ 537.272719] xfs_bmapi_write+0xa49/0x1d00 [ 537.276844] ? xfs_bmapi_reserve_delalloc+0x7c0/0x7c0 [ 537.282009] ? trace_hardirqs_on+0x10/0x10 [ 537.286224] ? xfs_iext_get_ext+0xeb/0x200 [ 537.290439] ? xfs_iext_idx_to_irec+0x340/0x340 [ 537.295085] ? xfs_bmap_last_extent+0x1d0/0x1d0 [ 537.299731] xfs_iomap_write_allocate+0x42b/0xa30 [ 537.304650] ? xfs_file_iomap_begin+0x1ed0/0x1ed0 [ 537.309474] ? xfs_iunlock+0x248/0x3b0 [ 537.313340] ? rcu_read_lock_sched_held+0x16c/0x1d0 [ 537.318329] ? xfs_iunlock+0x21a/0x3b0 [ 537.322192] xfs_map_blocks+0x548/0x940 [ 537.326149] ? xfs_vm_set_page_dirty+0x610/0x610 [ 537.330886] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 537.336310] xfs_do_writepage+0x422/0x13d0 [ 537.340520] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 537.344827] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 537.350257] write_cache_pages+0x505/0xd20 [ 537.354465] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 537.358773] ? clear_page_dirty_for_io+0xb80/0xb80 [ 537.363681] ? trace_hardirqs_on+0x10/0x10 [ 537.367895] xfs_vm_writepages+0x258/0x340 [ 537.372102] ? xfs_vm_writepage+0xd0/0xd0 [ 537.376227] ? xfs_vm_writepage+0xd0/0xd0 [ 537.380350] do_writepages+0xc3/0x240 [ 537.384133] ? page_writeback_cpu_online+0x10/0x10 [ 537.389047] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 537.394473] __writeback_single_inode+0xda/0x1010 [ 537.399289] writeback_sb_inodes+0x48b/0xd30 [ 537.403673] ? wbc_detach_inode+0x780/0x780 [ 537.407973] ? queue_io+0x400/0x5a0 [ 537.411572] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 537.416994] wb_writeback+0x243/0xb80 [ 537.420784] ? writeback_inodes_wb.constprop.0+0x1a0/0x1a0 [ 537.426414] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 537.431851] wb_workfn+0x2bd/0xf50 [ 537.435369] ? process_one_work+0x6c4/0x14a0 [ 537.439753] ? inode_wait_for_writeback+0x30/0x30 [ 537.444580] ? lock_acquire+0x170/0x3f0 [ 537.448534] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 537.453965] process_one_work+0x793/0x14a0 [ 537.458196] ? work_busy+0x320/0x320 [ 537.461890] ? worker_thread+0x158/0xff0 [ 537.465933] ? _raw_spin_unlock_irq+0x24/0x80 [ 537.470411] worker_thread+0x5cc/0xff0 [ 537.474289] ? rescuer_thread+0xc80/0xc80 [ 537.478415] kthread+0x30d/0x420 [ 537.481755] ? kthread_create_on_node+0xd0/0xd0 [ 537.486403] ret_from_fork+0x24/0x30 [ 537.490460] XFS (loop1): page discard on page ffffea0001093600, inode 0x29, offset 1552384. [ 537.499343] XFS (loop1): Internal error XFS_WANT_CORRUPTED_RETURN at line 431 of file fs/xfs/libxfs/xfs_alloc.c. Caller xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 537.513877] CPU: 1 PID: 2818 Comm: kworker/u4:3 Not tainted 4.14.303-syzkaller #0 [ 537.521474] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023 [ 537.530810] Workqueue: writeback wb_workfn (flush-7:1) [ 537.536066] Call Trace: [ 537.538627] dump_stack+0x1b2/0x281 [ 537.542239] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 537.547494] xfs_error_report+0x98/0xa0 [ 537.551440] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 537.556694] xfs_alloc_fixup_trees+0x425/0x4f0 [ 537.561251] ? xfs_alloc_update+0x90/0x90 [ 537.565376] ? xfs_btree_rec_offset.isra.0+0x3b/0xa0 [ 537.570459] ? xfs_alloc_compute_diff+0x23c/0x3d0 [ 537.575273] xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 537.580353] ? xfs_alloc_fix_freelist+0x685/0xeb0 [ 537.585173] ? xfs_alloc_ag_vextent_size+0x1ea0/0x1ea0 [ 537.590430] ? xfs_alloc_read_agf+0xb10/0xb10 [ 537.594905] xfs_alloc_ag_vextent+0x579/0x750 [ 537.599372] ? xfs_perag_get+0x116/0x410 [ 537.603408] ? xfs_alloc_vextent+0x470/0x2010 [ 537.607881] xfs_alloc_vextent+0x10b0/0x2010 [ 537.612273] xfs_bmap_btalloc+0x9e5/0x1b20 [ 537.616486] ? xfs_bmap_adjacent+0x1480/0x1480 [ 537.621042] ? ret_from_fork+0x24/0x30 [ 537.624922] ? __xfs_bmbt_get_all+0x16/0x100 [ 537.629309] xfs_bmap_alloc+0x107/0x160 [ 537.633256] xfs_bmapi_write+0xa49/0x1d00 [ 537.637382] ? xfs_bmapi_reserve_delalloc+0x7c0/0x7c0 [ 537.642893] ? trace_hardirqs_on+0x10/0x10 [ 537.647108] ? xfs_iext_get_ext+0xeb/0x200 [ 537.651322] ? xfs_iext_idx_to_irec+0x340/0x340 [ 537.655966] ? xfs_bmap_last_extent+0x1d0/0x1d0 [ 537.660613] xfs_iomap_write_allocate+0x42b/0xa30 [ 537.665443] ? xfs_file_iomap_begin+0x1ed0/0x1ed0 [ 537.670263] ? xfs_iunlock+0x248/0x3b0 [ 537.674132] ? rcu_read_lock_sched_held+0x16c/0x1d0 [ 537.679120] ? xfs_iunlock+0x21a/0x3b0 [ 537.682978] xfs_map_blocks+0x548/0x940 [ 537.686934] ? xfs_vm_set_page_dirty+0x610/0x610 [ 537.691679] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 537.697104] xfs_do_writepage+0x422/0x13d0 [ 537.701314] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 537.705622] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 537.711063] write_cache_pages+0x505/0xd20 [ 537.715298] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 537.719597] ? clear_page_dirty_for_io+0xb80/0xb80 [ 537.724517] ? trace_hardirqs_on+0x10/0x10 [ 537.728748] xfs_vm_writepages+0x258/0x340 [ 537.732960] ? xfs_vm_writepage+0xd0/0xd0 [ 537.737086] ? xfs_vm_writepage+0xd0/0xd0 [ 537.741209] do_writepages+0xc3/0x240 [ 537.744995] ? page_writeback_cpu_online+0x10/0x10 [ 537.749910] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 537.755339] __writeback_single_inode+0xda/0x1010 [ 537.760158] writeback_sb_inodes+0x48b/0xd30 [ 537.764555] ? wbc_detach_inode+0x780/0x780 [ 537.768873] ? queue_io+0x400/0x5a0 [ 537.772489] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 537.777919] wb_writeback+0x243/0xb80 [ 537.781700] ? writeback_inodes_wb.constprop.0+0x1a0/0x1a0 [ 537.787309] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 537.792741] wb_workfn+0x2bd/0xf50 [ 537.796258] ? process_one_work+0x6c4/0x14a0 [ 537.800642] ? inode_wait_for_writeback+0x30/0x30 [ 537.805465] ? lock_acquire+0x170/0x3f0 [ 537.809424] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 537.814854] process_one_work+0x793/0x14a0 [ 537.819066] ? work_busy+0x320/0x320 [ 537.822752] ? worker_thread+0x158/0xff0 [ 537.826795] ? _raw_spin_unlock_irq+0x24/0x80 [ 537.831288] worker_thread+0x5cc/0xff0 [ 537.835191] ? rescuer_thread+0xc80/0xc80 [ 537.839328] kthread+0x30d/0x420 [ 537.842695] ? kthread_create_on_node+0xd0/0xd0 [ 537.847347] ret_from_fork+0x24/0x30 [ 537.851786] XFS (loop1): page discard on page ffffea0001093640, inode 0x29, offset 1556480. [ 537.860684] XFS (loop1): Internal error XFS_WANT_CORRUPTED_RETURN at line 431 of file fs/xfs/libxfs/xfs_alloc.c. Caller xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 537.875232] CPU: 1 PID: 2818 Comm: kworker/u4:3 Not tainted 4.14.303-syzkaller #0 [ 537.882835] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023 [ 537.892170] Workqueue: writeback wb_workfn (flush-7:1) [ 537.897420] Call Trace: [ 537.899986] dump_stack+0x1b2/0x281 [ 537.903588] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 537.908837] xfs_error_report+0x98/0xa0 [ 537.912783] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 537.918037] xfs_alloc_fixup_trees+0x425/0x4f0 [ 537.922615] ? xfs_alloc_update+0x90/0x90 [ 537.926743] ? xfs_btree_rec_offset.isra.0+0x3b/0xa0 [ 537.931830] ? xfs_alloc_compute_diff+0x23c/0x3d0 [ 537.936650] xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 537.941731] ? xfs_alloc_fix_freelist+0x685/0xeb0 [ 537.946556] ? xfs_alloc_ag_vextent_size+0x1ea0/0x1ea0 [ 537.951829] ? xfs_alloc_read_agf+0xb10/0xb10 [ 537.956321] xfs_alloc_ag_vextent+0x579/0x750 [ 537.960789] ? xfs_perag_get+0x116/0x410 [ 537.964829] ? xfs_alloc_vextent+0x470/0x2010 [ 537.969305] xfs_alloc_vextent+0x10b0/0x2010 [ 537.973695] xfs_bmap_btalloc+0x9e5/0x1b20 [ 537.977907] ? xfs_bmap_adjacent+0x1480/0x1480 [ 537.982473] ? ret_from_fork+0x24/0x30 [ 537.986355] ? __xfs_bmbt_get_all+0x16/0x100 [ 537.990743] xfs_bmap_alloc+0x107/0x160 [ 537.994694] xfs_bmapi_write+0xa49/0x1d00 [ 537.998818] ? xfs_bmapi_reserve_delalloc+0x7c0/0x7c0 [ 538.003988] ? trace_hardirqs_on+0x10/0x10 [ 538.008204] ? xfs_iext_get_ext+0xeb/0x200 [ 538.012408] ? xfs_iext_idx_to_irec+0x340/0x340 [ 538.017060] ? xfs_bmap_last_extent+0x1d0/0x1d0 [ 538.021705] xfs_iomap_write_allocate+0x42b/0xa30 [ 538.026541] ? xfs_file_iomap_begin+0x1ed0/0x1ed0 [ 538.031381] ? xfs_iunlock+0x248/0x3b0 [ 538.035249] ? rcu_read_lock_sched_held+0x16c/0x1d0 [ 538.040241] ? xfs_iunlock+0x21a/0x3b0 [ 538.044110] xfs_map_blocks+0x548/0x940 [ 538.048065] ? xfs_vm_set_page_dirty+0x610/0x610 [ 538.052794] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 538.058218] xfs_do_writepage+0x422/0x13d0 [ 538.062434] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 538.066752] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 538.072184] write_cache_pages+0x505/0xd20 [ 538.076394] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 538.080690] ? clear_page_dirty_for_io+0xb80/0xb80 [ 538.085609] ? trace_hardirqs_on+0x10/0x10 [ 538.089828] xfs_vm_writepages+0x258/0x340 [ 538.094039] ? xfs_vm_writepage+0xd0/0xd0 [ 538.098168] ? xfs_vm_writepage+0xd0/0xd0 [ 538.102307] do_writepages+0xc3/0x240 [ 538.106091] ? page_writeback_cpu_online+0x10/0x10 [ 538.111004] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 538.116432] __writeback_single_inode+0xda/0x1010 [ 538.121249] writeback_sb_inodes+0x48b/0xd30 [ 538.125647] ? wbc_detach_inode+0x780/0x780 [ 538.129954] ? queue_io+0x400/0x5a0 [ 538.133553] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 538.138976] wb_writeback+0x243/0xb80 [ 538.142753] ? writeback_inodes_wb.constprop.0+0x1a0/0x1a0 [ 538.148354] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 538.153778] wb_workfn+0x2bd/0xf50 [ 538.157296] ? process_one_work+0x6c4/0x14a0 [ 538.161678] ? inode_wait_for_writeback+0x30/0x30 [ 538.166498] ? lock_acquire+0x170/0x3f0 [ 538.170451] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 538.175878] process_one_work+0x793/0x14a0 [ 538.180088] ? work_busy+0x320/0x320 [ 538.183775] ? worker_thread+0x158/0xff0 [ 538.187810] ? _raw_spin_unlock_irq+0x24/0x80 [ 538.192279] worker_thread+0x5cc/0xff0 [ 538.196167] ? rescuer_thread+0xc80/0xc80 [ 538.200287] kthread+0x30d/0x420 [ 538.203629] ? kthread_create_on_node+0xd0/0xd0 [ 538.208271] ret_from_fork+0x24/0x30 [ 538.212496] XFS (loop1): page discard on page ffffea0001093680, inode 0x29, offset 1560576. [ 538.221394] XFS (loop1): Internal error XFS_WANT_CORRUPTED_RETURN at line 431 of file fs/xfs/libxfs/xfs_alloc.c. Caller xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 538.235935] CPU: 1 PID: 2818 Comm: kworker/u4:3 Not tainted 4.14.303-syzkaller #0 [ 538.244114] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023 [ 538.253460] Workqueue: writeback wb_workfn (flush-7:1) [ 538.258801] Call Trace: [ 538.261363] dump_stack+0x1b2/0x281 [ 538.264976] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 538.270232] xfs_error_report+0x98/0xa0 [ 538.274177] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 538.279433] xfs_alloc_fixup_trees+0x425/0x4f0 [ 538.284035] ? xfs_alloc_update+0x90/0x90 [ 538.288183] ? xfs_btree_rec_offset.isra.0+0x3b/0xa0 [ 538.293276] ? xfs_alloc_compute_diff+0x23c/0x3d0 [ 538.298095] xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 538.303179] ? xfs_alloc_fix_freelist+0x685/0xeb0 [ 538.307996] ? xfs_alloc_ag_vextent_size+0x1ea0/0x1ea0 [ 538.313249] ? xfs_alloc_read_agf+0xb10/0xb10 [ 538.317728] xfs_alloc_ag_vextent+0x579/0x750 [ 538.322198] ? xfs_perag_get+0x116/0x410 [ 538.326238] ? xfs_alloc_vextent+0x470/0x2010 [ 538.330716] xfs_alloc_vextent+0x10b0/0x2010 [ 538.335104] xfs_bmap_btalloc+0x9e5/0x1b20 [ 538.339318] ? xfs_bmap_adjacent+0x1480/0x1480 [ 538.343874] ? ret_from_fork+0x24/0x30 [ 538.347741] ? __xfs_bmbt_get_all+0x16/0x100 [ 538.352124] xfs_bmap_alloc+0x107/0x160 [ 538.356085] xfs_bmapi_write+0xa49/0x1d00 [ 538.360211] ? xfs_bmapi_reserve_delalloc+0x7c0/0x7c0 [ 538.365380] ? trace_hardirqs_on+0x10/0x10 [ 538.369596] ? xfs_iext_get_ext+0xeb/0x200 [ 538.373807] ? xfs_iext_idx_to_irec+0x340/0x340 [ 538.378453] ? xfs_bmap_last_extent+0x1d0/0x1d0 [ 538.383099] xfs_iomap_write_allocate+0x42b/0xa30 [ 538.387933] ? xfs_file_iomap_begin+0x1ed0/0x1ed0 [ 538.392753] ? xfs_iunlock+0x248/0x3b0 [ 538.396626] ? rcu_read_lock_sched_held+0x16c/0x1d0 [ 538.401619] ? xfs_iunlock+0x21a/0x3b0 [ 538.405485] xfs_map_blocks+0x548/0x940 [ 538.409439] ? xfs_vm_set_page_dirty+0x610/0x610 [ 538.414174] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 538.419612] xfs_do_writepage+0x422/0x13d0 [ 538.423823] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 538.428119] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 538.433544] write_cache_pages+0x505/0xd20 [ 538.437752] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 538.442046] ? clear_page_dirty_for_io+0xb80/0xb80 [ 538.446965] ? trace_hardirqs_on+0x10/0x10 [ 538.451181] xfs_vm_writepages+0x258/0x340 [ 538.455390] ? xfs_vm_writepage+0xd0/0xd0 [ 538.459512] ? xfs_vm_writepage+0xd0/0xd0 [ 538.463632] do_writepages+0xc3/0x240 [ 538.467413] ? page_writeback_cpu_online+0x10/0x10 [ 538.472324] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 538.477746] __writeback_single_inode+0xda/0x1010 [ 538.482565] writeback_sb_inodes+0x48b/0xd30 [ 538.486959] ? wbc_detach_inode+0x780/0x780 [ 538.491263] ? queue_io+0x400/0x5a0 [ 538.494870] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 538.500305] wb_writeback+0x243/0xb80 [ 538.504094] ? writeback_inodes_wb.constprop.0+0x1a0/0x1a0 [ 538.509699] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 538.515122] wb_workfn+0x2bd/0xf50 [ 538.518638] ? process_one_work+0x6c4/0x14a0 [ 538.523020] ? inode_wait_for_writeback+0x30/0x30 [ 538.527837] ? lock_acquire+0x170/0x3f0 [ 538.531784] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 538.537209] process_one_work+0x793/0x14a0 [ 538.541422] ? work_busy+0x320/0x320 [ 538.545115] ? worker_thread+0x158/0xff0 [ 538.549157] ? _raw_spin_unlock_irq+0x24/0x80 [ 538.553625] worker_thread+0x5cc/0xff0 [ 538.557492] ? rescuer_thread+0xc80/0xc80 [ 538.561614] kthread+0x30d/0x420 [ 538.564959] ? kthread_create_on_node+0xd0/0xd0 [ 538.569610] ret_from_fork+0x24/0x30 [ 538.573674] XFS (loop1): page discard on page ffffea00010936c0, inode 0x29, offset 1564672. [ 538.582570] XFS (loop1): Internal error XFS_WANT_CORRUPTED_RETURN at line 431 of file fs/xfs/libxfs/xfs_alloc.c. Caller xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 538.597118] CPU: 1 PID: 2818 Comm: kworker/u4:3 Not tainted 4.14.303-syzkaller #0 [ 538.604725] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023 [ 538.614069] Workqueue: writeback wb_workfn (flush-7:1) [ 538.619319] Call Trace: [ 538.621884] dump_stack+0x1b2/0x281 [ 538.625491] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 538.630745] xfs_error_report+0x98/0xa0 [ 538.634691] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 538.639942] xfs_alloc_fixup_trees+0x425/0x4f0 [ 538.644508] ? xfs_alloc_update+0x90/0x90 [ 538.648635] ? xfs_btree_rec_offset.isra.0+0x3b/0xa0 [ 538.653710] ? xfs_alloc_compute_diff+0x23c/0x3d0 [ 538.658525] xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 538.663610] ? xfs_alloc_fix_freelist+0x685/0xeb0 [ 538.668433] ? xfs_alloc_ag_vextent_size+0x1ea0/0x1ea0 [ 538.673691] ? xfs_alloc_read_agf+0xb10/0xb10 [ 538.678182] xfs_alloc_ag_vextent+0x579/0x750 [ 538.682655] ? xfs_perag_get+0x116/0x410 [ 538.686695] ? xfs_alloc_vextent+0x470/0x2010 [ 538.691174] xfs_alloc_vextent+0x10b0/0x2010 [ 538.695562] xfs_bmap_btalloc+0x9e5/0x1b20 [ 538.699785] ? xfs_bmap_adjacent+0x1480/0x1480 [ 538.704354] ? ret_from_fork+0x24/0x30 [ 538.708253] ? __xfs_bmbt_get_all+0x16/0x100 [ 538.712641] xfs_bmap_alloc+0x107/0x160 [ 538.716592] xfs_bmapi_write+0xa49/0x1d00 [ 538.720722] ? xfs_bmapi_reserve_delalloc+0x7c0/0x7c0 [ 538.725900] ? trace_hardirqs_on+0x10/0x10 [ 538.730122] ? xfs_iext_get_ext+0xeb/0x200 [ 538.734340] ? xfs_iext_idx_to_irec+0x340/0x340 [ 538.739024] ? xfs_bmap_last_extent+0x1d0/0x1d0 [ 538.743672] xfs_iomap_write_allocate+0x42b/0xa30 [ 538.748498] ? xfs_file_iomap_begin+0x1ed0/0x1ed0 [ 538.753315] ? xfs_iunlock+0x248/0x3b0 [ 538.757184] ? rcu_read_lock_sched_held+0x16c/0x1d0 [ 538.762173] ? xfs_iunlock+0x21a/0x3b0 [ 538.766042] xfs_map_blocks+0x548/0x940 [ 538.770000] ? xfs_vm_set_page_dirty+0x610/0x610 [ 538.774733] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 538.780160] xfs_do_writepage+0x422/0x13d0 [ 538.784381] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 538.788687] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 538.794112] write_cache_pages+0x505/0xd20 [ 538.798321] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 538.802623] ? clear_page_dirty_for_io+0xb80/0xb80 [ 538.807531] ? trace_hardirqs_on+0x10/0x10 [ 538.811742] xfs_vm_writepages+0x258/0x340 [ 538.815963] ? xfs_vm_writepage+0xd0/0xd0 [ 538.820102] ? xfs_vm_writepage+0xd0/0xd0 [ 538.824227] do_writepages+0xc3/0x240 [ 538.828011] ? page_writeback_cpu_online+0x10/0x10 [ 538.832936] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 538.838381] __writeback_single_inode+0xda/0x1010 [ 538.843211] writeback_sb_inodes+0x48b/0xd30 [ 538.847597] ? wbc_detach_inode+0x780/0x780 [ 538.851892] ? queue_io+0x400/0x5a0 [ 538.855493] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 538.860930] wb_writeback+0x243/0xb80 [ 538.864718] ? writeback_inodes_wb.constprop.0+0x1a0/0x1a0 [ 538.870325] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 538.875748] wb_workfn+0x2bd/0xf50 [ 538.879269] ? process_one_work+0x6c4/0x14a0 [ 538.883655] ? inode_wait_for_writeback+0x30/0x30 [ 538.888476] ? lock_acquire+0x170/0x3f0 [ 538.892445] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 538.897891] process_one_work+0x793/0x14a0 [ 538.902105] ? work_busy+0x320/0x320 [ 538.905801] ? worker_thread+0x158/0xff0 [ 538.909843] ? _raw_spin_unlock_irq+0x24/0x80 [ 538.914313] worker_thread+0x5cc/0xff0 [ 538.918178] ? rescuer_thread+0xc80/0xc80 [ 538.922297] kthread+0x30d/0x420 [ 538.925654] ? kthread_create_on_node+0xd0/0xd0 [ 538.930302] ret_from_fork+0x24/0x30 [ 538.934613] XFS (loop1): page discard on page ffffea0001093700, inode 0x29, offset 1568768. [ 538.943474] XFS (loop1): Internal error XFS_WANT_CORRUPTED_RETURN at line 431 of file fs/xfs/libxfs/xfs_alloc.c. Caller xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 538.958015] CPU: 1 PID: 2818 Comm: kworker/u4:3 Not tainted 4.14.303-syzkaller #0 [ 538.965624] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023 [ 538.974990] Workqueue: writeback wb_workfn (flush-7:1) [ 538.980242] Call Trace: [ 538.982816] dump_stack+0x1b2/0x281 [ 538.986429] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 538.991686] xfs_error_report+0x98/0xa0 [ 538.995634] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 539.000897] xfs_alloc_fixup_trees+0x425/0x4f0 [ 539.005462] ? xfs_alloc_update+0x90/0x90 [ 539.009593] ? xfs_btree_rec_offset.isra.0+0x3b/0xa0 [ 539.014670] ? xfs_alloc_compute_diff+0x23c/0x3d0 [ 539.019500] xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 539.024590] ? xfs_alloc_fix_freelist+0x685/0xeb0 [ 539.029414] ? xfs_alloc_ag_vextent_size+0x1ea0/0x1ea0 [ 539.034664] ? xfs_alloc_read_agf+0xb10/0xb10 [ 539.039141] xfs_alloc_ag_vextent+0x579/0x750 [ 539.043607] ? xfs_perag_get+0x116/0x410 [ 539.047645] ? xfs_alloc_vextent+0x470/0x2010 [ 539.052123] xfs_alloc_vextent+0x10b0/0x2010 [ 539.056509] xfs_bmap_btalloc+0x9e5/0x1b20 [ 539.060734] ? xfs_bmap_adjacent+0x1480/0x1480 [ 539.065293] ? ret_from_fork+0x24/0x30 [ 539.069170] ? __xfs_bmbt_get_all+0x16/0x100 [ 539.073552] xfs_bmap_alloc+0x107/0x160 [ 539.077499] xfs_bmapi_write+0xa49/0x1d00 [ 539.081641] ? xfs_bmapi_reserve_delalloc+0x7c0/0x7c0 [ 539.086811] ? trace_hardirqs_on+0x10/0x10 [ 539.091027] ? xfs_iext_get_ext+0xeb/0x200 [ 539.095233] ? xfs_iext_idx_to_irec+0x340/0x340 [ 539.099891] ? xfs_bmap_last_extent+0x1d0/0x1d0 [ 539.104547] xfs_iomap_write_allocate+0x42b/0xa30 [ 539.109374] ? xfs_file_iomap_begin+0x1ed0/0x1ed0 [ 539.114193] ? xfs_iunlock+0x248/0x3b0 [ 539.118058] ? rcu_read_lock_sched_held+0x16c/0x1d0 [ 539.123046] ? xfs_iunlock+0x21a/0x3b0 [ 539.126911] xfs_map_blocks+0x548/0x940 [ 539.130867] ? xfs_vm_set_page_dirty+0x610/0x610 [ 539.135612] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 539.141045] xfs_do_writepage+0x422/0x13d0 [ 539.145267] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 539.149573] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 539.154996] write_cache_pages+0x505/0xd20 [ 539.159204] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 539.163500] ? clear_page_dirty_for_io+0xb80/0xb80 [ 539.168407] ? trace_hardirqs_on+0x10/0x10 [ 539.172621] xfs_vm_writepages+0x258/0x340 [ 539.176851] ? xfs_vm_writepage+0xd0/0xd0 [ 539.180976] ? xfs_vm_writepage+0xd0/0xd0 [ 539.185107] do_writepages+0xc3/0x240 [ 539.188889] ? page_writeback_cpu_online+0x10/0x10 [ 539.193795] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 539.199219] __writeback_single_inode+0xda/0x1010 [ 539.204046] writeback_sb_inodes+0x48b/0xd30 [ 539.208438] ? wbc_detach_inode+0x780/0x780 [ 539.212737] ? queue_io+0x400/0x5a0 [ 539.216351] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 539.221776] wb_writeback+0x243/0xb80 [ 539.225565] ? writeback_inodes_wb.constprop.0+0x1a0/0x1a0 [ 539.231171] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 539.236604] wb_workfn+0x2bd/0xf50 [ 539.240128] ? process_one_work+0x6c4/0x14a0 [ 539.244516] ? inode_wait_for_writeback+0x30/0x30 [ 539.249339] ? lock_acquire+0x170/0x3f0 [ 539.253305] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 539.258744] process_one_work+0x793/0x14a0 [ 539.262965] ? work_busy+0x320/0x320 [ 539.266656] ? worker_thread+0x158/0xff0 [ 539.270715] ? _raw_spin_unlock_irq+0x24/0x80 [ 539.275184] worker_thread+0x5cc/0xff0 [ 539.279049] ? rescuer_thread+0xc80/0xc80 [ 539.283170] kthread+0x30d/0x420 [ 539.286515] ? kthread_create_on_node+0xd0/0xd0 [ 539.291166] ret_from_fork+0x24/0x30 [ 539.295467] XFS (loop1): page discard on page ffffea0001093740, inode 0x29, offset 1572864. [ 539.304325] XFS (loop1): Internal error XFS_WANT_CORRUPTED_RETURN at line 431 of file fs/xfs/libxfs/xfs_alloc.c. Caller xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 539.318858] CPU: 1 PID: 2818 Comm: kworker/u4:3 Not tainted 4.14.303-syzkaller #0 [ 539.326462] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023 [ 539.335830] Workqueue: writeback wb_workfn (flush-7:1) [ 539.341085] Call Trace: [ 539.343646] dump_stack+0x1b2/0x281 [ 539.347253] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 539.352510] xfs_error_report+0x98/0xa0 [ 539.356455] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 539.361710] xfs_alloc_fixup_trees+0x425/0x4f0 [ 539.366275] ? xfs_alloc_update+0x90/0x90 [ 539.370400] ? xfs_btree_rec_offset.isra.0+0x3b/0xa0 [ 539.375474] ? xfs_alloc_compute_diff+0x23c/0x3d0 [ 539.380289] xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 539.385382] ? xfs_alloc_fix_freelist+0x685/0xeb0 [ 539.390207] ? xfs_alloc_ag_vextent_size+0x1ea0/0x1ea0 [ 539.395456] ? xfs_alloc_read_agf+0xb10/0xb10 [ 539.399934] xfs_alloc_ag_vextent+0x579/0x750 [ 539.404408] ? xfs_perag_get+0x116/0x410 [ 539.408447] ? xfs_alloc_vextent+0x470/0x2010 [ 539.412915] xfs_alloc_vextent+0x10b0/0x2010 [ 539.417305] xfs_bmap_btalloc+0x9e5/0x1b20 [ 539.421515] ? xfs_bmap_adjacent+0x1480/0x1480 [ 539.426073] ? ret_from_fork+0x24/0x30 [ 539.429947] ? __xfs_bmbt_get_all+0x16/0x100 [ 539.434330] xfs_bmap_alloc+0x107/0x160 [ 539.438277] xfs_bmapi_write+0xa49/0x1d00 [ 539.442403] ? xfs_bmapi_reserve_delalloc+0x7c0/0x7c0 [ 539.447576] ? trace_hardirqs_on+0x10/0x10 [ 539.451789] ? xfs_iext_get_ext+0xeb/0x200 [ 539.455997] ? xfs_iext_idx_to_irec+0x340/0x340 [ 539.460643] ? xfs_bmap_last_extent+0x1d0/0x1d0 [ 539.465300] xfs_iomap_write_allocate+0x42b/0xa30 [ 539.470129] ? xfs_file_iomap_begin+0x1ed0/0x1ed0 [ 539.474943] ? xfs_iunlock+0x248/0x3b0 [ 539.478811] ? rcu_read_lock_sched_held+0x16c/0x1d0 [ 539.483797] ? xfs_iunlock+0x21a/0x3b0 [ 539.487676] xfs_map_blocks+0x548/0x940 [ 539.491625] ? xfs_vm_set_page_dirty+0x610/0x610 [ 539.496357] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 539.501783] xfs_do_writepage+0x422/0x13d0 [ 539.506009] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 539.510313] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 539.515739] write_cache_pages+0x505/0xd20 [ 539.519948] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 539.524252] ? clear_page_dirty_for_io+0xb80/0xb80 [ 539.529185] ? trace_hardirqs_on+0x10/0x10 [ 539.533393] xfs_vm_writepages+0x258/0x340 [ 539.537608] ? xfs_vm_writepage+0xd0/0xd0 [ 539.541744] ? xfs_vm_writepage+0xd0/0xd0 [ 539.545871] do_writepages+0xc3/0x240 [ 539.549654] ? page_writeback_cpu_online+0x10/0x10 [ 539.554591] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 539.560017] __writeback_single_inode+0xda/0x1010 [ 539.564843] writeback_sb_inodes+0x48b/0xd30 [ 539.569237] ? wbc_detach_inode+0x780/0x780 [ 539.573536] ? queue_io+0x400/0x5a0 [ 539.577137] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 539.582592] wb_writeback+0x243/0xb80 [ 539.586378] ? writeback_inodes_wb.constprop.0+0x1a0/0x1a0 [ 539.591984] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 539.597408] wb_workfn+0x2bd/0xf50 [ 539.600925] ? process_one_work+0x6c4/0x14a0 [ 539.605313] ? inode_wait_for_writeback+0x30/0x30 [ 539.610148] ? lock_acquire+0x170/0x3f0 [ 539.614097] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 539.619521] process_one_work+0x793/0x14a0 [ 539.623731] ? work_busy+0x320/0x320 [ 539.627425] ? worker_thread+0x158/0xff0 [ 539.631466] ? _raw_spin_unlock_irq+0x24/0x80 [ 539.635935] worker_thread+0x5cc/0xff0 [ 539.639802] ? rescuer_thread+0xc80/0xc80 [ 539.643927] kthread+0x30d/0x420 [ 539.647277] ? kthread_create_on_node+0xd0/0xd0 [ 539.651928] ret_from_fork+0x24/0x30 [ 539.656000] XFS (loop1): page discard on page ffffea0001093780, inode 0x29, offset 1576960. [ 539.664905] XFS (loop1): Internal error XFS_WANT_CORRUPTED_RETURN at line 431 of file fs/xfs/libxfs/xfs_alloc.c. Caller xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 539.679548] CPU: 1 PID: 2818 Comm: kworker/u4:3 Not tainted 4.14.303-syzkaller #0 [ 539.687160] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023 [ 539.696609] Workqueue: writeback wb_workfn (flush-7:1) [ 539.701863] Call Trace: [ 539.704433] dump_stack+0x1b2/0x281 [ 539.708046] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 539.713301] xfs_error_report+0x98/0xa0 [ 539.717253] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 539.722506] xfs_alloc_fixup_trees+0x425/0x4f0 [ 539.727074] ? xfs_alloc_update+0x90/0x90 [ 539.731202] ? xfs_btree_rec_offset.isra.0+0x3b/0xa0 [ 539.736280] ? xfs_alloc_compute_diff+0x23c/0x3d0 [ 539.741096] xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 539.746186] ? xfs_alloc_fix_freelist+0x685/0xeb0 [ 539.751009] ? xfs_alloc_ag_vextent_size+0x1ea0/0x1ea0 [ 539.756261] ? xfs_alloc_read_agf+0xb10/0xb10 [ 539.760738] xfs_alloc_ag_vextent+0x579/0x750 [ 539.765210] ? xfs_perag_get+0x116/0x410 [ 539.769253] ? xfs_alloc_vextent+0x470/0x2010 [ 539.773734] xfs_alloc_vextent+0x10b0/0x2010 [ 539.778150] xfs_bmap_btalloc+0x9e5/0x1b20 [ 539.782369] ? xfs_bmap_adjacent+0x1480/0x1480 [ 539.786931] ? ret_from_fork+0x24/0x30 [ 539.790809] ? __xfs_bmbt_get_all+0x16/0x100 [ 539.795194] xfs_bmap_alloc+0x107/0x160 [ 539.799150] xfs_bmapi_write+0xa49/0x1d00 [ 539.803279] ? xfs_bmapi_reserve_delalloc+0x7c0/0x7c0 [ 539.808444] ? trace_hardirqs_on+0x10/0x10 [ 539.812663] ? xfs_iext_get_ext+0xeb/0x200 [ 539.816892] ? xfs_iext_idx_to_irec+0x340/0x340 [ 539.821544] ? xfs_bmap_last_extent+0x1d0/0x1d0 [ 539.826204] xfs_iomap_write_allocate+0x42b/0xa30 [ 539.831043] ? xfs_file_iomap_begin+0x1ed0/0x1ed0 [ 539.835878] ? xfs_iunlock+0x248/0x3b0 [ 539.839745] ? rcu_read_lock_sched_held+0x16c/0x1d0 [ 539.844741] ? xfs_iunlock+0x21a/0x3b0 [ 539.848612] xfs_map_blocks+0x548/0x940 [ 539.852570] ? xfs_vm_set_page_dirty+0x610/0x610 [ 539.857304] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 539.862735] xfs_do_writepage+0x422/0x13d0 [ 539.866957] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 539.871262] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 539.876688] write_cache_pages+0x505/0xd20 [ 539.880899] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 539.885212] ? clear_page_dirty_for_io+0xb80/0xb80 [ 539.890130] ? trace_hardirqs_on+0x10/0x10 [ 539.894344] xfs_vm_writepages+0x258/0x340 [ 539.898556] ? xfs_vm_writepage+0xd0/0xd0 [ 539.902686] ? xfs_vm_writepage+0xd0/0xd0 [ 539.906816] do_writepages+0xc3/0x240 [ 539.910624] ? page_writeback_cpu_online+0x10/0x10 [ 539.915551] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 539.920978] __writeback_single_inode+0xda/0x1010 [ 539.925807] writeback_sb_inodes+0x48b/0xd30 [ 539.930201] ? wbc_detach_inode+0x780/0x780 [ 539.934498] ? queue_io+0x400/0x5a0 [ 539.938102] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 539.943526] wb_writeback+0x243/0xb80 [ 539.947316] ? writeback_inodes_wb.constprop.0+0x1a0/0x1a0 [ 539.952925] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 539.958347] wb_workfn+0x2bd/0xf50 [ 539.961863] ? process_one_work+0x6c4/0x14a0 [ 539.966249] ? inode_wait_for_writeback+0x30/0x30 [ 539.971070] ? lock_acquire+0x170/0x3f0 [ 539.975018] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 539.980440] process_one_work+0x793/0x14a0 [ 539.984661] ? work_busy+0x320/0x320 [ 539.988355] ? worker_thread+0x158/0xff0 [ 539.992391] ? _raw_spin_unlock_irq+0x24/0x80 [ 539.996860] worker_thread+0x5cc/0xff0 [ 540.000741] ? rescuer_thread+0xc80/0xc80 [ 540.004872] kthread+0x30d/0x420 [ 540.008220] ? kthread_create_on_node+0xd0/0xd0 [ 540.012863] ret_from_fork+0x24/0x30 [ 540.017241] XFS (loop1): page discard on page ffffea00010937c0, inode 0x29, offset 1581056. [ 540.026143] XFS (loop1): Internal error XFS_WANT_CORRUPTED_RETURN at line 431 of file fs/xfs/libxfs/xfs_alloc.c. Caller xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 540.040696] CPU: 1 PID: 2818 Comm: kworker/u4:3 Not tainted 4.14.303-syzkaller #0 [ 540.048305] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023 [ 540.057652] Workqueue: writeback wb_workfn (flush-7:1) [ 540.062906] Call Trace: [ 540.065469] dump_stack+0x1b2/0x281 [ 540.069069] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 540.074324] xfs_error_report+0x98/0xa0 [ 540.078278] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 540.083532] xfs_alloc_fixup_trees+0x425/0x4f0 [ 540.088087] ? xfs_alloc_update+0x90/0x90 [ 540.092221] ? xfs_btree_rec_offset.isra.0+0x3b/0xa0 [ 540.097298] ? xfs_alloc_compute_diff+0x23c/0x3d0 [ 540.102115] xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 540.107210] ? xfs_alloc_fix_freelist+0x685/0xeb0 [ 540.112025] ? xfs_alloc_ag_vextent_size+0x1ea0/0x1ea0 [ 540.117275] ? xfs_alloc_read_agf+0xb10/0xb10 [ 540.121751] xfs_alloc_ag_vextent+0x579/0x750 [ 540.126217] ? xfs_perag_get+0x116/0x410 [ 540.130248] ? xfs_alloc_vextent+0x470/0x2010 [ 540.134721] xfs_alloc_vextent+0x10b0/0x2010 [ 540.139115] xfs_bmap_btalloc+0x9e5/0x1b20 [ 540.143326] ? xfs_bmap_adjacent+0x1480/0x1480 [ 540.147880] ? ret_from_fork+0x24/0x30 [ 540.151748] ? __xfs_bmbt_get_all+0x16/0x100 [ 540.156137] xfs_bmap_alloc+0x107/0x160 [ 540.160091] xfs_bmapi_write+0xa49/0x1d00 [ 540.164246] ? xfs_bmapi_reserve_delalloc+0x7c0/0x7c0 [ 540.169428] ? trace_hardirqs_on+0x10/0x10 [ 540.173648] ? xfs_iext_get_ext+0xeb/0x200 [ 540.177867] ? xfs_iext_idx_to_irec+0x340/0x340 [ 540.182532] ? xfs_bmap_last_extent+0x1d0/0x1d0 [ 540.187176] xfs_iomap_write_allocate+0x42b/0xa30 [ 540.191995] ? xfs_file_iomap_begin+0x1ed0/0x1ed0 [ 540.196809] ? xfs_iunlock+0x248/0x3b0 [ 540.200675] ? rcu_read_lock_sched_held+0x16c/0x1d0 [ 540.205682] ? xfs_iunlock+0x21a/0x3b0 [ 540.209545] xfs_map_blocks+0x548/0x940 [ 540.213495] ? xfs_vm_set_page_dirty+0x610/0x610 [ 540.218224] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 540.223661] xfs_do_writepage+0x422/0x13d0 [ 540.227875] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 540.232174] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 540.237602] write_cache_pages+0x505/0xd20 [ 540.241813] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 540.246126] ? clear_page_dirty_for_io+0xb80/0xb80 [ 540.251032] ? trace_hardirqs_on+0x10/0x10 [ 540.255249] xfs_vm_writepages+0x258/0x340 [ 540.259462] ? xfs_vm_writepage+0xd0/0xd0 [ 540.263595] ? xfs_vm_writepage+0xd0/0xd0 [ 540.267729] do_writepages+0xc3/0x240 [ 540.271507] ? page_writeback_cpu_online+0x10/0x10 [ 540.276412] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 540.281838] __writeback_single_inode+0xda/0x1010 [ 540.286654] writeback_sb_inodes+0x48b/0xd30 [ 540.291049] ? wbc_detach_inode+0x780/0x780 [ 540.295353] ? queue_io+0x400/0x5a0 [ 540.298959] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 540.304392] wb_writeback+0x243/0xb80 [ 540.308174] ? writeback_inodes_wb.constprop.0+0x1a0/0x1a0 [ 540.313779] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 540.319202] wb_workfn+0x2bd/0xf50 [ 540.322717] ? process_one_work+0x6c4/0x14a0 [ 540.327099] ? inode_wait_for_writeback+0x30/0x30 [ 540.331913] ? lock_acquire+0x170/0x3f0 [ 540.335872] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 540.341311] process_one_work+0x793/0x14a0 [ 540.345522] ? work_busy+0x320/0x320 [ 540.349207] ? worker_thread+0x158/0xff0 [ 540.353245] ? _raw_spin_unlock_irq+0x24/0x80 [ 540.357715] worker_thread+0x5cc/0xff0 [ 540.361581] ? rescuer_thread+0xc80/0xc80 [ 540.365704] kthread+0x30d/0x420 [ 540.369041] ? kthread_create_on_node+0xd0/0xd0 [ 540.373700] ret_from_fork+0x24/0x30 [ 540.377921] XFS (loop1): page discard on page ffffea0001093800, inode 0x29, offset 1585152. [ 540.386819] XFS (loop1): Internal error XFS_WANT_CORRUPTED_RETURN at line 431 of file fs/xfs/libxfs/xfs_alloc.c. Caller xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 540.401365] CPU: 1 PID: 2818 Comm: kworker/u4:3 Not tainted 4.14.303-syzkaller #0 [ 540.408968] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023 [ 540.418311] Workqueue: writeback wb_workfn (flush-7:1) [ 540.423567] Call Trace: [ 540.426129] dump_stack+0x1b2/0x281 [ 540.429729] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 540.434986] xfs_error_report+0x98/0xa0 [ 540.438941] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 540.444192] xfs_alloc_fixup_trees+0x425/0x4f0 [ 540.448749] ? xfs_alloc_update+0x90/0x90 [ 540.452867] ? xfs_btree_rec_offset.isra.0+0x3b/0xa0 [ 540.457946] ? xfs_alloc_compute_diff+0x23c/0x3d0 [ 540.462765] xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 540.467845] ? xfs_alloc_fix_freelist+0x685/0xeb0 [ 540.472657] ? xfs_alloc_ag_vextent_size+0x1ea0/0x1ea0 [ 540.477908] ? xfs_alloc_read_agf+0xb10/0xb10 [ 540.482385] xfs_alloc_ag_vextent+0x579/0x750 [ 540.486856] ? xfs_perag_get+0x116/0x410 [ 540.490901] ? xfs_alloc_vextent+0x470/0x2010 [ 540.495377] xfs_alloc_vextent+0x10b0/0x2010 [ 540.499771] xfs_bmap_btalloc+0x9e5/0x1b20 [ 540.503983] ? xfs_bmap_adjacent+0x1480/0x1480 [ 540.508539] ? ret_from_fork+0x24/0x30 [ 540.512407] ? __xfs_bmbt_get_all+0x16/0x100 [ 540.516796] xfs_bmap_alloc+0x107/0x160 [ 540.520749] xfs_bmapi_write+0xa49/0x1d00 [ 540.524876] ? xfs_bmapi_reserve_delalloc+0x7c0/0x7c0 [ 540.530037] ? trace_hardirqs_on+0x10/0x10 [ 540.534256] ? xfs_iext_get_ext+0xeb/0x200 [ 540.538469] ? xfs_iext_idx_to_irec+0x340/0x340 [ 540.543119] ? xfs_bmap_last_extent+0x1d0/0x1d0 [ 540.547766] xfs_iomap_write_allocate+0x42b/0xa30 [ 540.552586] ? xfs_file_iomap_begin+0x1ed0/0x1ed0 [ 540.557407] ? xfs_iunlock+0x248/0x3b0 [ 540.561280] ? rcu_read_lock_sched_held+0x16c/0x1d0 [ 540.566266] ? xfs_iunlock+0x21a/0x3b0 [ 540.570129] xfs_map_blocks+0x548/0x940 [ 540.574086] ? xfs_vm_set_page_dirty+0x610/0x610 [ 540.578832] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 540.584268] xfs_do_writepage+0x422/0x13d0 [ 540.588480] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 540.592776] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 540.598200] write_cache_pages+0x505/0xd20 [ 540.602410] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 540.606708] ? clear_page_dirty_for_io+0xb80/0xb80 [ 540.611617] ? trace_hardirqs_on+0x10/0x10 [ 540.615834] xfs_vm_writepages+0x258/0x340 [ 540.620051] ? xfs_vm_writepage+0xd0/0xd0 [ 540.624177] ? xfs_vm_writepage+0xd0/0xd0 [ 540.628296] do_writepages+0xc3/0x240 [ 540.632071] ? page_writeback_cpu_online+0x10/0x10 [ 540.636986] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 540.642417] __writeback_single_inode+0xda/0x1010 [ 540.647232] writeback_sb_inodes+0x48b/0xd30 [ 540.651635] ? wbc_detach_inode+0x780/0x780 [ 540.655949] ? queue_io+0x400/0x5a0 [ 540.659562] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 540.664988] wb_writeback+0x243/0xb80 [ 540.668773] ? writeback_inodes_wb.constprop.0+0x1a0/0x1a0 [ 540.674390] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 540.679825] wb_workfn+0x2bd/0xf50 [ 540.683346] ? process_one_work+0x6c4/0x14a0 [ 540.687731] ? inode_wait_for_writeback+0x30/0x30 [ 540.692548] ? lock_acquire+0x170/0x3f0 [ 540.696509] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 540.701940] process_one_work+0x793/0x14a0 [ 540.706152] ? work_busy+0x320/0x320 [ 540.709839] ? worker_thread+0x158/0xff0 [ 540.713878] ? _raw_spin_unlock_irq+0x24/0x80 [ 540.718470] worker_thread+0x5cc/0xff0 [ 540.722340] ? rescuer_thread+0xc80/0xc80 [ 540.726464] kthread+0x30d/0x420 [ 540.729806] ? kthread_create_on_node+0xd0/0xd0 [ 540.734465] ret_from_fork+0x24/0x30 [ 540.738596] XFS (loop1): page discard on page ffffea0001093840, inode 0x29, offset 1589248. [ 540.747507] XFS (loop1): Internal error XFS_WANT_CORRUPTED_RETURN at line 431 of file fs/xfs/libxfs/xfs_alloc.c. Caller xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 540.762049] CPU: 1 PID: 2818 Comm: kworker/u4:3 Not tainted 4.14.303-syzkaller #0 [ 540.769649] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023 [ 540.778984] Workqueue: writeback wb_workfn (flush-7:1) [ 540.784239] Call Trace: [ 540.786800] dump_stack+0x1b2/0x281 [ 540.790403] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 540.795658] xfs_error_report+0x98/0xa0 [ 540.799612] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 540.804862] xfs_alloc_fixup_trees+0x425/0x4f0 [ 540.809418] ? xfs_alloc_update+0x90/0x90 [ 540.813542] ? xfs_btree_rec_offset.isra.0+0x3b/0xa0 [ 540.818644] ? xfs_alloc_compute_diff+0x23c/0x3d0 [ 540.823460] xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 540.828540] ? xfs_alloc_fix_freelist+0x685/0xeb0 [ 540.833353] ? xfs_alloc_ag_vextent_size+0x1ea0/0x1ea0 [ 540.838603] ? xfs_alloc_read_agf+0xb10/0xb10 [ 540.843090] xfs_alloc_ag_vextent+0x579/0x750 [ 540.847567] ? xfs_perag_get+0x116/0x410 [ 540.851604] ? xfs_alloc_vextent+0x470/0x2010 [ 540.856085] xfs_alloc_vextent+0x10b0/0x2010 [ 540.860494] xfs_bmap_btalloc+0x9e5/0x1b20 [ 540.864706] ? xfs_bmap_adjacent+0x1480/0x1480 [ 540.869264] ? ret_from_fork+0x24/0x30 [ 540.873137] ? __xfs_bmbt_get_all+0x16/0x100 [ 540.877522] xfs_bmap_alloc+0x107/0x160 [ 540.881471] xfs_bmapi_write+0xa49/0x1d00 [ 540.885599] ? xfs_bmapi_reserve_delalloc+0x7c0/0x7c0 [ 540.890760] ? trace_hardirqs_on+0x10/0x10 [ 540.894980] ? xfs_iext_get_ext+0xeb/0x200 [ 540.899200] ? xfs_iext_idx_to_irec+0x340/0x340 [ 540.903865] ? xfs_bmap_last_extent+0x1d0/0x1d0 [ 540.908515] xfs_iomap_write_allocate+0x42b/0xa30 [ 540.913335] ? xfs_file_iomap_begin+0x1ed0/0x1ed0 [ 540.918154] ? xfs_iunlock+0x248/0x3b0 [ 540.922019] ? rcu_read_lock_sched_held+0x16c/0x1d0 [ 540.927017] ? xfs_iunlock+0x21a/0x3b0 [ 540.930877] xfs_map_blocks+0x548/0x940 [ 540.934833] ? xfs_vm_set_page_dirty+0x610/0x610 [ 540.939567] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 540.944990] xfs_do_writepage+0x422/0x13d0 [ 540.949215] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 540.953512] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 540.958937] write_cache_pages+0x505/0xd20 [ 540.963147] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 540.967448] ? clear_page_dirty_for_io+0xb80/0xb80 [ 540.972355] ? trace_hardirqs_on+0x10/0x10 [ 540.976572] xfs_vm_writepages+0x258/0x340 [ 540.980784] ? xfs_vm_writepage+0xd0/0xd0 [ 540.984909] ? xfs_vm_writepage+0xd0/0xd0 [ 540.989027] do_writepages+0xc3/0x240 [ 540.992801] ? page_writeback_cpu_online+0x10/0x10 [ 540.997707] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 541.003130] __writeback_single_inode+0xda/0x1010 [ 541.007946] writeback_sb_inodes+0x48b/0xd30 [ 541.012329] ? wbc_detach_inode+0x780/0x780 [ 541.016635] ? queue_io+0x400/0x5a0 [ 541.020241] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 541.025668] wb_writeback+0x243/0xb80 [ 541.029444] ? writeback_inodes_wb.constprop.0+0x1a0/0x1a0 [ 541.035056] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 541.040493] wb_workfn+0x2bd/0xf50 [ 541.044009] ? process_one_work+0x6c4/0x14a0 [ 541.048392] ? inode_wait_for_writeback+0x30/0x30 [ 541.053205] ? lock_acquire+0x170/0x3f0 [ 541.057162] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 541.062607] process_one_work+0x793/0x14a0 [ 541.066816] ? work_busy+0x320/0x320 [ 541.070500] ? worker_thread+0x158/0xff0 [ 541.074541] ? _raw_spin_unlock_irq+0x24/0x80 [ 541.079020] worker_thread+0x5cc/0xff0 [ 541.082898] ? rescuer_thread+0xc80/0xc80 [ 541.087025] kthread+0x30d/0x420 [ 541.090362] ? kthread_create_on_node+0xd0/0xd0 [ 541.095010] ret_from_fork+0x24/0x30 [ 541.099290] XFS (loop1): page discard on page ffffea0001093880, inode 0x29, offset 1593344. [ 541.108183] XFS (loop1): Internal error XFS_WANT_CORRUPTED_RETURN at line 431 of file fs/xfs/libxfs/xfs_alloc.c. Caller xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 541.122728] CPU: 1 PID: 2818 Comm: kworker/u4:3 Not tainted 4.14.303-syzkaller #0 [ 541.130336] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023 [ 541.139682] Workqueue: writeback wb_workfn (flush-7:1) [ 541.144932] Call Trace: [ 541.147495] dump_stack+0x1b2/0x281 [ 541.151096] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 541.156352] xfs_error_report+0x98/0xa0 [ 541.160309] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 541.165582] xfs_alloc_fixup_trees+0x425/0x4f0 [ 541.170137] ? xfs_alloc_update+0x90/0x90 [ 541.174262] ? xfs_btree_rec_offset.isra.0+0x3b/0xa0 [ 541.179347] ? xfs_alloc_compute_diff+0x23c/0x3d0 [ 541.184165] xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 541.189245] ? xfs_alloc_fix_freelist+0x685/0xeb0 [ 541.194066] ? xfs_alloc_ag_vextent_size+0x1ea0/0x1ea0 [ 541.199324] ? xfs_alloc_read_agf+0xb10/0xb10 [ 541.203803] xfs_alloc_ag_vextent+0x579/0x750 [ 541.208276] ? xfs_perag_get+0x116/0x410 [ 541.212308] ? xfs_alloc_vextent+0x470/0x2010 [ 541.216792] xfs_alloc_vextent+0x10b0/0x2010 [ 541.221204] xfs_bmap_btalloc+0x9e5/0x1b20 [ 541.225428] ? xfs_bmap_adjacent+0x1480/0x1480 [ 541.229983] ? ret_from_fork+0x24/0x30 [ 541.233861] ? __xfs_bmbt_get_all+0x16/0x100 [ 541.238251] xfs_bmap_alloc+0x107/0x160 [ 541.242197] xfs_bmapi_write+0xa49/0x1d00 [ 541.246339] ? xfs_bmapi_reserve_delalloc+0x7c0/0x7c0 [ 541.251502] ? trace_hardirqs_on+0x10/0x10 [ 541.255722] ? xfs_iext_get_ext+0xeb/0x200 [ 541.259951] ? xfs_iext_idx_to_irec+0x340/0x340 [ 541.264600] ? xfs_bmap_last_extent+0x1d0/0x1d0 [ 541.269246] xfs_iomap_write_allocate+0x42b/0xa30 [ 541.274078] ? xfs_file_iomap_begin+0x1ed0/0x1ed0 [ 541.278899] ? xfs_iunlock+0x248/0x3b0 [ 541.282768] ? rcu_read_lock_sched_held+0x16c/0x1d0 [ 541.287756] ? xfs_iunlock+0x21a/0x3b0 [ 541.291635] xfs_map_blocks+0x548/0x940 [ 541.295590] ? xfs_vm_set_page_dirty+0x610/0x610 [ 541.300326] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 541.305752] xfs_do_writepage+0x422/0x13d0 [ 541.309978] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 541.314287] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 541.319720] write_cache_pages+0x505/0xd20 [ 541.323929] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 541.328226] ? clear_page_dirty_for_io+0xb80/0xb80 [ 541.333144] ? trace_hardirqs_on+0x10/0x10 [ 541.337364] xfs_vm_writepages+0x258/0x340 [ 541.341578] ? xfs_vm_writepage+0xd0/0xd0 [ 541.345716] ? xfs_vm_writepage+0xd0/0xd0 [ 541.349835] do_writepages+0xc3/0x240 [ 541.353609] ? page_writeback_cpu_online+0x10/0x10 [ 541.358514] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 541.363938] __writeback_single_inode+0xda/0x1010 [ 541.368756] writeback_sb_inodes+0x48b/0xd30 [ 541.373154] ? wbc_detach_inode+0x780/0x780 [ 541.377461] ? queue_io+0x400/0x5a0 [ 541.381069] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 541.386491] wb_writeback+0x243/0xb80 [ 541.390270] ? writeback_inodes_wb.constprop.0+0x1a0/0x1a0 [ 541.395876] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 541.401310] wb_workfn+0x2bd/0xf50 [ 541.404827] ? process_one_work+0x6c4/0x14a0 [ 541.409208] ? inode_wait_for_writeback+0x30/0x30 [ 541.414032] ? lock_acquire+0x170/0x3f0 [ 541.417990] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 541.423417] process_one_work+0x793/0x14a0 [ 541.427640] ? work_busy+0x320/0x320 [ 541.431323] ? worker_thread+0x158/0xff0 [ 541.435368] ? _raw_spin_unlock_irq+0x24/0x80 [ 541.439861] worker_thread+0x5cc/0xff0 [ 541.443727] ? rescuer_thread+0xc80/0xc80 [ 541.447880] kthread+0x30d/0x420 [ 541.451218] ? kthread_create_on_node+0xd0/0xd0 [ 541.455866] ret_from_fork+0x24/0x30 [ 541.459951] XFS (loop1): page discard on page ffffea00010938c0, inode 0x29, offset 1597440. [ 541.468843] XFS (loop1): Internal error XFS_WANT_CORRUPTED_RETURN at line 431 of file fs/xfs/libxfs/xfs_alloc.c. Caller xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 541.483380] CPU: 1 PID: 2818 Comm: kworker/u4:3 Not tainted 4.14.303-syzkaller #0 [ 541.490986] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023 [ 541.500320] Workqueue: writeback wb_workfn (flush-7:1) [ 541.505576] Call Trace: [ 541.508152] dump_stack+0x1b2/0x281 [ 541.511755] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 541.517010] xfs_error_report+0x98/0xa0 [ 541.520975] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 541.526226] xfs_alloc_fixup_trees+0x425/0x4f0 [ 541.530782] ? xfs_alloc_update+0x90/0x90 [ 541.534908] ? xfs_btree_rec_offset.isra.0+0x3b/0xa0 [ 541.539993] ? xfs_alloc_compute_diff+0x23c/0x3d0 [ 541.544811] xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 541.549891] ? xfs_alloc_fix_freelist+0x685/0xeb0 [ 541.554715] ? xfs_alloc_ag_vextent_size+0x1ea0/0x1ea0 [ 541.559972] ? xfs_alloc_read_agf+0xb10/0xb10 [ 541.564450] xfs_alloc_ag_vextent+0x579/0x750 [ 541.568918] ? xfs_perag_get+0x116/0x410 [ 541.572954] ? xfs_alloc_vextent+0x470/0x2010 [ 541.577428] xfs_alloc_vextent+0x10b0/0x2010 [ 541.581825] xfs_bmap_btalloc+0x9e5/0x1b20 [ 541.586040] ? xfs_bmap_adjacent+0x1480/0x1480 [ 541.590608] ? ret_from_fork+0x24/0x30 [ 541.594488] ? __xfs_bmbt_get_all+0x16/0x100 [ 541.598890] xfs_bmap_alloc+0x107/0x160 [ 541.602839] xfs_bmapi_write+0xa49/0x1d00 [ 541.606965] ? xfs_bmapi_reserve_delalloc+0x7c0/0x7c0 [ 541.612128] ? trace_hardirqs_on+0x10/0x10 [ 541.616347] ? xfs_iext_get_ext+0xeb/0x200 [ 541.620571] ? xfs_iext_idx_to_irec+0x340/0x340 [ 541.625237] ? xfs_bmap_last_extent+0x1d0/0x1d0 [ 541.629892] xfs_iomap_write_allocate+0x42b/0xa30 [ 541.634726] ? xfs_file_iomap_begin+0x1ed0/0x1ed0 [ 541.639550] ? xfs_iunlock+0x248/0x3b0 [ 541.643418] ? rcu_read_lock_sched_held+0x16c/0x1d0 [ 541.648409] ? xfs_iunlock+0x21a/0x3b0 [ 541.652269] xfs_map_blocks+0x548/0x940 [ 541.656218] ? xfs_vm_set_page_dirty+0x610/0x610 [ 541.660950] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 541.666381] xfs_do_writepage+0x422/0x13d0 [ 541.670591] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 541.674909] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 541.680356] write_cache_pages+0x505/0xd20 [ 541.684578] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 541.688884] ? clear_page_dirty_for_io+0xb80/0xb80 [ 541.693826] ? trace_hardirqs_on+0x10/0x10 [ 541.698054] xfs_vm_writepages+0x258/0x340 [ 541.702267] ? xfs_vm_writepage+0xd0/0xd0 [ 541.706394] ? xfs_vm_writepage+0xd0/0xd0 [ 541.710517] do_writepages+0xc3/0x240 [ 541.714305] ? page_writeback_cpu_online+0x10/0x10 [ 541.719223] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 541.724655] __writeback_single_inode+0xda/0x1010 [ 541.729485] writeback_sb_inodes+0x48b/0xd30 [ 541.733882] ? wbc_detach_inode+0x780/0x780 [ 541.738189] ? queue_io+0x400/0x5a0 [ 541.741790] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 541.747213] wb_writeback+0x243/0xb80 [ 541.750992] ? writeback_inodes_wb.constprop.0+0x1a0/0x1a0 [ 541.756591] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 541.762014] wb_workfn+0x2bd/0xf50 [ 541.765536] ? process_one_work+0x6c4/0x14a0 [ 541.769926] ? inode_wait_for_writeback+0x30/0x30 [ 541.774748] ? lock_acquire+0x170/0x3f0 [ 541.778706] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 541.784136] process_one_work+0x793/0x14a0 [ 541.788375] ? work_busy+0x320/0x320 [ 541.792069] ? worker_thread+0x158/0xff0 [ 541.796104] ? _raw_spin_unlock_irq+0x24/0x80 [ 541.800573] worker_thread+0x5cc/0xff0 [ 541.804450] ? rescuer_thread+0xc80/0xc80 [ 541.808584] kthread+0x30d/0x420 [ 541.811931] ? kthread_create_on_node+0xd0/0xd0 [ 541.816580] ret_from_fork+0x24/0x30 [ 541.820737] XFS (loop1): page discard on page ffffea0001093900, inode 0x29, offset 1601536. [ 541.829659] XFS (loop1): Internal error XFS_WANT_CORRUPTED_RETURN at line 431 of file fs/xfs/libxfs/xfs_alloc.c. Caller xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 541.844204] CPU: 1 PID: 2818 Comm: kworker/u4:3 Not tainted 4.14.303-syzkaller #0 [ 541.851815] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023 [ 541.861155] Workqueue: writeback wb_workfn (flush-7:1) [ 541.866508] Call Trace: [ 541.869087] dump_stack+0x1b2/0x281 [ 541.872692] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 541.877945] xfs_error_report+0x98/0xa0 [ 541.881895] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 541.887147] xfs_alloc_fixup_trees+0x425/0x4f0 [ 541.891705] ? xfs_alloc_update+0x90/0x90 [ 541.895832] ? xfs_btree_rec_offset.isra.0+0x3b/0xa0 [ 541.900918] ? xfs_alloc_compute_diff+0x23c/0x3d0 [ 541.905735] xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 541.910829] ? xfs_alloc_fix_freelist+0x685/0xeb0 [ 541.915656] ? xfs_alloc_ag_vextent_size+0x1ea0/0x1ea0 [ 541.920935] ? xfs_alloc_read_agf+0xb10/0xb10 [ 541.925416] xfs_alloc_ag_vextent+0x579/0x750 [ 541.929888] ? xfs_perag_get+0x116/0x410 [ 541.933925] ? xfs_alloc_vextent+0x470/0x2010 [ 541.938414] xfs_alloc_vextent+0x10b0/0x2010 [ 541.942811] xfs_bmap_btalloc+0x9e5/0x1b20 [ 541.947026] ? xfs_bmap_adjacent+0x1480/0x1480 [ 541.951581] ? ret_from_fork+0x24/0x30 [ 541.955481] ? __xfs_bmbt_get_all+0x16/0x100 [ 541.959963] xfs_bmap_alloc+0x107/0x160 [ 541.963913] xfs_bmapi_write+0xa49/0x1d00 [ 541.968040] ? xfs_bmapi_reserve_delalloc+0x7c0/0x7c0 [ 541.973204] ? trace_hardirqs_on+0x10/0x10 [ 541.977424] ? xfs_iext_get_ext+0xeb/0x200 [ 541.981635] ? xfs_iext_idx_to_irec+0x340/0x340 [ 541.986281] ? xfs_bmap_last_extent+0x1d0/0x1d0 [ 541.990926] xfs_iomap_write_allocate+0x42b/0xa30 [ 541.995764] ? xfs_file_iomap_begin+0x1ed0/0x1ed0 [ 542.000587] ? xfs_iunlock+0x248/0x3b0 [ 542.004454] ? rcu_read_lock_sched_held+0x16c/0x1d0 [ 542.009444] ? xfs_iunlock+0x21a/0x3b0 [ 542.013306] xfs_map_blocks+0x548/0x940 [ 542.017268] ? xfs_vm_set_page_dirty+0x610/0x610 [ 542.022021] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 542.027448] xfs_do_writepage+0x422/0x13d0 [ 542.031659] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 542.035966] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 542.041398] write_cache_pages+0x505/0xd20 [ 542.045611] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 542.049909] ? clear_page_dirty_for_io+0xb80/0xb80 [ 542.054829] ? trace_hardirqs_on+0x10/0x10 [ 542.059045] xfs_vm_writepages+0x258/0x340 [ 542.063254] ? xfs_vm_writepage+0xd0/0xd0 [ 542.067377] ? xfs_vm_writepage+0xd0/0xd0 [ 542.071499] do_writepages+0xc3/0x240 [ 542.075282] ? page_writeback_cpu_online+0x10/0x10 [ 542.080197] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 542.085623] __writeback_single_inode+0xda/0x1010 [ 542.090441] writeback_sb_inodes+0x48b/0xd30 [ 542.094840] ? wbc_detach_inode+0x780/0x780 [ 542.099161] ? queue_io+0x400/0x5a0 [ 542.102763] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 542.108186] wb_writeback+0x243/0xb80 [ 542.111964] ? writeback_inodes_wb.constprop.0+0x1a0/0x1a0 [ 542.117562] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 542.122984] wb_workfn+0x2bd/0xf50 [ 542.126515] ? process_one_work+0x6c4/0x14a0 [ 542.130900] ? inode_wait_for_writeback+0x30/0x30 [ 542.135723] ? lock_acquire+0x170/0x3f0 [ 542.139678] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 542.145102] process_one_work+0x793/0x14a0 [ 542.149318] ? work_busy+0x320/0x320 [ 542.153003] ? worker_thread+0x158/0xff0 [ 542.157045] ? _raw_spin_unlock_irq+0x24/0x80 [ 542.161522] worker_thread+0x5cc/0xff0 [ 542.165404] ? rescuer_thread+0xc80/0xc80 [ 542.169526] kthread+0x30d/0x420 [ 542.172867] ? kthread_create_on_node+0xd0/0xd0 [ 542.177510] ret_from_fork+0x24/0x30 [ 542.182178] XFS (loop1): page discard on page ffffea0001093940, inode 0x29, offset 1605632. [ 542.191056] XFS (loop1): Internal error XFS_WANT_CORRUPTED_RETURN at line 431 of file fs/xfs/libxfs/xfs_alloc.c. Caller xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 542.205589] CPU: 1 PID: 2818 Comm: kworker/u4:3 Not tainted 4.14.303-syzkaller #0 [ 542.213189] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023 [ 542.222528] Workqueue: writeback wb_workfn (flush-7:1) [ 542.227781] Call Trace: [ 542.230342] dump_stack+0x1b2/0x281 [ 542.233965] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 542.239223] xfs_error_report+0x98/0xa0 [ 542.243169] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 542.248421] xfs_alloc_fixup_trees+0x425/0x4f0 [ 542.252978] ? xfs_alloc_update+0x90/0x90 [ 542.257106] ? xfs_btree_rec_offset.isra.0+0x3b/0xa0 [ 542.262193] ? xfs_alloc_compute_diff+0x23c/0x3d0 [ 542.267023] xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 542.272104] ? xfs_alloc_fix_freelist+0x685/0xeb0 [ 542.276927] ? xfs_alloc_ag_vextent_size+0x1ea0/0x1ea0 [ 542.282184] ? xfs_alloc_read_agf+0xb10/0xb10 [ 542.286660] xfs_alloc_ag_vextent+0x579/0x750 [ 542.291129] ? xfs_perag_get+0x116/0x410 [ 542.295166] ? xfs_alloc_vextent+0x470/0x2010 [ 542.299649] xfs_alloc_vextent+0x10b0/0x2010 [ 542.304060] xfs_bmap_btalloc+0x9e5/0x1b20 [ 542.308287] ? xfs_bmap_adjacent+0x1480/0x1480 [ 542.312854] ? ret_from_fork+0x24/0x30 [ 542.316739] ? __xfs_bmbt_get_all+0x16/0x100 [ 542.321131] xfs_bmap_alloc+0x107/0x160 [ 542.325081] xfs_bmapi_write+0xa49/0x1d00 [ 542.329210] ? xfs_bmapi_reserve_delalloc+0x7c0/0x7c0 [ 542.334379] ? trace_hardirqs_on+0x10/0x10 [ 542.338601] ? xfs_iext_get_ext+0xeb/0x200 [ 542.342809] ? xfs_iext_idx_to_irec+0x340/0x340 [ 542.347485] ? xfs_bmap_last_extent+0x1d0/0x1d0 [ 542.352162] xfs_iomap_write_allocate+0x42b/0xa30 [ 542.357005] ? xfs_file_iomap_begin+0x1ed0/0x1ed0 [ 542.361831] ? xfs_iunlock+0x248/0x3b0 [ 542.365706] ? rcu_read_lock_sched_held+0x16c/0x1d0 [ 542.370710] ? xfs_iunlock+0x21a/0x3b0 [ 542.374583] xfs_map_blocks+0x548/0x940 [ 542.378544] ? xfs_vm_set_page_dirty+0x610/0x610 [ 542.383287] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 542.388718] xfs_do_writepage+0x422/0x13d0 [ 542.392931] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 542.397242] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 542.402675] write_cache_pages+0x505/0xd20 [ 542.406885] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 542.411184] ? clear_page_dirty_for_io+0xb80/0xb80 [ 542.416107] ? trace_hardirqs_on+0x10/0x10 [ 542.420324] xfs_vm_writepages+0x258/0x340 [ 542.424533] ? xfs_vm_writepage+0xd0/0xd0 [ 542.428658] ? xfs_vm_writepage+0xd0/0xd0 [ 542.432782] do_writepages+0xc3/0x240 [ 542.436568] ? page_writeback_cpu_online+0x10/0x10 [ 542.441481] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 542.446909] __writeback_single_inode+0xda/0x1010 [ 542.451728] writeback_sb_inodes+0x48b/0xd30 [ 542.456122] ? wbc_detach_inode+0x780/0x780 [ 542.460445] ? queue_io+0x400/0x5a0 [ 542.464045] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 542.469486] wb_writeback+0x243/0xb80 [ 542.473263] ? writeback_inodes_wb.constprop.0+0x1a0/0x1a0 [ 542.478864] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 542.484287] wb_workfn+0x2bd/0xf50 [ 542.487804] ? process_one_work+0x6c4/0x14a0 [ 542.492188] ? inode_wait_for_writeback+0x30/0x30 [ 542.497012] ? lock_acquire+0x170/0x3f0 [ 542.500965] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 542.506389] process_one_work+0x793/0x14a0 [ 542.510602] ? work_busy+0x320/0x320 [ 542.514293] ? worker_thread+0x158/0xff0 [ 542.518336] ? _raw_spin_unlock_irq+0x24/0x80 [ 542.522813] worker_thread+0x5cc/0xff0 [ 542.526676] ? rescuer_thread+0xc80/0xc80 [ 542.530795] kthread+0x30d/0x420 [ 542.534142] ? kthread_create_on_node+0xd0/0xd0 [ 542.538793] ret_from_fork+0x24/0x30 [ 542.543003] XFS (loop1): page discard on page ffffea0001093980, inode 0x29, offset 1609728. [ 542.551878] XFS (loop1): Internal error XFS_WANT_CORRUPTED_RETURN at line 431 of file fs/xfs/libxfs/xfs_alloc.c. Caller xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 542.566411] CPU: 1 PID: 2818 Comm: kworker/u4:3 Not tainted 4.14.303-syzkaller #0 [ 542.574018] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023 [ 542.583366] Workqueue: writeback wb_workfn (flush-7:1) [ 542.588619] Call Trace: [ 542.591361] dump_stack+0x1b2/0x281 [ 542.594972] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 542.600227] xfs_error_report+0x98/0xa0 [ 542.604177] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 542.609435] xfs_alloc_fixup_trees+0x425/0x4f0 [ 542.613999] ? xfs_alloc_update+0x90/0x90 [ 542.618143] ? xfs_btree_rec_offset.isra.0+0x3b/0xa0 [ 542.623219] ? xfs_alloc_compute_diff+0x23c/0x3d0 [ 542.628036] xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 542.633114] ? xfs_alloc_fix_freelist+0x685/0xeb0 [ 542.637932] ? xfs_alloc_ag_vextent_size+0x1ea0/0x1ea0 [ 542.643180] ? xfs_alloc_read_agf+0xb10/0xb10 [ 542.647675] xfs_alloc_ag_vextent+0x579/0x750 [ 542.652142] ? xfs_perag_get+0x116/0x410 [ 542.656180] ? xfs_alloc_vextent+0x470/0x2010 [ 542.660663] xfs_alloc_vextent+0x10b0/0x2010 [ 542.665075] xfs_bmap_btalloc+0x9e5/0x1b20 [ 542.669289] ? xfs_bmap_adjacent+0x1480/0x1480 [ 542.673851] ? ret_from_fork+0x24/0x30 [ 542.677725] ? __xfs_bmbt_get_all+0x16/0x100 [ 542.682117] xfs_bmap_alloc+0x107/0x160 [ 542.686064] xfs_bmapi_write+0xa49/0x1d00 [ 542.690204] ? xfs_bmapi_reserve_delalloc+0x7c0/0x7c0 [ 542.695374] ? trace_hardirqs_on+0x10/0x10 [ 542.699592] ? xfs_iext_get_ext+0xeb/0x200 [ 542.703809] ? xfs_iext_idx_to_irec+0x340/0x340 [ 542.708461] ? xfs_bmap_last_extent+0x1d0/0x1d0 [ 542.713108] xfs_iomap_write_allocate+0x42b/0xa30 [ 542.717939] ? xfs_file_iomap_begin+0x1ed0/0x1ed0 [ 542.722762] ? xfs_iunlock+0x248/0x3b0 [ 542.726637] ? rcu_read_lock_sched_held+0x16c/0x1d0 [ 542.731631] ? xfs_iunlock+0x21a/0x3b0 [ 542.735505] xfs_map_blocks+0x548/0x940 [ 542.739469] ? xfs_vm_set_page_dirty+0x610/0x610 [ 542.744199] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 542.749624] xfs_do_writepage+0x422/0x13d0 [ 542.753847] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 542.758152] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 542.763578] write_cache_pages+0x505/0xd20 [ 542.767792] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 542.772092] ? clear_page_dirty_for_io+0xb80/0xb80 [ 542.777012] ? trace_hardirqs_on+0x10/0x10 [ 542.781229] xfs_vm_writepages+0x258/0x340 [ 542.785452] ? xfs_vm_writepage+0xd0/0xd0 [ 542.789576] ? xfs_vm_writepage+0xd0/0xd0 [ 542.793698] do_writepages+0xc3/0x240 [ 542.797478] ? page_writeback_cpu_online+0x10/0x10 [ 542.802385] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 542.807808] __writeback_single_inode+0xda/0x1010 [ 542.812625] writeback_sb_inodes+0x48b/0xd30 [ 542.817019] ? wbc_detach_inode+0x780/0x780 [ 542.821321] ? queue_io+0x400/0x5a0 [ 542.824924] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 542.830348] wb_writeback+0x243/0xb80 [ 542.834132] ? writeback_inodes_wb.constprop.0+0x1a0/0x1a0 [ 542.839739] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 542.845162] wb_workfn+0x2bd/0xf50 [ 542.848695] ? process_one_work+0x6c4/0x14a0 [ 542.853076] ? inode_wait_for_writeback+0x30/0x30 [ 542.857894] ? lock_acquire+0x170/0x3f0 [ 542.861842] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 542.867266] process_one_work+0x793/0x14a0 [ 542.871475] ? work_busy+0x320/0x320 [ 542.875169] ? worker_thread+0x158/0xff0 [ 542.879212] ? _raw_spin_unlock_irq+0x24/0x80 [ 542.883680] worker_thread+0x5cc/0xff0 [ 542.887544] ? rescuer_thread+0xc80/0xc80 [ 542.891666] kthread+0x30d/0x420 [ 542.895027] ? kthread_create_on_node+0xd0/0xd0 [ 542.899772] ret_from_fork+0x24/0x30 [ 542.903949] XFS (loop1): page discard on page ffffea00010939c0, inode 0x29, offset 1613824. [ 542.912811] XFS (loop1): Internal error XFS_WANT_CORRUPTED_RETURN at line 431 of file fs/xfs/libxfs/xfs_alloc.c. Caller xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 542.927355] CPU: 1 PID: 2818 Comm: kworker/u4:3 Not tainted 4.14.303-syzkaller #0 [ 542.934969] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023 [ 542.944319] Workqueue: writeback wb_workfn (flush-7:1) [ 542.949582] Call Trace: [ 542.952143] dump_stack+0x1b2/0x281 [ 542.955752] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 542.961009] xfs_error_report+0x98/0xa0 [ 542.964958] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 542.970211] xfs_alloc_fixup_trees+0x425/0x4f0 [ 542.974777] ? xfs_alloc_update+0x90/0x90 [ 542.978909] ? xfs_btree_rec_offset.isra.0+0x3b/0xa0 [ 542.983993] ? xfs_alloc_compute_diff+0x23c/0x3d0 [ 542.988807] xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 542.993897] ? xfs_alloc_fix_freelist+0x685/0xeb0 [ 542.998724] ? xfs_alloc_ag_vextent_size+0x1ea0/0x1ea0 [ 543.003977] ? xfs_alloc_read_agf+0xb10/0xb10 [ 543.008453] xfs_alloc_ag_vextent+0x579/0x750 [ 543.012918] ? xfs_perag_get+0x116/0x410 [ 543.016955] ? xfs_alloc_vextent+0x470/0x2010 [ 543.021431] xfs_alloc_vextent+0x10b0/0x2010 [ 543.025822] xfs_bmap_btalloc+0x9e5/0x1b20 [ 543.030033] ? xfs_bmap_adjacent+0x1480/0x1480 [ 543.034590] ? ret_from_fork+0x24/0x30 [ 543.038463] ? __xfs_bmbt_get_all+0x16/0x100 [ 543.042845] xfs_bmap_alloc+0x107/0x160 [ 543.046792] xfs_bmapi_write+0xa49/0x1d00 [ 543.050921] ? xfs_bmapi_reserve_delalloc+0x7c0/0x7c0 [ 543.056089] ? trace_hardirqs_on+0x10/0x10 [ 543.060307] ? xfs_iext_get_ext+0xeb/0x200 [ 543.064538] ? xfs_iext_idx_to_irec+0x340/0x340 [ 543.069186] ? xfs_bmap_last_extent+0x1d0/0x1d0 [ 543.073847] xfs_iomap_write_allocate+0x42b/0xa30 [ 543.078677] ? xfs_file_iomap_begin+0x1ed0/0x1ed0 [ 543.083491] ? xfs_iunlock+0x248/0x3b0 [ 543.087362] ? rcu_read_lock_sched_held+0x16c/0x1d0 [ 543.092351] ? xfs_iunlock+0x21a/0x3b0 [ 543.096223] xfs_map_blocks+0x548/0x940 [ 543.100180] ? xfs_vm_set_page_dirty+0x610/0x610 [ 543.104910] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 543.110332] xfs_do_writepage+0x422/0x13d0 [ 543.114556] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 543.118858] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 543.124302] write_cache_pages+0x505/0xd20 [ 543.128509] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 543.132802] ? clear_page_dirty_for_io+0xb80/0xb80 [ 543.137709] ? trace_hardirqs_on+0x10/0x10 [ 543.141931] xfs_vm_writepages+0x258/0x340 [ 543.146139] ? xfs_vm_writepage+0xd0/0xd0 [ 543.150263] ? xfs_vm_writepage+0xd0/0xd0 [ 543.154387] do_writepages+0xc3/0x240 [ 543.158171] ? page_writeback_cpu_online+0x10/0x10 [ 543.163076] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 543.168516] __writeback_single_inode+0xda/0x1010 [ 543.173345] writeback_sb_inodes+0x48b/0xd30 [ 543.177736] ? wbc_detach_inode+0x780/0x780 [ 543.182119] ? queue_io+0x400/0x5a0 [ 543.185731] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 543.191158] wb_writeback+0x243/0xb80 [ 543.194943] ? writeback_inodes_wb.constprop.0+0x1a0/0x1a0 [ 543.200547] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 543.205970] wb_workfn+0x2bd/0xf50 [ 543.209488] ? process_one_work+0x6c4/0x14a0 [ 543.213876] ? inode_wait_for_writeback+0x30/0x30 [ 543.218717] ? lock_acquire+0x170/0x3f0 [ 543.222666] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 543.228092] process_one_work+0x793/0x14a0 [ 543.232303] ? work_busy+0x320/0x320 [ 543.235995] ? worker_thread+0x158/0xff0 [ 543.240042] ? _raw_spin_unlock_irq+0x24/0x80 [ 543.244519] worker_thread+0x5cc/0xff0 [ 543.248387] ? rescuer_thread+0xc80/0xc80 [ 543.252506] kthread+0x30d/0x420 [ 543.255849] ? kthread_create_on_node+0xd0/0xd0 [ 543.260501] ret_from_fork+0x24/0x30 [ 543.264770] XFS (loop1): page discard on page ffffea0001093a00, inode 0x29, offset 1617920. [ 543.273634] XFS (loop1): Internal error XFS_WANT_CORRUPTED_RETURN at line 431 of file fs/xfs/libxfs/xfs_alloc.c. Caller xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 543.288181] CPU: 1 PID: 2818 Comm: kworker/u4:3 Not tainted 4.14.303-syzkaller #0 [ 543.295791] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023 [ 543.305139] Workqueue: writeback wb_workfn (flush-7:1) [ 543.310391] Call Trace: [ 543.312952] dump_stack+0x1b2/0x281 [ 543.316564] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 543.321840] xfs_error_report+0x98/0xa0 [ 543.325801] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 543.331144] xfs_alloc_fixup_trees+0x425/0x4f0 [ 543.335710] ? xfs_alloc_update+0x90/0x90 [ 543.339838] ? xfs_btree_rec_offset.isra.0+0x3b/0xa0 [ 543.344913] ? xfs_alloc_compute_diff+0x23c/0x3d0 [ 543.349745] xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 543.354833] ? xfs_alloc_fix_freelist+0x685/0xeb0 [ 543.359654] ? xfs_alloc_ag_vextent_size+0x1ea0/0x1ea0 [ 543.364901] ? xfs_alloc_read_agf+0xb10/0xb10 [ 543.369389] xfs_alloc_ag_vextent+0x579/0x750 [ 543.373862] ? xfs_perag_get+0x116/0x410 [ 543.377902] ? xfs_alloc_vextent+0x470/0x2010 [ 543.382371] xfs_alloc_vextent+0x10b0/0x2010 [ 543.386776] xfs_bmap_btalloc+0x9e5/0x1b20 [ 543.390988] ? xfs_bmap_adjacent+0x1480/0x1480 [ 543.395546] ? ret_from_fork+0x24/0x30 [ 543.399510] ? __xfs_bmbt_get_all+0x16/0x100 [ 543.403893] xfs_bmap_alloc+0x107/0x160 [ 543.407840] xfs_bmapi_write+0xa49/0x1d00 [ 543.411965] ? xfs_bmapi_reserve_delalloc+0x7c0/0x7c0 [ 543.417138] ? trace_hardirqs_on+0x10/0x10 [ 543.421354] ? xfs_iext_get_ext+0xeb/0x200 [ 543.425563] ? xfs_iext_idx_to_irec+0x340/0x340 [ 543.430209] ? xfs_bmap_last_extent+0x1d0/0x1d0 [ 543.434869] xfs_iomap_write_allocate+0x42b/0xa30 [ 543.439698] ? xfs_file_iomap_begin+0x1ed0/0x1ed0 [ 543.444515] ? xfs_iunlock+0x248/0x3b0 [ 543.448382] ? rcu_read_lock_sched_held+0x16c/0x1d0 [ 543.453370] ? xfs_iunlock+0x21a/0x3b0 [ 543.457237] xfs_map_blocks+0x548/0x940 [ 543.461206] ? xfs_vm_set_page_dirty+0x610/0x610 [ 543.465938] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 543.471361] xfs_do_writepage+0x422/0x13d0 [ 543.475583] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 543.479889] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 543.485313] write_cache_pages+0x505/0xd20 [ 543.489536] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 543.493837] ? clear_page_dirty_for_io+0xb80/0xb80 [ 543.498751] ? trace_hardirqs_on+0x10/0x10 [ 543.502977] xfs_vm_writepages+0x258/0x340 [ 543.507185] ? xfs_vm_writepage+0xd0/0xd0 [ 543.511308] ? xfs_vm_writepage+0xd0/0xd0 [ 543.515435] do_writepages+0xc3/0x240 [ 543.519230] ? page_writeback_cpu_online+0x10/0x10 [ 543.524136] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 543.529574] __writeback_single_inode+0xda/0x1010 [ 543.534486] writeback_sb_inodes+0x48b/0xd30 [ 543.538880] ? wbc_detach_inode+0x780/0x780 [ 543.543177] ? queue_io+0x400/0x5a0 [ 543.546778] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 543.552201] wb_writeback+0x243/0xb80 [ 543.555989] ? writeback_inodes_wb.constprop.0+0x1a0/0x1a0 [ 543.561607] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 543.567032] wb_workfn+0x2bd/0xf50 [ 543.570547] ? process_one_work+0x6c4/0x14a0 [ 543.574933] ? inode_wait_for_writeback+0x30/0x30 [ 543.579755] ? lock_acquire+0x170/0x3f0 [ 543.583706] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 543.589134] process_one_work+0x793/0x14a0 [ 543.593348] ? work_busy+0x320/0x320 [ 543.597041] ? worker_thread+0x158/0xff0 [ 543.601084] ? _raw_spin_unlock_irq+0x24/0x80 [ 543.605554] worker_thread+0x5cc/0xff0 [ 543.609417] ? rescuer_thread+0xc80/0xc80 [ 543.613559] kthread+0x30d/0x420 [ 543.616914] ? kthread_create_on_node+0xd0/0xd0 [ 543.621564] ret_from_fork+0x24/0x30 [ 543.625623] XFS (loop1): page discard on page ffffea0001093a40, inode 0x29, offset 1622016. [ 543.634514] XFS (loop1): Internal error XFS_WANT_CORRUPTED_RETURN at line 431 of file fs/xfs/libxfs/xfs_alloc.c. Caller xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 543.649062] CPU: 1 PID: 2818 Comm: kworker/u4:3 Not tainted 4.14.303-syzkaller #0 [ 543.656672] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023 [ 543.666021] Workqueue: writeback wb_workfn (flush-7:1) [ 543.671276] Call Trace: [ 543.673845] dump_stack+0x1b2/0x281 [ 543.677456] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 543.682706] xfs_error_report+0x98/0xa0 [ 543.686667] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 543.691917] xfs_alloc_fixup_trees+0x425/0x4f0 [ 543.696489] ? xfs_alloc_update+0x90/0x90 [ 543.700627] ? xfs_btree_rec_offset.isra.0+0x3b/0xa0 [ 543.705717] ? xfs_alloc_compute_diff+0x23c/0x3d0 [ 543.710534] xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 543.715627] ? xfs_alloc_fix_freelist+0x685/0xeb0 [ 543.720534] ? xfs_alloc_ag_vextent_size+0x1ea0/0x1ea0 [ 543.725786] ? xfs_alloc_read_agf+0xb10/0xb10 [ 543.730282] xfs_alloc_ag_vextent+0x579/0x750 [ 543.734773] ? xfs_perag_get+0x116/0x410 [ 543.738834] ? xfs_alloc_vextent+0x470/0x2010 [ 543.743305] xfs_alloc_vextent+0x10b0/0x2010 [ 543.747696] xfs_bmap_btalloc+0x9e5/0x1b20 [ 543.751908] ? xfs_bmap_adjacent+0x1480/0x1480 [ 543.756470] ? ret_from_fork+0x24/0x30 [ 543.760359] ? __xfs_bmbt_get_all+0x16/0x100 [ 543.764746] xfs_bmap_alloc+0x107/0x160 [ 543.768708] xfs_bmapi_write+0xa49/0x1d00 [ 543.772834] ? xfs_bmapi_reserve_delalloc+0x7c0/0x7c0 [ 543.777999] ? trace_hardirqs_on+0x10/0x10 [ 543.782208] ? xfs_iext_get_ext+0xeb/0x200 [ 543.786420] ? xfs_iext_idx_to_irec+0x340/0x340 [ 543.791084] ? xfs_bmap_last_extent+0x1d0/0x1d0 [ 543.795825] xfs_iomap_write_allocate+0x42b/0xa30 [ 543.800655] ? xfs_file_iomap_begin+0x1ed0/0x1ed0 [ 543.805469] ? xfs_iunlock+0x248/0x3b0 [ 543.809337] ? rcu_read_lock_sched_held+0x16c/0x1d0 [ 543.814334] ? xfs_iunlock+0x21a/0x3b0 [ 543.818215] xfs_map_blocks+0x548/0x940 [ 543.822167] ? xfs_vm_set_page_dirty+0x610/0x610 [ 543.826899] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 543.832325] xfs_do_writepage+0x422/0x13d0 [ 543.836550] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 543.840856] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 543.846282] write_cache_pages+0x505/0xd20 [ 543.850509] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 543.854828] ? clear_page_dirty_for_io+0xb80/0xb80 [ 543.859753] ? trace_hardirqs_on+0x10/0x10 [ 543.863964] xfs_vm_writepages+0x258/0x340 [ 543.868172] ? xfs_vm_writepage+0xd0/0xd0 [ 543.872319] ? xfs_vm_writepage+0xd0/0xd0 [ 543.876446] do_writepages+0xc3/0x240 [ 543.880235] ? page_writeback_cpu_online+0x10/0x10 [ 543.885156] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 543.890582] __writeback_single_inode+0xda/0x1010 [ 543.895409] writeback_sb_inodes+0x48b/0xd30 [ 543.899801] ? wbc_detach_inode+0x780/0x780 [ 543.904099] ? queue_io+0x400/0x5a0 [ 543.907698] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 543.913119] wb_writeback+0x243/0xb80 [ 543.916905] ? writeback_inodes_wb.constprop.0+0x1a0/0x1a0 [ 543.922510] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 543.927934] wb_workfn+0x2bd/0xf50 [ 543.931446] ? process_one_work+0x6c4/0x14a0 [ 543.935833] ? inode_wait_for_writeback+0x30/0x30 [ 543.940656] ? lock_acquire+0x170/0x3f0 [ 543.944606] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 543.950031] process_one_work+0x793/0x14a0 [ 543.954254] ? work_busy+0x320/0x320 [ 543.957948] ? worker_thread+0x158/0xff0 [ 543.961992] ? _raw_spin_unlock_irq+0x24/0x80 [ 543.966463] worker_thread+0x5cc/0xff0 [ 543.970328] ? rescuer_thread+0xc80/0xc80 [ 543.974453] kthread+0x30d/0x420 [ 543.977798] ? kthread_create_on_node+0xd0/0xd0 [ 543.982440] ret_from_fork+0x24/0x30 [ 543.986570] XFS (loop1): page discard on page ffffea0001093a80, inode 0x29, offset 1626112. [ 543.995498] XFS (loop1): Internal error XFS_WANT_CORRUPTED_RETURN at line 431 of file fs/xfs/libxfs/xfs_alloc.c. Caller xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 544.010035] CPU: 1 PID: 2818 Comm: kworker/u4:3 Not tainted 4.14.303-syzkaller #0 [ 544.017645] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023 [ 544.026994] Workqueue: writeback wb_workfn (flush-7:1) [ 544.032245] Call Trace: [ 544.034817] dump_stack+0x1b2/0x281 [ 544.038429] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 544.043681] xfs_error_report+0x98/0xa0 [ 544.047626] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 544.052879] xfs_alloc_fixup_trees+0x425/0x4f0 [ 544.057441] ? xfs_alloc_update+0x90/0x90 [ 544.061562] ? xfs_btree_rec_offset.isra.0+0x3b/0xa0 [ 544.066638] ? xfs_alloc_compute_diff+0x23c/0x3d0 [ 544.071468] xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 544.076558] ? xfs_alloc_fix_freelist+0x685/0xeb0 [ 544.081380] ? xfs_alloc_ag_vextent_size+0x1ea0/0x1ea0 [ 544.086638] ? xfs_alloc_read_agf+0xb10/0xb10 [ 544.091115] xfs_alloc_ag_vextent+0x579/0x750 [ 544.095596] ? xfs_perag_get+0x116/0x410 [ 544.099636] ? xfs_alloc_vextent+0x470/0x2010 [ 544.104113] xfs_alloc_vextent+0x10b0/0x2010 [ 544.108500] xfs_bmap_btalloc+0x9e5/0x1b20 [ 544.112712] ? xfs_bmap_adjacent+0x1480/0x1480 [ 544.117276] ? ret_from_fork+0x24/0x30 [ 544.121150] ? __xfs_bmbt_get_all+0x16/0x100 [ 544.125532] xfs_bmap_alloc+0x107/0x160 [ 544.129497] xfs_bmapi_write+0xa49/0x1d00 [ 544.133622] ? xfs_bmapi_reserve_delalloc+0x7c0/0x7c0 [ 544.138788] ? trace_hardirqs_on+0x10/0x10 [ 544.142997] ? xfs_iext_get_ext+0xeb/0x200 [ 544.147206] ? xfs_iext_idx_to_irec+0x340/0x340 [ 544.151868] ? xfs_bmap_last_extent+0x1d0/0x1d0 [ 544.156525] xfs_iomap_write_allocate+0x42b/0xa30 [ 544.161354] ? xfs_file_iomap_begin+0x1ed0/0x1ed0 [ 544.166171] ? xfs_iunlock+0x248/0x3b0 [ 544.170052] ? rcu_read_lock_sched_held+0x16c/0x1d0 [ 544.175050] ? xfs_iunlock+0x21a/0x3b0 [ 544.178918] xfs_map_blocks+0x548/0x940 [ 544.182865] ? xfs_vm_set_page_dirty+0x610/0x610 [ 544.187592] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 544.193016] xfs_do_writepage+0x422/0x13d0 [ 544.197237] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 544.201546] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 544.206968] write_cache_pages+0x505/0xd20 [ 544.211176] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 544.215482] ? clear_page_dirty_for_io+0xb80/0xb80 [ 544.220395] ? trace_hardirqs_on+0x10/0x10 [ 544.224605] xfs_vm_writepages+0x258/0x340 [ 544.228815] ? xfs_vm_writepage+0xd0/0xd0 [ 544.232936] ? xfs_vm_writepage+0xd0/0xd0 [ 544.237067] do_writepages+0xc3/0x240 [ 544.240851] ? page_writeback_cpu_online+0x10/0x10 [ 544.245759] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 544.251189] __writeback_single_inode+0xda/0x1010 [ 544.256020] writeback_sb_inodes+0x48b/0xd30 [ 544.260416] ? wbc_detach_inode+0x780/0x780 [ 544.264712] ? queue_io+0x400/0x5a0 [ 544.268315] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 544.273758] wb_writeback+0x243/0xb80 [ 544.277544] ? writeback_inodes_wb.constprop.0+0x1a0/0x1a0 [ 544.283144] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 544.288567] wb_workfn+0x2bd/0xf50 [ 544.292080] ? process_one_work+0x6c4/0x14a0 [ 544.296468] ? inode_wait_for_writeback+0x30/0x30 [ 544.301310] ? lock_acquire+0x170/0x3f0 [ 544.305278] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 544.310700] process_one_work+0x793/0x14a0 [ 544.314922] ? work_busy+0x320/0x320 [ 544.318630] ? worker_thread+0x158/0xff0 [ 544.322667] ? _raw_spin_unlock_irq+0x24/0x80 [ 544.327139] worker_thread+0x5cc/0xff0 [ 544.331002] ? rescuer_thread+0xc80/0xc80 [ 544.335133] kthread+0x30d/0x420 [ 544.338489] ? kthread_create_on_node+0xd0/0xd0 [ 544.343140] ret_from_fork+0x24/0x30 [ 544.347998] XFS (loop1): page discard on page ffffea0001093ac0, inode 0x29, offset 1630208. [ 544.356911] XFS (loop1): Internal error XFS_WANT_CORRUPTED_RETURN at line 431 of file fs/xfs/libxfs/xfs_alloc.c. Caller xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 544.371464] CPU: 1 PID: 2818 Comm: kworker/u4:3 Not tainted 4.14.303-syzkaller #0 [ 544.379069] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023 [ 544.388415] Workqueue: writeback wb_workfn (flush-7:1) [ 544.393668] Call Trace: [ 544.396242] dump_stack+0x1b2/0x281 [ 544.399856] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 544.405106] xfs_error_report+0x98/0xa0 [ 544.409051] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 544.414311] xfs_alloc_fixup_trees+0x425/0x4f0 [ 544.418875] ? xfs_alloc_update+0x90/0x90 [ 544.422995] ? xfs_btree_rec_offset.isra.0+0x3b/0xa0 [ 544.428070] ? xfs_alloc_compute_diff+0x23c/0x3d0 [ 544.432885] xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 544.437965] ? xfs_alloc_fix_freelist+0x685/0xeb0 [ 544.442782] ? xfs_alloc_ag_vextent_size+0x1ea0/0x1ea0 [ 544.448032] ? xfs_alloc_read_agf+0xb10/0xb10 [ 544.452508] xfs_alloc_ag_vextent+0x579/0x750 [ 544.456980] ? xfs_perag_get+0x116/0x410 [ 544.461020] ? xfs_alloc_vextent+0x470/0x2010 [ 544.465487] xfs_alloc_vextent+0x10b0/0x2010 [ 544.469874] xfs_bmap_btalloc+0x9e5/0x1b20 [ 544.474113] ? xfs_bmap_adjacent+0x1480/0x1480 [ 544.478675] ? ret_from_fork+0x24/0x30 [ 544.482542] ? __xfs_bmbt_get_all+0x16/0x100 [ 544.486942] xfs_bmap_alloc+0x107/0x160 [ 544.490890] xfs_bmapi_write+0xa49/0x1d00 [ 544.495024] ? xfs_bmapi_reserve_delalloc+0x7c0/0x7c0 [ 544.500197] ? trace_hardirqs_on+0x10/0x10 [ 544.504411] ? xfs_iext_get_ext+0xeb/0x200 [ 544.508621] ? xfs_iext_idx_to_irec+0x340/0x340 [ 544.513270] ? xfs_bmap_last_extent+0x1d0/0x1d0 [ 544.517917] xfs_iomap_write_allocate+0x42b/0xa30 [ 544.522737] ? xfs_file_iomap_begin+0x1ed0/0x1ed0 [ 544.527553] ? xfs_iunlock+0x248/0x3b0 [ 544.531424] ? rcu_read_lock_sched_held+0x16c/0x1d0 [ 544.536421] ? xfs_iunlock+0x21a/0x3b0 [ 544.540287] xfs_map_blocks+0x548/0x940 [ 544.544239] ? xfs_vm_set_page_dirty+0x610/0x610 [ 544.548967] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 544.554401] xfs_do_writepage+0x422/0x13d0 [ 544.558622] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 544.562917] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 544.568341] write_cache_pages+0x505/0xd20 [ 544.572555] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 544.576859] ? clear_page_dirty_for_io+0xb80/0xb80 [ 544.581774] ? trace_hardirqs_on+0x10/0x10 [ 544.585984] xfs_vm_writepages+0x258/0x340 [ 544.590193] ? xfs_vm_writepage+0xd0/0xd0 [ 544.594328] ? xfs_vm_writepage+0xd0/0xd0 [ 544.598455] do_writepages+0xc3/0x240 [ 544.602235] ? page_writeback_cpu_online+0x10/0x10 [ 544.607140] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 544.612565] __writeback_single_inode+0xda/0x1010 [ 544.617393] writeback_sb_inodes+0x48b/0xd30 [ 544.621789] ? wbc_detach_inode+0x780/0x780 [ 544.626089] ? queue_io+0x400/0x5a0 [ 544.629690] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 544.635121] wb_writeback+0x243/0xb80 [ 544.638907] ? writeback_inodes_wb.constprop.0+0x1a0/0x1a0 [ 544.644512] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 544.649934] wb_workfn+0x2bd/0xf50 [ 544.653471] ? process_one_work+0x6c4/0x14a0 [ 544.657855] ? inode_wait_for_writeback+0x30/0x30 [ 544.662673] ? lock_acquire+0x170/0x3f0 [ 544.666621] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 544.672064] process_one_work+0x793/0x14a0 [ 544.676285] ? work_busy+0x320/0x320 [ 544.679977] ? worker_thread+0x158/0xff0 [ 544.684012] ? _raw_spin_unlock_irq+0x24/0x80 [ 544.688483] worker_thread+0x5cc/0xff0 [ 544.692348] ? rescuer_thread+0xc80/0xc80 [ 544.696473] kthread+0x30d/0x420 [ 544.699834] ? kthread_create_on_node+0xd0/0xd0 [ 544.704478] ret_from_fork+0x24/0x30 [ 544.708733] XFS (loop1): page discard on page ffffea0001093b00, inode 0x29, offset 1634304. [ 544.717628] XFS (loop1): Internal error XFS_WANT_CORRUPTED_RETURN at line 431 of file fs/xfs/libxfs/xfs_alloc.c. Caller xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 544.732176] CPU: 1 PID: 2818 Comm: kworker/u4:3 Not tainted 4.14.303-syzkaller #0 [ 544.739785] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023 [ 544.749161] Workqueue: writeback wb_workfn (flush-7:1) [ 544.754417] Call Trace: [ 544.756991] dump_stack+0x1b2/0x281 [ 544.760599] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 544.765848] xfs_error_report+0x98/0xa0 [ 544.769793] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 544.775049] xfs_alloc_fixup_trees+0x425/0x4f0 [ 544.779616] ? xfs_alloc_update+0x90/0x90 [ 544.783743] ? xfs_btree_rec_offset.isra.0+0x3b/0xa0 [ 544.788825] ? xfs_alloc_compute_diff+0x23c/0x3d0 [ 544.793642] xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 544.798721] ? xfs_alloc_fix_freelist+0x685/0xeb0 [ 544.803535] ? xfs_alloc_ag_vextent_size+0x1ea0/0x1ea0 [ 544.808784] ? xfs_alloc_read_agf+0xb10/0xb10 [ 544.813261] xfs_alloc_ag_vextent+0x579/0x750 [ 544.817729] ? xfs_perag_get+0x116/0x410 [ 544.821760] ? xfs_alloc_vextent+0x470/0x2010 [ 544.826229] xfs_alloc_vextent+0x10b0/0x2010 [ 544.830614] xfs_bmap_btalloc+0x9e5/0x1b20 [ 544.834837] ? xfs_bmap_adjacent+0x1480/0x1480 [ 544.839401] ? ret_from_fork+0x24/0x30 [ 544.843268] ? __xfs_bmbt_get_all+0x16/0x100 [ 544.847650] xfs_bmap_alloc+0x107/0x160 [ 544.851599] xfs_bmapi_write+0xa49/0x1d00 [ 544.855733] ? xfs_bmapi_reserve_delalloc+0x7c0/0x7c0 [ 544.860902] ? trace_hardirqs_on+0x10/0x10 [ 544.865111] ? xfs_iext_get_ext+0xeb/0x200 [ 544.869317] ? xfs_iext_idx_to_irec+0x340/0x340 [ 544.873987] ? xfs_bmap_last_extent+0x1d0/0x1d0 [ 544.878647] xfs_iomap_write_allocate+0x42b/0xa30 [ 544.883479] ? xfs_file_iomap_begin+0x1ed0/0x1ed0 [ 544.888301] ? xfs_iunlock+0x248/0x3b0 [ 544.892175] ? rcu_read_lock_sched_held+0x16c/0x1d0 [ 544.897173] ? xfs_iunlock+0x21a/0x3b0 [ 544.901047] xfs_map_blocks+0x548/0x940 [ 544.904996] ? xfs_vm_set_page_dirty+0x610/0x610 [ 544.909726] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 544.915157] xfs_do_writepage+0x422/0x13d0 [ 544.919374] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 544.923726] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 544.929162] write_cache_pages+0x505/0xd20 [ 544.933388] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 544.937687] ? clear_page_dirty_for_io+0xb80/0xb80 [ 544.942594] ? trace_hardirqs_on+0x10/0x10 [ 544.946804] xfs_vm_writepages+0x258/0x340 [ 544.951011] ? xfs_vm_writepage+0xd0/0xd0 [ 544.955147] ? xfs_vm_writepage+0xd0/0xd0 [ 544.959279] do_writepages+0xc3/0x240 [ 544.963053] ? page_writeback_cpu_online+0x10/0x10 [ 544.967959] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 544.973384] __writeback_single_inode+0xda/0x1010 [ 544.978269] writeback_sb_inodes+0x48b/0xd30 [ 544.982665] ? wbc_detach_inode+0x780/0x780 [ 544.986964] ? queue_io+0x400/0x5a0 [ 544.990566] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 544.996009] wb_writeback+0x243/0xb80 [ 544.999802] ? writeback_inodes_wb.constprop.0+0x1a0/0x1a0 [ 545.005419] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 545.010846] wb_workfn+0x2bd/0xf50 [ 545.014374] ? process_one_work+0x6c4/0x14a0 [ 545.018763] ? inode_wait_for_writeback+0x30/0x30 [ 545.023598] ? lock_acquire+0x170/0x3f0 [ 545.027548] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 545.032974] process_one_work+0x793/0x14a0 [ 545.037197] ? work_busy+0x320/0x320 [ 545.040890] ? worker_thread+0x158/0xff0 [ 545.044928] ? _raw_spin_unlock_irq+0x24/0x80 [ 545.049407] worker_thread+0x5cc/0xff0 [ 545.053271] ? rescuer_thread+0xc80/0xc80 [ 545.057399] kthread+0x30d/0x420 [ 545.060762] ? kthread_create_on_node+0xd0/0xd0 [ 545.065404] ret_from_fork+0x24/0x30 [ 545.069516] XFS (loop1): page discard on page ffffea0001093b40, inode 0x29, offset 1638400. [ 545.078426] XFS (loop1): Internal error XFS_WANT_CORRUPTED_RETURN at line 431 of file fs/xfs/libxfs/xfs_alloc.c. Caller xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 545.092967] CPU: 1 PID: 2818 Comm: kworker/u4:3 Not tainted 4.14.303-syzkaller #0 [ 545.100571] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023 [ 545.109912] Workqueue: writeback wb_workfn (flush-7:1) [ 545.115165] Call Trace: [ 545.117729] dump_stack+0x1b2/0x281 [ 545.121331] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 545.126587] xfs_error_report+0x98/0xa0 [ 545.130539] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 545.135794] xfs_alloc_fixup_trees+0x425/0x4f0 [ 545.140349] ? xfs_alloc_update+0x90/0x90 [ 545.144473] ? xfs_btree_rec_offset.isra.0+0x3b/0xa0 [ 545.149555] ? xfs_alloc_compute_diff+0x23c/0x3d0 [ 545.154372] xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 545.159554] ? xfs_alloc_fix_freelist+0x685/0xeb0 [ 545.164374] ? xfs_alloc_ag_vextent_size+0x1ea0/0x1ea0 [ 545.169629] ? xfs_alloc_read_agf+0xb10/0xb10 [ 545.174106] xfs_alloc_ag_vextent+0x579/0x750 [ 545.178587] ? xfs_perag_get+0x116/0x410 [ 545.182619] ? xfs_alloc_vextent+0x470/0x2010 [ 545.187095] xfs_alloc_vextent+0x10b0/0x2010 [ 545.191489] xfs_bmap_btalloc+0x9e5/0x1b20 [ 545.195701] ? xfs_bmap_adjacent+0x1480/0x1480 [ 545.200260] ? ret_from_fork+0x24/0x30 [ 545.204144] ? __xfs_bmbt_get_all+0x16/0x100 [ 545.208535] xfs_bmap_alloc+0x107/0x160 [ 545.212481] xfs_bmapi_write+0xa49/0x1d00 [ 545.216621] ? xfs_bmapi_reserve_delalloc+0x7c0/0x7c0 [ 545.221785] ? trace_hardirqs_on+0x10/0x10 [ 545.226004] ? xfs_iext_get_ext+0xeb/0x200 [ 545.230217] ? xfs_iext_idx_to_irec+0x340/0x340 [ 545.234863] ? xfs_bmap_last_extent+0x1d0/0x1d0 [ 545.239526] xfs_iomap_write_allocate+0x42b/0xa30 [ 545.244359] ? xfs_file_iomap_begin+0x1ed0/0x1ed0 [ 545.249184] ? xfs_iunlock+0x248/0x3b0 [ 545.253067] ? rcu_read_lock_sched_held+0x16c/0x1d0 [ 545.258054] ? xfs_iunlock+0x21a/0x3b0 [ 545.261919] xfs_map_blocks+0x548/0x940 [ 545.265874] ? xfs_vm_set_page_dirty+0x610/0x610 [ 545.270610] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 545.276035] xfs_do_writepage+0x422/0x13d0 [ 545.280248] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 545.284551] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 545.289980] write_cache_pages+0x505/0xd20 [ 545.294212] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 545.298510] ? clear_page_dirty_for_io+0xb80/0xb80 [ 545.303416] ? trace_hardirqs_on+0x10/0x10 [ 545.307625] xfs_vm_writepages+0x258/0x340 [ 545.311832] ? xfs_vm_writepage+0xd0/0xd0 [ 545.315955] ? xfs_vm_writepage+0xd0/0xd0 [ 545.320077] do_writepages+0xc3/0x240 [ 545.323859] ? page_writeback_cpu_online+0x10/0x10 [ 545.328788] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 545.334215] __writeback_single_inode+0xda/0x1010 [ 545.339042] writeback_sb_inodes+0x48b/0xd30 [ 545.343442] ? wbc_detach_inode+0x780/0x780 [ 545.347741] ? queue_io+0x400/0x5a0 [ 545.351340] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 545.356762] wb_writeback+0x243/0xb80 [ 545.360537] ? writeback_inodes_wb.constprop.0+0x1a0/0x1a0 [ 545.366151] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 545.371581] wb_workfn+0x2bd/0xf50 [ 545.375106] ? process_one_work+0x6c4/0x14a0 [ 545.379502] ? inode_wait_for_writeback+0x30/0x30 [ 545.384328] ? lock_acquire+0x170/0x3f0 [ 545.388283] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 545.393718] process_one_work+0x793/0x14a0 [ 545.397935] ? work_busy+0x320/0x320 [ 545.401621] ? worker_thread+0x158/0xff0 [ 545.405662] ? _raw_spin_unlock_irq+0x24/0x80 [ 545.410137] worker_thread+0x5cc/0xff0 [ 545.414010] ? rescuer_thread+0xc80/0xc80 [ 545.418149] kthread+0x30d/0x420 [ 545.421486] ? kthread_create_on_node+0xd0/0xd0 [ 545.426139] ret_from_fork+0x24/0x30 [ 545.430356] XFS (loop1): page discard on page ffffea0001093b80, inode 0x29, offset 1642496. [ 545.439256] XFS (loop1): Internal error XFS_WANT_CORRUPTED_RETURN at line 431 of file fs/xfs/libxfs/xfs_alloc.c. Caller xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 545.453787] CPU: 1 PID: 2818 Comm: kworker/u4:3 Not tainted 4.14.303-syzkaller #0 [ 545.461396] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023 [ 545.470764] Workqueue: writeback wb_workfn (flush-7:1) [ 545.476029] Call Trace: [ 545.478598] dump_stack+0x1b2/0x281 [ 545.482199] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 545.487449] xfs_error_report+0x98/0xa0 [ 545.491399] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 545.496671] xfs_alloc_fixup_trees+0x425/0x4f0 [ 545.501228] ? xfs_alloc_update+0x90/0x90 [ 545.505353] ? xfs_btree_rec_offset.isra.0+0x3b/0xa0 [ 545.510438] ? xfs_alloc_compute_diff+0x23c/0x3d0 [ 545.515281] xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 545.520360] ? xfs_alloc_fix_freelist+0x685/0xeb0 [ 545.525180] ? xfs_alloc_ag_vextent_size+0x1ea0/0x1ea0 [ 545.530436] ? xfs_alloc_read_agf+0xb10/0xb10 [ 545.534919] xfs_alloc_ag_vextent+0x579/0x750 [ 545.539387] ? xfs_perag_get+0x116/0x410 [ 545.543418] ? xfs_alloc_vextent+0x470/0x2010 [ 545.547886] xfs_alloc_vextent+0x10b0/0x2010 [ 545.552273] xfs_bmap_btalloc+0x9e5/0x1b20 [ 545.556483] ? xfs_bmap_adjacent+0x1480/0x1480 [ 545.561037] ? ret_from_fork+0x24/0x30 [ 545.564917] ? __xfs_bmbt_get_all+0x16/0x100 [ 545.569308] xfs_bmap_alloc+0x107/0x160 [ 545.573254] xfs_bmapi_write+0xa49/0x1d00 [ 545.577397] ? xfs_bmapi_reserve_delalloc+0x7c0/0x7c0 [ 545.582559] ? trace_hardirqs_on+0x10/0x10 [ 545.586784] ? xfs_iext_get_ext+0xeb/0x200 [ 545.590999] ? xfs_iext_idx_to_irec+0x340/0x340 [ 545.595659] ? xfs_bmap_last_extent+0x1d0/0x1d0 [ 545.600306] xfs_iomap_write_allocate+0x42b/0xa30 [ 545.605140] ? xfs_file_iomap_begin+0x1ed0/0x1ed0 [ 545.609961] ? xfs_iunlock+0x248/0x3b0 [ 545.613838] ? rcu_read_lock_sched_held+0x16c/0x1d0 [ 545.618834] ? xfs_iunlock+0x21a/0x3b0 [ 545.622694] xfs_map_blocks+0x548/0x940 [ 545.626648] ? xfs_vm_set_page_dirty+0x610/0x610 [ 545.631382] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 545.636803] xfs_do_writepage+0x422/0x13d0 [ 545.641014] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 545.645329] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 545.650767] write_cache_pages+0x505/0xd20 [ 545.654980] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 545.659291] ? clear_page_dirty_for_io+0xb80/0xb80 [ 545.664208] ? trace_hardirqs_on+0x10/0x10 [ 545.668429] xfs_vm_writepages+0x258/0x340 [ 545.672638] ? xfs_vm_writepage+0xd0/0xd0 [ 545.676779] ? xfs_vm_writepage+0xd0/0xd0 [ 545.680901] do_writepages+0xc3/0x240 [ 545.684682] ? page_writeback_cpu_online+0x10/0x10 [ 545.689595] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 545.695020] __writeback_single_inode+0xda/0x1010 [ 545.699840] writeback_sb_inodes+0x48b/0xd30 [ 545.704241] ? wbc_detach_inode+0x780/0x780 [ 545.708546] ? queue_io+0x400/0x5a0 [ 545.712151] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 545.717578] wb_writeback+0x243/0xb80 [ 545.721357] ? writeback_inodes_wb.constprop.0+0x1a0/0x1a0 [ 545.726964] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 545.732404] wb_workfn+0x2bd/0xf50 [ 545.735923] ? process_one_work+0x6c4/0x14a0 [ 545.740308] ? inode_wait_for_writeback+0x30/0x30 [ 545.745132] ? lock_acquire+0x170/0x3f0 [ 545.749087] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 545.754611] process_one_work+0x793/0x14a0 [ 545.758837] ? work_busy+0x320/0x320 [ 545.762523] ? worker_thread+0x158/0xff0 [ 545.766565] ? _raw_spin_unlock_irq+0x24/0x80 [ 545.771049] worker_thread+0x5cc/0xff0 [ 545.774933] ? rescuer_thread+0xc80/0xc80 [ 545.779074] kthread+0x30d/0x420 [ 545.782442] ? kthread_create_on_node+0xd0/0xd0 [ 545.787098] ret_from_fork+0x24/0x30 [ 545.791277] XFS (loop1): page discard on page ffffea0001093bc0, inode 0x29, offset 1646592. [ 545.800177] XFS (loop1): Internal error XFS_WANT_CORRUPTED_RETURN at line 431 of file fs/xfs/libxfs/xfs_alloc.c. Caller xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 545.814717] CPU: 1 PID: 2818 Comm: kworker/u4:3 Not tainted 4.14.303-syzkaller #0 [ 545.822317] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023 [ 545.831654] Workqueue: writeback wb_workfn (flush-7:1) [ 545.836907] Call Trace: [ 545.839471] dump_stack+0x1b2/0x281 [ 545.843079] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 545.848333] xfs_error_report+0x98/0xa0 [ 545.852282] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 545.857535] xfs_alloc_fixup_trees+0x425/0x4f0 [ 545.862093] ? xfs_alloc_update+0x90/0x90 [ 545.866222] ? xfs_btree_rec_offset.isra.0+0x3b/0xa0 [ 545.871307] ? xfs_alloc_compute_diff+0x23c/0x3d0 [ 545.876120] xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 545.881200] ? xfs_alloc_fix_freelist+0x685/0xeb0 [ 545.886022] ? xfs_alloc_ag_vextent_size+0x1ea0/0x1ea0 [ 545.891277] ? xfs_alloc_read_agf+0xb10/0xb10 [ 545.895753] xfs_alloc_ag_vextent+0x579/0x750 [ 545.900223] ? xfs_perag_get+0x116/0x410 [ 545.904266] ? xfs_alloc_vextent+0x470/0x2010 [ 545.908745] xfs_alloc_vextent+0x10b0/0x2010 [ 545.913164] xfs_bmap_btalloc+0x9e5/0x1b20 [ 545.917375] ? xfs_bmap_adjacent+0x1480/0x1480 [ 545.921928] ? ret_from_fork+0x24/0x30 [ 545.925810] ? __xfs_bmbt_get_all+0x16/0x100 [ 545.930203] xfs_bmap_alloc+0x107/0x160 [ 545.934158] xfs_bmapi_write+0xa49/0x1d00 [ 545.938288] ? xfs_bmapi_reserve_delalloc+0x7c0/0x7c0 [ 545.943451] ? trace_hardirqs_on+0x10/0x10 [ 545.947678] ? xfs_iext_get_ext+0xeb/0x200 [ 545.951887] ? xfs_iext_idx_to_irec+0x340/0x340 [ 545.956535] ? xfs_bmap_last_extent+0x1d0/0x1d0 [ 545.961179] xfs_iomap_write_allocate+0x42b/0xa30 [ 545.966013] ? xfs_file_iomap_begin+0x1ed0/0x1ed0 [ 545.970923] ? xfs_iunlock+0x248/0x3b0 [ 545.974787] ? rcu_read_lock_sched_held+0x16c/0x1d0 [ 545.979777] ? xfs_iunlock+0x21a/0x3b0 [ 545.983648] xfs_map_blocks+0x548/0x940 [ 545.987603] ? xfs_vm_set_page_dirty+0x610/0x610 [ 545.992333] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 545.997755] xfs_do_writepage+0x422/0x13d0 [ 546.001979] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 546.006286] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 546.011715] write_cache_pages+0x505/0xd20 [ 546.015929] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 546.020226] ? clear_page_dirty_for_io+0xb80/0xb80 [ 546.025147] ? trace_hardirqs_on+0x10/0x10 [ 546.029368] xfs_vm_writepages+0x258/0x340 [ 546.033573] ? xfs_vm_writepage+0xd0/0xd0 [ 546.037698] ? xfs_vm_writepage+0xd0/0xd0 [ 546.041830] do_writepages+0xc3/0x240 [ 546.045612] ? page_writeback_cpu_online+0x10/0x10 [ 546.050524] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 546.055948] __writeback_single_inode+0xda/0x1010 [ 546.060764] writeback_sb_inodes+0x48b/0xd30 [ 546.065157] ? wbc_detach_inode+0x780/0x780 [ 546.069461] ? queue_io+0x400/0x5a0 [ 546.073061] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 546.078485] wb_writeback+0x243/0xb80 [ 546.082262] ? writeback_inodes_wb.constprop.0+0x1a0/0x1a0 [ 546.087863] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 546.093297] wb_workfn+0x2bd/0xf50 [ 546.096830] ? process_one_work+0x6c4/0x14a0 [ 546.101213] ? inode_wait_for_writeback+0x30/0x30 [ 546.106040] ? lock_acquire+0x170/0x3f0 [ 546.109995] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 546.115428] process_one_work+0x793/0x14a0 [ 546.119635] ? work_busy+0x320/0x320 [ 546.123320] ? worker_thread+0x158/0xff0 [ 546.127361] ? _raw_spin_unlock_irq+0x24/0x80 [ 546.131838] worker_thread+0x5cc/0xff0 [ 546.135700] ? rescuer_thread+0xc80/0xc80 [ 546.139821] kthread+0x30d/0x420 [ 546.143162] ? kthread_create_on_node+0xd0/0xd0 [ 546.147804] ret_from_fork+0x24/0x30 [ 546.151892] XFS (loop1): page discard on page ffffea0001093c00, inode 0x29, offset 1650688. [ 546.160783] XFS (loop1): Internal error XFS_WANT_CORRUPTED_RETURN at line 431 of file fs/xfs/libxfs/xfs_alloc.c. Caller xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 546.175319] CPU: 1 PID: 2818 Comm: kworker/u4:3 Not tainted 4.14.303-syzkaller #0 [ 546.182925] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023 [ 546.192264] Workqueue: writeback wb_workfn (flush-7:1) [ 546.197515] Call Trace: [ 546.200081] dump_stack+0x1b2/0x281 [ 546.203690] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 546.208947] xfs_error_report+0x98/0xa0 [ 546.212893] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 546.218163] xfs_alloc_fixup_trees+0x425/0x4f0 [ 546.222718] ? xfs_alloc_update+0x90/0x90 [ 546.226844] ? xfs_btree_rec_offset.isra.0+0x3b/0xa0 [ 546.231927] ? xfs_alloc_compute_diff+0x23c/0x3d0 [ 546.236745] xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 546.241822] ? xfs_alloc_fix_freelist+0x685/0xeb0 [ 546.246641] ? xfs_alloc_ag_vextent_size+0x1ea0/0x1ea0 [ 546.251898] ? xfs_alloc_read_agf+0xb10/0xb10 [ 546.256376] xfs_alloc_ag_vextent+0x579/0x750 [ 546.260846] ? xfs_perag_get+0x116/0x410 [ 546.264883] ? xfs_alloc_vextent+0x470/0x2010 [ 546.269361] xfs_alloc_vextent+0x10b0/0x2010 [ 546.273747] xfs_bmap_btalloc+0x9e5/0x1b20 [ 546.277960] ? xfs_bmap_adjacent+0x1480/0x1480 [ 546.282516] ? ret_from_fork+0x24/0x30 [ 546.286396] ? __xfs_bmbt_get_all+0x16/0x100 [ 546.290783] xfs_bmap_alloc+0x107/0x160 [ 546.294731] xfs_bmapi_write+0xa49/0x1d00 [ 546.298856] ? xfs_bmapi_reserve_delalloc+0x7c0/0x7c0 [ 546.304022] ? trace_hardirqs_on+0x10/0x10 [ 546.308252] ? xfs_iext_get_ext+0xeb/0x200 [ 546.312456] ? xfs_iext_idx_to_irec+0x340/0x340 [ 546.317103] ? xfs_bmap_last_extent+0x1d0/0x1d0 [ 546.321765] xfs_iomap_write_allocate+0x42b/0xa30 [ 546.326596] ? xfs_file_iomap_begin+0x1ed0/0x1ed0 [ 546.331417] ? xfs_iunlock+0x248/0x3b0 [ 546.335293] ? rcu_read_lock_sched_held+0x16c/0x1d0 [ 546.340290] ? xfs_iunlock+0x21a/0x3b0 [ 546.344157] xfs_map_blocks+0x548/0x940 [ 546.348117] ? xfs_vm_set_page_dirty+0x610/0x610 [ 546.352845] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 546.358266] xfs_do_writepage+0x422/0x13d0 [ 546.362475] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 546.366781] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 546.372215] write_cache_pages+0x505/0xd20 [ 546.376429] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 546.380723] ? clear_page_dirty_for_io+0xb80/0xb80 [ 546.385644] ? trace_hardirqs_on+0x10/0x10 [ 546.389871] xfs_vm_writepages+0x258/0x340 [ 546.394101] ? xfs_vm_writepage+0xd0/0xd0 [ 546.398225] ? xfs_vm_writepage+0xd0/0xd0 [ 546.402344] do_writepages+0xc3/0x240 [ 546.406128] ? page_writeback_cpu_online+0x10/0x10 [ 546.411042] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 546.416469] __writeback_single_inode+0xda/0x1010 [ 546.421287] writeback_sb_inodes+0x48b/0xd30 [ 546.425697] ? wbc_detach_inode+0x780/0x780 [ 546.430002] ? queue_io+0x400/0x5a0 [ 546.433602] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 546.439024] wb_writeback+0x243/0xb80 [ 546.442802] ? writeback_inodes_wb.constprop.0+0x1a0/0x1a0 [ 546.448414] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 546.453845] wb_workfn+0x2bd/0xf50 [ 546.457368] ? process_one_work+0x6c4/0x14a0 [ 546.461760] ? inode_wait_for_writeback+0x30/0x30 [ 546.466584] ? lock_acquire+0x170/0x3f0 [ 546.470538] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 546.475973] process_one_work+0x793/0x14a0 [ 546.480185] ? work_busy+0x320/0x320 [ 546.483881] ? worker_thread+0x158/0xff0 [ 546.487925] ? _raw_spin_unlock_irq+0x24/0x80 [ 546.492394] worker_thread+0x5cc/0xff0 [ 546.496258] ? rescuer_thread+0xc80/0xc80 [ 546.500392] kthread+0x30d/0x420 [ 546.503735] ? kthread_create_on_node+0xd0/0xd0 [ 546.508384] ret_from_fork+0x24/0x30 [ 546.512747] XFS (loop1): page discard on page ffffea0001093c40, inode 0x29, offset 1654784. [ 546.521639] XFS (loop1): Internal error XFS_WANT_CORRUPTED_RETURN at line 431 of file fs/xfs/libxfs/xfs_alloc.c. Caller xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 546.536177] CPU: 1 PID: 2818 Comm: kworker/u4:3 Not tainted 4.14.303-syzkaller #0 [ 546.543788] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023 [ 546.553127] Workqueue: writeback wb_workfn (flush-7:1) [ 546.558395] Call Trace: [ 546.560957] dump_stack+0x1b2/0x281 [ 546.564567] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 546.569837] xfs_error_report+0x98/0xa0 [ 546.573784] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 546.579037] xfs_alloc_fixup_trees+0x425/0x4f0 [ 546.583594] ? xfs_alloc_update+0x90/0x90 [ 546.587726] ? xfs_btree_rec_offset.isra.0+0x3b/0xa0 [ 546.592809] ? xfs_alloc_compute_diff+0x23c/0x3d0 [ 546.597624] xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 546.602721] ? xfs_alloc_fix_freelist+0x685/0xeb0 [ 546.607541] ? xfs_alloc_ag_vextent_size+0x1ea0/0x1ea0 [ 546.612790] ? xfs_alloc_read_agf+0xb10/0xb10 [ 546.617265] xfs_alloc_ag_vextent+0x579/0x750 [ 546.621730] ? xfs_perag_get+0x116/0x410 [ 546.625766] ? xfs_alloc_vextent+0x470/0x2010 [ 546.630241] xfs_alloc_vextent+0x10b0/0x2010 [ 546.634625] xfs_bmap_btalloc+0x9e5/0x1b20 [ 546.638837] ? xfs_bmap_adjacent+0x1480/0x1480 [ 546.643392] ? ret_from_fork+0x24/0x30 [ 546.647259] ? __xfs_bmbt_get_all+0x16/0x100 [ 546.651641] xfs_bmap_alloc+0x107/0x160 [ 546.655599] xfs_bmapi_write+0xa49/0x1d00 [ 546.659730] ? xfs_bmapi_reserve_delalloc+0x7c0/0x7c0 [ 546.664899] ? trace_hardirqs_on+0x10/0x10 [ 546.669122] ? xfs_iext_get_ext+0xeb/0x200 [ 546.673333] ? xfs_iext_idx_to_irec+0x340/0x340 [ 546.677983] ? xfs_bmap_last_extent+0x1d0/0x1d0 [ 546.682641] xfs_iomap_write_allocate+0x42b/0xa30 [ 546.687467] ? xfs_file_iomap_begin+0x1ed0/0x1ed0 [ 546.692285] ? xfs_iunlock+0x248/0x3b0 [ 546.696155] ? rcu_read_lock_sched_held+0x16c/0x1d0 [ 546.701145] ? xfs_iunlock+0x21a/0x3b0 [ 546.705019] xfs_map_blocks+0x548/0x940 [ 546.708979] ? xfs_vm_set_page_dirty+0x610/0x610 [ 546.713720] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 546.719166] xfs_do_writepage+0x422/0x13d0 [ 546.723383] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 546.727689] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 546.733119] write_cache_pages+0x505/0xd20 [ 546.737339] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 546.741643] ? clear_page_dirty_for_io+0xb80/0xb80 [ 546.746569] ? trace_hardirqs_on+0x10/0x10 [ 546.750785] xfs_vm_writepages+0x258/0x340 [ 546.754995] ? xfs_vm_writepage+0xd0/0xd0 [ 546.759122] ? xfs_vm_writepage+0xd0/0xd0 [ 546.763243] do_writepages+0xc3/0x240 [ 546.767030] ? page_writeback_cpu_online+0x10/0x10 [ 546.771944] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 546.777369] __writeback_single_inode+0xda/0x1010 [ 546.782184] writeback_sb_inodes+0x48b/0xd30 [ 546.786577] ? wbc_detach_inode+0x780/0x780 [ 546.790883] ? queue_io+0x400/0x5a0 [ 546.794485] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 546.799907] wb_writeback+0x243/0xb80 [ 546.803693] ? writeback_inodes_wb.constprop.0+0x1a0/0x1a0 [ 546.809299] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 546.814736] wb_workfn+0x2bd/0xf50 [ 546.818274] ? process_one_work+0x6c4/0x14a0 [ 546.822683] ? inode_wait_for_writeback+0x30/0x30 [ 546.827500] ? lock_acquire+0x170/0x3f0 [ 546.831465] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 546.836891] process_one_work+0x793/0x14a0 [ 546.841103] ? work_busy+0x320/0x320 [ 546.844791] ? worker_thread+0x158/0xff0 [ 546.848832] ? _raw_spin_unlock_irq+0x24/0x80 [ 546.853302] worker_thread+0x5cc/0xff0 [ 546.857168] ? rescuer_thread+0xc80/0xc80 [ 546.861300] kthread+0x30d/0x420 [ 546.864652] ? kthread_create_on_node+0xd0/0xd0 [ 546.869307] ret_from_fork+0x24/0x30 [ 546.873594] XFS (loop1): page discard on page ffffea0001093c80, inode 0x29, offset 1658880. [ 546.882518] XFS (loop1): Internal error XFS_WANT_CORRUPTED_RETURN at line 431 of file fs/xfs/libxfs/xfs_alloc.c. Caller xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 546.897229] CPU: 1 PID: 2818 Comm: kworker/u4:3 Not tainted 4.14.303-syzkaller #0 [ 546.904831] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023 [ 546.914175] Workqueue: writeback wb_workfn (flush-7:1) [ 546.919428] Call Trace: [ 546.921995] dump_stack+0x1b2/0x281 [ 546.925604] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 546.930865] xfs_error_report+0x98/0xa0 [ 546.934812] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 546.940067] xfs_alloc_fixup_trees+0x425/0x4f0 [ 546.944632] ? xfs_alloc_update+0x90/0x90 [ 546.948764] ? xfs_btree_rec_offset.isra.0+0x3b/0xa0 [ 546.953842] ? xfs_alloc_compute_diff+0x23c/0x3d0 [ 546.958657] xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 546.963746] ? xfs_alloc_fix_freelist+0x685/0xeb0 [ 546.968568] ? xfs_alloc_ag_vextent_size+0x1ea0/0x1ea0 [ 546.973827] ? xfs_alloc_read_agf+0xb10/0xb10 [ 546.978310] xfs_alloc_ag_vextent+0x579/0x750 [ 546.982778] ? xfs_perag_get+0x116/0x410 [ 546.986813] ? xfs_alloc_vextent+0x470/0x2010 [ 546.991286] xfs_alloc_vextent+0x10b0/0x2010 [ 546.995673] xfs_bmap_btalloc+0x9e5/0x1b20 [ 546.999886] ? xfs_bmap_adjacent+0x1480/0x1480 [ 547.004444] ? ret_from_fork+0x24/0x30 [ 547.008316] ? __xfs_bmbt_get_all+0x16/0x100 [ 547.012697] xfs_bmap_alloc+0x107/0x160 [ 547.016645] xfs_bmapi_write+0xa49/0x1d00 [ 547.020772] ? xfs_bmapi_reserve_delalloc+0x7c0/0x7c0 [ 547.025940] ? trace_hardirqs_on+0x10/0x10 [ 547.030159] ? xfs_iext_get_ext+0xeb/0x200 [ 547.034365] ? xfs_iext_idx_to_irec+0x340/0x340 [ 547.039010] ? xfs_bmap_last_extent+0x1d0/0x1d0 [ 547.043662] xfs_iomap_write_allocate+0x42b/0xa30 [ 547.048507] ? xfs_file_iomap_begin+0x1ed0/0x1ed0 [ 547.053320] ? xfs_iunlock+0x248/0x3b0 [ 547.057189] ? rcu_read_lock_sched_held+0x16c/0x1d0 [ 547.062178] ? xfs_iunlock+0x21a/0x3b0 [ 547.066048] xfs_map_blocks+0x548/0x940 [ 547.070027] ? xfs_vm_set_page_dirty+0x610/0x610 [ 547.074760] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 547.080201] xfs_do_writepage+0x422/0x13d0 [ 547.084421] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 547.088727] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 547.094151] write_cache_pages+0x505/0xd20 [ 547.098362] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 547.102662] ? clear_page_dirty_for_io+0xb80/0xb80 [ 547.107583] ? trace_hardirqs_on+0x10/0x10 [ 547.111803] xfs_vm_writepages+0x258/0x340 [ 547.116028] ? xfs_vm_writepage+0xd0/0xd0 [ 547.120154] ? xfs_vm_writepage+0xd0/0xd0 [ 547.124279] do_writepages+0xc3/0x240 [ 547.128061] ? page_writeback_cpu_online+0x10/0x10 [ 547.132965] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 547.138400] __writeback_single_inode+0xda/0x1010 [ 547.143246] writeback_sb_inodes+0x48b/0xd30 [ 547.147655] ? wbc_detach_inode+0x780/0x780 [ 547.151953] ? queue_io+0x400/0x5a0 [ 547.155570] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 547.160994] wb_writeback+0x243/0xb80 [ 547.164782] ? writeback_inodes_wb.constprop.0+0x1a0/0x1a0 [ 547.170389] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 547.175842] wb_workfn+0x2bd/0xf50 [ 547.179367] ? process_one_work+0x6c4/0x14a0 [ 547.183757] ? inode_wait_for_writeback+0x30/0x30 [ 547.188584] ? lock_acquire+0x170/0x3f0 [ 547.192536] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 547.197977] process_one_work+0x793/0x14a0 [ 547.202191] ? work_busy+0x320/0x320 [ 547.205887] ? worker_thread+0x158/0xff0 [ 547.209930] ? _raw_spin_unlock_irq+0x24/0x80 [ 547.214402] worker_thread+0x5cc/0xff0 [ 547.218269] ? rescuer_thread+0xc80/0xc80 [ 547.222390] kthread+0x30d/0x420 [ 547.225739] ? kthread_create_on_node+0xd0/0xd0 [ 547.230390] ret_from_fork+0x24/0x30 [ 547.234733] XFS (loop1): page discard on page ffffea0001093cc0, inode 0x29, offset 1662976. [ 547.243575] XFS (loop1): Internal error XFS_WANT_CORRUPTED_RETURN at line 431 of file fs/xfs/libxfs/xfs_alloc.c. Caller xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 547.258124] CPU: 1 PID: 2818 Comm: kworker/u4:3 Not tainted 4.14.303-syzkaller #0 [ 547.265733] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023 [ 547.275166] Workqueue: writeback wb_workfn (flush-7:1) [ 547.280420] Call Trace: [ 547.282983] dump_stack+0x1b2/0x281 [ 547.286596] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 547.291851] xfs_error_report+0x98/0xa0 [ 547.295797] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 547.301049] xfs_alloc_fixup_trees+0x425/0x4f0 [ 547.305639] ? xfs_alloc_update+0x90/0x90 [ 547.309765] ? xfs_btree_rec_offset.isra.0+0x3b/0xa0 [ 547.314841] ? xfs_alloc_compute_diff+0x23c/0x3d0 [ 547.319672] xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 547.324770] ? xfs_alloc_fix_freelist+0x685/0xeb0 [ 547.329611] ? xfs_alloc_ag_vextent_size+0x1ea0/0x1ea0 [ 547.334861] ? xfs_alloc_read_agf+0xb10/0xb10 [ 547.339336] xfs_alloc_ag_vextent+0x579/0x750 [ 547.343812] ? xfs_perag_get+0x116/0x410 [ 547.347850] ? xfs_alloc_vextent+0x470/0x2010 [ 547.352321] xfs_alloc_vextent+0x10b0/0x2010 [ 547.356707] xfs_bmap_btalloc+0x9e5/0x1b20 [ 547.360917] ? xfs_bmap_adjacent+0x1480/0x1480 [ 547.365482] ? ret_from_fork+0x24/0x30 [ 547.369359] ? __xfs_bmbt_get_all+0x16/0x100 [ 547.373760] xfs_bmap_alloc+0x107/0x160 [ 547.377706] xfs_bmapi_write+0xa49/0x1d00 [ 547.381833] ? xfs_bmapi_reserve_delalloc+0x7c0/0x7c0 [ 547.387004] ? trace_hardirqs_on+0x10/0x10 [ 547.391222] ? xfs_iext_get_ext+0xeb/0x200 [ 547.395431] ? xfs_iext_idx_to_irec+0x340/0x340 [ 547.400079] ? xfs_bmap_last_extent+0x1d0/0x1d0 [ 547.404732] xfs_iomap_write_allocate+0x42b/0xa30 [ 547.409559] ? xfs_file_iomap_begin+0x1ed0/0x1ed0 [ 547.414373] ? xfs_iunlock+0x248/0x3b0 [ 547.418245] ? rcu_read_lock_sched_held+0x16c/0x1d0 [ 547.423251] ? xfs_iunlock+0x21a/0x3b0 [ 547.427120] xfs_map_blocks+0x548/0x940 [ 547.431076] ? xfs_vm_set_page_dirty+0x610/0x610 [ 547.435808] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 547.441234] xfs_do_writepage+0x422/0x13d0 [ 547.445456] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 547.449761] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 547.455195] write_cache_pages+0x505/0xd20 [ 547.459414] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 547.463719] ? clear_page_dirty_for_io+0xb80/0xb80 [ 547.468643] ? trace_hardirqs_on+0x10/0x10 [ 547.472854] xfs_vm_writepages+0x258/0x340 [ 547.477060] ? xfs_vm_writepage+0xd0/0xd0 [ 547.481184] ? xfs_vm_writepage+0xd0/0xd0 [ 547.485313] do_writepages+0xc3/0x240 [ 547.489095] ? page_writeback_cpu_online+0x10/0x10 [ 547.494008] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 547.499442] __writeback_single_inode+0xda/0x1010 [ 547.504267] writeback_sb_inodes+0x48b/0xd30 [ 547.508661] ? wbc_detach_inode+0x780/0x780 [ 547.512964] ? queue_io+0x400/0x5a0 [ 547.516593] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 547.522020] wb_writeback+0x243/0xb80 [ 547.525814] ? writeback_inodes_wb.constprop.0+0x1a0/0x1a0 [ 547.531421] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 547.536846] wb_workfn+0x2bd/0xf50 [ 547.540362] ? process_one_work+0x6c4/0x14a0 [ 547.544749] ? inode_wait_for_writeback+0x30/0x30 [ 547.549573] ? lock_acquire+0x170/0x3f0 [ 547.553521] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 547.558952] process_one_work+0x793/0x14a0 [ 547.563198] ? work_busy+0x320/0x320 [ 547.566894] ? worker_thread+0x158/0xff0 [ 547.570942] ? _raw_spin_unlock_irq+0x24/0x80 [ 547.575414] worker_thread+0x5cc/0xff0 [ 547.579296] ? rescuer_thread+0xc80/0xc80 [ 547.583506] kthread+0x30d/0x420 [ 547.586861] ? kthread_create_on_node+0xd0/0xd0 [ 547.591514] ret_from_fork+0x24/0x30 [ 547.596212] XFS (loop1): page discard on page ffffea0001093d00, inode 0x29, offset 1667072. [ 547.605127] XFS (loop1): Internal error XFS_WANT_CORRUPTED_RETURN at line 431 of file fs/xfs/libxfs/xfs_alloc.c. Caller xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 547.619687] CPU: 1 PID: 2818 Comm: kworker/u4:3 Not tainted 4.14.303-syzkaller #0 [ 547.627299] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023 [ 547.636650] Workqueue: writeback wb_workfn (flush-7:1) [ 547.641907] Call Trace: [ 547.644477] dump_stack+0x1b2/0x281 [ 547.648088] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 547.653341] xfs_error_report+0x98/0xa0 [ 547.657291] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 547.662542] xfs_alloc_fixup_trees+0x425/0x4f0 [ 547.667107] ? xfs_alloc_update+0x90/0x90 [ 547.671236] ? xfs_btree_rec_offset.isra.0+0x3b/0xa0 [ 547.676315] ? xfs_alloc_compute_diff+0x23c/0x3d0 [ 547.681130] xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 547.686220] ? xfs_alloc_fix_freelist+0x685/0xeb0 [ 547.691043] ? xfs_alloc_ag_vextent_size+0x1ea0/0x1ea0 [ 547.696295] ? xfs_alloc_read_agf+0xb10/0xb10 [ 547.700773] xfs_alloc_ag_vextent+0x579/0x750 [ 547.705246] ? xfs_perag_get+0x116/0x410 [ 547.709289] ? xfs_alloc_vextent+0x470/0x2010 [ 547.713761] xfs_alloc_vextent+0x10b0/0x2010 [ 547.718148] xfs_bmap_btalloc+0x9e5/0x1b20 [ 547.722362] ? xfs_bmap_adjacent+0x1480/0x1480 [ 547.726931] ? ret_from_fork+0x24/0x30 [ 547.730805] ? __xfs_bmbt_get_all+0x16/0x100 [ 547.735186] xfs_bmap_alloc+0x107/0x160 [ 547.739134] xfs_bmapi_write+0xa49/0x1d00 [ 547.743260] ? xfs_bmapi_reserve_delalloc+0x7c0/0x7c0 [ 547.748422] ? trace_hardirqs_on+0x10/0x10 [ 547.752629] ? xfs_iext_get_ext+0xeb/0x200 [ 547.756836] ? xfs_iext_idx_to_irec+0x340/0x340 [ 547.761487] ? xfs_bmap_last_extent+0x1d0/0x1d0 [ 547.766140] xfs_iomap_write_allocate+0x42b/0xa30 [ 547.770969] ? xfs_file_iomap_begin+0x1ed0/0x1ed0 [ 547.775785] ? xfs_iunlock+0x248/0x3b0 [ 547.779668] ? rcu_read_lock_sched_held+0x16c/0x1d0 [ 547.784662] ? xfs_iunlock+0x21a/0x3b0 [ 547.788533] xfs_map_blocks+0x548/0x940 [ 547.792500] ? xfs_vm_set_page_dirty+0x610/0x610 [ 547.797247] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 547.802678] xfs_do_writepage+0x422/0x13d0 [ 547.806900] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 547.811222] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 547.816648] write_cache_pages+0x505/0xd20 [ 547.820859] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 547.825163] ? clear_page_dirty_for_io+0xb80/0xb80 [ 547.830078] ? trace_hardirqs_on+0x10/0x10 [ 547.834289] xfs_vm_writepages+0x258/0x340 [ 547.838509] ? xfs_vm_writepage+0xd0/0xd0 [ 547.842640] ? xfs_vm_writepage+0xd0/0xd0 [ 547.846770] do_writepages+0xc3/0x240 [ 547.850557] ? page_writeback_cpu_online+0x10/0x10 [ 547.855477] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 547.860916] __writeback_single_inode+0xda/0x1010 [ 547.865754] writeback_sb_inodes+0x48b/0xd30 [ 547.870150] ? wbc_detach_inode+0x780/0x780 [ 547.874464] ? queue_io+0x400/0x5a0 [ 547.878078] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 547.883530] wb_writeback+0x243/0xb80 [ 547.887321] ? writeback_inodes_wb.constprop.0+0x1a0/0x1a0 [ 547.892932] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 547.898365] wb_workfn+0x2bd/0xf50 [ 547.901888] ? process_one_work+0x6c4/0x14a0 [ 547.906282] ? inode_wait_for_writeback+0x30/0x30 [ 547.911105] ? lock_acquire+0x170/0x3f0 [ 547.915053] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 547.920478] process_one_work+0x793/0x14a0 [ 547.924698] ? work_busy+0x320/0x320 [ 547.928391] ? worker_thread+0x158/0xff0 [ 547.932424] ? _raw_spin_unlock_irq+0x24/0x80 [ 547.936891] worker_thread+0x5cc/0xff0 [ 547.940755] ? rescuer_thread+0xc80/0xc80 [ 547.944884] kthread+0x30d/0x420 [ 547.948231] ? kthread_create_on_node+0xd0/0xd0 [ 547.952874] ret_from_fork+0x24/0x30 [ 547.956998] XFS (loop1): page discard on page ffffea0001093d40, inode 0x29, offset 1671168. [ 547.965906] XFS (loop1): Internal error XFS_WANT_CORRUPTED_RETURN at line 431 of file fs/xfs/libxfs/xfs_alloc.c. Caller xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 547.980490] CPU: 1 PID: 2818 Comm: kworker/u4:3 Not tainted 4.14.303-syzkaller #0 [ 547.988102] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023 [ 547.997450] Workqueue: writeback wb_workfn (flush-7:1) [ 548.002700] Call Trace: [ 548.005262] dump_stack+0x1b2/0x281 [ 548.008865] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 548.014124] xfs_error_report+0x98/0xa0 [ 548.018078] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 548.023331] xfs_alloc_fixup_trees+0x425/0x4f0 [ 548.027888] ? xfs_alloc_update+0x90/0x90 [ 548.032011] ? xfs_btree_rec_offset.isra.0+0x3b/0xa0 [ 548.037088] ? xfs_alloc_compute_diff+0x23c/0x3d0 [ 548.041909] xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 548.046989] ? xfs_alloc_fix_freelist+0x685/0xeb0 [ 548.051803] ? xfs_alloc_ag_vextent_size+0x1ea0/0x1ea0 [ 548.057051] ? xfs_alloc_read_agf+0xb10/0xb10 [ 548.061544] xfs_alloc_ag_vextent+0x579/0x750 [ 548.066011] ? xfs_perag_get+0x116/0x410 [ 548.070047] ? xfs_alloc_vextent+0x470/0x2010 [ 548.074521] xfs_alloc_vextent+0x10b0/0x2010 [ 548.078922] xfs_bmap_btalloc+0x9e5/0x1b20 [ 548.083145] ? xfs_bmap_adjacent+0x1480/0x1480 [ 548.087714] ? ret_from_fork+0x24/0x30 [ 548.091591] ? __xfs_bmbt_get_all+0x16/0x100 [ 548.095989] xfs_bmap_alloc+0x107/0x160 [ 548.099953] xfs_bmapi_write+0xa49/0x1d00 [ 548.104088] ? xfs_bmapi_reserve_delalloc+0x7c0/0x7c0 [ 548.109264] ? trace_hardirqs_on+0x10/0x10 [ 548.113478] ? xfs_iext_get_ext+0xeb/0x200 [ 548.117741] ? xfs_iext_idx_to_irec+0x340/0x340 [ 548.122394] ? xfs_bmap_last_extent+0x1d0/0x1d0 [ 548.127047] xfs_iomap_write_allocate+0x42b/0xa30 [ 548.131870] ? xfs_file_iomap_begin+0x1ed0/0x1ed0 [ 548.136693] ? xfs_iunlock+0x248/0x3b0 [ 548.140560] ? rcu_read_lock_sched_held+0x16c/0x1d0 [ 548.145551] ? xfs_iunlock+0x21a/0x3b0 [ 548.149419] xfs_map_blocks+0x548/0x940 [ 548.153376] ? xfs_vm_set_page_dirty+0x610/0x610 [ 548.158109] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 548.163545] xfs_do_writepage+0x422/0x13d0 [ 548.167766] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 548.172066] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 548.177503] write_cache_pages+0x505/0xd20 [ 548.181721] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 548.186020] ? clear_page_dirty_for_io+0xb80/0xb80 [ 548.190929] ? trace_hardirqs_on+0x10/0x10 [ 548.195147] xfs_vm_writepages+0x258/0x340 [ 548.199362] ? xfs_vm_writepage+0xd0/0xd0 [ 548.203487] ? xfs_vm_writepage+0xd0/0xd0 [ 548.207608] do_writepages+0xc3/0x240 [ 548.211386] ? page_writeback_cpu_online+0x10/0x10 [ 548.216316] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 548.221744] __writeback_single_inode+0xda/0x1010 [ 548.226581] writeback_sb_inodes+0x48b/0xd30 [ 548.230967] ? wbc_detach_inode+0x780/0x780 [ 548.235276] ? queue_io+0x400/0x5a0 [ 548.238884] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 548.244315] wb_writeback+0x243/0xb80 [ 548.248099] ? writeback_inodes_wb.constprop.0+0x1a0/0x1a0 [ 548.253710] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 548.259145] wb_workfn+0x2bd/0xf50 [ 548.262661] ? process_one_work+0x6c4/0x14a0 [ 548.267047] ? inode_wait_for_writeback+0x30/0x30 [ 548.271861] ? lock_acquire+0x170/0x3f0 [ 548.275819] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 548.281257] process_one_work+0x793/0x14a0 [ 548.285492] ? work_busy+0x320/0x320 [ 548.289179] ? worker_thread+0x158/0xff0 [ 548.293216] ? _raw_spin_unlock_irq+0x24/0x80 [ 548.297689] worker_thread+0x5cc/0xff0 [ 548.301552] ? rescuer_thread+0xc80/0xc80 [ 548.305673] kthread+0x30d/0x420 [ 548.309013] ? kthread_create_on_node+0xd0/0xd0 [ 548.313663] ret_from_fork+0x24/0x30 [ 548.317732] XFS (loop1): page discard on page ffffea0001093d80, inode 0x29, offset 1675264. [ 548.326635] XFS (loop1): Internal error XFS_WANT_CORRUPTED_RETURN at line 431 of file fs/xfs/libxfs/xfs_alloc.c. Caller xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 548.341179] CPU: 1 PID: 2818 Comm: kworker/u4:3 Not tainted 4.14.303-syzkaller #0 [ 548.348788] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023 [ 548.358132] Workqueue: writeback wb_workfn (flush-7:1) [ 548.363384] Call Trace: [ 548.365947] dump_stack+0x1b2/0x281 [ 548.369549] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 548.374801] xfs_error_report+0x98/0xa0 [ 548.378754] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 548.384004] xfs_alloc_fixup_trees+0x425/0x4f0 [ 548.388561] ? xfs_alloc_update+0x90/0x90 [ 548.392681] ? xfs_btree_rec_offset.isra.0+0x3b/0xa0 [ 548.397760] ? xfs_alloc_compute_diff+0x23c/0x3d0 [ 548.402577] xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 548.407656] ? xfs_alloc_fix_freelist+0x685/0xeb0 [ 548.412470] ? xfs_alloc_ag_vextent_size+0x1ea0/0x1ea0 [ 548.417736] ? xfs_alloc_read_agf+0xb10/0xb10 [ 548.422214] xfs_alloc_ag_vextent+0x579/0x750 [ 548.426683] ? xfs_perag_get+0x116/0x410 [ 548.430719] ? xfs_alloc_vextent+0x470/0x2010 [ 548.435196] xfs_alloc_vextent+0x10b0/0x2010 [ 548.439592] xfs_bmap_btalloc+0x9e5/0x1b20 [ 548.443823] ? xfs_bmap_adjacent+0x1480/0x1480 [ 548.448378] ? ret_from_fork+0x24/0x30 [ 548.452246] ? __xfs_bmbt_get_all+0x16/0x100 [ 548.456637] xfs_bmap_alloc+0x107/0x160 [ 548.460607] xfs_bmapi_write+0xa49/0x1d00 [ 548.464746] ? xfs_bmapi_reserve_delalloc+0x7c0/0x7c0 [ 548.469911] ? trace_hardirqs_on+0x10/0x10 [ 548.474131] ? xfs_iext_get_ext+0xeb/0x200 [ 548.478345] ? xfs_iext_idx_to_irec+0x340/0x340 [ 548.482992] ? xfs_bmap_last_extent+0x1d0/0x1d0 [ 548.487656] xfs_iomap_write_allocate+0x42b/0xa30 [ 548.492478] ? xfs_file_iomap_begin+0x1ed0/0x1ed0 [ 548.497304] ? xfs_iunlock+0x248/0x3b0 [ 548.501183] ? rcu_read_lock_sched_held+0x16c/0x1d0 [ 548.506173] ? xfs_iunlock+0x21a/0x3b0 [ 548.510033] xfs_map_blocks+0x548/0x940 [ 548.513992] ? xfs_vm_set_page_dirty+0x610/0x610 [ 548.518729] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 548.524154] xfs_do_writepage+0x422/0x13d0 [ 548.528365] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 548.532662] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 548.538090] write_cache_pages+0x505/0xd20 [ 548.542299] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 548.546596] ? clear_page_dirty_for_io+0xb80/0xb80 [ 548.551503] ? trace_hardirqs_on+0x10/0x10 [ 548.555720] xfs_vm_writepages+0x258/0x340 [ 548.559936] ? xfs_vm_writepage+0xd0/0xd0 [ 548.564063] ? xfs_vm_writepage+0xd0/0xd0 [ 548.568185] do_writepages+0xc3/0x240 [ 548.571976] ? page_writeback_cpu_online+0x10/0x10 [ 548.576892] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 548.582323] __writeback_single_inode+0xda/0x1010 [ 548.587141] writeback_sb_inodes+0x48b/0xd30 [ 548.591526] ? wbc_detach_inode+0x780/0x780 [ 548.595833] ? queue_io+0x400/0x5a0 [ 548.599441] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 548.604868] wb_writeback+0x243/0xb80 [ 548.608647] ? writeback_inodes_wb.constprop.0+0x1a0/0x1a0 [ 548.614259] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 548.619689] wb_workfn+0x2bd/0xf50 [ 548.623222] ? process_one_work+0x6c4/0x14a0 [ 548.627619] ? inode_wait_for_writeback+0x30/0x30 [ 548.632436] ? lock_acquire+0x170/0x3f0 [ 548.636401] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 548.641836] process_one_work+0x793/0x14a0 [ 548.646049] ? work_busy+0x320/0x320 [ 548.649736] ? worker_thread+0x158/0xff0 [ 548.653778] ? _raw_spin_unlock_irq+0x24/0x80 [ 548.658255] worker_thread+0x5cc/0xff0 [ 548.662134] ? rescuer_thread+0xc80/0xc80 [ 548.666272] kthread+0x30d/0x420 [ 548.669613] ? kthread_create_on_node+0xd0/0xd0 [ 548.674266] ret_from_fork+0x24/0x30 [ 548.678711] XFS (loop1): page discard on page ffffea0001093dc0, inode 0x29, offset 1679360. [ 548.687637] XFS (loop1): Internal error XFS_WANT_CORRUPTED_RETURN at line 431 of file fs/xfs/libxfs/xfs_alloc.c. Caller xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 548.702798] CPU: 1 PID: 2818 Comm: kworker/u4:3 Not tainted 4.14.303-syzkaller #0 [ 548.710407] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023 [ 548.719774] Workqueue: writeback wb_workfn (flush-7:1) [ 548.725033] Call Trace: [ 548.727601] dump_stack+0x1b2/0x281 [ 548.731204] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 548.736488] xfs_error_report+0x98/0xa0 [ 548.740443] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 548.745710] xfs_alloc_fixup_trees+0x425/0x4f0 [ 548.750267] ? xfs_alloc_update+0x90/0x90 [ 548.754395] ? xfs_btree_rec_offset.isra.0+0x3b/0xa0 [ 548.759485] ? xfs_alloc_compute_diff+0x23c/0x3d0 [ 548.764318] xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 548.769398] ? xfs_alloc_fix_freelist+0x685/0xeb0 [ 548.774225] ? xfs_alloc_ag_vextent_size+0x1ea0/0x1ea0 [ 548.779571] ? xfs_alloc_read_agf+0xb10/0xb10 [ 548.784050] xfs_alloc_ag_vextent+0x579/0x750 [ 548.788520] ? xfs_perag_get+0x116/0x410 [ 548.792553] ? xfs_alloc_vextent+0x470/0x2010 [ 548.797467] xfs_alloc_vextent+0x10b0/0x2010 [ 548.801880] xfs_bmap_btalloc+0x9e5/0x1b20 [ 548.806106] ? xfs_bmap_adjacent+0x1480/0x1480 [ 548.810670] ? ret_from_fork+0x24/0x30 [ 548.814555] ? __xfs_bmbt_get_all+0x16/0x100 [ 548.818951] xfs_bmap_alloc+0x107/0x160 [ 548.822902] xfs_bmapi_write+0xa49/0x1d00 [ 548.827032] ? xfs_bmapi_reserve_delalloc+0x7c0/0x7c0 [ 548.832197] ? trace_hardirqs_on+0x10/0x10 [ 548.836417] ? xfs_iext_get_ext+0xeb/0x200 [ 548.840632] ? xfs_iext_idx_to_irec+0x340/0x340 [ 548.845341] ? xfs_bmap_last_extent+0x1d0/0x1d0 [ 548.850005] xfs_iomap_write_allocate+0x42b/0xa30 [ 548.854851] ? xfs_file_iomap_begin+0x1ed0/0x1ed0 [ 548.859677] ? xfs_iunlock+0x248/0x3b0 [ 548.863568] ? rcu_read_lock_sched_held+0x16c/0x1d0 [ 548.868565] ? xfs_iunlock+0x21a/0x3b0 [ 548.872446] xfs_map_blocks+0x548/0x940 [ 548.876401] ? xfs_vm_set_page_dirty+0x610/0x610 [ 548.881143] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 548.886566] xfs_do_writepage+0x422/0x13d0 [ 548.890781] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 548.895087] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 548.900531] write_cache_pages+0x505/0xd20 [ 548.904751] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 548.909072] ? clear_page_dirty_for_io+0xb80/0xb80 [ 548.913998] ? trace_hardirqs_on+0x10/0x10 [ 548.918227] xfs_vm_writepages+0x258/0x340 [ 548.922441] ? xfs_vm_writepage+0xd0/0xd0 [ 548.926567] ? xfs_vm_writepage+0xd0/0xd0 [ 548.930690] do_writepages+0xc3/0x240 [ 548.934474] ? page_writeback_cpu_online+0x10/0x10 [ 548.939388] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 548.944822] __writeback_single_inode+0xda/0x1010 [ 548.949652] writeback_sb_inodes+0x48b/0xd30 [ 548.954052] ? wbc_detach_inode+0x780/0x780 [ 548.958354] ? queue_io+0x400/0x5a0 [ 548.961967] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 548.967479] wb_writeback+0x243/0xb80 [ 548.971256] ? writeback_inodes_wb.constprop.0+0x1a0/0x1a0 [ 548.976866] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 548.982301] wb_workfn+0x2bd/0xf50 [ 548.985816] ? process_one_work+0x6c4/0x14a0 [ 548.990212] ? inode_wait_for_writeback+0x30/0x30 [ 548.995035] ? lock_acquire+0x170/0x3f0 [ 548.998991] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 549.004419] process_one_work+0x793/0x14a0 [ 549.008629] ? work_busy+0x320/0x320 [ 549.012313] ? worker_thread+0x158/0xff0 [ 549.016354] ? _raw_spin_unlock_irq+0x24/0x80 [ 549.020830] worker_thread+0x5cc/0xff0 [ 549.024695] ? rescuer_thread+0xc80/0xc80 [ 549.028814] kthread+0x30d/0x420 [ 549.032153] ? kthread_create_on_node+0xd0/0xd0 [ 549.036811] ret_from_fork+0x24/0x30 [ 549.041069] XFS (loop1): page discard on page ffffea0001093e00, inode 0x29, offset 1683456. [ 549.049967] XFS (loop1): Internal error XFS_WANT_CORRUPTED_RETURN at line 431 of file fs/xfs/libxfs/xfs_alloc.c. Caller xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 549.064498] CPU: 1 PID: 2818 Comm: kworker/u4:3 Not tainted 4.14.303-syzkaller #0 [ 549.072108] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023 [ 549.081463] Workqueue: writeback wb_workfn (flush-7:1) [ 549.086738] Call Trace: [ 549.089310] dump_stack+0x1b2/0x281 [ 549.092915] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 549.098187] xfs_error_report+0x98/0xa0 [ 549.102138] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 549.107393] xfs_alloc_fixup_trees+0x425/0x4f0 [ 549.111951] ? xfs_alloc_update+0x90/0x90 [ 549.116080] ? xfs_btree_rec_offset.isra.0+0x3b/0xa0 [ 549.121179] ? xfs_alloc_compute_diff+0x23c/0x3d0 [ 549.125994] xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 549.131086] ? xfs_alloc_fix_freelist+0x685/0xeb0 [ 549.135909] ? xfs_alloc_ag_vextent_size+0x1ea0/0x1ea0 [ 549.141187] ? xfs_alloc_read_agf+0xb10/0xb10 [ 549.145665] xfs_alloc_ag_vextent+0x579/0x750 [ 549.150132] ? xfs_perag_get+0x116/0x410 [ 549.154169] ? xfs_alloc_vextent+0x470/0x2010 [ 549.158649] xfs_alloc_vextent+0x10b0/0x2010 [ 549.163049] xfs_bmap_btalloc+0x9e5/0x1b20 [ 549.167258] ? xfs_bmap_adjacent+0x1480/0x1480 [ 549.171813] ? ret_from_fork+0x24/0x30 [ 549.175697] ? __xfs_bmbt_get_all+0x16/0x100 [ 549.180085] xfs_bmap_alloc+0x107/0x160 [ 549.184038] xfs_bmapi_write+0xa49/0x1d00 [ 549.188172] ? xfs_bmapi_reserve_delalloc+0x7c0/0x7c0 [ 549.193336] ? trace_hardirqs_on+0x10/0x10 [ 549.197545] ? xfs_iext_get_ext+0xeb/0x200 [ 549.201753] ? xfs_iext_idx_to_irec+0x340/0x340 [ 549.206399] ? xfs_bmap_last_extent+0x1d0/0x1d0 [ 549.211046] xfs_iomap_write_allocate+0x42b/0xa30 [ 549.215883] ? xfs_file_iomap_begin+0x1ed0/0x1ed0 [ 549.220723] ? xfs_iunlock+0x248/0x3b0 [ 549.224590] ? rcu_read_lock_sched_held+0x16c/0x1d0 [ 549.229578] ? xfs_iunlock+0x21a/0x3b0 [ 549.233454] xfs_map_blocks+0x548/0x940 [ 549.237406] ? xfs_vm_set_page_dirty+0x610/0x610 [ 549.242136] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 549.247561] xfs_do_writepage+0x422/0x13d0 [ 549.251774] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 549.256077] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 549.261510] write_cache_pages+0x505/0xd20 [ 549.265720] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 549.270022] ? clear_page_dirty_for_io+0xb80/0xb80 [ 549.274943] ? trace_hardirqs_on+0x10/0x10 [ 549.279159] xfs_vm_writepages+0x258/0x340 [ 549.283366] ? xfs_vm_writepage+0xd0/0xd0 [ 549.287490] ? xfs_vm_writepage+0xd0/0xd0 [ 549.291611] do_writepages+0xc3/0x240 [ 549.295397] ? page_writeback_cpu_online+0x10/0x10 [ 549.300311] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 549.305737] __writeback_single_inode+0xda/0x1010 [ 549.310564] writeback_sb_inodes+0x48b/0xd30 [ 549.314957] ? wbc_detach_inode+0x780/0x780 [ 549.319261] ? queue_io+0x400/0x5a0 [ 549.322858] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 549.328280] wb_writeback+0x243/0xb80 [ 549.332056] ? writeback_inodes_wb.constprop.0+0x1a0/0x1a0 [ 549.337655] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 549.343081] wb_workfn+0x2bd/0xf50 [ 549.346601] ? process_one_work+0x6c4/0x14a0 [ 549.350984] ? inode_wait_for_writeback+0x30/0x30 [ 549.355813] ? lock_acquire+0x170/0x3f0 [ 549.359775] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 549.365199] process_one_work+0x793/0x14a0 [ 549.369410] ? work_busy+0x320/0x320 [ 549.373094] ? worker_thread+0x158/0xff0 [ 549.377133] ? _raw_spin_unlock_irq+0x24/0x80 [ 549.381605] worker_thread+0x5cc/0xff0 [ 549.385469] ? rescuer_thread+0xc80/0xc80 [ 549.389592] kthread+0x30d/0x420 [ 549.392933] ? kthread_create_on_node+0xd0/0xd0 [ 549.397576] ret_from_fork+0x24/0x30 [ 549.401629] XFS (loop1): page discard on page ffffea0001093e40, inode 0x29, offset 1687552. [ 549.410516] XFS (loop1): Internal error XFS_WANT_CORRUPTED_RETURN at line 431 of file fs/xfs/libxfs/xfs_alloc.c. Caller xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 549.425055] CPU: 1 PID: 2818 Comm: kworker/u4:3 Not tainted 4.14.303-syzkaller #0 [ 549.432679] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023 [ 549.442021] Workqueue: writeback wb_workfn (flush-7:1) [ 549.447278] Call Trace: [ 549.449852] dump_stack+0x1b2/0x281 [ 549.453456] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 549.458705] xfs_error_report+0x98/0xa0 [ 549.462655] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 549.467912] xfs_alloc_fixup_trees+0x425/0x4f0 [ 549.472469] ? xfs_alloc_update+0x90/0x90 [ 549.476599] ? xfs_btree_rec_offset.isra.0+0x3b/0xa0 [ 549.481682] ? xfs_alloc_compute_diff+0x23c/0x3d0 [ 549.486499] xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 549.491596] ? xfs_alloc_fix_freelist+0x685/0xeb0 [ 549.496419] ? xfs_alloc_ag_vextent_size+0x1ea0/0x1ea0 [ 549.501675] ? xfs_alloc_read_agf+0xb10/0xb10 [ 549.506153] xfs_alloc_ag_vextent+0x579/0x750 [ 549.510621] ? xfs_perag_get+0x116/0x410 [ 549.514657] ? xfs_alloc_vextent+0x470/0x2010 [ 549.519135] xfs_alloc_vextent+0x10b0/0x2010 [ 549.523522] xfs_bmap_btalloc+0x9e5/0x1b20 [ 549.527734] ? xfs_bmap_adjacent+0x1480/0x1480 [ 549.532290] ? ret_from_fork+0x24/0x30 [ 549.536173] ? __xfs_bmbt_get_all+0x16/0x100 [ 549.540565] xfs_bmap_alloc+0x107/0x160 [ 549.544514] xfs_bmapi_write+0xa49/0x1d00 [ 549.548643] ? xfs_bmapi_reserve_delalloc+0x7c0/0x7c0 [ 549.553814] ? trace_hardirqs_on+0x10/0x10 [ 549.558042] ? xfs_iext_get_ext+0xeb/0x200 [ 549.562253] ? xfs_iext_idx_to_irec+0x340/0x340 [ 549.566903] ? xfs_bmap_last_extent+0x1d0/0x1d0 [ 549.571552] xfs_iomap_write_allocate+0x42b/0xa30 [ 549.576396] ? xfs_file_iomap_begin+0x1ed0/0x1ed0 [ 549.581234] ? xfs_iunlock+0x248/0x3b0 [ 549.585110] ? rcu_read_lock_sched_held+0x16c/0x1d0 [ 549.590104] ? xfs_iunlock+0x21a/0x3b0 [ 549.593976] xfs_map_blocks+0x548/0x940 [ 549.597938] ? xfs_vm_set_page_dirty+0x610/0x610 [ 549.602669] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 549.608093] xfs_do_writepage+0x422/0x13d0 [ 549.612306] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 549.616616] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 549.622050] write_cache_pages+0x505/0xd20 [ 549.626261] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 549.630560] ? clear_page_dirty_for_io+0xb80/0xb80 [ 549.635482] ? trace_hardirqs_on+0x10/0x10 [ 549.639698] xfs_vm_writepages+0x258/0x340 [ 549.643908] ? xfs_vm_writepage+0xd0/0xd0 [ 549.648032] ? xfs_vm_writepage+0xd0/0xd0 [ 549.652157] do_writepages+0xc3/0x240 [ 549.655942] ? page_writeback_cpu_online+0x10/0x10 [ 549.660855] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 549.666283] __writeback_single_inode+0xda/0x1010 [ 549.671103] writeback_sb_inodes+0x48b/0xd30 [ 549.675499] ? wbc_detach_inode+0x780/0x780 [ 549.679803] ? queue_io+0x400/0x5a0 [ 549.683405] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 549.688835] wb_writeback+0x243/0xb80 [ 549.692613] ? writeback_inodes_wb.constprop.0+0x1a0/0x1a0 [ 549.698213] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 549.703646] wb_workfn+0x2bd/0xf50 [ 549.707169] ? process_one_work+0x6c4/0x14a0 [ 549.711563] ? inode_wait_for_writeback+0x30/0x30 [ 549.716385] ? lock_acquire+0x170/0x3f0 [ 549.720341] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 549.725780] process_one_work+0x793/0x14a0 [ 549.729992] ? work_busy+0x320/0x320 [ 549.733685] ? worker_thread+0x158/0xff0 [ 549.737732] ? _raw_spin_unlock_irq+0x24/0x80 [ 549.742201] worker_thread+0x5cc/0xff0 [ 549.746066] ? rescuer_thread+0xc80/0xc80 [ 549.750186] kthread+0x30d/0x420 [ 549.753525] ? kthread_create_on_node+0xd0/0xd0 [ 549.758172] ret_from_fork+0x24/0x30 [ 549.762484] XFS (loop1): page discard on page ffffea0001093e80, inode 0x29, offset 1691648. [ 549.771379] XFS (loop1): Internal error XFS_WANT_CORRUPTED_RETURN at line 431 of file fs/xfs/libxfs/xfs_alloc.c. Caller xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 549.785925] CPU: 1 PID: 2818 Comm: kworker/u4:3 Not tainted 4.14.303-syzkaller #0 [ 549.793525] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023 [ 549.802873] Workqueue: writeback wb_workfn (flush-7:1) [ 549.808122] Call Trace: [ 549.810683] dump_stack+0x1b2/0x281 [ 549.814291] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 549.819548] xfs_error_report+0x98/0xa0 [ 549.823498] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 549.828751] xfs_alloc_fixup_trees+0x425/0x4f0 [ 549.833306] ? xfs_alloc_update+0x90/0x90 [ 549.837433] ? xfs_btree_rec_offset.isra.0+0x3b/0xa0 [ 549.842520] ? xfs_alloc_compute_diff+0x23c/0x3d0 [ 549.847333] xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 549.852411] ? xfs_alloc_fix_freelist+0x685/0xeb0 [ 549.857228] ? xfs_alloc_ag_vextent_size+0x1ea0/0x1ea0 [ 549.862477] ? xfs_alloc_read_agf+0xb10/0xb10 [ 549.866969] xfs_alloc_ag_vextent+0x579/0x750 [ 549.871444] ? xfs_perag_get+0x116/0x410 [ 549.875486] ? xfs_alloc_vextent+0x470/0x2010 [ 549.879968] xfs_alloc_vextent+0x10b0/0x2010 [ 549.884359] xfs_bmap_btalloc+0x9e5/0x1b20 [ 549.888576] ? xfs_bmap_adjacent+0x1480/0x1480 [ 549.893130] ? ret_from_fork+0x24/0x30 [ 549.897011] ? __xfs_bmbt_get_all+0x16/0x100 [ 549.901405] xfs_bmap_alloc+0x107/0x160 [ 549.905352] xfs_bmapi_write+0xa49/0x1d00 [ 549.909480] ? xfs_bmapi_reserve_delalloc+0x7c0/0x7c0 [ 549.914649] ? trace_hardirqs_on+0x10/0x10 [ 549.918880] ? xfs_iext_get_ext+0xeb/0x200 [ 549.923089] ? xfs_iext_idx_to_irec+0x340/0x340 [ 549.927737] ? xfs_bmap_last_extent+0x1d0/0x1d0 [ 549.932386] xfs_iomap_write_allocate+0x42b/0xa30 [ 549.937228] ? xfs_file_iomap_begin+0x1ed0/0x1ed0 [ 549.942063] ? xfs_iunlock+0x248/0x3b0 [ 549.945938] ? rcu_read_lock_sched_held+0x16c/0x1d0 [ 549.950929] ? xfs_iunlock+0x21a/0x3b0 [ 549.954798] xfs_map_blocks+0x548/0x940 [ 549.958756] ? xfs_vm_set_page_dirty+0x610/0x610 [ 549.963487] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 549.968984] xfs_do_writepage+0x422/0x13d0 [ 549.973217] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 549.977528] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 549.982961] write_cache_pages+0x505/0xd20 [ 549.987173] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 549.991469] ? clear_page_dirty_for_io+0xb80/0xb80 [ 549.996392] ? trace_hardirqs_on+0x10/0x10 [ 550.000621] xfs_vm_writepages+0x258/0x340 [ 550.004828] ? xfs_vm_writepage+0xd0/0xd0 [ 550.008958] ? xfs_vm_writepage+0xd0/0xd0 [ 550.013078] do_writepages+0xc3/0x240 [ 550.016867] ? page_writeback_cpu_online+0x10/0x10 [ 550.021786] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 550.027222] __writeback_single_inode+0xda/0x1010 [ 550.032037] writeback_sb_inodes+0x48b/0xd30 [ 550.036435] ? wbc_detach_inode+0x780/0x780 [ 550.040738] ? queue_io+0x400/0x5a0 [ 550.044351] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 550.049774] wb_writeback+0x243/0xb80 [ 550.053561] ? writeback_inodes_wb.constprop.0+0x1a0/0x1a0 [ 550.059168] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 550.064682] wb_workfn+0x2bd/0xf50 [ 550.068199] ? process_one_work+0x6c4/0x14a0 [ 550.072581] ? inode_wait_for_writeback+0x30/0x30 [ 550.077399] ? lock_acquire+0x170/0x3f0 [ 550.081349] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 550.086786] process_one_work+0x793/0x14a0 [ 550.090999] ? work_busy+0x320/0x320 [ 550.094687] ? worker_thread+0x158/0xff0 [ 550.098728] ? _raw_spin_unlock_irq+0x24/0x80 [ 550.103209] worker_thread+0x5cc/0xff0 [ 550.107076] ? rescuer_thread+0xc80/0xc80 [ 550.111196] kthread+0x30d/0x420 [ 550.114541] ? kthread_create_on_node+0xd0/0xd0 [ 550.119190] ret_from_fork+0x24/0x30 [ 550.123500] XFS (loop1): page discard on page ffffea0001093ec0, inode 0x29, offset 1695744. [ 550.132386] XFS (loop1): Internal error XFS_WANT_CORRUPTED_RETURN at line 431 of file fs/xfs/libxfs/xfs_alloc.c. Caller xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 550.146923] CPU: 1 PID: 2818 Comm: kworker/u4:3 Not tainted 4.14.303-syzkaller #0 [ 550.154530] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023 [ 550.163877] Workqueue: writeback wb_workfn (flush-7:1) [ 550.169129] Call Trace: [ 550.171689] dump_stack+0x1b2/0x281 [ 550.175303] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 550.180579] xfs_error_report+0x98/0xa0 [ 550.184542] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 550.189807] xfs_alloc_fixup_trees+0x425/0x4f0 [ 550.194374] ? xfs_alloc_update+0x90/0x90 [ 550.198500] ? xfs_btree_rec_offset.isra.0+0x3b/0xa0 [ 550.203582] ? xfs_alloc_compute_diff+0x23c/0x3d0 [ 550.208406] xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 550.213484] ? xfs_alloc_fix_freelist+0x685/0xeb0 [ 550.218298] ? xfs_alloc_ag_vextent_size+0x1ea0/0x1ea0 [ 550.223554] ? xfs_alloc_read_agf+0xb10/0xb10 [ 550.228037] xfs_alloc_ag_vextent+0x579/0x750 [ 550.232503] ? xfs_perag_get+0x116/0x410 [ 550.236543] ? xfs_alloc_vextent+0x470/0x2010 [ 550.241021] xfs_alloc_vextent+0x10b0/0x2010 [ 550.245424] xfs_bmap_btalloc+0x9e5/0x1b20 [ 550.249638] ? xfs_bmap_adjacent+0x1480/0x1480 [ 550.254199] ? ret_from_fork+0x24/0x30 [ 550.258089] ? __xfs_bmbt_get_all+0x16/0x100 [ 550.262480] xfs_bmap_alloc+0x107/0x160 [ 550.266427] xfs_bmapi_write+0xa49/0x1d00 [ 550.270572] ? xfs_bmapi_reserve_delalloc+0x7c0/0x7c0 [ 550.275742] ? trace_hardirqs_on+0x10/0x10 [ 550.279957] ? xfs_iext_get_ext+0xeb/0x200 [ 550.284164] ? xfs_iext_idx_to_irec+0x340/0x340 [ 550.288898] ? xfs_bmap_last_extent+0x1d0/0x1d0 [ 550.293552] xfs_iomap_write_allocate+0x42b/0xa30 [ 550.298382] ? xfs_file_iomap_begin+0x1ed0/0x1ed0 [ 550.303197] ? xfs_iunlock+0x248/0x3b0 [ 550.307065] ? rcu_read_lock_sched_held+0x16c/0x1d0 [ 550.312055] ? xfs_iunlock+0x21a/0x3b0 [ 550.315923] xfs_map_blocks+0x548/0x940 [ 550.319880] ? xfs_vm_set_page_dirty+0x610/0x610 [ 550.324609] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 550.330034] xfs_do_writepage+0x422/0x13d0 [ 550.334256] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 550.338561] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 550.343987] write_cache_pages+0x505/0xd20 [ 550.348198] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 550.352493] ? clear_page_dirty_for_io+0xb80/0xb80 [ 550.357430] ? trace_hardirqs_on+0x10/0x10 [ 550.361648] xfs_vm_writepages+0x258/0x340 [ 550.365855] ? xfs_vm_writepage+0xd0/0xd0 [ 550.369980] ? xfs_vm_writepage+0xd0/0xd0 [ 550.374108] do_writepages+0xc3/0x240 [ 550.377893] ? page_writeback_cpu_online+0x10/0x10 [ 550.382871] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 550.388313] __writeback_single_inode+0xda/0x1010 [ 550.393133] writeback_sb_inodes+0x48b/0xd30 [ 550.397522] ? wbc_detach_inode+0x780/0x780 [ 550.401824] ? queue_io+0x400/0x5a0 [ 550.405425] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 550.410851] wb_writeback+0x243/0xb80 [ 550.414640] ? writeback_inodes_wb.constprop.0+0x1a0/0x1a0 [ 550.420249] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 550.425675] wb_workfn+0x2bd/0xf50 [ 550.429194] ? process_one_work+0x6c4/0x14a0 [ 550.433585] ? inode_wait_for_writeback+0x30/0x30 [ 550.438409] ? lock_acquire+0x170/0x3f0 [ 550.442356] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 550.447784] process_one_work+0x793/0x14a0 [ 550.452012] ? work_busy+0x320/0x320 [ 550.455705] ? worker_thread+0x158/0xff0 [ 550.459747] ? _raw_spin_unlock_irq+0x24/0x80 [ 550.464216] worker_thread+0x5cc/0xff0 [ 550.468083] ? rescuer_thread+0xc80/0xc80 [ 550.472206] kthread+0x30d/0x420 [ 550.475555] ? kthread_create_on_node+0xd0/0xd0 [ 550.480207] ret_from_fork+0x24/0x30 [ 550.484285] XFS (loop1): page discard on page ffffea0001093f00, inode 0x29, offset 1699840. [ 550.493155] XFS (loop1): Internal error XFS_WANT_CORRUPTED_RETURN at line 431 of file fs/xfs/libxfs/xfs_alloc.c. Caller xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 550.507697] CPU: 1 PID: 2818 Comm: kworker/u4:3 Not tainted 4.14.303-syzkaller #0 [ 550.515303] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023 [ 550.524647] Workqueue: writeback wb_workfn (flush-7:1) [ 550.529896] Call Trace: [ 550.532454] dump_stack+0x1b2/0x281 [ 550.536062] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 550.541319] xfs_error_report+0x98/0xa0 [ 550.545266] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 550.550517] xfs_alloc_fixup_trees+0x425/0x4f0 [ 550.555080] ? xfs_alloc_update+0x90/0x90 [ 550.559207] ? xfs_btree_rec_offset.isra.0+0x3b/0xa0 [ 550.564285] ? xfs_alloc_compute_diff+0x23c/0x3d0 [ 550.569102] xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 550.574190] ? xfs_alloc_fix_freelist+0x685/0xeb0 [ 550.579016] ? xfs_alloc_ag_vextent_size+0x1ea0/0x1ea0 [ 550.584269] ? xfs_alloc_read_agf+0xb10/0xb10 [ 550.588744] xfs_alloc_ag_vextent+0x579/0x750 [ 550.593210] ? xfs_perag_get+0x116/0x410 [ 550.597242] ? xfs_alloc_vextent+0x470/0x2010 [ 550.601709] xfs_alloc_vextent+0x10b0/0x2010 [ 550.606096] xfs_bmap_btalloc+0x9e5/0x1b20 [ 550.610306] ? xfs_bmap_adjacent+0x1480/0x1480 [ 550.614864] ? ret_from_fork+0x24/0x30 [ 550.618740] ? __xfs_bmbt_get_all+0x16/0x100 [ 550.623122] xfs_bmap_alloc+0x107/0x160 [ 550.627069] xfs_bmapi_write+0xa49/0x1d00 [ 550.631192] ? xfs_bmapi_reserve_delalloc+0x7c0/0x7c0 [ 550.636362] ? trace_hardirqs_on+0x10/0x10 [ 550.640577] ? xfs_iext_get_ext+0xeb/0x200 [ 550.644782] ? xfs_iext_idx_to_irec+0x340/0x340 [ 550.649434] ? xfs_bmap_last_extent+0x1d0/0x1d0 [ 550.654089] xfs_iomap_write_allocate+0x42b/0xa30 [ 550.658922] ? xfs_file_iomap_begin+0x1ed0/0x1ed0 [ 550.663737] ? xfs_iunlock+0x248/0x3b0 [ 550.667602] ? rcu_read_lock_sched_held+0x16c/0x1d0 [ 550.672592] ? xfs_iunlock+0x21a/0x3b0 [ 550.676458] xfs_map_blocks+0x548/0x940 [ 550.680426] ? xfs_vm_set_page_dirty+0x610/0x610 [ 550.685160] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 550.690583] xfs_do_writepage+0x422/0x13d0 [ 550.694812] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 550.699128] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 550.704591] write_cache_pages+0x505/0xd20 [ 550.708804] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 550.713115] ? clear_page_dirty_for_io+0xb80/0xb80 [ 550.718032] ? trace_hardirqs_on+0x10/0x10 [ 550.722257] xfs_vm_writepages+0x258/0x340 [ 550.726476] ? xfs_vm_writepage+0xd0/0xd0 [ 550.730609] ? xfs_vm_writepage+0xd0/0xd0 [ 550.734744] do_writepages+0xc3/0x240 [ 550.738544] ? page_writeback_cpu_online+0x10/0x10 [ 550.743449] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 550.748875] __writeback_single_inode+0xda/0x1010 [ 550.753702] writeback_sb_inodes+0x48b/0xd30 [ 550.758093] ? wbc_detach_inode+0x780/0x780 [ 550.762389] ? queue_io+0x400/0x5a0 [ 550.765990] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 550.771416] wb_writeback+0x243/0xb80 [ 550.775203] ? writeback_inodes_wb.constprop.0+0x1a0/0x1a0 [ 550.780826] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 550.786265] wb_workfn+0x2bd/0xf50 [ 550.789786] ? process_one_work+0x6c4/0x14a0 [ 550.794184] ? inode_wait_for_writeback+0x30/0x30 [ 550.799006] ? lock_acquire+0x170/0x3f0 [ 550.802955] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 550.808377] process_one_work+0x793/0x14a0 [ 550.812587] ? work_busy+0x320/0x320 [ 550.816281] ? worker_thread+0x158/0xff0 [ 550.820323] ? _raw_spin_unlock_irq+0x24/0x80 [ 550.824793] worker_thread+0x5cc/0xff0 [ 550.828658] ? rescuer_thread+0xc80/0xc80 [ 550.832781] kthread+0x30d/0x420 [ 550.836130] ? kthread_create_on_node+0xd0/0xd0 [ 550.840778] ret_from_fork+0x24/0x30 [ 550.845209] XFS (loop1): page discard on page ffffea0001093f40, inode 0x29, offset 1703936. [ 550.854097] XFS (loop1): Internal error XFS_WANT_CORRUPTED_RETURN at line 431 of file fs/xfs/libxfs/xfs_alloc.c. Caller xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 550.868644] CPU: 1 PID: 2818 Comm: kworker/u4:3 Not tainted 4.14.303-syzkaller #0 [ 550.876246] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023 [ 550.885609] Workqueue: writeback wb_workfn (flush-7:1) [ 550.890899] Call Trace: [ 550.893462] dump_stack+0x1b2/0x281 [ 550.897079] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 550.902335] xfs_error_report+0x98/0xa0 [ 550.906282] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 550.911533] xfs_alloc_fixup_trees+0x425/0x4f0 [ 550.916096] ? xfs_alloc_update+0x90/0x90 [ 550.920252] ? xfs_btree_rec_offset.isra.0+0x3b/0xa0 [ 550.925331] ? xfs_alloc_compute_diff+0x23c/0x3d0 [ 550.930150] xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 550.935243] ? xfs_alloc_fix_freelist+0x685/0xeb0 [ 550.940064] ? xfs_alloc_ag_vextent_size+0x1ea0/0x1ea0 [ 550.945316] ? xfs_alloc_read_agf+0xb10/0xb10 [ 550.949809] xfs_alloc_ag_vextent+0x579/0x750 [ 550.954288] ? xfs_perag_get+0x116/0x410 [ 550.958333] ? xfs_alloc_vextent+0x470/0x2010 [ 550.962811] xfs_alloc_vextent+0x10b0/0x2010 [ 550.967204] xfs_bmap_btalloc+0x9e5/0x1b20 [ 550.971416] ? xfs_bmap_adjacent+0x1480/0x1480 [ 550.975978] ? ret_from_fork+0x24/0x30 [ 550.979885] ? __xfs_bmbt_get_all+0x16/0x100 [ 550.984279] xfs_bmap_alloc+0x107/0x160 [ 550.988226] xfs_bmapi_write+0xa49/0x1d00 [ 550.992355] ? xfs_bmapi_reserve_delalloc+0x7c0/0x7c0 [ 550.997621] ? trace_hardirqs_on+0x10/0x10 [ 551.001831] ? xfs_iext_get_ext+0xeb/0x200 [ 551.006055] ? xfs_iext_idx_to_irec+0x340/0x340 [ 551.010703] ? xfs_bmap_last_extent+0x1d0/0x1d0 [ 551.015362] xfs_iomap_write_allocate+0x42b/0xa30 [ 551.020192] ? xfs_file_iomap_begin+0x1ed0/0x1ed0 [ 551.025023] ? xfs_iunlock+0x248/0x3b0 [ 551.028905] ? rcu_read_lock_sched_held+0x16c/0x1d0 [ 551.033915] ? xfs_iunlock+0x21a/0x3b0 [ 551.037788] xfs_map_blocks+0x548/0x940 [ 551.041739] ? xfs_vm_set_page_dirty+0x610/0x610 [ 551.046473] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 551.051904] xfs_do_writepage+0x422/0x13d0 [ 551.056130] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 551.060440] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 551.065865] write_cache_pages+0x505/0xd20 [ 551.070074] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 551.074464] ? clear_page_dirty_for_io+0xb80/0xb80 [ 551.079378] ? trace_hardirqs_on+0x10/0x10 [ 551.083591] xfs_vm_writepages+0x258/0x340 [ 551.087802] ? xfs_vm_writepage+0xd0/0xd0 [ 551.091928] ? xfs_vm_writepage+0xd0/0xd0 [ 551.096057] do_writepages+0xc3/0x240 [ 551.099843] ? page_writeback_cpu_online+0x10/0x10 [ 551.104751] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 551.110176] __writeback_single_inode+0xda/0x1010 [ 551.115000] writeback_sb_inodes+0x48b/0xd30 [ 551.119392] ? wbc_detach_inode+0x780/0x780 [ 551.123687] ? queue_io+0x400/0x5a0 [ 551.127291] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 551.132721] wb_writeback+0x243/0xb80 [ 551.136506] ? writeback_inodes_wb.constprop.0+0x1a0/0x1a0 [ 551.142112] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 551.147534] wb_workfn+0x2bd/0xf50 [ 551.151056] ? process_one_work+0x6c4/0x14a0 [ 551.155444] ? inode_wait_for_writeback+0x30/0x30 [ 551.160266] ? lock_acquire+0x170/0x3f0 [ 551.164217] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 551.169641] process_one_work+0x793/0x14a0 [ 551.173864] ? work_busy+0x320/0x320 [ 551.177557] ? worker_thread+0x158/0xff0 [ 551.181607] ? _raw_spin_unlock_irq+0x24/0x80 [ 551.186079] worker_thread+0x5cc/0xff0 [ 551.189943] ? rescuer_thread+0xc80/0xc80 [ 551.194071] kthread+0x30d/0x420 [ 551.197431] ? kthread_create_on_node+0xd0/0xd0 [ 551.202072] ret_from_fork+0x24/0x30 [ 551.206290] XFS (loop1): page discard on page ffffea0001093f80, inode 0x29, offset 1708032. [ 551.215206] XFS (loop1): Internal error XFS_WANT_CORRUPTED_RETURN at line 431 of file fs/xfs/libxfs/xfs_alloc.c. Caller xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 551.229745] CPU: 1 PID: 2818 Comm: kworker/u4:3 Not tainted 4.14.303-syzkaller #0 [ 551.237354] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023 [ 551.246695] Workqueue: writeback wb_workfn (flush-7:1) [ 551.251948] Call Trace: [ 551.254515] dump_stack+0x1b2/0x281 [ 551.258126] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 551.263377] xfs_error_report+0x98/0xa0 [ 551.267326] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 551.272575] xfs_alloc_fixup_trees+0x425/0x4f0 [ 551.277131] ? xfs_alloc_update+0x90/0x90 [ 551.281255] ? xfs_btree_rec_offset.isra.0+0x3b/0xa0 [ 551.286332] ? xfs_alloc_compute_diff+0x23c/0x3d0 [ 551.291150] xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 551.296241] ? xfs_alloc_fix_freelist+0x685/0xeb0 [ 551.301066] ? xfs_alloc_ag_vextent_size+0x1ea0/0x1ea0 [ 551.306319] ? xfs_alloc_read_agf+0xb10/0xb10 [ 551.310797] xfs_alloc_ag_vextent+0x579/0x750 [ 551.315277] ? xfs_perag_get+0x116/0x410 [ 551.319322] ? xfs_alloc_vextent+0x470/0x2010 [ 551.323798] xfs_alloc_vextent+0x10b0/0x2010 [ 551.328192] xfs_bmap_btalloc+0x9e5/0x1b20 [ 551.332410] ? xfs_bmap_adjacent+0x1480/0x1480 [ 551.336974] ? ret_from_fork+0x24/0x30 [ 551.340853] ? __xfs_bmbt_get_all+0x16/0x100 [ 551.345253] xfs_bmap_alloc+0x107/0x160 [ 551.349201] xfs_bmapi_write+0xa49/0x1d00 [ 551.353327] ? xfs_bmapi_reserve_delalloc+0x7c0/0x7c0 [ 551.358492] ? trace_hardirqs_on+0x10/0x10 [ 551.362709] ? xfs_iext_get_ext+0xeb/0x200 [ 551.366929] ? xfs_iext_idx_to_irec+0x340/0x340 [ 551.371587] ? xfs_bmap_last_extent+0x1d0/0x1d0 [ 551.376241] xfs_iomap_write_allocate+0x42b/0xa30 [ 551.381084] ? xfs_file_iomap_begin+0x1ed0/0x1ed0 [ 551.385900] ? xfs_iunlock+0x248/0x3b0 [ 551.389770] ? rcu_read_lock_sched_held+0x16c/0x1d0 [ 551.394767] ? xfs_iunlock+0x21a/0x3b0 [ 551.398635] xfs_map_blocks+0x548/0x940 [ 551.402597] ? xfs_vm_set_page_dirty+0x610/0x610 [ 551.407338] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 551.412776] xfs_do_writepage+0x422/0x13d0 [ 551.417003] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 551.421310] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 551.426743] write_cache_pages+0x505/0xd20 [ 551.430954] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 551.435259] ? clear_page_dirty_for_io+0xb80/0xb80 [ 551.440180] ? trace_hardirqs_on+0x10/0x10 [ 551.444392] xfs_vm_writepages+0x258/0x340 [ 551.448599] ? xfs_vm_writepage+0xd0/0xd0 [ 551.452724] ? xfs_vm_writepage+0xd0/0xd0 [ 551.456851] do_writepages+0xc3/0x240 [ 551.460634] ? page_writeback_cpu_online+0x10/0x10 [ 551.465540] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 551.470977] __writeback_single_inode+0xda/0x1010 [ 551.475805] writeback_sb_inodes+0x48b/0xd30 [ 551.480196] ? wbc_detach_inode+0x780/0x780 [ 551.484499] ? queue_io+0x400/0x5a0 [ 551.488106] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 551.493535] wb_writeback+0x243/0xb80 [ 551.497318] ? writeback_inodes_wb.constprop.0+0x1a0/0x1a0 [ 551.502919] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 551.508342] wb_workfn+0x2bd/0xf50 [ 551.511863] ? process_one_work+0x6c4/0x14a0 [ 551.516251] ? inode_wait_for_writeback+0x30/0x30 [ 551.521076] ? lock_acquire+0x170/0x3f0 [ 551.525026] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 551.530463] process_one_work+0x793/0x14a0 [ 551.534685] ? work_busy+0x320/0x320 [ 551.538379] ? worker_thread+0x158/0xff0 [ 551.542415] ? _raw_spin_unlock_irq+0x24/0x80 [ 551.546886] worker_thread+0x5cc/0xff0 [ 551.550751] ? rescuer_thread+0xc80/0xc80 [ 551.554882] kthread+0x30d/0x420 [ 551.558227] ? kthread_create_on_node+0xd0/0xd0 [ 551.562889] ret_from_fork+0x24/0x30 [ 551.566991] XFS (loop1): page discard on page ffffea0001093fc0, inode 0x29, offset 1712128. [ 551.575908] XFS (loop1): Internal error XFS_WANT_CORRUPTED_RETURN at line 431 of file fs/xfs/libxfs/xfs_alloc.c. Caller xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 551.590461] CPU: 1 PID: 2818 Comm: kworker/u4:3 Not tainted 4.14.303-syzkaller #0 [ 551.598070] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023 [ 551.607416] Workqueue: writeback wb_workfn (flush-7:1) [ 551.612669] Call Trace: [ 551.615237] dump_stack+0x1b2/0x281 [ 551.618853] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 551.624107] xfs_error_report+0x98/0xa0 [ 551.628052] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 551.633304] xfs_alloc_fixup_trees+0x425/0x4f0 [ 551.637865] ? xfs_alloc_update+0x90/0x90 [ 551.641988] ? xfs_btree_rec_offset.isra.0+0x3b/0xa0 [ 551.647065] ? xfs_alloc_compute_diff+0x23c/0x3d0 [ 551.651882] xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 551.656982] ? xfs_alloc_fix_freelist+0x685/0xeb0 [ 551.661805] ? xfs_alloc_ag_vextent_size+0x1ea0/0x1ea0 [ 551.667055] ? xfs_alloc_read_agf+0xb10/0xb10 [ 551.671534] xfs_alloc_ag_vextent+0x579/0x750 [ 551.676008] ? xfs_perag_get+0x116/0x410 [ 551.680051] ? xfs_alloc_vextent+0x470/0x2010 [ 551.684538] xfs_alloc_vextent+0x10b0/0x2010 [ 551.688923] xfs_bmap_btalloc+0x9e5/0x1b20 [ 551.693135] ? xfs_bmap_adjacent+0x1480/0x1480 [ 551.697698] ? ret_from_fork+0x24/0x30 [ 551.701577] ? __xfs_bmbt_get_all+0x16/0x100 [ 551.705961] xfs_bmap_alloc+0x107/0x160 [ 551.709907] xfs_bmapi_write+0xa49/0x1d00 [ 551.714045] ? xfs_bmapi_reserve_delalloc+0x7c0/0x7c0 [ 551.719217] ? trace_hardirqs_on+0x10/0x10 [ 551.723427] ? xfs_iext_get_ext+0xeb/0x200 [ 551.727633] ? xfs_iext_idx_to_irec+0x340/0x340 [ 551.732277] ? xfs_bmap_last_extent+0x1d0/0x1d0 [ 551.736935] xfs_iomap_write_allocate+0x42b/0xa30 [ 551.741765] ? xfs_file_iomap_begin+0x1ed0/0x1ed0 [ 551.746596] ? xfs_iunlock+0x248/0x3b0 [ 551.750462] ? rcu_read_lock_sched_held+0x16c/0x1d0 [ 551.755456] ? xfs_iunlock+0x21a/0x3b0 [ 551.759324] xfs_map_blocks+0x548/0x940 [ 551.763271] ? xfs_vm_set_page_dirty+0x610/0x610 [ 551.768003] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 551.773426] xfs_do_writepage+0x422/0x13d0 [ 551.777640] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 551.781950] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 551.787397] write_cache_pages+0x505/0xd20 [ 551.791607] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 551.795912] ? clear_page_dirty_for_io+0xb80/0xb80 [ 551.800826] ? trace_hardirqs_on+0x10/0x10 [ 551.805049] xfs_vm_writepages+0x258/0x340 [ 551.809258] ? xfs_vm_writepage+0xd0/0xd0 [ 551.813382] ? xfs_vm_writepage+0xd0/0xd0 [ 551.817520] do_writepages+0xc3/0x240 [ 551.821295] ? page_writeback_cpu_online+0x10/0x10 [ 551.826203] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 551.831629] __writeback_single_inode+0xda/0x1010 [ 551.836454] writeback_sb_inodes+0x48b/0xd30 [ 551.840846] ? wbc_detach_inode+0x780/0x780 [ 551.845146] ? queue_io+0x400/0x5a0 [ 551.848747] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 551.854188] wb_writeback+0x243/0xb80 [ 551.857980] ? writeback_inodes_wb.constprop.0+0x1a0/0x1a0 [ 551.863592] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 551.869026] wb_workfn+0x2bd/0xf50 [ 551.872546] ? process_one_work+0x6c4/0x14a0 [ 551.876938] ? inode_wait_for_writeback+0x30/0x30 [ 551.881761] ? lock_acquire+0x170/0x3f0 [ 551.885727] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 551.891151] process_one_work+0x793/0x14a0 [ 551.895373] ? work_busy+0x320/0x320 [ 551.899065] ? worker_thread+0x158/0xff0 [ 551.903101] ? _raw_spin_unlock_irq+0x24/0x80 [ 551.907590] worker_thread+0x5cc/0xff0 [ 551.911457] ? rescuer_thread+0xc80/0xc80 [ 551.915583] kthread+0x30d/0x420 [ 551.918931] ? kthread_create_on_node+0xd0/0xd0 [ 551.923572] ret_from_fork+0x24/0x30 [ 551.927871] XFS (loop1): page discard on page ffffea0001094000, inode 0x29, offset 1716224. [ 551.936801] XFS (loop1): Internal error XFS_WANT_CORRUPTED_RETURN at line 431 of file fs/xfs/libxfs/xfs_alloc.c. Caller xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 551.951340] CPU: 1 PID: 2818 Comm: kworker/u4:3 Not tainted 4.14.303-syzkaller #0 [ 551.958945] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023 [ 551.968300] Workqueue: writeback wb_workfn (flush-7:1) [ 551.973554] Call Trace: [ 551.976127] dump_stack+0x1b2/0x281 [ 551.979756] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 551.987059] xfs_error_report+0x98/0xa0 [ 551.991004] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 551.996267] xfs_alloc_fixup_trees+0x425/0x4f0 [ 552.000834] ? xfs_alloc_update+0x90/0x90 [ 552.004956] ? xfs_btree_rec_offset.isra.0+0x3b/0xa0 [ 552.010031] ? xfs_alloc_compute_diff+0x23c/0x3d0 [ 552.014857] xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 552.019966] ? xfs_alloc_fix_freelist+0x685/0xeb0 [ 552.024788] ? xfs_alloc_ag_vextent_size+0x1ea0/0x1ea0 [ 552.030037] ? xfs_alloc_read_agf+0xb10/0xb10 [ 552.034530] xfs_alloc_ag_vextent+0x579/0x750 [ 552.039003] ? xfs_perag_get+0x116/0x410 [ 552.043036] ? xfs_alloc_vextent+0x470/0x2010 [ 552.047506] xfs_alloc_vextent+0x10b0/0x2010 [ 552.051891] xfs_bmap_btalloc+0x9e5/0x1b20 [ 552.056111] ? xfs_bmap_adjacent+0x1480/0x1480 [ 552.060677] ? ret_from_fork+0x24/0x30 [ 552.064545] ? __xfs_bmbt_get_all+0x16/0x100 [ 552.068928] xfs_bmap_alloc+0x107/0x160 [ 552.072874] xfs_bmapi_write+0xa49/0x1d00 [ 552.077011] ? xfs_bmapi_reserve_delalloc+0x7c0/0x7c0 [ 552.082180] ? trace_hardirqs_on+0x10/0x10 [ 552.086388] ? xfs_iext_get_ext+0xeb/0x200 [ 552.090611] ? xfs_iext_idx_to_irec+0x340/0x340 [ 552.095271] ? xfs_bmap_last_extent+0x1d0/0x1d0 [ 552.099932] xfs_iomap_write_allocate+0x42b/0xa30 [ 552.104755] ? xfs_file_iomap_begin+0x1ed0/0x1ed0 [ 552.109583] ? xfs_iunlock+0x248/0x3b0 [ 552.113449] ? rcu_read_lock_sched_held+0x16c/0x1d0 [ 552.118449] ? xfs_iunlock+0x21a/0x3b0 [ 552.122312] xfs_map_blocks+0x548/0x940 [ 552.126263] ? xfs_vm_set_page_dirty+0x610/0x610 [ 552.131010] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 552.136443] xfs_do_writepage+0x422/0x13d0 [ 552.140661] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 552.144961] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 552.150386] write_cache_pages+0x505/0xd20 [ 552.154603] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 552.158907] ? clear_page_dirty_for_io+0xb80/0xb80 [ 552.163815] ? trace_hardirqs_on+0x10/0x10 [ 552.168025] xfs_vm_writepages+0x258/0x340 [ 552.172234] ? xfs_vm_writepage+0xd0/0xd0 [ 552.176371] ? xfs_vm_writepage+0xd0/0xd0 [ 552.180498] do_writepages+0xc3/0x240 [ 552.184278] ? page_writeback_cpu_online+0x10/0x10 [ 552.189181] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 552.194612] __writeback_single_inode+0xda/0x1010 [ 552.199435] writeback_sb_inodes+0x48b/0xd30 [ 552.203819] ? wbc_detach_inode+0x780/0x780 [ 552.208130] ? queue_io+0x400/0x5a0 [ 552.211728] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 552.217152] wb_writeback+0x243/0xb80 [ 552.220931] ? writeback_inodes_wb.constprop.0+0x1a0/0x1a0 [ 552.226528] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 552.231948] wb_workfn+0x2bd/0xf50 [ 552.235467] ? process_one_work+0x6c4/0x14a0 [ 552.239858] ? inode_wait_for_writeback+0x30/0x30 [ 552.244673] ? lock_acquire+0x170/0x3f0 [ 552.248624] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 552.254056] process_one_work+0x793/0x14a0 [ 552.258279] ? work_busy+0x320/0x320 [ 552.261964] ? worker_thread+0x158/0xff0 [ 552.265999] ? _raw_spin_unlock_irq+0x24/0x80 [ 552.270468] worker_thread+0x5cc/0xff0 [ 552.274343] ? rescuer_thread+0xc80/0xc80 [ 552.278471] kthread+0x30d/0x420 [ 552.281809] ? kthread_create_on_node+0xd0/0xd0 [ 552.286451] ret_from_fork+0x24/0x30 [ 552.290783] XFS (loop1): page discard on page ffffea0001094040, inode 0x29, offset 1720320. [ 552.299672] XFS (loop1): Internal error XFS_WANT_CORRUPTED_RETURN at line 431 of file fs/xfs/libxfs/xfs_alloc.c. Caller xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 552.314205] CPU: 1 PID: 2818 Comm: kworker/u4:3 Not tainted 4.14.303-syzkaller #0 [ 552.321835] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023 [ 552.331190] Workqueue: writeback wb_workfn (flush-7:1) [ 552.336443] Call Trace: [ 552.339007] dump_stack+0x1b2/0x281 [ 552.342611] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 552.347861] xfs_error_report+0x98/0xa0 [ 552.351808] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 552.357060] xfs_alloc_fixup_trees+0x425/0x4f0 [ 552.361616] ? xfs_alloc_update+0x90/0x90 [ 552.365740] ? xfs_btree_rec_offset.isra.0+0x3b/0xa0 [ 552.370824] ? xfs_alloc_compute_diff+0x23c/0x3d0 [ 552.375647] xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 552.380724] ? xfs_alloc_fix_freelist+0x685/0xeb0 [ 552.385550] ? xfs_alloc_ag_vextent_size+0x1ea0/0x1ea0 [ 552.390806] ? xfs_alloc_read_agf+0xb10/0xb10 [ 552.395283] xfs_alloc_ag_vextent+0x579/0x750 [ 552.399752] ? xfs_perag_get+0x116/0x410 [ 552.403788] ? xfs_alloc_vextent+0x470/0x2010 [ 552.408283] xfs_alloc_vextent+0x10b0/0x2010 [ 552.412673] xfs_bmap_btalloc+0x9e5/0x1b20 [ 552.416883] ? xfs_bmap_adjacent+0x1480/0x1480 [ 552.421452] ? ret_from_fork+0x24/0x30 [ 552.425334] ? __xfs_bmbt_get_all+0x16/0x100 [ 552.429723] xfs_bmap_alloc+0x107/0x160 [ 552.433677] xfs_bmapi_write+0xa49/0x1d00 [ 552.437809] ? xfs_bmapi_reserve_delalloc+0x7c0/0x7c0 [ 552.442980] ? trace_hardirqs_on+0x10/0x10 [ 552.447191] ? xfs_iext_get_ext+0xeb/0x200 [ 552.451416] ? xfs_iext_idx_to_irec+0x340/0x340 [ 552.456071] ? xfs_bmap_last_extent+0x1d0/0x1d0 [ 552.460716] xfs_iomap_write_allocate+0x42b/0xa30 [ 552.465549] ? xfs_file_iomap_begin+0x1ed0/0x1ed0 [ 552.470370] ? xfs_iunlock+0x248/0x3b0 [ 552.474240] ? rcu_read_lock_sched_held+0x16c/0x1d0 [ 552.479229] ? xfs_iunlock+0x21a/0x3b0 [ 552.483091] xfs_map_blocks+0x548/0x940 [ 552.487042] ? xfs_vm_set_page_dirty+0x610/0x610 [ 552.491774] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 552.497199] xfs_do_writepage+0x422/0x13d0 [ 552.501412] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 552.505717] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 552.511149] write_cache_pages+0x505/0xd20 [ 552.515359] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 552.519671] ? clear_page_dirty_for_io+0xb80/0xb80 [ 552.524591] ? trace_hardirqs_on+0x10/0x10 [ 552.528806] xfs_vm_writepages+0x258/0x340 [ 552.533014] ? xfs_vm_writepage+0xd0/0xd0 [ 552.537157] ? xfs_vm_writepage+0xd0/0xd0 [ 552.541276] do_writepages+0xc3/0x240 [ 552.545061] ? page_writeback_cpu_online+0x10/0x10 [ 552.549972] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 552.555397] __writeback_single_inode+0xda/0x1010 [ 552.560217] writeback_sb_inodes+0x48b/0xd30 [ 552.564615] ? wbc_detach_inode+0x780/0x780 [ 552.568919] ? queue_io+0x400/0x5a0 [ 552.572521] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 552.577958] wb_writeback+0x243/0xb80 [ 552.581734] ? writeback_inodes_wb.constprop.0+0x1a0/0x1a0 [ 552.587334] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 552.592757] wb_workfn+0x2bd/0xf50 [ 552.596272] ? process_one_work+0x6c4/0x14a0 [ 552.600654] ? inode_wait_for_writeback+0x30/0x30 [ 552.605477] ? lock_acquire+0x170/0x3f0 [ 552.609433] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 552.614856] process_one_work+0x793/0x14a0 [ 552.619084] ? work_busy+0x320/0x320 [ 552.622768] ? worker_thread+0x158/0xff0 [ 552.626808] ? _raw_spin_unlock_irq+0x24/0x80 [ 552.631285] worker_thread+0x5cc/0xff0 [ 552.635154] ? rescuer_thread+0xc80/0xc80 [ 552.639275] kthread+0x30d/0x420 [ 552.642615] ? kthread_create_on_node+0xd0/0xd0 [ 552.647258] ret_from_fork+0x24/0x30 [ 552.651376] XFS (loop1): page discard on page ffffea0001094080, inode 0x29, offset 1724416. [ 552.660258] XFS (loop1): Internal error XFS_WANT_CORRUPTED_RETURN at line 431 of file fs/xfs/libxfs/xfs_alloc.c. Caller xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 552.674796] CPU: 1 PID: 2818 Comm: kworker/u4:3 Not tainted 4.14.303-syzkaller #0 [ 552.682406] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023 [ 552.691753] Workqueue: writeback wb_workfn (flush-7:1) [ 552.697013] Call Trace: [ 552.699577] dump_stack+0x1b2/0x281 [ 552.703177] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 552.708432] xfs_error_report+0x98/0xa0 [ 552.712379] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 552.717641] xfs_alloc_fixup_trees+0x425/0x4f0 [ 552.722214] ? xfs_alloc_update+0x90/0x90 [ 552.726341] ? xfs_btree_rec_offset.isra.0+0x3b/0xa0 [ 552.731428] ? xfs_alloc_compute_diff+0x23c/0x3d0 [ 552.736247] xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 552.741330] ? xfs_alloc_fix_freelist+0x685/0xeb0 [ 552.746151] ? xfs_alloc_ag_vextent_size+0x1ea0/0x1ea0 [ 552.751429] ? xfs_alloc_read_agf+0xb10/0xb10 [ 552.755921] xfs_alloc_ag_vextent+0x579/0x750 [ 552.760391] ? xfs_perag_get+0x116/0x410 [ 552.764430] ? xfs_alloc_vextent+0x470/0x2010 [ 552.768936] xfs_alloc_vextent+0x10b0/0x2010 [ 552.773324] xfs_bmap_btalloc+0x9e5/0x1b20 [ 552.777537] ? xfs_bmap_adjacent+0x1480/0x1480 [ 552.782090] ? ret_from_fork+0x24/0x30 [ 552.785971] ? __xfs_bmbt_get_all+0x16/0x100 [ 552.790363] xfs_bmap_alloc+0x107/0x160 [ 552.794311] xfs_bmapi_write+0xa49/0x1d00 [ 552.798434] ? xfs_bmapi_reserve_delalloc+0x7c0/0x7c0 [ 552.803603] ? trace_hardirqs_on+0x10/0x10 [ 552.807820] ? xfs_iext_get_ext+0xeb/0x200 [ 552.812028] ? xfs_iext_idx_to_irec+0x340/0x340 [ 552.816675] ? xfs_bmap_last_extent+0x1d0/0x1d0 [ 552.821321] xfs_iomap_write_allocate+0x42b/0xa30 [ 552.826152] ? xfs_file_iomap_begin+0x1ed0/0x1ed0 [ 552.830976] ? xfs_iunlock+0x248/0x3b0 [ 552.834844] ? rcu_read_lock_sched_held+0x16c/0x1d0 [ 552.839850] ? xfs_iunlock+0x21a/0x3b0 [ 552.843719] xfs_map_blocks+0x548/0x940 [ 552.847676] ? xfs_vm_set_page_dirty+0x610/0x610 [ 552.852405] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 552.857843] xfs_do_writepage+0x422/0x13d0 [ 552.862052] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 552.866360] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 552.871794] write_cache_pages+0x505/0xd20 [ 552.876117] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 552.880434] ? clear_page_dirty_for_io+0xb80/0xb80 [ 552.885354] ? trace_hardirqs_on+0x10/0x10 [ 552.889573] xfs_vm_writepages+0x258/0x340 [ 552.893785] ? xfs_vm_writepage+0xd0/0xd0 [ 552.897918] ? xfs_vm_writepage+0xd0/0xd0 [ 552.902044] do_writepages+0xc3/0x240 [ 552.905829] ? page_writeback_cpu_online+0x10/0x10 [ 552.910742] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 552.916170] __writeback_single_inode+0xda/0x1010 [ 552.921014] writeback_sb_inodes+0x48b/0xd30 [ 552.925408] ? wbc_detach_inode+0x780/0x780 [ 552.929713] ? queue_io+0x400/0x5a0 [ 552.933318] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 552.938744] wb_writeback+0x243/0xb80 [ 552.942520] ? writeback_inodes_wb.constprop.0+0x1a0/0x1a0 [ 552.948141] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 552.953589] wb_workfn+0x2bd/0xf50 [ 552.957131] ? process_one_work+0x6c4/0x14a0 [ 552.961518] ? inode_wait_for_writeback+0x30/0x30 [ 552.966345] ? lock_acquire+0x170/0x3f0 [ 552.970304] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 552.975729] process_one_work+0x793/0x14a0 [ 552.979939] ? work_busy+0x320/0x320 [ 552.983628] ? worker_thread+0x158/0xff0 [ 552.987672] ? _raw_spin_unlock_irq+0x24/0x80 [ 552.992142] worker_thread+0x5cc/0xff0 [ 552.996005] ? rescuer_thread+0xc80/0xc80 [ 553.000124] kthread+0x30d/0x420 [ 553.003468] ? kthread_create_on_node+0xd0/0xd0 [ 553.008121] ret_from_fork+0x24/0x30 [ 553.012574] XFS (loop1): page discard on page ffffea00010940c0, inode 0x29, offset 1728512. [ 553.021477] XFS (loop1): Internal error XFS_WANT_CORRUPTED_RETURN at line 431 of file fs/xfs/libxfs/xfs_alloc.c. Caller xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 553.036010] CPU: 1 PID: 2818 Comm: kworker/u4:3 Not tainted 4.14.303-syzkaller #0 [ 553.043623] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023 [ 553.052965] Workqueue: writeback wb_workfn (flush-7:1) [ 553.058221] Call Trace: [ 553.060795] dump_stack+0x1b2/0x281 [ 553.064405] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 553.069665] xfs_error_report+0x98/0xa0 [ 553.073611] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 553.078862] xfs_alloc_fixup_trees+0x425/0x4f0 [ 553.083419] ? xfs_alloc_update+0x90/0x90 [ 553.087549] ? xfs_btree_rec_offset.isra.0+0x3b/0xa0 [ 553.092629] ? xfs_alloc_compute_diff+0x23c/0x3d0 [ 553.097443] xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 553.102522] ? xfs_alloc_fix_freelist+0x685/0xeb0 [ 553.107356] ? xfs_alloc_ag_vextent_size+0x1ea0/0x1ea0 [ 553.112605] ? xfs_alloc_read_agf+0xb10/0xb10 [ 553.117083] xfs_alloc_ag_vextent+0x579/0x750 [ 553.121554] ? xfs_perag_get+0x116/0x410 [ 553.125595] ? xfs_alloc_vextent+0x470/0x2010 [ 553.130073] xfs_alloc_vextent+0x10b0/0x2010 [ 553.134458] xfs_bmap_btalloc+0x9e5/0x1b20 [ 553.138669] ? xfs_bmap_adjacent+0x1480/0x1480 [ 553.143221] ? ret_from_fork+0x24/0x30 [ 553.147092] ? __xfs_bmbt_get_all+0x16/0x100 [ 553.151475] xfs_bmap_alloc+0x107/0x160 [ 553.155422] xfs_bmapi_write+0xa49/0x1d00 [ 553.159554] ? xfs_bmapi_reserve_delalloc+0x7c0/0x7c0 [ 553.164724] ? trace_hardirqs_on+0x10/0x10 [ 553.168942] ? xfs_iext_get_ext+0xeb/0x200 [ 553.173149] ? xfs_iext_idx_to_irec+0x340/0x340 [ 553.177794] ? xfs_bmap_last_extent+0x1d0/0x1d0 [ 553.182456] xfs_iomap_write_allocate+0x42b/0xa30 [ 553.187297] ? xfs_file_iomap_begin+0x1ed0/0x1ed0 [ 553.192110] ? xfs_iunlock+0x248/0x3b0 [ 553.195980] ? rcu_read_lock_sched_held+0x16c/0x1d0 [ 553.200979] ? xfs_iunlock+0x21a/0x3b0 [ 553.204852] xfs_map_blocks+0x548/0x940 [ 553.208834] ? xfs_vm_set_page_dirty+0x610/0x610 [ 553.213579] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 553.219030] xfs_do_writepage+0x422/0x13d0 [ 553.223258] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 553.227563] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 553.232993] write_cache_pages+0x505/0xd20 [ 553.237206] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 553.241597] ? clear_page_dirty_for_io+0xb80/0xb80 [ 553.246514] ? trace_hardirqs_on+0x10/0x10 [ 553.250739] xfs_vm_writepages+0x258/0x340 [ 553.254952] ? xfs_vm_writepage+0xd0/0xd0 [ 553.259078] ? xfs_vm_writepage+0xd0/0xd0 [ 553.263199] do_writepages+0xc3/0x240 [ 553.266985] ? page_writeback_cpu_online+0x10/0x10 [ 553.271897] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 553.277342] __writeback_single_inode+0xda/0x1010 [ 553.282160] writeback_sb_inodes+0x48b/0xd30 [ 553.286562] ? wbc_detach_inode+0x780/0x780 [ 553.290866] ? queue_io+0x400/0x5a0 [ 553.294474] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 553.299920] wb_writeback+0x243/0xb80 [ 553.303708] ? writeback_inodes_wb.constprop.0+0x1a0/0x1a0 [ 553.309312] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 553.314735] wb_workfn+0x2bd/0xf50 [ 553.318252] ? process_one_work+0x6c4/0x14a0 [ 553.322640] ? inode_wait_for_writeback+0x30/0x30 [ 553.327457] ? lock_acquire+0x170/0x3f0 [ 553.331405] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 553.336829] process_one_work+0x793/0x14a0 [ 553.341043] ? work_busy+0x320/0x320 [ 553.344737] ? worker_thread+0x158/0xff0 [ 553.348780] ? _raw_spin_unlock_irq+0x24/0x80 [ 553.353254] worker_thread+0x5cc/0xff0 [ 553.357121] ? rescuer_thread+0xc80/0xc80 [ 553.361241] kthread+0x30d/0x420 [ 553.364603] ? kthread_create_on_node+0xd0/0xd0 [ 553.369267] ret_from_fork+0x24/0x30 [ 553.373502] XFS (loop1): page discard on page ffffea0001094100, inode 0x29, offset 1732608. [ 553.382380] XFS (loop1): Internal error XFS_WANT_CORRUPTED_RETURN at line 431 of file fs/xfs/libxfs/xfs_alloc.c. Caller xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 553.396930] CPU: 1 PID: 2818 Comm: kworker/u4:3 Not tainted 4.14.303-syzkaller #0 [ 553.404545] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023 [ 553.413913] Workqueue: writeback wb_workfn (flush-7:1) [ 553.419167] Call Trace: [ 553.421730] dump_stack+0x1b2/0x281 [ 553.425338] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 553.430603] xfs_error_report+0x98/0xa0 [ 553.434552] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 553.439805] xfs_alloc_fixup_trees+0x425/0x4f0 [ 553.444370] ? xfs_alloc_update+0x90/0x90 [ 553.448500] ? xfs_btree_rec_offset.isra.0+0x3b/0xa0 [ 553.453640] ? xfs_alloc_compute_diff+0x23c/0x3d0 [ 553.458467] xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 553.463561] ? xfs_alloc_fix_freelist+0x685/0xeb0 [ 553.468393] ? xfs_alloc_ag_vextent_size+0x1ea0/0x1ea0 [ 553.473661] ? xfs_alloc_read_agf+0xb10/0xb10 [ 553.478236] xfs_alloc_ag_vextent+0x579/0x750 [ 553.482706] ? xfs_perag_get+0x116/0x410 [ 553.486747] ? xfs_alloc_vextent+0x470/0x2010 [ 553.491222] xfs_alloc_vextent+0x10b0/0x2010 [ 553.495635] xfs_bmap_btalloc+0x9e5/0x1b20 [ 553.499849] ? xfs_bmap_adjacent+0x1480/0x1480 [ 553.504411] ? ret_from_fork+0x24/0x30 [ 553.508288] ? __xfs_bmbt_get_all+0x16/0x100 [ 553.512671] xfs_bmap_alloc+0x107/0x160 [ 553.516619] xfs_bmapi_write+0xa49/0x1d00 [ 553.520746] ? xfs_bmapi_reserve_delalloc+0x7c0/0x7c0 [ 553.526004] ? trace_hardirqs_on+0x10/0x10 [ 553.530221] ? xfs_iext_get_ext+0xeb/0x200 [ 553.534433] ? xfs_iext_idx_to_irec+0x340/0x340 [ 553.539087] ? xfs_bmap_last_extent+0x1d0/0x1d0 [ 553.543742] xfs_iomap_write_allocate+0x42b/0xa30 [ 553.548572] ? xfs_file_iomap_begin+0x1ed0/0x1ed0 [ 553.553409] ? xfs_iunlock+0x248/0x3b0 [ 553.557290] ? rcu_read_lock_sched_held+0x16c/0x1d0 [ 553.562288] ? xfs_iunlock+0x21a/0x3b0 [ 553.566162] xfs_map_blocks+0x548/0x940 [ 553.570123] ? xfs_vm_set_page_dirty+0x610/0x610 [ 553.574856] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 553.580282] xfs_do_writepage+0x422/0x13d0 [ 553.584506] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 553.588810] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 553.594248] write_cache_pages+0x505/0xd20 [ 553.598470] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 553.602764] ? clear_page_dirty_for_io+0xb80/0xb80 [ 553.607674] ? trace_hardirqs_on+0x10/0x10 [ 553.611886] xfs_vm_writepages+0x258/0x340 [ 553.616095] ? xfs_vm_writepage+0xd0/0xd0 [ 553.620220] ? xfs_vm_writepage+0xd0/0xd0 [ 553.624347] do_writepages+0xc3/0x240 [ 553.628138] ? page_writeback_cpu_online+0x10/0x10 [ 553.633061] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 553.638497] __writeback_single_inode+0xda/0x1010 [ 553.643321] writeback_sb_inodes+0x48b/0xd30 [ 553.647710] ? wbc_detach_inode+0x780/0x780 [ 553.652008] ? queue_io+0x400/0x5a0 [ 553.655610] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 553.661039] wb_writeback+0x243/0xb80 [ 553.664827] ? writeback_inodes_wb.constprop.0+0x1a0/0x1a0 [ 553.670434] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 553.675858] wb_workfn+0x2bd/0xf50 [ 553.679376] ? process_one_work+0x6c4/0x14a0 [ 553.683765] ? inode_wait_for_writeback+0x30/0x30 [ 553.688588] ? lock_acquire+0x170/0x3f0 [ 553.692537] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 553.697967] process_one_work+0x793/0x14a0 [ 553.702181] ? work_busy+0x320/0x320 [ 553.705876] ? worker_thread+0x158/0xff0 [ 553.709935] ? _raw_spin_unlock_irq+0x24/0x80 [ 553.714406] worker_thread+0x5cc/0xff0 [ 553.718288] ? rescuer_thread+0xc80/0xc80 [ 553.722427] kthread+0x30d/0x420 [ 553.725781] ? kthread_create_on_node+0xd0/0xd0 [ 553.730436] ret_from_fork+0x24/0x30 [ 553.734558] XFS (loop1): page discard on page ffffea0001094140, inode 0x29, offset 1736704. [ 553.743485] XFS (loop1): Internal error XFS_WANT_CORRUPTED_RETURN at line 431 of file fs/xfs/libxfs/xfs_alloc.c. Caller xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 553.758016] CPU: 1 PID: 2818 Comm: kworker/u4:3 Not tainted 4.14.303-syzkaller #0 [ 553.765630] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023 [ 553.775009] Workqueue: writeback wb_workfn (flush-7:1) [ 553.780263] Call Trace: [ 553.782840] dump_stack+0x1b2/0x281 [ 553.786452] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 553.791710] xfs_error_report+0x98/0xa0 [ 553.795662] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 553.800915] xfs_alloc_fixup_trees+0x425/0x4f0 [ 553.805482] ? xfs_alloc_update+0x90/0x90 [ 553.809611] ? xfs_btree_rec_offset.isra.0+0x3b/0xa0 [ 553.814688] ? xfs_alloc_compute_diff+0x23c/0x3d0 [ 553.819501] xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 553.824593] ? xfs_alloc_fix_freelist+0x685/0xeb0 [ 553.829417] ? xfs_alloc_ag_vextent_size+0x1ea0/0x1ea0 [ 553.834668] ? xfs_alloc_read_agf+0xb10/0xb10 [ 553.839162] xfs_alloc_ag_vextent+0x579/0x750 [ 553.843637] ? xfs_perag_get+0x116/0x410 [ 553.847681] ? xfs_alloc_vextent+0x470/0x2010 [ 553.852194] xfs_alloc_vextent+0x10b0/0x2010 [ 553.856582] xfs_bmap_btalloc+0x9e5/0x1b20 [ 553.860794] ? xfs_bmap_adjacent+0x1480/0x1480 [ 553.865356] ? ret_from_fork+0x24/0x30 [ 553.869229] ? __xfs_bmbt_get_all+0x16/0x100 [ 553.873615] xfs_bmap_alloc+0x107/0x160 [ 553.877568] xfs_bmapi_write+0xa49/0x1d00 [ 553.881698] ? xfs_bmapi_reserve_delalloc+0x7c0/0x7c0 [ 553.886878] ? trace_hardirqs_on+0x10/0x10 [ 553.891094] ? xfs_iext_get_ext+0xeb/0x200 [ 553.895302] ? xfs_iext_idx_to_irec+0x340/0x340 [ 553.899961] ? xfs_bmap_last_extent+0x1d0/0x1d0 [ 553.904622] xfs_iomap_write_allocate+0x42b/0xa30 [ 553.909453] ? xfs_file_iomap_begin+0x1ed0/0x1ed0 [ 553.914273] ? xfs_iunlock+0x248/0x3b0 [ 553.918146] ? rcu_read_lock_sched_held+0x16c/0x1d0 [ 553.923140] ? xfs_iunlock+0x21a/0x3b0 [ 553.927005] xfs_map_blocks+0x548/0x940 [ 553.930957] ? xfs_vm_set_page_dirty+0x610/0x610 [ 553.935688] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 553.941112] xfs_do_writepage+0x422/0x13d0 [ 553.945332] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 553.949635] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 553.955064] write_cache_pages+0x505/0xd20 [ 553.959273] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 553.963576] ? clear_page_dirty_for_io+0xb80/0xb80 [ 553.968492] ? trace_hardirqs_on+0x10/0x10 [ 553.972702] xfs_vm_writepages+0x258/0x340 [ 553.976912] ? xfs_vm_writepage+0xd0/0xd0 [ 553.981035] ? xfs_vm_writepage+0xd0/0xd0 [ 553.985163] do_writepages+0xc3/0x240 [ 553.988947] ? page_writeback_cpu_online+0x10/0x10 [ 553.993861] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 553.999310] __writeback_single_inode+0xda/0x1010 [ 554.004137] writeback_sb_inodes+0x48b/0xd30 [ 554.008531] ? wbc_detach_inode+0x780/0x780 [ 554.012826] ? queue_io+0x400/0x5a0 [ 554.016431] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 554.021857] wb_writeback+0x243/0xb80 [ 554.025650] ? writeback_inodes_wb.constprop.0+0x1a0/0x1a0 [ 554.031261] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 554.036683] wb_workfn+0x2bd/0xf50 [ 554.040200] ? process_one_work+0x6c4/0x14a0 [ 554.044591] ? inode_wait_for_writeback+0x30/0x30 [ 554.049427] ? lock_acquire+0x170/0x3f0 [ 554.053374] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 554.058799] process_one_work+0x793/0x14a0 [ 554.063009] ? work_busy+0x320/0x320 [ 554.066700] ? worker_thread+0x158/0xff0 [ 554.070740] ? _raw_spin_unlock_irq+0x24/0x80 [ 554.075213] worker_thread+0x5cc/0xff0 [ 554.079079] ? rescuer_thread+0xc80/0xc80 [ 554.083198] kthread+0x30d/0x420 [ 554.086542] ? kthread_create_on_node+0xd0/0xd0 [ 554.091193] ret_from_fork+0x24/0x30 [ 554.095468] XFS (loop1): page discard on page ffffea0001094180, inode 0x29, offset 1740800. [ 554.104352] XFS (loop1): Internal error XFS_WANT_CORRUPTED_RETURN at line 431 of file fs/xfs/libxfs/xfs_alloc.c. Caller xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 554.118913] CPU: 1 PID: 2818 Comm: kworker/u4:3 Not tainted 4.14.303-syzkaller #0 [ 554.126526] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023 [ 554.135880] Workqueue: writeback wb_workfn (flush-7:1) [ 554.141145] Call Trace: [ 554.143717] dump_stack+0x1b2/0x281 [ 554.147327] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 554.152576] xfs_error_report+0x98/0xa0 [ 554.156537] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 554.161789] xfs_alloc_fixup_trees+0x425/0x4f0 [ 554.166354] ? xfs_alloc_update+0x90/0x90 [ 554.170482] ? xfs_btree_rec_offset.isra.0+0x3b/0xa0 [ 554.175565] ? xfs_alloc_compute_diff+0x23c/0x3d0 [ 554.180383] xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 554.185472] ? xfs_alloc_fix_freelist+0x685/0xeb0 [ 554.190292] ? xfs_alloc_ag_vextent_size+0x1ea0/0x1ea0 [ 554.195551] ? xfs_alloc_read_agf+0xb10/0xb10 [ 554.200025] xfs_alloc_ag_vextent+0x579/0x750 [ 554.204500] ? xfs_perag_get+0x116/0x410 [ 554.208543] ? xfs_alloc_vextent+0x470/0x2010 [ 554.213029] xfs_alloc_vextent+0x10b0/0x2010 [ 554.217415] xfs_bmap_btalloc+0x9e5/0x1b20 [ 554.221631] ? xfs_bmap_adjacent+0x1480/0x1480 [ 554.226191] ? ret_from_fork+0x24/0x30 [ 554.230084] ? __xfs_bmbt_get_all+0x16/0x100 [ 554.234467] xfs_bmap_alloc+0x107/0x160 [ 554.238416] xfs_bmapi_write+0xa49/0x1d00 [ 554.242542] ? xfs_bmapi_reserve_delalloc+0x7c0/0x7c0 [ 554.247707] ? trace_hardirqs_on+0x10/0x10 [ 554.251916] ? xfs_iext_get_ext+0xeb/0x200 [ 554.256122] ? xfs_iext_idx_to_irec+0x340/0x340 [ 554.260772] ? xfs_bmap_last_extent+0x1d0/0x1d0 [ 554.265517] xfs_iomap_write_allocate+0x42b/0xa30 [ 554.270345] ? xfs_file_iomap_begin+0x1ed0/0x1ed0 [ 554.275163] ? xfs_iunlock+0x248/0x3b0 [ 554.279031] ? rcu_read_lock_sched_held+0x16c/0x1d0 [ 554.284026] ? xfs_iunlock+0x21a/0x3b0 [ 554.287914] xfs_map_blocks+0x548/0x940 [ 554.291862] ? xfs_vm_set_page_dirty+0x610/0x610 [ 554.296592] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 554.302015] xfs_do_writepage+0x422/0x13d0 [ 554.306236] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 554.310539] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 554.315963] write_cache_pages+0x505/0xd20 [ 554.320172] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 554.324487] ? clear_page_dirty_for_io+0xb80/0xb80 [ 554.329399] ? trace_hardirqs_on+0x10/0x10 [ 554.333620] xfs_vm_writepages+0x258/0x340 [ 554.337835] ? xfs_vm_writepage+0xd0/0xd0 [ 554.341960] ? xfs_vm_writepage+0xd0/0xd0 [ 554.346086] do_writepages+0xc3/0x240 [ 554.349869] ? page_writeback_cpu_online+0x10/0x10 [ 554.354776] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 554.360213] __writeback_single_inode+0xda/0x1010 [ 554.365038] writeback_sb_inodes+0x48b/0xd30 [ 554.369429] ? wbc_detach_inode+0x780/0x780 [ 554.373725] ? queue_io+0x400/0x5a0 [ 554.377341] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 554.382764] wb_writeback+0x243/0xb80 [ 554.386552] ? writeback_inodes_wb.constprop.0+0x1a0/0x1a0 [ 554.392157] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 554.397580] wb_workfn+0x2bd/0xf50 [ 554.401097] ? process_one_work+0x6c4/0x14a0 [ 554.405487] ? inode_wait_for_writeback+0x30/0x30 [ 554.410309] ? lock_acquire+0x170/0x3f0 [ 554.414268] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 554.419698] process_one_work+0x793/0x14a0 [ 554.423915] ? work_busy+0x320/0x320 [ 554.427614] ? worker_thread+0x158/0xff0 [ 554.431647] ? _raw_spin_unlock_irq+0x24/0x80 [ 554.436117] worker_thread+0x5cc/0xff0 [ 554.439982] ? rescuer_thread+0xc80/0xc80 [ 554.444110] kthread+0x30d/0x420 [ 554.447456] ? kthread_create_on_node+0xd0/0xd0 [ 554.452096] ret_from_fork+0x24/0x30 [ 554.456140] XFS (loop1): page discard on page ffffea00010941c0, inode 0x29, offset 1744896. [ 554.465083] XFS (loop1): Internal error XFS_WANT_CORRUPTED_RETURN at line 431 of file fs/xfs/libxfs/xfs_alloc.c. Caller xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 554.479639] CPU: 1 PID: 2818 Comm: kworker/u4:3 Not tainted 4.14.303-syzkaller #0 [ 554.487248] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023 [ 554.496593] Workqueue: writeback wb_workfn (flush-7:1) [ 554.501849] Call Trace: [ 554.504418] dump_stack+0x1b2/0x281 [ 554.508030] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 554.513281] xfs_error_report+0x98/0xa0 [ 554.517227] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 554.522477] xfs_alloc_fixup_trees+0x425/0x4f0 [ 554.527038] ? xfs_alloc_update+0x90/0x90 [ 554.531161] ? xfs_btree_rec_offset.isra.0+0x3b/0xa0 [ 554.536254] ? xfs_alloc_compute_diff+0x23c/0x3d0 [ 554.541067] xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 554.546159] ? xfs_alloc_fix_freelist+0x685/0xeb0 [ 554.550980] ? xfs_alloc_ag_vextent_size+0x1ea0/0x1ea0 [ 554.556232] ? xfs_alloc_read_agf+0xb10/0xb10 [ 554.560708] xfs_alloc_ag_vextent+0x579/0x750 [ 554.565181] ? xfs_perag_get+0x116/0x410 [ 554.569220] ? xfs_alloc_vextent+0x470/0x2010 [ 554.573688] xfs_alloc_vextent+0x10b0/0x2010 [ 554.578075] xfs_bmap_btalloc+0x9e5/0x1b20 [ 554.582289] ? xfs_bmap_adjacent+0x1480/0x1480 [ 554.586852] ? ret_from_fork+0x24/0x30 [ 554.590724] ? __xfs_bmbt_get_all+0x16/0x100 [ 554.595109] xfs_bmap_alloc+0x107/0x160 [ 554.599055] xfs_bmapi_write+0xa49/0x1d00 [ 554.603196] ? xfs_bmapi_reserve_delalloc+0x7c0/0x7c0 [ 554.608359] ? trace_hardirqs_on+0x10/0x10 [ 554.612580] ? xfs_iext_get_ext+0xeb/0x200 [ 554.616788] ? xfs_iext_idx_to_irec+0x340/0x340 [ 554.621434] ? xfs_bmap_last_extent+0x1d0/0x1d0 [ 554.626089] xfs_iomap_write_allocate+0x42b/0xa30 [ 554.630917] ? xfs_file_iomap_begin+0x1ed0/0x1ed0 [ 554.635734] ? xfs_iunlock+0x248/0x3b0 [ 554.639604] ? rcu_read_lock_sched_held+0x16c/0x1d0 [ 554.644605] ? xfs_iunlock+0x21a/0x3b0 [ 554.648492] xfs_map_blocks+0x548/0x940 [ 554.652439] ? xfs_vm_set_page_dirty+0x610/0x610 [ 554.657169] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 554.662599] xfs_do_writepage+0x422/0x13d0 [ 554.666832] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 554.671148] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 554.676583] write_cache_pages+0x505/0xd20 [ 554.680802] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 554.685110] ? clear_page_dirty_for_io+0xb80/0xb80 [ 554.690028] ? trace_hardirqs_on+0x10/0x10 [ 554.694241] xfs_vm_writepages+0x258/0x340 [ 554.698451] ? xfs_vm_writepage+0xd0/0xd0 [ 554.702597] ? xfs_vm_writepage+0xd0/0xd0 [ 554.706730] do_writepages+0xc3/0x240 [ 554.710531] ? page_writeback_cpu_online+0x10/0x10 [ 554.715437] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 554.720868] __writeback_single_inode+0xda/0x1010 [ 554.725693] writeback_sb_inodes+0x48b/0xd30 [ 554.730115] ? wbc_detach_inode+0x780/0x780 [ 554.734429] ? queue_io+0x400/0x5a0 [ 554.738038] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 554.743480] wb_writeback+0x243/0xb80 [ 554.747268] ? writeback_inodes_wb.constprop.0+0x1a0/0x1a0 [ 554.752868] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 554.758292] wb_workfn+0x2bd/0xf50 [ 554.761808] ? process_one_work+0x6c4/0x14a0 [ 554.766202] ? inode_wait_for_writeback+0x30/0x30 [ 554.771040] ? lock_acquire+0x170/0x3f0 [ 554.774997] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 554.780424] process_one_work+0x793/0x14a0 [ 554.784646] ? work_busy+0x320/0x320 [ 554.788339] ? worker_thread+0x158/0xff0 [ 554.792377] ? _raw_spin_unlock_irq+0x24/0x80 [ 554.796848] worker_thread+0x5cc/0xff0 [ 554.800712] ? rescuer_thread+0xc80/0xc80 [ 554.804837] kthread+0x30d/0x420 [ 554.808185] ? kthread_create_on_node+0xd0/0xd0 [ 554.812826] ret_from_fork+0x24/0x30 [ 554.817003] XFS (loop1): page discard on page ffffea0001094200, inode 0x29, offset 1748992. [ 554.825911] XFS (loop1): Internal error XFS_WANT_CORRUPTED_RETURN at line 431 of file fs/xfs/libxfs/xfs_alloc.c. Caller xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 554.840453] CPU: 1 PID: 2818 Comm: kworker/u4:3 Not tainted 4.14.303-syzkaller #0 [ 554.848062] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023 [ 554.857420] Workqueue: writeback wb_workfn (flush-7:1) [ 554.862713] Call Trace: [ 554.865286] dump_stack+0x1b2/0x281 [ 554.868916] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 554.874169] xfs_error_report+0x98/0xa0 [ 554.878120] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 554.883380] xfs_alloc_fixup_trees+0x425/0x4f0 [ 554.887948] ? xfs_alloc_update+0x90/0x90 [ 554.892070] ? xfs_btree_rec_offset.isra.0+0x3b/0xa0 [ 554.897147] ? xfs_alloc_compute_diff+0x23c/0x3d0 [ 554.901980] xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 554.907070] ? xfs_alloc_fix_freelist+0x685/0xeb0 [ 554.911892] ? xfs_alloc_ag_vextent_size+0x1ea0/0x1ea0 [ 554.917143] ? xfs_alloc_read_agf+0xb10/0xb10 [ 554.921621] xfs_alloc_ag_vextent+0x579/0x750 [ 554.926094] ? xfs_perag_get+0x116/0x410 [ 554.930133] ? xfs_alloc_vextent+0x470/0x2010 [ 554.934620] xfs_alloc_vextent+0x10b0/0x2010 [ 554.939009] xfs_bmap_btalloc+0x9e5/0x1b20 [ 554.943219] ? xfs_bmap_adjacent+0x1480/0x1480 [ 554.947790] ? ret_from_fork+0x24/0x30 [ 554.951662] ? __xfs_bmbt_get_all+0x16/0x100 [ 554.956044] xfs_bmap_alloc+0x107/0x160 [ 554.959991] xfs_bmapi_write+0xa49/0x1d00 [ 554.964128] ? xfs_bmapi_reserve_delalloc+0x7c0/0x7c0 [ 554.969297] ? trace_hardirqs_on+0x10/0x10 [ 554.973512] ? xfs_iext_get_ext+0xeb/0x200 [ 554.977719] ? xfs_iext_idx_to_irec+0x340/0x340 [ 554.982364] ? xfs_bmap_last_extent+0x1d0/0x1d0 [ 554.987012] xfs_iomap_write_allocate+0x42b/0xa30 [ 554.991852] ? xfs_file_iomap_begin+0x1ed0/0x1ed0 [ 554.996666] ? xfs_iunlock+0x248/0x3b0 [ 555.000540] ? rcu_read_lock_sched_held+0x16c/0x1d0 [ 555.005533] ? xfs_iunlock+0x21a/0x3b0 [ 555.009402] xfs_map_blocks+0x548/0x940 [ 555.013350] ? xfs_vm_set_page_dirty+0x610/0x610 [ 555.018082] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 555.023519] xfs_do_writepage+0x422/0x13d0 [ 555.027736] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 555.032031] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 555.037470] write_cache_pages+0x505/0xd20 [ 555.041680] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 555.045984] ? clear_page_dirty_for_io+0xb80/0xb80 [ 555.050900] ? trace_hardirqs_on+0x10/0x10 [ 555.055110] xfs_vm_writepages+0x258/0x340 [ 555.059318] ? xfs_vm_writepage+0xd0/0xd0 [ 555.063473] ? xfs_vm_writepage+0xd0/0xd0 [ 555.067620] do_writepages+0xc3/0x240 [ 555.071407] ? page_writeback_cpu_online+0x10/0x10 [ 555.076311] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 555.081735] __writeback_single_inode+0xda/0x1010 [ 555.086587] writeback_sb_inodes+0x48b/0xd30 [ 555.090978] ? wbc_detach_inode+0x780/0x780 [ 555.095273] ? queue_io+0x400/0x5a0 [ 555.098874] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 555.104302] wb_writeback+0x243/0xb80 [ 555.108087] ? writeback_inodes_wb.constprop.0+0x1a0/0x1a0 [ 555.113689] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 555.119114] wb_workfn+0x2bd/0xf50 [ 555.122630] ? process_one_work+0x6c4/0x14a0 [ 555.127012] ? inode_wait_for_writeback+0x30/0x30 [ 555.131828] ? lock_acquire+0x170/0x3f0 [ 555.135789] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 555.141223] process_one_work+0x793/0x14a0 [ 555.145446] ? work_busy+0x320/0x320 [ 555.149138] ? worker_thread+0x158/0xff0 [ 555.153171] ? _raw_spin_unlock_irq+0x24/0x80 [ 555.157639] worker_thread+0x5cc/0xff0 [ 555.161509] ? rescuer_thread+0xc80/0xc80 [ 555.165637] kthread+0x30d/0x420 [ 555.168981] ? kthread_create_on_node+0xd0/0xd0 [ 555.173623] ret_from_fork+0x24/0x30 [ 555.178246] XFS (loop1): page discard on page ffffea0001094240, inode 0x29, offset 1753088. [ 555.187134] XFS (loop1): Internal error XFS_WANT_CORRUPTED_RETURN at line 431 of file fs/xfs/libxfs/xfs_alloc.c. Caller xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 555.201672] CPU: 1 PID: 2818 Comm: kworker/u4:3 Not tainted 4.14.303-syzkaller #0 [ 555.209283] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023 [ 555.218628] Workqueue: writeback wb_workfn (flush-7:1) [ 555.223885] Call Trace: [ 555.226459] dump_stack+0x1b2/0x281 [ 555.230072] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 555.235321] xfs_error_report+0x98/0xa0 [ 555.239267] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 555.244527] xfs_alloc_fixup_trees+0x425/0x4f0 [ 555.249095] ? xfs_alloc_update+0x90/0x90 [ 555.253216] ? xfs_btree_rec_offset.isra.0+0x3b/0xa0 [ 555.258294] ? xfs_alloc_compute_diff+0x23c/0x3d0 [ 555.263110] xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 555.268191] ? xfs_alloc_fix_freelist+0x685/0xeb0 [ 555.273006] ? xfs_alloc_ag_vextent_size+0x1ea0/0x1ea0 [ 555.278275] ? xfs_alloc_read_agf+0xb10/0xb10 [ 555.282750] xfs_alloc_ag_vextent+0x579/0x750 [ 555.287218] ? xfs_perag_get+0x116/0x410 [ 555.291251] ? xfs_alloc_vextent+0x470/0x2010 [ 555.295721] xfs_alloc_vextent+0x10b0/0x2010 [ 555.300123] xfs_bmap_btalloc+0x9e5/0x1b20 [ 555.304343] ? xfs_bmap_adjacent+0x1480/0x1480 [ 555.308905] ? ret_from_fork+0x24/0x30 [ 555.312772] ? __xfs_bmbt_get_all+0x16/0x100 [ 555.317155] xfs_bmap_alloc+0x107/0x160 [ 555.321101] xfs_bmapi_write+0xa49/0x1d00 [ 555.325235] ? xfs_bmapi_reserve_delalloc+0x7c0/0x7c0 [ 555.330403] ? trace_hardirqs_on+0x10/0x10 [ 555.334612] ? xfs_iext_get_ext+0xeb/0x200 [ 555.338819] ? xfs_iext_idx_to_irec+0x340/0x340 [ 555.343480] ? xfs_bmap_last_extent+0x1d0/0x1d0 [ 555.348133] xfs_iomap_write_allocate+0x42b/0xa30 [ 555.352965] ? xfs_file_iomap_begin+0x1ed0/0x1ed0 [ 555.357780] ? xfs_iunlock+0x248/0x3b0 [ 555.361644] ? rcu_read_lock_sched_held+0x16c/0x1d0 [ 555.366639] ? xfs_iunlock+0x21a/0x3b0 [ 555.370521] xfs_map_blocks+0x548/0x940 [ 555.374488] ? xfs_vm_set_page_dirty+0x610/0x610 [ 555.379218] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 555.384651] xfs_do_writepage+0x422/0x13d0 [ 555.388871] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 555.393167] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 555.398593] write_cache_pages+0x505/0xd20 [ 555.402803] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 555.407100] ? clear_page_dirty_for_io+0xb80/0xb80 [ 555.412007] ? trace_hardirqs_on+0x10/0x10 [ 555.416216] xfs_vm_writepages+0x258/0x340 [ 555.420427] ? xfs_vm_writepage+0xd0/0xd0 [ 555.424563] ? xfs_vm_writepage+0xd0/0xd0 [ 555.428690] do_writepages+0xc3/0x240 [ 555.432488] ? page_writeback_cpu_online+0x10/0x10 [ 555.437408] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 555.442833] __writeback_single_inode+0xda/0x1010 [ 555.447670] writeback_sb_inodes+0x48b/0xd30 [ 555.452054] ? wbc_detach_inode+0x780/0x780 [ 555.456354] ? queue_io+0x400/0x5a0 [ 555.459957] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 555.465390] wb_writeback+0x243/0xb80 [ 555.469173] ? writeback_inodes_wb.constprop.0+0x1a0/0x1a0 [ 555.474771] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 555.480197] wb_workfn+0x2bd/0xf50 [ 555.483722] ? process_one_work+0x6c4/0x14a0 [ 555.488111] ? inode_wait_for_writeback+0x30/0x30 [ 555.492927] ? lock_acquire+0x170/0x3f0 [ 555.496878] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 555.502317] process_one_work+0x793/0x14a0 [ 555.506541] ? work_busy+0x320/0x320 [ 555.510235] ? worker_thread+0x158/0xff0 [ 555.514269] ? _raw_spin_unlock_irq+0x24/0x80 [ 555.518737] worker_thread+0x5cc/0xff0 [ 555.522617] ? rescuer_thread+0xc80/0xc80 [ 555.526746] kthread+0x30d/0x420 [ 555.530092] ? kthread_create_on_node+0xd0/0xd0 [ 555.534736] ret_from_fork+0x24/0x30 [ 555.538926] XFS (loop1): page discard on page ffffea0001094280, inode 0x29, offset 1757184. [ 555.547814] XFS (loop1): Internal error XFS_WANT_CORRUPTED_RETURN at line 431 of file fs/xfs/libxfs/xfs_alloc.c. Caller xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 555.562347] CPU: 1 PID: 2818 Comm: kworker/u4:3 Not tainted 4.14.303-syzkaller #0 [ 555.569951] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023 [ 555.579296] Workqueue: writeback wb_workfn (flush-7:1) [ 555.584548] Call Trace: [ 555.587110] dump_stack+0x1b2/0x281 [ 555.590729] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 555.595986] xfs_error_report+0x98/0xa0 [ 555.599940] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 555.605193] xfs_alloc_fixup_trees+0x425/0x4f0 [ 555.609753] ? xfs_alloc_update+0x90/0x90 [ 555.613883] ? xfs_btree_rec_offset.isra.0+0x3b/0xa0 [ 555.618965] ? xfs_alloc_compute_diff+0x23c/0x3d0 [ 555.623784] xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 555.628862] ? xfs_alloc_fix_freelist+0x685/0xeb0 [ 555.633682] ? xfs_alloc_ag_vextent_size+0x1ea0/0x1ea0 [ 555.638940] ? xfs_alloc_read_agf+0xb10/0xb10 [ 555.643418] xfs_alloc_ag_vextent+0x579/0x750 [ 555.647885] ? xfs_perag_get+0x116/0x410 [ 555.651916] ? xfs_alloc_vextent+0x470/0x2010 [ 555.656392] xfs_alloc_vextent+0x10b0/0x2010 [ 555.660788] xfs_bmap_btalloc+0x9e5/0x1b20 [ 555.664997] ? xfs_bmap_adjacent+0x1480/0x1480 [ 555.669550] ? ret_from_fork+0x24/0x30 [ 555.673425] ? __xfs_bmbt_get_all+0x16/0x100 [ 555.677813] xfs_bmap_alloc+0x107/0x160 [ 555.681759] xfs_bmapi_write+0xa49/0x1d00 [ 555.685883] ? xfs_bmapi_reserve_delalloc+0x7c0/0x7c0 [ 555.691045] ? trace_hardirqs_on+0x10/0x10 [ 555.695272] ? xfs_iext_get_ext+0xeb/0x200 [ 555.699492] ? xfs_iext_idx_to_irec+0x340/0x340 [ 555.704142] ? xfs_bmap_last_extent+0x1d0/0x1d0 [ 555.708849] xfs_iomap_write_allocate+0x42b/0xa30 [ 555.713688] ? xfs_file_iomap_begin+0x1ed0/0x1ed0 [ 555.718531] ? xfs_iunlock+0x248/0x3b0 [ 555.722400] ? rcu_read_lock_sched_held+0x16c/0x1d0 [ 555.727393] ? xfs_iunlock+0x21a/0x3b0 [ 555.731257] xfs_map_blocks+0x548/0x940 [ 555.735219] ? xfs_vm_set_page_dirty+0x610/0x610 [ 555.739965] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 555.745392] xfs_do_writepage+0x422/0x13d0 [ 555.749611] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 555.753926] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 555.759366] write_cache_pages+0x505/0xd20 [ 555.763585] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 555.767881] ? clear_page_dirty_for_io+0xb80/0xb80 [ 555.772803] ? trace_hardirqs_on+0x10/0x10 [ 555.777028] xfs_vm_writepages+0x258/0x340 [ 555.781247] ? xfs_vm_writepage+0xd0/0xd0 [ 555.785371] ? xfs_vm_writepage+0xd0/0xd0 [ 555.789494] do_writepages+0xc3/0x240 [ 555.793274] ? page_writeback_cpu_online+0x10/0x10 [ 555.798181] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 555.803612] __writeback_single_inode+0xda/0x1010 [ 555.808429] writeback_sb_inodes+0x48b/0xd30 [ 555.812814] ? wbc_detach_inode+0x780/0x780 [ 555.817119] ? queue_io+0x400/0x5a0 [ 555.820733] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 555.826264] wb_writeback+0x243/0xb80 [ 555.830054] ? writeback_inodes_wb.constprop.0+0x1a0/0x1a0 [ 555.835665] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 555.841095] wb_workfn+0x2bd/0xf50 [ 555.844611] ? process_one_work+0x6c4/0x14a0 [ 555.848994] ? inode_wait_for_writeback+0x30/0x30 [ 555.853814] ? lock_acquire+0x170/0x3f0 [ 555.857769] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 555.863194] process_one_work+0x793/0x14a0 [ 555.867404] ? work_busy+0x320/0x320 [ 555.871091] ? worker_thread+0x158/0xff0 [ 555.875133] ? _raw_spin_unlock_irq+0x24/0x80 [ 555.879624] worker_thread+0x5cc/0xff0 [ 555.883502] ? rescuer_thread+0xc80/0xc80 [ 555.887629] kthread+0x30d/0x420 [ 555.890971] ? kthread_create_on_node+0xd0/0xd0 [ 555.895631] ret_from_fork+0x24/0x30 [ 555.899782] XFS (loop1): page discard on page ffffea00010942c0, inode 0x29, offset 1761280. [ 555.908683] XFS (loop1): Internal error XFS_WANT_CORRUPTED_RETURN at line 431 of file fs/xfs/libxfs/xfs_alloc.c. Caller xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 555.923228] CPU: 1 PID: 2818 Comm: kworker/u4:3 Not tainted 4.14.303-syzkaller #0 [ 555.930830] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023 [ 555.940168] Workqueue: writeback wb_workfn (flush-7:1) [ 555.945419] Call Trace: [ 555.947983] dump_stack+0x1b2/0x281 [ 555.951587] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 555.956841] xfs_error_report+0x98/0xa0 [ 555.960796] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 555.966048] xfs_alloc_fixup_trees+0x425/0x4f0 [ 555.970603] ? xfs_alloc_update+0x90/0x90 [ 555.974730] ? xfs_btree_rec_offset.isra.0+0x3b/0xa0 [ 555.979816] ? xfs_alloc_compute_diff+0x23c/0x3d0 [ 555.984634] xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 555.989717] ? xfs_alloc_fix_freelist+0x685/0xeb0 [ 555.994536] ? xfs_alloc_ag_vextent_size+0x1ea0/0x1ea0 [ 555.999903] ? xfs_alloc_read_agf+0xb10/0xb10 [ 556.004385] xfs_alloc_ag_vextent+0x579/0x750 [ 556.008851] ? xfs_perag_get+0x116/0x410 [ 556.012884] ? xfs_alloc_vextent+0x470/0x2010 [ 556.017386] xfs_alloc_vextent+0x10b0/0x2010 [ 556.021782] xfs_bmap_btalloc+0x9e5/0x1b20 [ 556.025995] ? xfs_bmap_adjacent+0x1480/0x1480 [ 556.030550] ? ret_from_fork+0x24/0x30 [ 556.034430] ? __xfs_bmbt_get_all+0x16/0x100 [ 556.038819] xfs_bmap_alloc+0x107/0x160 [ 556.042765] xfs_bmapi_write+0xa49/0x1d00 [ 556.046892] ? xfs_bmapi_reserve_delalloc+0x7c0/0x7c0 [ 556.052055] ? trace_hardirqs_on+0x10/0x10 [ 556.056276] ? xfs_iext_get_ext+0xeb/0x200 [ 556.060490] ? xfs_iext_idx_to_irec+0x340/0x340 [ 556.065139] ? xfs_bmap_last_extent+0x1d0/0x1d0 [ 556.069785] xfs_iomap_write_allocate+0x42b/0xa30 [ 556.074615] ? xfs_file_iomap_begin+0x1ed0/0x1ed0 [ 556.079443] ? xfs_iunlock+0x248/0x3b0 [ 556.083316] ? rcu_read_lock_sched_held+0x16c/0x1d0 [ 556.088308] ? xfs_iunlock+0x21a/0x3b0 [ 556.092170] xfs_map_blocks+0x548/0x940 [ 556.096127] ? xfs_vm_set_page_dirty+0x610/0x610 [ 556.100865] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 556.106287] xfs_do_writepage+0x422/0x13d0 [ 556.110498] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 556.114802] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 556.120233] write_cache_pages+0x505/0xd20 [ 556.124442] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 556.128739] ? clear_page_dirty_for_io+0xb80/0xb80 [ 556.133661] ? trace_hardirqs_on+0x10/0x10 [ 556.137878] xfs_vm_writepages+0x258/0x340 [ 556.142100] ? xfs_vm_writepage+0xd0/0xd0 [ 556.146224] ? xfs_vm_writepage+0xd0/0xd0 [ 556.150344] do_writepages+0xc3/0x240 [ 556.154127] ? page_writeback_cpu_online+0x10/0x10 [ 556.159039] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 556.164464] __writeback_single_inode+0xda/0x1010 [ 556.169282] writeback_sb_inodes+0x48b/0xd30 [ 556.173677] ? wbc_detach_inode+0x780/0x780 [ 556.177995] ? queue_io+0x400/0x5a0 [ 556.181612] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 556.187058] wb_writeback+0x243/0xb80 [ 556.190845] ? writeback_inodes_wb.constprop.0+0x1a0/0x1a0 [ 556.196452] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 556.201880] wb_workfn+0x2bd/0xf50 [ 556.205397] ? process_one_work+0x6c4/0x14a0 [ 556.209776] ? inode_wait_for_writeback+0x30/0x30 [ 556.214600] ? lock_acquire+0x170/0x3f0 [ 556.218556] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 556.223977] process_one_work+0x793/0x14a0 [ 556.228185] ? work_busy+0x320/0x320 [ 556.231870] ? worker_thread+0x158/0xff0 [ 556.235913] ? _raw_spin_unlock_irq+0x24/0x80 [ 556.240390] worker_thread+0x5cc/0xff0 [ 556.244255] ? rescuer_thread+0xc80/0xc80 [ 556.248378] kthread+0x30d/0x420 [ 556.251720] ? kthread_create_on_node+0xd0/0xd0 [ 556.256383] ret_from_fork+0x24/0x30 [ 556.261013] XFS (loop1): page discard on page ffffea0001094300, inode 0x29, offset 1765376. [ 556.269912] XFS (loop1): Internal error XFS_WANT_CORRUPTED_RETURN at line 431 of file fs/xfs/libxfs/xfs_alloc.c. Caller xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 556.284441] CPU: 1 PID: 2818 Comm: kworker/u4:3 Not tainted 4.14.303-syzkaller #0 [ 556.292042] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023 [ 556.301376] Workqueue: writeback wb_workfn (flush-7:1) [ 556.306627] Call Trace: [ 556.309188] dump_stack+0x1b2/0x281 [ 556.312790] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 556.318041] xfs_error_report+0x98/0xa0 [ 556.321989] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 556.327240] xfs_alloc_fixup_trees+0x425/0x4f0 [ 556.331816] ? xfs_alloc_update+0x90/0x90 [ 556.335945] ? xfs_btree_rec_offset.isra.0+0x3b/0xa0 [ 556.341028] ? xfs_alloc_compute_diff+0x23c/0x3d0 [ 556.345844] xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 556.350924] ? xfs_alloc_fix_freelist+0x685/0xeb0 [ 556.355742] ? xfs_alloc_ag_vextent_size+0x1ea0/0x1ea0 [ 556.360999] ? xfs_alloc_read_agf+0xb10/0xb10 [ 556.365474] xfs_alloc_ag_vextent+0x579/0x750 [ 556.369941] ? xfs_perag_get+0x116/0x410 [ 556.373977] ? xfs_alloc_vextent+0x470/0x2010 [ 556.378452] xfs_alloc_vextent+0x10b0/0x2010 [ 556.382857] xfs_bmap_btalloc+0x9e5/0x1b20 [ 556.387069] ? xfs_bmap_adjacent+0x1480/0x1480 [ 556.391622] ? ret_from_fork+0x24/0x30 [ 556.395504] ? __xfs_bmbt_get_all+0x16/0x100 [ 556.399893] xfs_bmap_alloc+0x107/0x160 [ 556.403842] xfs_bmapi_write+0xa49/0x1d00 [ 556.407967] ? xfs_bmapi_reserve_delalloc+0x7c0/0x7c0 [ 556.413131] ? trace_hardirqs_on+0x10/0x10 [ 556.417362] ? xfs_iext_get_ext+0xeb/0x200 [ 556.421578] ? xfs_iext_idx_to_irec+0x340/0x340 [ 556.426224] ? xfs_bmap_last_extent+0x1d0/0x1d0 [ 556.430867] xfs_iomap_write_allocate+0x42b/0xa30 [ 556.435714] ? xfs_file_iomap_begin+0x1ed0/0x1ed0 [ 556.440535] ? xfs_iunlock+0x248/0x3b0 [ 556.444400] ? rcu_read_lock_sched_held+0x16c/0x1d0 [ 556.449396] ? xfs_iunlock+0x21a/0x3b0 [ 556.453256] xfs_map_blocks+0x548/0x940 [ 556.457205] ? xfs_vm_set_page_dirty+0x610/0x610 [ 556.461941] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 556.467371] xfs_do_writepage+0x422/0x13d0 [ 556.471583] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 556.475890] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 556.481321] write_cache_pages+0x505/0xd20 [ 556.485533] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 556.489840] ? clear_page_dirty_for_io+0xb80/0xb80 [ 556.494765] ? trace_hardirqs_on+0x10/0x10 [ 556.498996] xfs_vm_writepages+0x258/0x340 [ 556.503218] ? xfs_vm_writepage+0xd0/0xd0 [ 556.507351] ? xfs_vm_writepage+0xd0/0xd0 [ 556.511475] do_writepages+0xc3/0x240 [ 556.515257] ? page_writeback_cpu_online+0x10/0x10 [ 556.520171] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 556.525609] __writeback_single_inode+0xda/0x1010 [ 556.530440] writeback_sb_inodes+0x48b/0xd30 [ 556.534834] ? wbc_detach_inode+0x780/0x780 [ 556.539137] ? queue_io+0x400/0x5a0 [ 556.542739] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 556.548162] wb_writeback+0x243/0xb80 [ 556.551940] ? writeback_inodes_wb.constprop.0+0x1a0/0x1a0 [ 556.557541] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 556.562967] wb_workfn+0x2bd/0xf50 [ 556.566499] ? process_one_work+0x6c4/0x14a0 [ 556.570882] ? inode_wait_for_writeback+0x30/0x30 [ 556.575706] ? lock_acquire+0x170/0x3f0 [ 556.579672] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 556.585106] process_one_work+0x793/0x14a0 [ 556.589316] ? work_busy+0x320/0x320 [ 556.593006] ? worker_thread+0x158/0xff0 [ 556.597050] ? _raw_spin_unlock_irq+0x24/0x80 [ 556.601529] worker_thread+0x5cc/0xff0 [ 556.605433] ? rescuer_thread+0xc80/0xc80 [ 556.609557] kthread+0x30d/0x420 [ 556.612896] ? kthread_create_on_node+0xd0/0xd0 [ 556.617548] ret_from_fork+0x24/0x30 [ 556.622711] XFS (loop1): page discard on page ffffea0001094340, inode 0x29, offset 1769472. [ 556.631629] XFS (loop1): Internal error XFS_WANT_CORRUPTED_RETURN at line 431 of file fs/xfs/libxfs/xfs_alloc.c. Caller xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 556.646168] CPU: 1 PID: 2818 Comm: kworker/u4:3 Not tainted 4.14.303-syzkaller #0 [ 556.653780] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023 [ 556.663142] Workqueue: writeback wb_workfn (flush-7:1) [ 556.668396] Call Trace: [ 556.670958] dump_stack+0x1b2/0x281 [ 556.674568] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 556.679825] xfs_error_report+0x98/0xa0 [ 556.683773] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 556.689023] xfs_alloc_fixup_trees+0x425/0x4f0 [ 556.693587] ? xfs_alloc_update+0x90/0x90 [ 556.697716] ? xfs_btree_rec_offset.isra.0+0x3b/0xa0 [ 556.702795] ? xfs_alloc_compute_diff+0x23c/0x3d0 [ 556.707614] xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 556.712708] ? xfs_alloc_fix_freelist+0x685/0xeb0 [ 556.717531] ? xfs_alloc_ag_vextent_size+0x1ea0/0x1ea0 [ 556.722795] ? xfs_alloc_read_agf+0xb10/0xb10 [ 556.727278] xfs_alloc_ag_vextent+0x579/0x750 [ 556.731758] ? xfs_perag_get+0x116/0x410 [ 556.735799] ? xfs_alloc_vextent+0x470/0x2010 [ 556.740287] xfs_alloc_vextent+0x10b0/0x2010 [ 556.744684] xfs_bmap_btalloc+0x9e5/0x1b20 [ 556.748894] ? xfs_bmap_adjacent+0x1480/0x1480 [ 556.753454] ? ret_from_fork+0x24/0x30 [ 556.757331] ? __xfs_bmbt_get_all+0x16/0x100 [ 556.761712] xfs_bmap_alloc+0x107/0x160 [ 556.765660] xfs_bmapi_write+0xa49/0x1d00 [ 556.769789] ? xfs_bmapi_reserve_delalloc+0x7c0/0x7c0 [ 556.774958] ? trace_hardirqs_on+0x10/0x10 [ 556.779177] ? xfs_iext_get_ext+0xeb/0x200 [ 556.783389] ? xfs_iext_idx_to_irec+0x340/0x340 [ 556.788042] ? xfs_bmap_last_extent+0x1d0/0x1d0 [ 556.792689] xfs_iomap_write_allocate+0x42b/0xa30 [ 556.797513] ? xfs_file_iomap_begin+0x1ed0/0x1ed0 [ 556.802330] ? xfs_iunlock+0x248/0x3b0 [ 556.806198] ? rcu_read_lock_sched_held+0x16c/0x1d0 [ 556.811186] ? xfs_iunlock+0x21a/0x3b0 [ 556.815066] xfs_map_blocks+0x548/0x940 [ 556.819026] ? xfs_vm_set_page_dirty+0x610/0x610 [ 556.823755] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 556.829181] xfs_do_writepage+0x422/0x13d0 [ 556.833411] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 556.837716] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 556.843142] write_cache_pages+0x505/0xd20 [ 556.847379] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 556.851676] ? clear_page_dirty_for_io+0xb80/0xb80 [ 556.856594] ? trace_hardirqs_on+0x10/0x10 [ 556.860829] xfs_vm_writepages+0x258/0x340 [ 556.865043] ? xfs_vm_writepage+0xd0/0xd0 [ 556.869171] ? xfs_vm_writepage+0xd0/0xd0 [ 556.873297] do_writepages+0xc3/0x240 [ 556.877100] ? page_writeback_cpu_online+0x10/0x10 [ 556.882007] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 556.887431] __writeback_single_inode+0xda/0x1010 [ 556.892246] writeback_sb_inodes+0x48b/0xd30 [ 556.896643] ? wbc_detach_inode+0x780/0x780 [ 556.900949] ? queue_io+0x400/0x5a0 [ 556.904552] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 556.909994] wb_writeback+0x243/0xb80 [ 556.913788] ? writeback_inodes_wb.constprop.0+0x1a0/0x1a0 [ 556.919406] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 556.924848] wb_workfn+0x2bd/0xf50 [ 556.928365] ? process_one_work+0x6c4/0x14a0 [ 556.932753] ? inode_wait_for_writeback+0x30/0x30 [ 556.937588] ? lock_acquire+0x170/0x3f0 [ 556.941539] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 556.946965] process_one_work+0x793/0x14a0 [ 556.951192] ? work_busy+0x320/0x320 [ 556.954881] ? worker_thread+0x158/0xff0 [ 556.958926] ? _raw_spin_unlock_irq+0x24/0x80 [ 556.963402] worker_thread+0x5cc/0xff0 [ 556.967265] ? rescuer_thread+0xc80/0xc80 [ 556.971401] kthread+0x30d/0x420 [ 556.974748] ? kthread_create_on_node+0xd0/0xd0 [ 556.979399] ret_from_fork+0x24/0x30 [ 556.983866] XFS (loop1): page discard on page ffffea0001094380, inode 0x29, offset 1773568. [ 556.993672] XFS (loop1): Internal error XFS_WANT_CORRUPTED_RETURN at line 431 of file fs/xfs/libxfs/xfs_alloc.c. Caller xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 557.008187] CPU: 1 PID: 2818 Comm: kworker/u4:3 Not tainted 4.14.303-syzkaller #0 [ 557.015795] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023 [ 557.025138] Workqueue: writeback wb_workfn (flush-7:1) [ 557.030410] Call Trace: [ 557.032971] dump_stack+0x1b2/0x281 [ 557.036581] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 557.041835] xfs_error_report+0x98/0xa0 [ 557.045782] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 557.051031] xfs_alloc_fixup_trees+0x425/0x4f0 [ 557.055597] ? xfs_alloc_update+0x90/0x90 [ 557.059725] ? xfs_btree_rec_offset.isra.0+0x3b/0xa0 [ 557.064801] ? xfs_alloc_compute_diff+0x23c/0x3d0 [ 557.069620] xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 557.074708] ? xfs_alloc_fix_freelist+0x685/0xeb0 [ 557.079530] ? xfs_alloc_ag_vextent_size+0x1ea0/0x1ea0 [ 557.084780] ? xfs_alloc_read_agf+0xb10/0xb10 [ 557.089255] xfs_alloc_ag_vextent+0x579/0x750 [ 557.093728] ? xfs_perag_get+0x116/0x410 [ 557.097768] ? xfs_alloc_vextent+0x470/0x2010 [ 557.102235] xfs_alloc_vextent+0x10b0/0x2010 [ 557.106622] xfs_bmap_btalloc+0x9e5/0x1b20 [ 557.110831] ? xfs_bmap_adjacent+0x1480/0x1480 [ 557.115397] ? ret_from_fork+0x24/0x30 [ 557.119269] ? __xfs_bmbt_get_all+0x16/0x100 [ 557.123663] xfs_bmap_alloc+0x107/0x160 [ 557.127619] xfs_bmapi_write+0xa49/0x1d00 [ 557.131761] ? xfs_bmapi_reserve_delalloc+0x7c0/0x7c0 [ 557.136934] ? trace_hardirqs_on+0x10/0x10 [ 557.141170] ? xfs_iext_get_ext+0xeb/0x200 [ 557.145381] ? xfs_iext_idx_to_irec+0x340/0x340 [ 557.150029] ? xfs_bmap_last_extent+0x1d0/0x1d0 [ 557.154684] xfs_iomap_write_allocate+0x42b/0xa30 [ 557.159514] ? xfs_file_iomap_begin+0x1ed0/0x1ed0 [ 557.164342] ? xfs_iunlock+0x248/0x3b0 [ 557.168208] ? rcu_read_lock_sched_held+0x16c/0x1d0 [ 557.173195] ? xfs_iunlock+0x21a/0x3b0 [ 557.177062] xfs_map_blocks+0x548/0x940 [ 557.181025] ? xfs_vm_set_page_dirty+0x610/0x610 [ 557.185752] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 557.191177] xfs_do_writepage+0x422/0x13d0 [ 557.195402] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 557.199717] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 557.205141] write_cache_pages+0x505/0xd20 [ 557.209349] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 557.213659] ? clear_page_dirty_for_io+0xb80/0xb80 [ 557.218585] ? trace_hardirqs_on+0x10/0x10 [ 557.222815] xfs_vm_writepages+0x258/0x340 [ 557.227033] ? xfs_vm_writepage+0xd0/0xd0 [ 557.231160] ? xfs_vm_writepage+0xd0/0xd0 [ 557.235286] do_writepages+0xc3/0x240 [ 557.239069] ? page_writeback_cpu_online+0x10/0x10 [ 557.243975] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 557.249400] __writeback_single_inode+0xda/0x1010 [ 557.254228] writeback_sb_inodes+0x48b/0xd30 [ 557.258620] ? wbc_detach_inode+0x780/0x780 [ 557.262917] ? queue_io+0x400/0x5a0 [ 557.266518] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 557.271940] wb_writeback+0x243/0xb80 [ 557.275729] ? writeback_inodes_wb.constprop.0+0x1a0/0x1a0 [ 557.281335] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 557.286756] wb_workfn+0x2bd/0xf50 [ 557.290273] ? process_one_work+0x6c4/0x14a0 [ 557.294660] ? inode_wait_for_writeback+0x30/0x30 [ 557.299486] ? lock_acquire+0x170/0x3f0 [ 557.303435] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 557.308859] process_one_work+0x793/0x14a0 [ 557.313069] ? work_busy+0x320/0x320 [ 557.316759] ? worker_thread+0x158/0xff0 [ 557.320801] ? _raw_spin_unlock_irq+0x24/0x80 [ 557.325272] worker_thread+0x5cc/0xff0 [ 557.329140] ? rescuer_thread+0xc80/0xc80 [ 557.333261] kthread+0x30d/0x420 [ 557.336605] ? kthread_create_on_node+0xd0/0xd0 [ 557.341254] ret_from_fork+0x24/0x30 [ 557.345600] XFS (loop1): page discard on page ffffea00010943c0, inode 0x29, offset 1777664. [ 557.354517] XFS (loop1): Internal error XFS_WANT_CORRUPTED_RETURN at line 431 of file fs/xfs/libxfs/xfs_alloc.c. Caller xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 557.369070] CPU: 1 PID: 2818 Comm: kworker/u4:3 Not tainted 4.14.303-syzkaller #0 [ 557.376677] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023 [ 557.386026] Workqueue: writeback wb_workfn (flush-7:1) [ 557.391277] Call Trace: [ 557.393847] dump_stack+0x1b2/0x281 [ 557.397457] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 557.402703] xfs_error_report+0x98/0xa0 [ 557.406652] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 557.411906] xfs_alloc_fixup_trees+0x425/0x4f0 [ 557.416475] ? xfs_alloc_update+0x90/0x90 [ 557.420608] ? xfs_btree_rec_offset.isra.0+0x3b/0xa0 [ 557.425691] ? xfs_alloc_compute_diff+0x23c/0x3d0 [ 557.430508] xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 557.435602] ? xfs_alloc_fix_freelist+0x685/0xeb0 [ 557.440423] ? xfs_alloc_ag_vextent_size+0x1ea0/0x1ea0 [ 557.445692] ? xfs_alloc_read_agf+0xb10/0xb10 [ 557.450169] xfs_alloc_ag_vextent+0x579/0x750 [ 557.454642] ? xfs_perag_get+0x116/0x410 [ 557.458769] ? xfs_alloc_vextent+0x470/0x2010 [ 557.463238] xfs_alloc_vextent+0x10b0/0x2010 [ 557.467631] xfs_bmap_btalloc+0x9e5/0x1b20 [ 557.471841] ? xfs_bmap_adjacent+0x1480/0x1480 [ 557.476403] ? ret_from_fork+0x24/0x30 [ 557.480282] ? __xfs_bmbt_get_all+0x16/0x100 [ 557.484666] xfs_bmap_alloc+0x107/0x160 [ 557.488612] xfs_bmapi_write+0xa49/0x1d00 [ 557.492740] ? xfs_bmapi_reserve_delalloc+0x7c0/0x7c0 [ 557.497903] ? trace_hardirqs_on+0x10/0x10 [ 557.502111] ? xfs_iext_get_ext+0xeb/0x200 [ 557.506336] ? xfs_iext_idx_to_irec+0x340/0x340 [ 557.510989] ? xfs_bmap_last_extent+0x1d0/0x1d0 [ 557.515645] xfs_iomap_write_allocate+0x42b/0xa30 [ 557.520476] ? xfs_file_iomap_begin+0x1ed0/0x1ed0 [ 557.525293] ? xfs_iunlock+0x248/0x3b0 [ 557.529161] ? rcu_read_lock_sched_held+0x16c/0x1d0 [ 557.534158] ? xfs_iunlock+0x21a/0x3b0 [ 557.538038] xfs_map_blocks+0x548/0x940 [ 557.541993] ? xfs_vm_set_page_dirty+0x610/0x610 [ 557.546752] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 557.552174] xfs_do_writepage+0x422/0x13d0 [ 557.556395] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 557.560698] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 557.566139] write_cache_pages+0x505/0xd20 [ 557.570351] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 557.574659] ? clear_page_dirty_for_io+0xb80/0xb80 [ 557.579580] ? trace_hardirqs_on+0x10/0x10 [ 557.583789] xfs_vm_writepages+0x258/0x340 [ 557.587994] ? xfs_vm_writepage+0xd0/0xd0 [ 557.592116] ? xfs_vm_writepage+0xd0/0xd0 [ 557.596242] do_writepages+0xc3/0x240 [ 557.600026] ? page_writeback_cpu_online+0x10/0x10 [ 557.604930] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 557.610377] __writeback_single_inode+0xda/0x1010 [ 557.615207] writeback_sb_inodes+0x48b/0xd30 [ 557.619599] ? wbc_detach_inode+0x780/0x780 [ 557.623898] ? queue_io+0x400/0x5a0 [ 557.627500] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 557.632926] wb_writeback+0x243/0xb80 [ 557.636714] ? writeback_inodes_wb.constprop.0+0x1a0/0x1a0 [ 557.642320] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 557.647745] wb_workfn+0x2bd/0xf50 [ 557.651261] ? process_one_work+0x6c4/0x14a0 [ 557.655648] ? inode_wait_for_writeback+0x30/0x30 [ 557.660472] ? lock_acquire+0x170/0x3f0 [ 557.664420] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 557.669842] process_one_work+0x793/0x14a0 [ 557.674061] ? work_busy+0x320/0x320 [ 557.677764] ? worker_thread+0x158/0xff0 [ 557.681809] ? _raw_spin_unlock_irq+0x24/0x80 [ 557.686295] worker_thread+0x5cc/0xff0 [ 557.690165] ? rescuer_thread+0xc80/0xc80 [ 557.694302] kthread+0x30d/0x420 [ 557.697652] ? kthread_create_on_node+0xd0/0xd0 [ 557.702316] ret_from_fork+0x24/0x30 [ 557.706585] XFS (loop1): page discard on page ffffea0001094400, inode 0x29, offset 1781760. [ 557.715476] XFS (loop1): Internal error XFS_WANT_CORRUPTED_RETURN at line 431 of file fs/xfs/libxfs/xfs_alloc.c. Caller xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 557.730018] CPU: 1 PID: 2818 Comm: kworker/u4:3 Not tainted 4.14.303-syzkaller #0 [ 557.737621] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023 [ 557.746968] Workqueue: writeback wb_workfn (flush-7:1) [ 557.752229] Call Trace: [ 557.754795] dump_stack+0x1b2/0x281 [ 557.758400] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 557.763658] xfs_error_report+0x98/0xa0 [ 557.767612] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 557.772880] xfs_alloc_fixup_trees+0x425/0x4f0 [ 557.777544] ? xfs_alloc_update+0x90/0x90 [ 557.781670] ? xfs_btree_rec_offset.isra.0+0x3b/0xa0 [ 557.786748] ? xfs_alloc_compute_diff+0x23c/0x3d0 [ 557.791563] xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 557.796646] ? xfs_alloc_fix_freelist+0x685/0xeb0 [ 557.801462] ? xfs_alloc_ag_vextent_size+0x1ea0/0x1ea0 [ 557.806718] ? xfs_alloc_read_agf+0xb10/0xb10 [ 557.811196] xfs_alloc_ag_vextent+0x579/0x750 [ 557.815668] ? xfs_perag_get+0x116/0x410 [ 557.819703] ? xfs_alloc_vextent+0x470/0x2010 [ 557.824180] xfs_alloc_vextent+0x10b0/0x2010 [ 557.828580] xfs_bmap_btalloc+0x9e5/0x1b20 [ 557.832791] ? xfs_bmap_adjacent+0x1480/0x1480 [ 557.837346] ? ret_from_fork+0x24/0x30 [ 557.841215] ? __xfs_bmbt_get_all+0x16/0x100 [ 557.845606] xfs_bmap_alloc+0x107/0x160 [ 557.849558] xfs_bmapi_write+0xa49/0x1d00 [ 557.853694] ? xfs_bmapi_reserve_delalloc+0x7c0/0x7c0 [ 557.858863] ? trace_hardirqs_on+0x10/0x10 [ 557.863075] ? xfs_iext_get_ext+0xeb/0x200 [ 557.867290] ? xfs_iext_idx_to_irec+0x340/0x340 [ 557.871948] ? xfs_bmap_last_extent+0x1d0/0x1d0 [ 557.876599] xfs_iomap_write_allocate+0x42b/0xa30 [ 557.881427] ? xfs_file_iomap_begin+0x1ed0/0x1ed0 [ 557.886251] ? xfs_iunlock+0x248/0x3b0 [ 557.890118] ? rcu_read_lock_sched_held+0x16c/0x1d0 [ 557.895106] ? xfs_iunlock+0x21a/0x3b0 [ 557.898969] xfs_map_blocks+0x548/0x940 [ 557.902919] ? xfs_vm_set_page_dirty+0x610/0x610 [ 557.907654] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 557.913079] xfs_do_writepage+0x422/0x13d0 [ 557.917292] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 557.921591] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 557.927018] write_cache_pages+0x505/0xd20 [ 557.931251] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 557.935551] ? clear_page_dirty_for_io+0xb80/0xb80 [ 557.940458] ? trace_hardirqs_on+0x10/0x10 [ 557.944684] xfs_vm_writepages+0x258/0x340 [ 557.948912] ? xfs_vm_writepage+0xd0/0xd0 [ 557.953048] ? xfs_vm_writepage+0xd0/0xd0 [ 557.957175] do_writepages+0xc3/0x240 [ 557.960952] ? page_writeback_cpu_online+0x10/0x10 [ 557.965862] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 557.971291] __writeback_single_inode+0xda/0x1010 [ 557.976111] writeback_sb_inodes+0x48b/0xd30 [ 557.980498] ? wbc_detach_inode+0x780/0x780 [ 557.984808] ? queue_io+0x400/0x5a0 [ 557.988540] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 557.993982] wb_writeback+0x243/0xb80 [ 557.997775] ? writeback_inodes_wb.constprop.0+0x1a0/0x1a0 [ 558.003383] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 558.008813] wb_workfn+0x2bd/0xf50 [ 558.012330] ? process_one_work+0x6c4/0x14a0 [ 558.016717] ? inode_wait_for_writeback+0x30/0x30 [ 558.021544] ? lock_acquire+0x170/0x3f0 [ 558.025502] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 558.030933] process_one_work+0x793/0x14a0 [ 558.035164] ? work_busy+0x320/0x320 [ 558.038864] ? worker_thread+0x158/0xff0 [ 558.042908] ? _raw_spin_unlock_irq+0x24/0x80 [ 558.047387] worker_thread+0x5cc/0xff0 [ 558.051254] ? rescuer_thread+0xc80/0xc80 [ 558.055378] kthread+0x30d/0x420 [ 558.058718] ? kthread_create_on_node+0xd0/0xd0 [ 558.063370] ret_from_fork+0x24/0x30 [ 558.067482] XFS (loop1): page discard on page ffffea0001094440, inode 0x29, offset 1785856. [ 558.076397] XFS (loop1): Internal error XFS_WANT_CORRUPTED_RETURN at line 431 of file fs/xfs/libxfs/xfs_alloc.c. Caller xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 558.090949] CPU: 1 PID: 2818 Comm: kworker/u4:3 Not tainted 4.14.303-syzkaller #0 [ 558.098561] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023 [ 558.107905] Workqueue: writeback wb_workfn (flush-7:1) [ 558.113156] Call Trace: [ 558.115720] dump_stack+0x1b2/0x281 [ 558.119325] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 558.124579] xfs_error_report+0x98/0xa0 [ 558.128533] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 558.133782] xfs_alloc_fixup_trees+0x425/0x4f0 [ 558.138339] ? xfs_alloc_update+0x90/0x90 [ 558.142460] ? xfs_btree_rec_offset.isra.0+0x3b/0xa0 [ 558.147538] ? xfs_alloc_compute_diff+0x23c/0x3d0 [ 558.152353] xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 558.157449] ? xfs_alloc_fix_freelist+0x685/0xeb0 [ 558.162273] ? xfs_alloc_ag_vextent_size+0x1ea0/0x1ea0 [ 558.167527] ? xfs_alloc_read_agf+0xb10/0xb10 [ 558.172036] xfs_alloc_ag_vextent+0x579/0x750 [ 558.176508] ? xfs_perag_get+0x116/0x410 [ 558.180544] ? xfs_alloc_vextent+0x470/0x2010 [ 558.185023] xfs_alloc_vextent+0x10b0/0x2010 [ 558.189417] xfs_bmap_btalloc+0x9e5/0x1b20 [ 558.193645] ? xfs_bmap_adjacent+0x1480/0x1480 [ 558.198204] ? ret_from_fork+0x24/0x30 [ 558.202072] ? __xfs_bmbt_get_all+0x16/0x100 [ 558.206462] xfs_bmap_alloc+0x107/0x160 [ 558.210417] xfs_bmapi_write+0xa49/0x1d00 [ 558.214542] ? xfs_bmapi_reserve_delalloc+0x7c0/0x7c0 [ 558.219715] ? trace_hardirqs_on+0x10/0x10 [ 558.223930] ? xfs_iext_get_ext+0xeb/0x200 [ 558.228143] ? xfs_iext_idx_to_irec+0x340/0x340 [ 558.232788] ? xfs_bmap_last_extent+0x1d0/0x1d0 [ 558.237450] xfs_iomap_write_allocate+0x42b/0xa30 [ 558.242271] ? xfs_file_iomap_begin+0x1ed0/0x1ed0 [ 558.247104] ? xfs_iunlock+0x248/0x3b0 [ 558.250972] ? rcu_read_lock_sched_held+0x16c/0x1d0 [ 558.255969] ? xfs_iunlock+0x21a/0x3b0 [ 558.259843] xfs_map_blocks+0x548/0x940 [ 558.263798] ? xfs_vm_set_page_dirty+0x610/0x610 [ 558.268534] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 558.273957] xfs_do_writepage+0x422/0x13d0 [ 558.278170] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 558.282468] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 558.287905] write_cache_pages+0x505/0xd20 [ 558.292118] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 558.296416] ? clear_page_dirty_for_io+0xb80/0xb80 [ 558.301329] ? trace_hardirqs_on+0x10/0x10 [ 558.305544] xfs_vm_writepages+0x258/0x340 [ 558.309758] ? xfs_vm_writepage+0xd0/0xd0 [ 558.313884] ? xfs_vm_writepage+0xd0/0xd0 [ 558.318004] do_writepages+0xc3/0x240 [ 558.321778] ? page_writeback_cpu_online+0x10/0x10 [ 558.326693] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 558.332123] __writeback_single_inode+0xda/0x1010 [ 558.336942] writeback_sb_inodes+0x48b/0xd30 [ 558.341330] ? wbc_detach_inode+0x780/0x780 [ 558.345640] ? queue_io+0x400/0x5a0 [ 558.349250] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 558.354674] wb_writeback+0x243/0xb80 [ 558.358450] ? writeback_inodes_wb.constprop.0+0x1a0/0x1a0 [ 558.364060] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 558.369489] wb_workfn+0x2bd/0xf50 [ 558.373006] ? process_one_work+0x6c4/0x14a0 [ 558.377386] ? inode_wait_for_writeback+0x30/0x30 [ 558.382202] ? lock_acquire+0x170/0x3f0 [ 558.386163] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 558.391593] process_one_work+0x793/0x14a0 [ 558.395810] ? work_busy+0x320/0x320 [ 558.399498] ? worker_thread+0x158/0xff0 [ 558.403537] ? _raw_spin_unlock_irq+0x24/0x80 [ 558.408012] worker_thread+0x5cc/0xff0 [ 558.411879] ? rescuer_thread+0xc80/0xc80 [ 558.416157] kthread+0x30d/0x420 [ 558.419499] ? kthread_create_on_node+0xd0/0xd0 [ 558.424148] ret_from_fork+0x24/0x30 [ 558.428383] XFS (loop1): page discard on page ffffea0001094480, inode 0x29, offset 1789952. [ 558.437308] XFS (loop1): Internal error XFS_WANT_CORRUPTED_RETURN at line 431 of file fs/xfs/libxfs/xfs_alloc.c. Caller xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 558.451855] CPU: 1 PID: 2818 Comm: kworker/u4:3 Not tainted 4.14.303-syzkaller #0 [ 558.459456] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023 [ 558.468797] Workqueue: writeback wb_workfn (flush-7:1) [ 558.474052] Call Trace: [ 558.476616] dump_stack+0x1b2/0x281 [ 558.480224] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 558.485481] xfs_error_report+0x98/0xa0 [ 558.489443] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 558.494699] xfs_alloc_fixup_trees+0x425/0x4f0 [ 558.499263] ? xfs_alloc_update+0x90/0x90 [ 558.503393] ? xfs_btree_rec_offset.isra.0+0x3b/0xa0 [ 558.508480] ? xfs_alloc_compute_diff+0x23c/0x3d0 [ 558.513303] xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 558.518411] ? xfs_alloc_fix_freelist+0x685/0xeb0 [ 558.523228] ? xfs_alloc_ag_vextent_size+0x1ea0/0x1ea0 [ 558.528503] ? xfs_alloc_read_agf+0xb10/0xb10 [ 558.532978] xfs_alloc_ag_vextent+0x579/0x750 [ 558.537445] ? xfs_perag_get+0x116/0x410 [ 558.541487] ? xfs_alloc_vextent+0x470/0x2010 [ 558.545964] xfs_alloc_vextent+0x10b0/0x2010 [ 558.550357] xfs_bmap_btalloc+0x9e5/0x1b20 [ 558.554567] ? xfs_bmap_adjacent+0x1480/0x1480 [ 558.559122] ? ret_from_fork+0x24/0x30 [ 558.562987] ? __xfs_bmbt_get_all+0x16/0x100 [ 558.567369] xfs_bmap_alloc+0x107/0x160 [ 558.571340] xfs_bmapi_write+0xa49/0x1d00 [ 558.575477] ? xfs_bmapi_reserve_delalloc+0x7c0/0x7c0 [ 558.580648] ? trace_hardirqs_on+0x10/0x10 [ 558.584867] ? xfs_iext_get_ext+0xeb/0x200 [ 558.589088] ? xfs_iext_idx_to_irec+0x340/0x340 [ 558.593740] ? xfs_bmap_last_extent+0x1d0/0x1d0 [ 558.598390] xfs_iomap_write_allocate+0x42b/0xa30 [ 558.603219] ? xfs_file_iomap_begin+0x1ed0/0x1ed0 [ 558.608039] ? xfs_iunlock+0x248/0x3b0 [ 558.611906] ? rcu_read_lock_sched_held+0x16c/0x1d0 [ 558.616899] ? xfs_iunlock+0x21a/0x3b0 [ 558.620761] xfs_map_blocks+0x548/0x940 [ 558.624720] ? xfs_vm_set_page_dirty+0x610/0x610 [ 558.629474] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 558.634907] xfs_do_writepage+0x422/0x13d0 [ 558.639126] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 558.643432] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 558.648866] write_cache_pages+0x505/0xd20 [ 558.653096] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 558.657395] ? clear_page_dirty_for_io+0xb80/0xb80 [ 558.662301] ? trace_hardirqs_on+0x10/0x10 [ 558.666518] xfs_vm_writepages+0x258/0x340 [ 558.670751] ? xfs_vm_writepage+0xd0/0xd0 [ 558.674874] ? xfs_vm_writepage+0xd0/0xd0 [ 558.678994] do_writepages+0xc3/0x240 [ 558.682768] ? page_writeback_cpu_online+0x10/0x10 [ 558.687677] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 558.693103] __writeback_single_inode+0xda/0x1010 [ 558.697939] writeback_sb_inodes+0x48b/0xd30 [ 558.702325] ? wbc_detach_inode+0x780/0x780 [ 558.706646] ? queue_io+0x400/0x5a0 [ 558.710261] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 558.715710] wb_writeback+0x243/0xb80 [ 558.719493] ? writeback_inodes_wb.constprop.0+0x1a0/0x1a0 [ 558.725102] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 558.730533] wb_workfn+0x2bd/0xf50 [ 558.734055] ? process_one_work+0x6c4/0x14a0 [ 558.738439] ? inode_wait_for_writeback+0x30/0x30 [ 558.743264] ? lock_acquire+0x170/0x3f0 [ 558.747218] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 558.752643] process_one_work+0x793/0x14a0 [ 558.756853] ? work_busy+0x320/0x320 [ 558.760540] ? worker_thread+0x158/0xff0 [ 558.764584] ? _raw_spin_unlock_irq+0x24/0x80 [ 558.769061] worker_thread+0x5cc/0xff0 [ 558.772927] ? rescuer_thread+0xc80/0xc80 [ 558.777047] kthread+0x30d/0x420 [ 558.780386] ? kthread_create_on_node+0xd0/0xd0 [ 558.785036] ret_from_fork+0x24/0x30 [ 558.789166] XFS (loop1): page discard on page ffffea00010944c0, inode 0x29, offset 1794048. [ 558.798084] XFS (loop1): Internal error XFS_WANT_CORRUPTED_RETURN at line 431 of file fs/xfs/libxfs/xfs_alloc.c. Caller xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 558.812635] CPU: 1 PID: 2818 Comm: kworker/u4:3 Not tainted 4.14.303-syzkaller #0 [ 558.820242] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023 [ 558.829589] Workqueue: writeback wb_workfn (flush-7:1) [ 558.834842] Call Trace: [ 558.837408] dump_stack+0x1b2/0x281 [ 558.841010] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 558.846269] xfs_error_report+0x98/0xa0 [ 558.850222] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 558.855474] xfs_alloc_fixup_trees+0x425/0x4f0 [ 558.860029] ? xfs_alloc_update+0x90/0x90 [ 558.864155] ? xfs_btree_rec_offset.isra.0+0x3b/0xa0 [ 558.869244] ? xfs_alloc_compute_diff+0x23c/0x3d0 [ 558.874060] xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 558.879142] ? xfs_alloc_fix_freelist+0x685/0xeb0 [ 558.883960] ? xfs_alloc_ag_vextent_size+0x1ea0/0x1ea0 [ 558.889251] ? xfs_alloc_read_agf+0xb10/0xb10 [ 558.893750] xfs_alloc_ag_vextent+0x579/0x750 [ 558.898231] ? xfs_perag_get+0x116/0x410 [ 558.902266] ? xfs_alloc_vextent+0x470/0x2010 [ 558.906745] xfs_alloc_vextent+0x10b0/0x2010 [ 558.911139] xfs_bmap_btalloc+0x9e5/0x1b20 [ 558.915353] ? xfs_bmap_adjacent+0x1480/0x1480 [ 558.919910] ? ret_from_fork+0x24/0x30 [ 558.923789] ? __xfs_bmbt_get_all+0x16/0x100 [ 558.928179] xfs_bmap_alloc+0x107/0x160 [ 558.932129] xfs_bmapi_write+0xa49/0x1d00 [ 558.936255] ? xfs_bmapi_reserve_delalloc+0x7c0/0x7c0 [ 558.941427] ? trace_hardirqs_on+0x10/0x10 [ 558.945647] ? xfs_iext_get_ext+0xeb/0x200 [ 558.949862] ? xfs_iext_idx_to_irec+0x340/0x340 [ 558.954511] ? xfs_bmap_last_extent+0x1d0/0x1d0 [ 558.959161] xfs_iomap_write_allocate+0x42b/0xa30 [ 558.963996] ? xfs_file_iomap_begin+0x1ed0/0x1ed0 [ 558.968820] ? xfs_iunlock+0x248/0x3b0 [ 558.972685] ? rcu_read_lock_sched_held+0x16c/0x1d0 [ 558.977673] ? xfs_iunlock+0x21a/0x3b0 [ 558.981532] xfs_map_blocks+0x548/0x940 [ 558.985490] ? xfs_vm_set_page_dirty+0x610/0x610 [ 558.990229] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 558.995652] xfs_do_writepage+0x422/0x13d0 [ 558.999865] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 559.004170] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 559.009608] write_cache_pages+0x505/0xd20 [ 559.013817] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 559.018113] ? clear_page_dirty_for_io+0xb80/0xb80 [ 559.023018] ? trace_hardirqs_on+0x10/0x10 [ 559.027230] xfs_vm_writepages+0x258/0x340 [ 559.031438] ? xfs_vm_writepage+0xd0/0xd0 [ 559.035565] ? xfs_vm_writepage+0xd0/0xd0 [ 559.039684] do_writepages+0xc3/0x240 [ 559.043468] ? page_writeback_cpu_online+0x10/0x10 [ 559.048397] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 559.053823] __writeback_single_inode+0xda/0x1010 [ 559.058639] writeback_sb_inodes+0x48b/0xd30 [ 559.063024] ? wbc_detach_inode+0x780/0x780 [ 559.067324] ? queue_io+0x400/0x5a0 [ 559.070936] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 559.076359] wb_writeback+0x243/0xb80 [ 559.080136] ? writeback_inodes_wb.constprop.0+0x1a0/0x1a0 [ 559.085744] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 559.091183] wb_workfn+0x2bd/0xf50 [ 559.094697] ? process_one_work+0x6c4/0x14a0 [ 559.099077] ? inode_wait_for_writeback+0x30/0x30 [ 559.103902] ? lock_acquire+0x170/0x3f0 [ 559.107858] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 559.113289] process_one_work+0x793/0x14a0 [ 559.117514] ? work_busy+0x320/0x320 [ 559.121202] ? worker_thread+0x158/0xff0 [ 559.125242] ? _raw_spin_unlock_irq+0x24/0x80 [ 559.129719] worker_thread+0x5cc/0xff0 [ 559.133584] ? rescuer_thread+0xc80/0xc80 [ 559.137707] kthread+0x30d/0x420 [ 559.141045] ? kthread_create_on_node+0xd0/0xd0 [ 559.145694] ret_from_fork+0x24/0x30 [ 559.150036] XFS (loop1): page discard on page ffffea0001094500, inode 0x29, offset 1798144. [ 559.158933] XFS (loop1): Internal error XFS_WANT_CORRUPTED_RETURN at line 431 of file fs/xfs/libxfs/xfs_alloc.c. Caller xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 559.173469] CPU: 1 PID: 2818 Comm: kworker/u4:3 Not tainted 4.14.303-syzkaller #0 [ 559.181068] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023 [ 559.190419] Workqueue: writeback wb_workfn (flush-7:1) [ 559.195676] Call Trace: [ 559.198247] dump_stack+0x1b2/0x281 [ 559.201856] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 559.207119] xfs_error_report+0x98/0xa0 [ 559.211077] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 559.216331] xfs_alloc_fixup_trees+0x425/0x4f0 [ 559.220888] ? xfs_alloc_update+0x90/0x90 [ 559.225015] ? xfs_btree_rec_offset.isra.0+0x3b/0xa0 [ 559.230100] ? xfs_alloc_compute_diff+0x23c/0x3d0 [ 559.234920] xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 559.240002] ? xfs_alloc_fix_freelist+0x685/0xeb0 [ 559.244823] ? xfs_alloc_ag_vextent_size+0x1ea0/0x1ea0 [ 559.250097] ? xfs_alloc_read_agf+0xb10/0xb10 [ 559.254578] xfs_alloc_ag_vextent+0x579/0x750 [ 559.259045] ? xfs_perag_get+0x116/0x410 [ 559.263077] ? xfs_alloc_vextent+0x470/0x2010 [ 559.267547] xfs_alloc_vextent+0x10b0/0x2010 [ 559.271935] xfs_bmap_btalloc+0x9e5/0x1b20 [ 559.276149] ? xfs_bmap_adjacent+0x1480/0x1480 [ 559.280707] ? ret_from_fork+0x24/0x30 [ 559.284586] ? __xfs_bmbt_get_all+0x16/0x100 [ 559.288974] xfs_bmap_alloc+0x107/0x160 [ 559.292920] xfs_bmapi_write+0xa49/0x1d00 [ 559.297058] ? xfs_bmapi_reserve_delalloc+0x7c0/0x7c0 [ 559.302234] ? trace_hardirqs_on+0x10/0x10 [ 559.306456] ? xfs_iext_get_ext+0xeb/0x200 [ 559.310668] ? xfs_iext_idx_to_irec+0x340/0x340 [ 559.315341] ? xfs_bmap_last_extent+0x1d0/0x1d0 [ 559.319988] xfs_iomap_write_allocate+0x42b/0xa30 [ 559.324824] ? xfs_file_iomap_begin+0x1ed0/0x1ed0 [ 559.329647] ? xfs_iunlock+0x248/0x3b0 [ 559.333524] ? rcu_read_lock_sched_held+0x16c/0x1d0 [ 559.338524] ? xfs_iunlock+0x21a/0x3b0 [ 559.342384] xfs_map_blocks+0x548/0x940 [ 559.346343] ? xfs_vm_set_page_dirty+0x610/0x610 [ 559.351079] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 559.356502] xfs_do_writepage+0x422/0x13d0 [ 559.360715] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 559.365023] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 559.370470] write_cache_pages+0x505/0xd20 [ 559.374684] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 559.378982] ? clear_page_dirty_for_io+0xb80/0xb80 [ 559.383902] ? trace_hardirqs_on+0x10/0x10 [ 559.388118] xfs_vm_writepages+0x258/0x340 [ 559.392330] ? xfs_vm_writepage+0xd0/0xd0 [ 559.396454] ? xfs_vm_writepage+0xd0/0xd0 [ 559.400574] do_writepages+0xc3/0x240 [ 559.404361] ? page_writeback_cpu_online+0x10/0x10 [ 559.409287] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 559.414712] __writeback_single_inode+0xda/0x1010 [ 559.419528] writeback_sb_inodes+0x48b/0xd30 [ 559.423923] ? wbc_detach_inode+0x780/0x780 [ 559.428235] ? queue_io+0x400/0x5a0 [ 559.431835] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 559.437259] wb_writeback+0x243/0xb80 [ 559.441034] ? writeback_inodes_wb.constprop.0+0x1a0/0x1a0 [ 559.446644] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 559.452075] wb_workfn+0x2bd/0xf50 [ 559.455589] ? process_one_work+0x6c4/0x14a0 [ 559.459971] ? inode_wait_for_writeback+0x30/0x30 [ 559.464793] ? lock_acquire+0x170/0x3f0 [ 559.468749] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 559.474176] process_one_work+0x793/0x14a0 [ 559.478386] ? work_busy+0x320/0x320 [ 559.482070] ? worker_thread+0x158/0xff0 [ 559.486109] ? _raw_spin_unlock_irq+0x24/0x80 [ 559.490600] worker_thread+0x5cc/0xff0 [ 559.494465] ? rescuer_thread+0xc80/0xc80 [ 559.498588] kthread+0x30d/0x420 [ 559.501926] ? kthread_create_on_node+0xd0/0xd0 [ 559.506576] ret_from_fork+0x24/0x30 [ 559.510927] XFS (loop1): page discard on page ffffea0001094540, inode 0x29, offset 1802240. [ 559.519816] XFS (loop1): Internal error XFS_WANT_CORRUPTED_RETURN at line 431 of file fs/xfs/libxfs/xfs_alloc.c. Caller xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 559.534355] CPU: 1 PID: 2818 Comm: kworker/u4:3 Not tainted 4.14.303-syzkaller #0 [ 559.541960] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023 [ 559.551325] Workqueue: writeback wb_workfn (flush-7:1) [ 559.556580] Call Trace: [ 559.559150] dump_stack+0x1b2/0x281 [ 559.562753] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 559.568010] xfs_error_report+0x98/0xa0 [ 559.571959] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 559.577213] xfs_alloc_fixup_trees+0x425/0x4f0 [ 559.581771] ? xfs_alloc_update+0x90/0x90 [ 559.585898] ? xfs_btree_rec_offset.isra.0+0x3b/0xa0 [ 559.590984] ? xfs_alloc_compute_diff+0x23c/0x3d0 [ 559.595803] xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 559.600883] ? xfs_alloc_fix_freelist+0x685/0xeb0 [ 559.605702] ? xfs_alloc_ag_vextent_size+0x1ea0/0x1ea0 [ 559.610959] ? xfs_alloc_read_agf+0xb10/0xb10 [ 559.615459] xfs_alloc_ag_vextent+0x579/0x750 [ 559.619930] ? xfs_perag_get+0x116/0x410 [ 559.623966] ? xfs_alloc_vextent+0x470/0x2010 [ 559.628443] xfs_alloc_vextent+0x10b0/0x2010 [ 559.632829] xfs_bmap_btalloc+0x9e5/0x1b20 [ 559.637040] ? xfs_bmap_adjacent+0x1480/0x1480 [ 559.641594] ? ret_from_fork+0x24/0x30 [ 559.645474] ? __xfs_bmbt_get_all+0x16/0x100 [ 559.649868] xfs_bmap_alloc+0x107/0x160 [ 559.653814] xfs_bmapi_write+0xa49/0x1d00 [ 559.657940] ? xfs_bmapi_reserve_delalloc+0x7c0/0x7c0 [ 559.663106] ? trace_hardirqs_on+0x10/0x10 [ 559.667318] ? xfs_iext_get_ext+0xeb/0x200 [ 559.671526] ? xfs_iext_idx_to_irec+0x340/0x340 [ 559.676189] ? xfs_bmap_last_extent+0x1d0/0x1d0 [ 559.680836] xfs_iomap_write_allocate+0x42b/0xa30 [ 559.685668] ? xfs_file_iomap_begin+0x1ed0/0x1ed0 [ 559.690494] ? xfs_iunlock+0x248/0x3b0 [ 559.694361] ? rcu_read_lock_sched_held+0x16c/0x1d0 [ 559.699350] ? xfs_iunlock+0x21a/0x3b0 [ 559.703214] xfs_map_blocks+0x548/0x940 [ 559.707173] ? xfs_vm_set_page_dirty+0x610/0x610 [ 559.711902] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 559.717323] xfs_do_writepage+0x422/0x13d0 [ 559.721536] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 559.725840] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 559.731288] write_cache_pages+0x505/0xd20 [ 559.735495] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 559.739793] ? clear_page_dirty_for_io+0xb80/0xb80 [ 559.744712] ? trace_hardirqs_on+0x10/0x10 [ 559.748927] xfs_vm_writepages+0x258/0x340 [ 559.753143] ? xfs_vm_writepage+0xd0/0xd0 [ 559.757269] ? xfs_vm_writepage+0xd0/0xd0 [ 559.761388] do_writepages+0xc3/0x240 [ 559.765170] ? page_writeback_cpu_online+0x10/0x10 [ 559.770081] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 559.775506] __writeback_single_inode+0xda/0x1010 [ 559.780322] writeback_sb_inodes+0x48b/0xd30 [ 559.784719] ? wbc_detach_inode+0x780/0x780 [ 559.789022] ? queue_io+0x400/0x5a0 [ 559.792639] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 559.798061] wb_writeback+0x243/0xb80 [ 559.801840] ? writeback_inodes_wb.constprop.0+0x1a0/0x1a0 [ 559.807439] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 559.812863] wb_workfn+0x2bd/0xf50 [ 559.816380] ? process_one_work+0x6c4/0x14a0 [ 559.820762] ? inode_wait_for_writeback+0x30/0x30 [ 559.825586] ? lock_acquire+0x170/0x3f0 [ 559.829540] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 559.834965] process_one_work+0x793/0x14a0 [ 559.839179] ? work_busy+0x320/0x320 [ 559.842867] ? worker_thread+0x158/0xff0 [ 559.846910] ? _raw_spin_unlock_irq+0x24/0x80 [ 559.851380] worker_thread+0x5cc/0xff0 [ 559.855244] ? rescuer_thread+0xc80/0xc80 [ 559.859365] kthread+0x30d/0x420 [ 559.862726] ? kthread_create_on_node+0xd0/0xd0 [ 559.867368] ret_from_fork+0x24/0x30 [ 559.871643] XFS (loop1): page discard on page ffffea0001094580, inode 0x29, offset 1806336. [ 559.880544] XFS (loop1): Internal error XFS_WANT_CORRUPTED_RETURN at line 431 of file fs/xfs/libxfs/xfs_alloc.c. Caller xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 559.895082] CPU: 1 PID: 2818 Comm: kworker/u4:3 Not tainted 4.14.303-syzkaller #0 [ 559.902681] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023 [ 559.912016] Workqueue: writeback wb_workfn (flush-7:1) [ 559.917270] Call Trace: [ 559.919836] dump_stack+0x1b2/0x281 [ 559.923445] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 559.928703] xfs_error_report+0x98/0xa0 [ 559.932647] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 559.937906] xfs_alloc_fixup_trees+0x425/0x4f0 [ 559.942462] ? xfs_alloc_update+0x90/0x90 [ 559.946587] ? xfs_btree_rec_offset.isra.0+0x3b/0xa0 [ 559.951673] ? xfs_alloc_compute_diff+0x23c/0x3d0 [ 559.956489] xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 559.961567] ? xfs_alloc_fix_freelist+0x685/0xeb0 [ 559.966387] ? xfs_alloc_ag_vextent_size+0x1ea0/0x1ea0 [ 559.971644] ? xfs_alloc_read_agf+0xb10/0xb10 [ 559.976127] xfs_alloc_ag_vextent+0x579/0x750 [ 559.980607] ? xfs_perag_get+0x116/0x410 [ 559.984643] ? xfs_alloc_vextent+0x470/0x2010 [ 559.989126] xfs_alloc_vextent+0x10b0/0x2010 [ 559.993513] xfs_bmap_btalloc+0x9e5/0x1b20 [ 559.997724] ? xfs_bmap_adjacent+0x1480/0x1480 [ 560.002278] ? ret_from_fork+0x24/0x30 [ 560.006166] ? __xfs_bmbt_get_all+0x16/0x100 [ 560.010555] xfs_bmap_alloc+0x107/0x160 [ 560.014507] xfs_bmapi_write+0xa49/0x1d00 [ 560.018646] ? xfs_bmapi_reserve_delalloc+0x7c0/0x7c0 [ 560.023816] ? trace_hardirqs_on+0x10/0x10 [ 560.028032] ? xfs_iext_get_ext+0xeb/0x200 [ 560.032238] ? xfs_iext_idx_to_irec+0x340/0x340 [ 560.036884] ? xfs_bmap_last_extent+0x1d0/0x1d0 [ 560.041536] xfs_iomap_write_allocate+0x42b/0xa30 [ 560.046371] ? xfs_file_iomap_begin+0x1ed0/0x1ed0 [ 560.051194] ? xfs_iunlock+0x248/0x3b0 [ 560.055061] ? rcu_read_lock_sched_held+0x16c/0x1d0 [ 560.060048] ? xfs_iunlock+0x21a/0x3b0 [ 560.063913] xfs_map_blocks+0x548/0x940 [ 560.067869] ? xfs_vm_set_page_dirty+0x610/0x610 [ 560.072596] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 560.078021] xfs_do_writepage+0x422/0x13d0 [ 560.082232] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 560.086536] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 560.091980] write_cache_pages+0x505/0xd20 [ 560.096192] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 560.100490] ? clear_page_dirty_for_io+0xb80/0xb80 [ 560.105410] ? trace_hardirqs_on+0x10/0x10 [ 560.109640] xfs_vm_writepages+0x258/0x340 [ 560.113848] ? xfs_vm_writepage+0xd0/0xd0 [ 560.117987] ? xfs_vm_writepage+0xd0/0xd0 [ 560.122113] do_writepages+0xc3/0x240 [ 560.125896] ? page_writeback_cpu_online+0x10/0x10 [ 560.130822] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 560.136245] __writeback_single_inode+0xda/0x1010 [ 560.141063] writeback_sb_inodes+0x48b/0xd30 [ 560.145460] ? wbc_detach_inode+0x780/0x780 [ 560.149768] ? queue_io+0x400/0x5a0 [ 560.153369] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 560.158789] wb_writeback+0x243/0xb80 [ 560.162566] ? writeback_inodes_wb.constprop.0+0x1a0/0x1a0 [ 560.168166] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 560.173602] wb_workfn+0x2bd/0xf50 [ 560.177123] ? process_one_work+0x6c4/0x14a0 [ 560.181506] ? inode_wait_for_writeback+0x30/0x30 [ 560.186330] ? lock_acquire+0x170/0x3f0 [ 560.190287] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 560.195711] process_one_work+0x793/0x14a0 [ 560.199923] ? work_busy+0x320/0x320 [ 560.203613] ? worker_thread+0x158/0xff0 [ 560.207657] ? _raw_spin_unlock_irq+0x24/0x80 [ 560.212128] worker_thread+0x5cc/0xff0 [ 560.215993] ? rescuer_thread+0xc80/0xc80 [ 560.220120] kthread+0x30d/0x420 [ 560.223463] ? kthread_create_on_node+0xd0/0xd0 [ 560.228116] ret_from_fork+0x24/0x30 [ 560.232204] XFS (loop1): page discard on page ffffea00010945c0, inode 0x29, offset 1810432. [ 560.241107] XFS (loop1): Internal error XFS_WANT_CORRUPTED_RETURN at line 431 of file fs/xfs/libxfs/xfs_alloc.c. Caller xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 560.255652] CPU: 1 PID: 2818 Comm: kworker/u4:3 Not tainted 4.14.303-syzkaller #0 [ 560.263258] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023 [ 560.272607] Workqueue: writeback wb_workfn (flush-7:1) [ 560.277860] Call Trace: [ 560.280423] dump_stack+0x1b2/0x281 [ 560.284034] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 560.289291] xfs_error_report+0x98/0xa0 [ 560.293258] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 560.298513] xfs_alloc_fixup_trees+0x425/0x4f0 [ 560.303082] ? xfs_alloc_update+0x90/0x90 [ 560.307208] ? xfs_btree_rec_offset.isra.0+0x3b/0xa0 [ 560.312283] ? xfs_alloc_compute_diff+0x23c/0x3d0 [ 560.317104] xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 560.322185] ? xfs_alloc_fix_freelist+0x685/0xeb0 [ 560.326998] ? xfs_alloc_ag_vextent_size+0x1ea0/0x1ea0 [ 560.332248] ? xfs_alloc_read_agf+0xb10/0xb10 [ 560.336753] xfs_alloc_ag_vextent+0x579/0x750 [ 560.341249] ? xfs_perag_get+0x116/0x410 [ 560.345289] ? xfs_alloc_vextent+0x470/0x2010 [ 560.349766] xfs_alloc_vextent+0x10b0/0x2010 [ 560.354154] xfs_bmap_btalloc+0x9e5/0x1b20 [ 560.358368] ? xfs_bmap_adjacent+0x1480/0x1480 [ 560.362922] ? ret_from_fork+0x24/0x30 [ 560.366789] ? __xfs_bmbt_get_all+0x16/0x100 [ 560.371172] xfs_bmap_alloc+0x107/0x160 [ 560.375120] xfs_bmapi_write+0xa49/0x1d00 [ 560.379266] ? xfs_bmapi_reserve_delalloc+0x7c0/0x7c0 [ 560.384432] ? trace_hardirqs_on+0x10/0x10 [ 560.388646] ? xfs_iext_get_ext+0xeb/0x200 [ 560.392864] ? xfs_iext_idx_to_irec+0x340/0x340 [ 560.397524] ? xfs_bmap_last_extent+0x1d0/0x1d0 [ 560.402170] xfs_iomap_write_allocate+0x42b/0xa30 [ 560.406997] ? xfs_file_iomap_begin+0x1ed0/0x1ed0 [ 560.411812] ? xfs_iunlock+0x248/0x3b0 [ 560.415678] ? rcu_read_lock_sched_held+0x16c/0x1d0 [ 560.420664] ? xfs_iunlock+0x21a/0x3b0 [ 560.424532] xfs_map_blocks+0x548/0x940 [ 560.428488] ? xfs_vm_set_page_dirty+0x610/0x610 [ 560.433222] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 560.438650] xfs_do_writepage+0x422/0x13d0 [ 560.442860] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 560.447161] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 560.452602] write_cache_pages+0x505/0xd20 [ 560.456812] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 560.461107] ? clear_page_dirty_for_io+0xb80/0xb80 [ 560.466026] ? trace_hardirqs_on+0x10/0x10 [ 560.470243] xfs_vm_writepages+0x258/0x340 [ 560.474450] ? xfs_vm_writepage+0xd0/0xd0 [ 560.478576] ? xfs_vm_writepage+0xd0/0xd0 [ 560.482702] do_writepages+0xc3/0x240 [ 560.486487] ? page_writeback_cpu_online+0x10/0x10 [ 560.491416] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 560.496842] __writeback_single_inode+0xda/0x1010 [ 560.501660] writeback_sb_inodes+0x48b/0xd30 [ 560.506053] ? wbc_detach_inode+0x780/0x780 [ 560.510361] ? queue_io+0x400/0x5a0 [ 560.513960] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 560.519395] wb_writeback+0x243/0xb80 [ 560.523172] ? writeback_inodes_wb.constprop.0+0x1a0/0x1a0 [ 560.528778] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 560.534204] wb_workfn+0x2bd/0xf50 [ 560.537720] ? process_one_work+0x6c4/0x14a0 [ 560.542113] ? inode_wait_for_writeback+0x30/0x30 [ 560.546928] ? lock_acquire+0x170/0x3f0 [ 560.550877] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 560.556300] process_one_work+0x793/0x14a0 [ 560.560513] ? work_busy+0x320/0x320 [ 560.564203] ? worker_thread+0x158/0xff0 [ 560.568261] ? _raw_spin_unlock_irq+0x24/0x80 [ 560.572730] worker_thread+0x5cc/0xff0 [ 560.576594] ? rescuer_thread+0xc80/0xc80 [ 560.580714] kthread+0x30d/0x420 [ 560.584064] ? kthread_create_on_node+0xd0/0xd0 [ 560.588717] ret_from_fork+0x24/0x30 [ 560.592964] XFS (loop1): page discard on page ffffea0001094600, inode 0x29, offset 1814528. [ 560.601948] XFS (loop1): Internal error XFS_WANT_CORRUPTED_RETURN at line 431 of file fs/xfs/libxfs/xfs_alloc.c. Caller xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 560.616487] CPU: 1 PID: 2818 Comm: kworker/u4:3 Not tainted 4.14.303-syzkaller #0 [ 560.624094] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023 [ 560.633447] Workqueue: writeback wb_workfn (flush-7:1) [ 560.638709] Call Trace: [ 560.641272] dump_stack+0x1b2/0x281 [ 560.644880] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 560.650138] xfs_error_report+0x98/0xa0 [ 560.654091] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 560.659352] xfs_alloc_fixup_trees+0x425/0x4f0 [ 560.663916] ? xfs_alloc_update+0x90/0x90 [ 560.668042] ? xfs_btree_rec_offset.isra.0+0x3b/0xa0 [ 560.673116] ? xfs_alloc_compute_diff+0x23c/0x3d0 [ 560.677933] xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 560.683014] ? xfs_alloc_fix_freelist+0x685/0xeb0 [ 560.687850] ? xfs_alloc_ag_vextent_size+0x1ea0/0x1ea0 [ 560.693102] ? xfs_alloc_read_agf+0xb10/0xb10 [ 560.697589] xfs_alloc_ag_vextent+0x579/0x750 [ 560.702058] ? xfs_perag_get+0x116/0x410 [ 560.706098] ? xfs_alloc_vextent+0x470/0x2010 [ 560.710587] xfs_alloc_vextent+0x10b0/0x2010 [ 560.714974] xfs_bmap_btalloc+0x9e5/0x1b20 [ 560.719183] ? xfs_bmap_adjacent+0x1480/0x1480 [ 560.723742] ? ret_from_fork+0x24/0x30 [ 560.727617] ? __xfs_bmbt_get_all+0x16/0x100 [ 560.732000] xfs_bmap_alloc+0x107/0x160 [ 560.735948] xfs_bmapi_write+0xa49/0x1d00 [ 560.740081] ? xfs_bmapi_reserve_delalloc+0x7c0/0x7c0 [ 560.745249] ? trace_hardirqs_on+0x10/0x10 [ 560.749465] ? xfs_iext_get_ext+0xeb/0x200 [ 560.753672] ? xfs_iext_idx_to_irec+0x340/0x340 [ 560.758318] ? xfs_bmap_last_extent+0x1d0/0x1d0 [ 560.762964] xfs_iomap_write_allocate+0x42b/0xa30 [ 560.767786] ? xfs_file_iomap_begin+0x1ed0/0x1ed0 [ 560.772603] ? xfs_iunlock+0x248/0x3b0 [ 560.776477] ? rcu_read_lock_sched_held+0x16c/0x1d0 [ 560.781463] ? xfs_iunlock+0x21a/0x3b0 [ 560.785361] xfs_map_blocks+0x548/0x940 [ 560.789315] ? xfs_vm_set_page_dirty+0x610/0x610 [ 560.794044] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 560.799470] xfs_do_writepage+0x422/0x13d0 [ 560.803693] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 560.807998] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 560.813421] write_cache_pages+0x505/0xd20 [ 560.817632] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 560.821941] ? clear_page_dirty_for_io+0xb80/0xb80 [ 560.826848] ? trace_hardirqs_on+0x10/0x10 [ 560.831082] xfs_vm_writepages+0x258/0x340 [ 560.835289] ? xfs_vm_writepage+0xd0/0xd0 [ 560.839414] ? xfs_vm_writepage+0xd0/0xd0 [ 560.843544] do_writepages+0xc3/0x240 [ 560.847330] ? page_writeback_cpu_online+0x10/0x10 [ 560.852324] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 560.857749] __writeback_single_inode+0xda/0x1010 [ 560.862566] writeback_sb_inodes+0x48b/0xd30 [ 560.866955] ? wbc_detach_inode+0x780/0x780 [ 560.871251] ? queue_io+0x400/0x5a0 [ 560.874863] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 560.880389] wb_writeback+0x243/0xb80 [ 560.884183] ? writeback_inodes_wb.constprop.0+0x1a0/0x1a0 [ 560.889794] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 560.895218] wb_workfn+0x2bd/0xf50 [ 560.898735] ? process_one_work+0x6c4/0x14a0 [ 560.903117] ? inode_wait_for_writeback+0x30/0x30 [ 560.907934] ? lock_acquire+0x170/0x3f0 [ 560.911885] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 560.917310] process_one_work+0x793/0x14a0 [ 560.921520] ? work_busy+0x320/0x320 [ 560.925216] ? worker_thread+0x158/0xff0 [ 560.929257] ? _raw_spin_unlock_irq+0x24/0x80 [ 560.933726] worker_thread+0x5cc/0xff0 [ 560.937590] ? rescuer_thread+0xc80/0xc80 [ 560.941712] kthread+0x30d/0x420 [ 560.945059] ? kthread_create_on_node+0xd0/0xd0 [ 560.949709] ret_from_fork+0x24/0x30 [ 560.953876] XFS (loop1): page discard on page ffffea0001094640, inode 0x29, offset 1818624. [ 560.962733] XFS (loop1): Internal error XFS_WANT_CORRUPTED_RETURN at line 431 of file fs/xfs/libxfs/xfs_alloc.c. Caller xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 560.977593] CPU: 1 PID: 2818 Comm: kworker/u4:3 Not tainted 4.14.303-syzkaller #0 [ 560.985221] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023 [ 560.994565] Workqueue: writeback wb_workfn (flush-7:1) [ 560.999815] Call Trace: [ 561.002376] dump_stack+0x1b2/0x281 [ 561.005986] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 561.011244] xfs_error_report+0x98/0xa0 [ 561.015189] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 561.020442] xfs_alloc_fixup_trees+0x425/0x4f0 [ 561.025003] ? xfs_alloc_update+0x90/0x90 [ 561.029136] ? xfs_btree_rec_offset.isra.0+0x3b/0xa0 [ 561.034211] ? xfs_alloc_compute_diff+0x23c/0x3d0 [ 561.039029] xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 561.044121] ? xfs_alloc_fix_freelist+0x685/0xeb0 [ 561.048943] ? xfs_alloc_ag_vextent_size+0x1ea0/0x1ea0 [ 561.054193] ? xfs_alloc_read_agf+0xb10/0xb10 [ 561.058672] xfs_alloc_ag_vextent+0x579/0x750 [ 561.063140] ? xfs_perag_get+0x116/0x410 [ 561.067175] ? xfs_alloc_vextent+0x470/0x2010 [ 561.071644] xfs_alloc_vextent+0x10b0/0x2010 [ 561.076036] xfs_bmap_btalloc+0x9e5/0x1b20 [ 561.080247] ? xfs_bmap_adjacent+0x1480/0x1480 [ 561.084806] ? ret_from_fork+0x24/0x30 [ 561.088683] ? __xfs_bmbt_get_all+0x16/0x100 [ 561.093068] xfs_bmap_alloc+0x107/0x160 [ 561.097029] xfs_bmapi_write+0xa49/0x1d00 [ 561.101152] ? xfs_bmapi_reserve_delalloc+0x7c0/0x7c0 [ 561.106333] ? trace_hardirqs_on+0x10/0x10 [ 561.110550] ? xfs_iext_get_ext+0xeb/0x200 [ 561.114758] ? xfs_iext_idx_to_irec+0x340/0x340 [ 561.119502] ? xfs_bmap_last_extent+0x1d0/0x1d0 [ 561.124160] xfs_iomap_write_allocate+0x42b/0xa30 [ 561.128987] ? xfs_file_iomap_begin+0x1ed0/0x1ed0 [ 561.133802] ? xfs_iunlock+0x248/0x3b0 [ 561.137667] ? rcu_read_lock_sched_held+0x16c/0x1d0 [ 561.142656] ? xfs_iunlock+0x21a/0x3b0 [ 561.146525] xfs_map_blocks+0x548/0x940 [ 561.150481] ? xfs_vm_set_page_dirty+0x610/0x610 [ 561.155214] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 561.160637] xfs_do_writepage+0x422/0x13d0 [ 561.164859] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 561.169162] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 561.174593] write_cache_pages+0x505/0xd20 [ 561.178806] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 561.183102] ? clear_page_dirty_for_io+0xb80/0xb80 [ 561.188011] ? trace_hardirqs_on+0x10/0x10 [ 561.192223] xfs_vm_writepages+0x258/0x340 [ 561.196432] ? xfs_vm_writepage+0xd0/0xd0 [ 561.200558] ? xfs_vm_writepage+0xd0/0xd0 [ 561.204682] do_writepages+0xc3/0x240 [ 561.208465] ? page_writeback_cpu_online+0x10/0x10 [ 561.213371] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 561.218797] __writeback_single_inode+0xda/0x1010 [ 561.223623] writeback_sb_inodes+0x48b/0xd30 [ 561.228051] ? wbc_detach_inode+0x780/0x780 [ 561.232346] ? queue_io+0x400/0x5a0 [ 561.235952] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 561.241383] wb_writeback+0x243/0xb80 [ 561.245172] ? writeback_inodes_wb.constprop.0+0x1a0/0x1a0 [ 561.250780] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 561.256205] wb_workfn+0x2bd/0xf50 [ 561.259721] ? process_one_work+0x6c4/0x14a0 [ 561.264112] ? inode_wait_for_writeback+0x30/0x30 [ 561.268933] ? lock_acquire+0x170/0x3f0 [ 561.272882] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 561.278310] process_one_work+0x793/0x14a0 [ 561.282533] ? work_busy+0x320/0x320 [ 561.286223] ? worker_thread+0x158/0xff0 [ 561.290263] ? _raw_spin_unlock_irq+0x24/0x80 [ 561.294735] worker_thread+0x5cc/0xff0 [ 561.298602] ? rescuer_thread+0xc80/0xc80 [ 561.302720] kthread+0x30d/0x420 [ 561.306068] ? kthread_create_on_node+0xd0/0xd0 [ 561.310734] ret_from_fork+0x24/0x30 [ 561.318023] XFS (loop1): page discard on page ffffea0001094680, inode 0x29, offset 1822720. [ 561.326917] XFS (loop1): Internal error XFS_WANT_CORRUPTED_RETURN at line 431 of file fs/xfs/libxfs/xfs_alloc.c. Caller xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 561.341469] CPU: 1 PID: 2818 Comm: kworker/u4:3 Not tainted 4.14.303-syzkaller #0 [ 561.349080] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023 [ 561.358429] Workqueue: writeback wb_workfn (flush-7:1) [ 561.363689] Call Trace: [ 561.366268] dump_stack+0x1b2/0x281 [ 561.369877] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 561.375134] xfs_error_report+0x98/0xa0 [ 561.379098] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 561.384360] xfs_alloc_fixup_trees+0x425/0x4f0 [ 561.388925] ? xfs_alloc_update+0x90/0x90 [ 561.393054] ? xfs_btree_rec_offset.isra.0+0x3b/0xa0 [ 561.398131] ? xfs_alloc_compute_diff+0x23c/0x3d0 [ 561.402947] xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 561.408029] ? xfs_alloc_fix_freelist+0x685/0xeb0 [ 561.412843] ? xfs_alloc_ag_vextent_size+0x1ea0/0x1ea0 [ 561.418181] ? xfs_alloc_read_agf+0xb10/0xb10 [ 561.422656] xfs_alloc_ag_vextent+0x579/0x750 [ 561.427123] ? xfs_perag_get+0x116/0x410 [ 561.431153] ? xfs_alloc_vextent+0x470/0x2010 [ 561.435621] xfs_alloc_vextent+0x10b0/0x2010 [ 561.440018] xfs_bmap_btalloc+0x9e5/0x1b20 [ 561.444236] ? xfs_bmap_adjacent+0x1480/0x1480 [ 561.448801] ? ret_from_fork+0x24/0x30 [ 561.452671] ? __xfs_bmbt_get_all+0x16/0x100 [ 561.457057] xfs_bmap_alloc+0x107/0x160 [ 561.461007] xfs_bmapi_write+0xa49/0x1d00 [ 561.465234] ? xfs_bmapi_reserve_delalloc+0x7c0/0x7c0 [ 561.470406] ? trace_hardirqs_on+0x10/0x10 [ 561.474617] ? xfs_iext_get_ext+0xeb/0x200 [ 561.478825] ? xfs_iext_idx_to_irec+0x340/0x340 [ 561.483481] ? xfs_bmap_last_extent+0x1d0/0x1d0 [ 561.488132] xfs_iomap_write_allocate+0x42b/0xa30 [ 561.492953] ? xfs_file_iomap_begin+0x1ed0/0x1ed0 [ 561.497856] ? xfs_iunlock+0x248/0x3b0 [ 561.501738] ? rcu_read_lock_sched_held+0x16c/0x1d0 [ 561.506728] ? xfs_iunlock+0x21a/0x3b0 [ 561.510591] xfs_map_blocks+0x548/0x940 [ 561.514542] ? xfs_vm_set_page_dirty+0x610/0x610 [ 561.519271] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 561.524700] xfs_do_writepage+0x422/0x13d0 [ 561.528921] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 561.533223] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 561.538648] write_cache_pages+0x505/0xd20 [ 561.542856] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 561.547163] ? clear_page_dirty_for_io+0xb80/0xb80 [ 561.552079] ? trace_hardirqs_on+0x10/0x10 [ 561.556288] xfs_vm_writepages+0x258/0x340 [ 561.560495] ? xfs_vm_writepage+0xd0/0xd0 [ 561.564632] ? xfs_vm_writepage+0xd0/0xd0 [ 561.568773] do_writepages+0xc3/0x240 [ 561.572548] ? page_writeback_cpu_online+0x10/0x10 [ 561.577452] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 561.582887] __writeback_single_inode+0xda/0x1010 [ 561.587706] writeback_sb_inodes+0x48b/0xd30 [ 561.592091] ? wbc_detach_inode+0x780/0x780 [ 561.596407] ? queue_io+0x400/0x5a0 [ 561.600007] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 561.605437] wb_writeback+0x243/0xb80 [ 561.609219] ? writeback_inodes_wb.constprop.0+0x1a0/0x1a0 [ 561.614924] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 561.620350] wb_workfn+0x2bd/0xf50 [ 561.623871] ? process_one_work+0x6c4/0x14a0 [ 561.628260] ? inode_wait_for_writeback+0x30/0x30 [ 561.633077] ? lock_acquire+0x170/0x3f0 [ 561.637043] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 561.642476] process_one_work+0x793/0x14a0 [ 561.646696] ? work_busy+0x320/0x320 [ 561.650384] ? worker_thread+0x158/0xff0 [ 561.654422] ? _raw_spin_unlock_irq+0x24/0x80 [ 561.658894] worker_thread+0x5cc/0xff0 [ 561.662770] ? rescuer_thread+0xc80/0xc80 [ 561.666893] kthread+0x30d/0x420 [ 561.670239] ? kthread_create_on_node+0xd0/0xd0 [ 561.674882] ret_from_fork+0x24/0x30 [ 561.679302] XFS (loop1): page discard on page ffffea00010946c0, inode 0x29, offset 1826816. [ 561.688211] XFS (loop1): Internal error XFS_WANT_CORRUPTED_RETURN at line 431 of file fs/xfs/libxfs/xfs_alloc.c. Caller xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 561.702793] CPU: 1 PID: 2818 Comm: kworker/u4:3 Not tainted 4.14.303-syzkaller #0 [ 561.710406] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023 [ 561.719764] Workqueue: writeback wb_workfn (flush-7:1) [ 561.725023] Call Trace: [ 561.727593] dump_stack+0x1b2/0x281 [ 561.731206] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 561.736453] xfs_error_report+0x98/0xa0 [ 561.740398] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 561.745654] xfs_alloc_fixup_trees+0x425/0x4f0 [ 561.750218] ? xfs_alloc_update+0x90/0x90 [ 561.754348] ? xfs_btree_rec_offset.isra.0+0x3b/0xa0 [ 561.759425] ? xfs_alloc_compute_diff+0x23c/0x3d0 [ 561.764246] xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 561.769459] ? xfs_alloc_fix_freelist+0x685/0xeb0 [ 561.774278] ? xfs_alloc_ag_vextent_size+0x1ea0/0x1ea0 [ 561.779535] ? xfs_alloc_read_agf+0xb10/0xb10 [ 561.784027] xfs_alloc_ag_vextent+0x579/0x750 [ 561.788501] ? xfs_perag_get+0x116/0x410 [ 561.792540] ? xfs_alloc_vextent+0x470/0x2010 [ 561.797006] xfs_alloc_vextent+0x10b0/0x2010 [ 561.801394] xfs_bmap_btalloc+0x9e5/0x1b20 [ 561.805614] ? xfs_bmap_adjacent+0x1480/0x1480 [ 561.810173] ? ret_from_fork+0x24/0x30 [ 561.814041] ? __xfs_bmbt_get_all+0x16/0x100 [ 561.818425] xfs_bmap_alloc+0x107/0x160 [ 561.822374] xfs_bmapi_write+0xa49/0x1d00 [ 561.826510] ? xfs_bmapi_reserve_delalloc+0x7c0/0x7c0 [ 561.831680] ? trace_hardirqs_on+0x10/0x10 [ 561.835912] ? xfs_iext_get_ext+0xeb/0x200 [ 561.840132] ? xfs_iext_idx_to_irec+0x340/0x340 [ 561.844795] ? xfs_bmap_last_extent+0x1d0/0x1d0 [ 561.849449] xfs_iomap_write_allocate+0x42b/0xa30 [ 561.854272] ? xfs_file_iomap_begin+0x1ed0/0x1ed0 [ 561.859090] ? xfs_iunlock+0x248/0x3b0 [ 561.862955] ? rcu_read_lock_sched_held+0x16c/0x1d0 [ 561.867948] ? xfs_iunlock+0x21a/0x3b0 [ 561.871812] xfs_map_blocks+0x548/0x940 [ 561.875777] ? xfs_vm_set_page_dirty+0x610/0x610 [ 561.880516] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 561.885951] xfs_do_writepage+0x422/0x13d0 [ 561.890177] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 561.894472] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 561.899896] write_cache_pages+0x505/0xd20 [ 561.904117] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 561.908423] ? clear_page_dirty_for_io+0xb80/0xb80 [ 561.913334] ? trace_hardirqs_on+0x10/0x10 [ 561.917545] xfs_vm_writepages+0x258/0x340 [ 561.921756] ? xfs_vm_writepage+0xd0/0xd0 [ 561.925888] ? xfs_vm_writepage+0xd0/0xd0 [ 561.930031] do_writepages+0xc3/0x240 [ 561.933812] ? page_writeback_cpu_online+0x10/0x10 [ 561.938725] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 561.944156] __writeback_single_inode+0xda/0x1010 [ 561.948982] writeback_sb_inodes+0x48b/0xd30 [ 561.953367] ? wbc_detach_inode+0x780/0x780 [ 561.957663] ? queue_io+0x400/0x5a0 [ 561.961261] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 561.966691] wb_writeback+0x243/0xb80 [ 561.970475] ? writeback_inodes_wb.constprop.0+0x1a0/0x1a0 [ 561.976092] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 561.981528] wb_workfn+0x2bd/0xf50 [ 561.985054] ? process_one_work+0x6c4/0x14a0 [ 561.989442] ? inode_wait_for_writeback+0x30/0x30 [ 561.994257] ? lock_acquire+0x170/0x3f0 [ 561.998204] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 562.003634] process_one_work+0x793/0x14a0 [ 562.007851] ? work_busy+0x320/0x320 [ 562.011537] ? worker_thread+0x158/0xff0 [ 562.015578] ? _raw_spin_unlock_irq+0x24/0x80 [ 562.020051] worker_thread+0x5cc/0xff0 [ 562.023930] ? rescuer_thread+0xc80/0xc80 [ 562.028063] kthread+0x30d/0x420 [ 562.031402] ? kthread_create_on_node+0xd0/0xd0 [ 562.036048] ret_from_fork+0x24/0x30 [ 562.040293] XFS (loop1): page discard on page ffffea0001094700, inode 0x29, offset 1830912. [ 562.049183] XFS (loop1): Internal error XFS_WANT_CORRUPTED_RETURN at line 431 of file fs/xfs/libxfs/xfs_alloc.c. Caller xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 562.063717] CPU: 1 PID: 2818 Comm: kworker/u4:3 Not tainted 4.14.303-syzkaller #0 [ 562.071325] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023 [ 562.080666] Workqueue: writeback wb_workfn (flush-7:1) [ 562.085932] Call Trace: [ 562.088499] dump_stack+0x1b2/0x281 [ 562.092100] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 562.097353] xfs_error_report+0x98/0xa0 [ 562.101300] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 562.106571] xfs_alloc_fixup_trees+0x425/0x4f0 [ 562.111127] ? xfs_alloc_update+0x90/0x90 [ 562.115256] ? xfs_btree_rec_offset.isra.0+0x3b/0xa0 [ 562.120340] ? xfs_alloc_compute_diff+0x23c/0x3d0 [ 562.125157] xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 562.130235] ? xfs_alloc_fix_freelist+0x685/0xeb0 [ 562.135058] ? xfs_alloc_ag_vextent_size+0x1ea0/0x1ea0 [ 562.140330] ? xfs_alloc_read_agf+0xb10/0xb10 [ 562.144808] xfs_alloc_ag_vextent+0x579/0x750 [ 562.149276] ? xfs_perag_get+0x116/0x410 [ 562.153317] ? xfs_alloc_vextent+0x470/0x2010 [ 562.157792] xfs_alloc_vextent+0x10b0/0x2010 [ 562.162180] xfs_bmap_btalloc+0x9e5/0x1b20 [ 562.166392] ? xfs_bmap_adjacent+0x1480/0x1480 [ 562.170950] ? ret_from_fork+0x24/0x30 [ 562.174831] ? __xfs_bmbt_get_all+0x16/0x100 [ 562.179226] xfs_bmap_alloc+0x107/0x160 [ 562.183185] xfs_bmapi_write+0xa49/0x1d00 [ 562.187310] ? xfs_bmapi_reserve_delalloc+0x7c0/0x7c0 [ 562.192472] ? trace_hardirqs_on+0x10/0x10 [ 562.196689] ? xfs_iext_get_ext+0xeb/0x200 [ 562.200903] ? xfs_iext_idx_to_irec+0x340/0x340 [ 562.205550] ? xfs_bmap_last_extent+0x1d0/0x1d0 [ 562.210193] xfs_iomap_write_allocate+0x42b/0xa30 [ 562.215024] ? xfs_file_iomap_begin+0x1ed0/0x1ed0 [ 562.219845] ? xfs_iunlock+0x248/0x3b0 [ 562.223712] ? rcu_read_lock_sched_held+0x16c/0x1d0 [ 562.228700] ? xfs_iunlock+0x21a/0x3b0 [ 562.232559] xfs_map_blocks+0x548/0x940 [ 562.236515] ? xfs_vm_set_page_dirty+0x610/0x610 [ 562.241267] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 562.246690] xfs_do_writepage+0x422/0x13d0 [ 562.250898] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 562.255208] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 562.260639] write_cache_pages+0x505/0xd20 [ 562.264849] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 562.269160] ? clear_page_dirty_for_io+0xb80/0xb80 [ 562.274081] ? trace_hardirqs_on+0x10/0x10 [ 562.278295] xfs_vm_writepages+0x258/0x340 [ 562.282502] ? xfs_vm_writepage+0xd0/0xd0 [ 562.286627] ? xfs_vm_writepage+0xd0/0xd0 [ 562.290745] do_writepages+0xc3/0x240 [ 562.294530] ? page_writeback_cpu_online+0x10/0x10 [ 562.299442] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 562.304865] __writeback_single_inode+0xda/0x1010 [ 562.309680] writeback_sb_inodes+0x48b/0xd30 [ 562.314073] ? wbc_detach_inode+0x780/0x780 [ 562.318378] ? queue_io+0x400/0x5a0 [ 562.321976] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 562.327411] wb_writeback+0x243/0xb80 [ 562.331186] ? writeback_inodes_wb.constprop.0+0x1a0/0x1a0 [ 562.336786] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 562.342210] wb_workfn+0x2bd/0xf50 [ 562.345724] ? process_one_work+0x6c4/0x14a0 [ 562.350106] ? inode_wait_for_writeback+0x30/0x30 [ 562.354928] ? lock_acquire+0x170/0x3f0 [ 562.358888] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 562.364311] process_one_work+0x793/0x14a0 [ 562.368521] ? work_busy+0x320/0x320 [ 562.372204] ? worker_thread+0x158/0xff0 [ 562.376243] ? _raw_spin_unlock_irq+0x24/0x80 [ 562.380720] worker_thread+0x5cc/0xff0 [ 562.384584] ? rescuer_thread+0xc80/0xc80 [ 562.388706] kthread+0x30d/0x420 [ 562.392046] ? kthread_create_on_node+0xd0/0xd0 [ 562.396695] ret_from_fork+0x24/0x30 [ 562.400760] XFS (loop1): page discard on page ffffea0001094740, inode 0x29, offset 1835008. [ 562.409653] XFS (loop1): Internal error XFS_WANT_CORRUPTED_RETURN at line 431 of file fs/xfs/libxfs/xfs_alloc.c. Caller xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 562.424191] CPU: 1 PID: 2818 Comm: kworker/u4:3 Not tainted 4.14.303-syzkaller #0 [ 562.431804] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023 [ 562.441157] Workqueue: writeback wb_workfn (flush-7:1) [ 562.446422] Call Trace: [ 562.448984] dump_stack+0x1b2/0x281 [ 562.452586] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 562.457836] xfs_error_report+0x98/0xa0 [ 562.461781] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 562.467034] xfs_alloc_fixup_trees+0x425/0x4f0 [ 562.471590] ? xfs_alloc_update+0x90/0x90 [ 562.475716] ? xfs_btree_rec_offset.isra.0+0x3b/0xa0 [ 562.480802] ? xfs_alloc_compute_diff+0x23c/0x3d0 [ 562.485618] xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 562.490698] ? xfs_alloc_fix_freelist+0x685/0xeb0 [ 562.495518] ? xfs_alloc_ag_vextent_size+0x1ea0/0x1ea0 [ 562.500777] ? xfs_alloc_read_agf+0xb10/0xb10 [ 562.505266] xfs_alloc_ag_vextent+0x579/0x750 [ 562.509733] ? xfs_perag_get+0x116/0x410 [ 562.513770] ? xfs_alloc_vextent+0x470/0x2010 [ 562.518245] xfs_alloc_vextent+0x10b0/0x2010 [ 562.522631] xfs_bmap_btalloc+0x9e5/0x1b20 [ 562.526842] ? xfs_bmap_adjacent+0x1480/0x1480 [ 562.531394] ? ret_from_fork+0x24/0x30 [ 562.535271] ? __xfs_bmbt_get_all+0x16/0x100 [ 562.539659] xfs_bmap_alloc+0x107/0x160 [ 562.543606] xfs_bmapi_write+0xa49/0x1d00 [ 562.547732] ? xfs_bmapi_reserve_delalloc+0x7c0/0x7c0 [ 562.552895] ? trace_hardirqs_on+0x10/0x10 [ 562.557106] ? xfs_iext_get_ext+0xeb/0x200 [ 562.561327] ? xfs_iext_idx_to_irec+0x340/0x340 [ 562.565973] ? xfs_bmap_last_extent+0x1d0/0x1d0 [ 562.570632] xfs_iomap_write_allocate+0x42b/0xa30 [ 562.575464] ? xfs_file_iomap_begin+0x1ed0/0x1ed0 [ 562.580288] ? xfs_iunlock+0x248/0x3b0 [ 562.584155] ? rcu_read_lock_sched_held+0x16c/0x1d0 [ 562.589143] ? xfs_iunlock+0x21a/0x3b0 [ 562.593009] xfs_map_blocks+0x548/0x940 [ 562.596975] ? xfs_vm_set_page_dirty+0x610/0x610 [ 562.601706] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 562.607129] xfs_do_writepage+0x422/0x13d0 [ 562.611366] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 562.615670] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 562.621114] write_cache_pages+0x505/0xd20 [ 562.625324] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 562.629623] ? clear_page_dirty_for_io+0xb80/0xb80 [ 562.634543] ? trace_hardirqs_on+0x10/0x10 [ 562.638758] xfs_vm_writepages+0x258/0x340 [ 562.642968] ? xfs_vm_writepage+0xd0/0xd0 [ 562.647104] ? xfs_vm_writepage+0xd0/0xd0 [ 562.651225] do_writepages+0xc3/0x240 [ 562.655010] ? page_writeback_cpu_online+0x10/0x10 [ 562.659992] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 562.665428] __writeback_single_inode+0xda/0x1010 [ 562.670253] writeback_sb_inodes+0x48b/0xd30 [ 562.674658] ? wbc_detach_inode+0x780/0x780 [ 562.678971] ? queue_io+0x400/0x5a0 [ 562.682586] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 562.688026] wb_writeback+0x243/0xb80 [ 562.691813] ? writeback_inodes_wb.constprop.0+0x1a0/0x1a0 [ 562.697421] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 562.702850] wb_workfn+0x2bd/0xf50 [ 562.706369] ? process_one_work+0x6c4/0x14a0 [ 562.710774] ? inode_wait_for_writeback+0x30/0x30 [ 562.715600] ? lock_acquire+0x170/0x3f0 [ 562.719557] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 562.724984] process_one_work+0x793/0x14a0 [ 562.729210] ? work_busy+0x320/0x320 [ 562.732898] ? worker_thread+0x158/0xff0 [ 562.736950] ? _raw_spin_unlock_irq+0x24/0x80 [ 562.741434] worker_thread+0x5cc/0xff0 [ 562.745300] ? rescuer_thread+0xc80/0xc80 [ 562.749423] kthread+0x30d/0x420 [ 562.752767] ? kthread_create_on_node+0xd0/0xd0 [ 562.757415] ret_from_fork+0x24/0x30 [ 562.761723] XFS (loop1): page discard on page ffffea0001094780, inode 0x29, offset 1839104. [ 562.770641] XFS (loop1): Internal error XFS_WANT_CORRUPTED_RETURN at line 431 of file fs/xfs/libxfs/xfs_alloc.c. Caller xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 562.785189] CPU: 1 PID: 2818 Comm: kworker/u4:3 Not tainted 4.14.303-syzkaller #0 [ 562.792797] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023 [ 562.802150] Workqueue: writeback wb_workfn (flush-7:1) [ 562.807403] Call Trace: [ 562.809981] dump_stack+0x1b2/0x281 [ 562.813595] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 562.818855] xfs_error_report+0x98/0xa0 [ 562.822804] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 562.828056] xfs_alloc_fixup_trees+0x425/0x4f0 [ 562.832613] ? xfs_alloc_update+0x90/0x90 [ 562.836740] ? xfs_btree_rec_offset.isra.0+0x3b/0xa0 [ 562.841823] ? xfs_alloc_compute_diff+0x23c/0x3d0 [ 562.846654] xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 562.851748] ? xfs_alloc_fix_freelist+0x685/0xeb0 [ 562.856568] ? xfs_alloc_ag_vextent_size+0x1ea0/0x1ea0 [ 562.861845] ? xfs_alloc_read_agf+0xb10/0xb10 [ 562.866335] xfs_alloc_ag_vextent+0x579/0x750 [ 562.870826] ? xfs_perag_get+0x116/0x410 [ 562.874867] ? xfs_alloc_vextent+0x470/0x2010 [ 562.879365] xfs_alloc_vextent+0x10b0/0x2010 [ 562.883758] xfs_bmap_btalloc+0x9e5/0x1b20 [ 562.887970] ? xfs_bmap_adjacent+0x1480/0x1480 [ 562.892528] ? ret_from_fork+0x24/0x30 [ 562.896420] ? __xfs_bmbt_get_all+0x16/0x100 [ 562.900812] xfs_bmap_alloc+0x107/0x160 [ 562.904770] xfs_bmapi_write+0xa49/0x1d00 [ 562.908909] ? xfs_bmapi_reserve_delalloc+0x7c0/0x7c0 [ 562.914082] ? trace_hardirqs_on+0x10/0x10 [ 562.918304] ? xfs_iext_get_ext+0xeb/0x200 [ 562.922518] ? xfs_iext_idx_to_irec+0x340/0x340 [ 562.927168] ? xfs_bmap_last_extent+0x1d0/0x1d0 [ 562.931815] xfs_iomap_write_allocate+0x42b/0xa30 [ 562.936651] ? xfs_file_iomap_begin+0x1ed0/0x1ed0 [ 562.941475] ? xfs_iunlock+0x248/0x3b0 [ 562.945339] ? rcu_read_lock_sched_held+0x16c/0x1d0 [ 562.950326] ? xfs_iunlock+0x21a/0x3b0 [ 562.954193] xfs_map_blocks+0x548/0x940 [ 562.958152] ? xfs_vm_set_page_dirty+0x610/0x610 [ 562.962889] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 562.968310] xfs_do_writepage+0x422/0x13d0 [ 562.972519] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 562.976827] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 562.982257] write_cache_pages+0x505/0xd20 [ 562.986464] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 562.990761] ? clear_page_dirty_for_io+0xb80/0xb80 [ 562.995678] ? trace_hardirqs_on+0x10/0x10 [ 562.999895] xfs_vm_writepages+0x258/0x340 [ 563.004104] ? xfs_vm_writepage+0xd0/0xd0 [ 563.008233] ? xfs_vm_writepage+0xd0/0xd0 [ 563.012352] do_writepages+0xc3/0x240 [ 563.016134] ? page_writeback_cpu_online+0x10/0x10 [ 563.021048] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 563.026473] __writeback_single_inode+0xda/0x1010 [ 563.031289] writeback_sb_inodes+0x48b/0xd30 [ 563.035684] ? wbc_detach_inode+0x780/0x780 [ 563.039989] ? queue_io+0x400/0x5a0 [ 563.043587] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 563.049009] wb_writeback+0x243/0xb80 [ 563.052784] ? writeback_inodes_wb.constprop.0+0x1a0/0x1a0 [ 563.058398] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 563.063831] wb_workfn+0x2bd/0xf50 [ 563.067348] ? process_one_work+0x6c4/0x14a0 [ 563.071729] ? inode_wait_for_writeback+0x30/0x30 [ 563.076551] ? lock_acquire+0x170/0x3f0 [ 563.080507] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 563.085951] process_one_work+0x793/0x14a0 [ 563.090163] ? work_busy+0x320/0x320 [ 563.093853] ? worker_thread+0x158/0xff0 [ 563.097898] ? _raw_spin_unlock_irq+0x24/0x80 [ 563.102370] worker_thread+0x5cc/0xff0 [ 563.106261] ? rescuer_thread+0xc80/0xc80 [ 563.110381] kthread+0x30d/0x420 [ 563.113728] ? kthread_create_on_node+0xd0/0xd0 [ 563.118379] ret_from_fork+0x24/0x30 [ 563.122728] XFS (loop1): page discard on page ffffea00010947c0, inode 0x29, offset 1843200. [ 563.131744] XFS (loop1): Internal error XFS_WANT_CORRUPTED_RETURN at line 431 of file fs/xfs/libxfs/xfs_alloc.c. Caller xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 563.146290] CPU: 1 PID: 2818 Comm: kworker/u4:3 Not tainted 4.14.303-syzkaller #0 [ 563.153901] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023 [ 563.163254] Workqueue: writeback wb_workfn (flush-7:1) [ 563.168518] Call Trace: [ 563.171094] dump_stack+0x1b2/0x281 [ 563.174705] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 563.179983] xfs_error_report+0x98/0xa0 [ 563.183931] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 563.189183] xfs_alloc_fixup_trees+0x425/0x4f0 [ 563.193746] ? xfs_alloc_update+0x90/0x90 [ 563.197875] ? xfs_btree_rec_offset.isra.0+0x3b/0xa0 [ 563.202953] ? xfs_alloc_compute_diff+0x23c/0x3d0 [ 563.207782] xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 563.212865] ? xfs_alloc_fix_freelist+0x685/0xeb0 [ 563.217684] ? xfs_alloc_ag_vextent_size+0x1ea0/0x1ea0 [ 563.222938] ? xfs_alloc_read_agf+0xb10/0xb10 [ 563.227419] xfs_alloc_ag_vextent+0x579/0x750 [ 563.231886] ? xfs_perag_get+0x116/0x410 [ 563.235930] ? xfs_alloc_vextent+0x470/0x2010 [ 563.240580] xfs_alloc_vextent+0x10b0/0x2010 [ 563.244985] xfs_bmap_btalloc+0x9e5/0x1b20 [ 563.249196] ? xfs_bmap_adjacent+0x1480/0x1480 [ 563.253757] ? ret_from_fork+0x24/0x30 [ 563.257633] ? __xfs_bmbt_get_all+0x16/0x100 [ 563.262017] xfs_bmap_alloc+0x107/0x160 [ 563.265965] xfs_bmapi_write+0xa49/0x1d00 [ 563.270089] ? xfs_bmapi_reserve_delalloc+0x7c0/0x7c0 [ 563.275260] ? trace_hardirqs_on+0x10/0x10 [ 563.279478] ? xfs_iext_get_ext+0xeb/0x200 [ 563.283684] ? xfs_iext_idx_to_irec+0x340/0x340 [ 563.288329] ? xfs_bmap_last_extent+0x1d0/0x1d0 [ 563.292973] xfs_iomap_write_allocate+0x42b/0xa30 [ 563.297796] ? xfs_file_iomap_begin+0x1ed0/0x1ed0 [ 563.302610] ? xfs_iunlock+0x248/0x3b0 [ 563.306476] ? rcu_read_lock_sched_held+0x16c/0x1d0 [ 563.311463] ? xfs_iunlock+0x21a/0x3b0 [ 563.315332] xfs_map_blocks+0x548/0x940 [ 563.319289] ? xfs_vm_set_page_dirty+0x610/0x610 [ 563.324018] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 563.329463] xfs_do_writepage+0x422/0x13d0 [ 563.333688] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 563.337992] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 563.343422] write_cache_pages+0x505/0xd20 [ 563.347634] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 563.351930] ? clear_page_dirty_for_io+0xb80/0xb80 [ 563.356850] ? trace_hardirqs_on+0x10/0x10 [ 563.361060] xfs_vm_writepages+0x258/0x340 [ 563.365267] ? xfs_vm_writepage+0xd0/0xd0 [ 563.369392] ? xfs_vm_writepage+0xd0/0xd0 [ 563.373520] do_writepages+0xc3/0x240 [ 563.377313] ? page_writeback_cpu_online+0x10/0x10 [ 563.382223] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 563.387649] __writeback_single_inode+0xda/0x1010 [ 563.392464] writeback_sb_inodes+0x48b/0xd30 [ 563.396863] ? wbc_detach_inode+0x780/0x780 [ 563.401162] ? queue_io+0x400/0x5a0 [ 563.404764] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 563.410186] wb_writeback+0x243/0xb80 [ 563.413976] ? writeback_inodes_wb.constprop.0+0x1a0/0x1a0 [ 563.419584] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 563.425007] wb_workfn+0x2bd/0xf50 [ 563.428523] ? process_one_work+0x6c4/0x14a0 [ 563.432909] ? inode_wait_for_writeback+0x30/0x30 [ 563.437729] ? lock_acquire+0x170/0x3f0 [ 563.441677] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 563.447101] process_one_work+0x793/0x14a0 [ 563.451314] ? work_busy+0x320/0x320 [ 563.455004] ? worker_thread+0x158/0xff0 [ 563.459057] ? _raw_spin_unlock_irq+0x24/0x80 [ 563.463538] worker_thread+0x5cc/0xff0 [ 563.467407] ? rescuer_thread+0xc80/0xc80 [ 563.471528] kthread+0x30d/0x420 [ 563.474873] ? kthread_create_on_node+0xd0/0xd0 [ 563.479525] ret_from_fork+0x24/0x30 [ 563.483591] XFS (loop1): page discard on page ffffea0001094800, inode 0x29, offset 1847296. [ 563.492458] XFS (loop1): Internal error XFS_WANT_CORRUPTED_RETURN at line 431 of file fs/xfs/libxfs/xfs_alloc.c. Caller xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 563.507012] CPU: 1 PID: 2818 Comm: kworker/u4:3 Not tainted 4.14.303-syzkaller #0 [ 563.514621] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023 [ 563.523971] Workqueue: writeback wb_workfn (flush-7:1) [ 563.529226] Call Trace: [ 563.531790] dump_stack+0x1b2/0x281 [ 563.535405] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 563.540663] xfs_error_report+0x98/0xa0 [ 563.544613] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 563.549874] xfs_alloc_fixup_trees+0x425/0x4f0 [ 563.554441] ? xfs_alloc_update+0x90/0x90 [ 563.558589] ? xfs_btree_rec_offset.isra.0+0x3b/0xa0 [ 563.563666] ? xfs_alloc_compute_diff+0x23c/0x3d0 [ 563.568483] xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 563.573574] ? xfs_alloc_fix_freelist+0x685/0xeb0 [ 563.578400] ? xfs_alloc_ag_vextent_size+0x1ea0/0x1ea0 [ 563.583667] ? xfs_alloc_read_agf+0xb10/0xb10 [ 563.588144] xfs_alloc_ag_vextent+0x579/0x750 [ 563.592611] ? xfs_perag_get+0x116/0x410 [ 563.596644] ? xfs_alloc_vextent+0x470/0x2010 [ 563.601111] xfs_alloc_vextent+0x10b0/0x2010 [ 563.605501] xfs_bmap_btalloc+0x9e5/0x1b20 [ 563.609711] ? xfs_bmap_adjacent+0x1480/0x1480 [ 563.614272] ? ret_from_fork+0x24/0x30 [ 563.618147] ? __xfs_bmbt_get_all+0x16/0x100 [ 563.622529] xfs_bmap_alloc+0x107/0x160 [ 563.626477] xfs_bmapi_write+0xa49/0x1d00 [ 563.630602] ? xfs_bmapi_reserve_delalloc+0x7c0/0x7c0 [ 563.635773] ? trace_hardirqs_on+0x10/0x10 [ 563.639993] ? xfs_iext_get_ext+0xeb/0x200 [ 563.644204] ? xfs_iext_idx_to_irec+0x340/0x340 [ 563.648853] ? xfs_bmap_last_extent+0x1d0/0x1d0 [ 563.653513] xfs_iomap_write_allocate+0x42b/0xa30 [ 563.658343] ? xfs_file_iomap_begin+0x1ed0/0x1ed0 [ 563.663159] ? xfs_iunlock+0x248/0x3b0 [ 563.667025] ? rcu_read_lock_sched_held+0x16c/0x1d0 [ 563.672014] ? xfs_iunlock+0x21a/0x3b0 [ 563.675883] xfs_map_blocks+0x548/0x940 [ 563.679840] ? xfs_vm_set_page_dirty+0x610/0x610 [ 563.684570] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 563.690007] xfs_do_writepage+0x422/0x13d0 [ 563.694236] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 563.698565] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 563.704003] write_cache_pages+0x505/0xd20 [ 563.708220] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 563.712536] ? clear_page_dirty_for_io+0xb80/0xb80 [ 563.717448] ? trace_hardirqs_on+0x10/0x10 [ 563.721664] xfs_vm_writepages+0x258/0x340 [ 563.725885] ? xfs_vm_writepage+0xd0/0xd0 [ 563.730017] ? xfs_vm_writepage+0xd0/0xd0 [ 563.734155] do_writepages+0xc3/0x240 [ 563.737944] ? page_writeback_cpu_online+0x10/0x10 [ 563.742857] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 563.748290] __writeback_single_inode+0xda/0x1010 [ 563.753120] writeback_sb_inodes+0x48b/0xd30 [ 563.757527] ? wbc_detach_inode+0x780/0x780 [ 563.761830] ? queue_io+0x400/0x5a0 [ 563.765434] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 563.770857] wb_writeback+0x243/0xb80 [ 563.774647] ? writeback_inodes_wb.constprop.0+0x1a0/0x1a0 [ 563.780268] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 563.785694] wb_workfn+0x2bd/0xf50 [ 563.789212] ? process_one_work+0x6c4/0x14a0 [ 563.793601] ? inode_wait_for_writeback+0x30/0x30 [ 563.798528] ? lock_acquire+0x170/0x3f0 [ 563.802484] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 563.807915] process_one_work+0x793/0x14a0 [ 563.812125] ? work_busy+0x320/0x320 [ 563.815817] ? worker_thread+0x158/0xff0 [ 563.819865] ? _raw_spin_unlock_irq+0x24/0x80 [ 563.824333] worker_thread+0x5cc/0xff0 [ 563.828198] ? rescuer_thread+0xc80/0xc80 [ 563.832321] kthread+0x30d/0x420 [ 563.835665] ? kthread_create_on_node+0xd0/0xd0 [ 563.840316] ret_from_fork+0x24/0x30 [ 563.844747] XFS (loop1): page discard on page ffffea0001094840, inode 0x29, offset 1851392. [ 563.853633] XFS (loop1): Internal error XFS_WANT_CORRUPTED_RETURN at line 431 of file fs/xfs/libxfs/xfs_alloc.c. Caller xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 563.868183] CPU: 1 PID: 2818 Comm: kworker/u4:3 Not tainted 4.14.303-syzkaller #0 [ 563.875793] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023 [ 563.885143] Workqueue: writeback wb_workfn (flush-7:1) [ 563.890402] Call Trace: [ 563.892967] dump_stack+0x1b2/0x281 [ 563.896581] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 563.901841] xfs_error_report+0x98/0xa0 [ 563.905791] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 563.911045] xfs_alloc_fixup_trees+0x425/0x4f0 [ 563.915612] ? xfs_alloc_update+0x90/0x90 [ 563.919740] ? xfs_btree_rec_offset.isra.0+0x3b/0xa0 [ 563.924817] ? xfs_alloc_compute_diff+0x23c/0x3d0 [ 563.929633] xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 563.934723] ? xfs_alloc_fix_freelist+0x685/0xeb0 [ 563.939543] ? xfs_alloc_ag_vextent_size+0x1ea0/0x1ea0 [ 563.944791] ? xfs_alloc_read_agf+0xb10/0xb10 [ 563.949268] xfs_alloc_ag_vextent+0x579/0x750 [ 563.953741] ? xfs_perag_get+0x116/0x410 [ 563.957780] ? xfs_alloc_vextent+0x470/0x2010 [ 563.962249] xfs_alloc_vextent+0x10b0/0x2010 [ 563.966638] xfs_bmap_btalloc+0x9e5/0x1b20 [ 563.970847] ? xfs_bmap_adjacent+0x1480/0x1480 [ 563.975410] ? ret_from_fork+0x24/0x30 [ 563.979285] ? __xfs_bmbt_get_all+0x16/0x100 [ 563.983666] xfs_bmap_alloc+0x107/0x160 [ 563.987614] xfs_bmapi_write+0xa49/0x1d00 [ 563.991740] ? xfs_bmapi_reserve_delalloc+0x7c0/0x7c0 [ 563.996904] ? trace_hardirqs_on+0x10/0x10 [ 564.001113] ? xfs_iext_get_ext+0xeb/0x200 [ 564.005321] ? xfs_iext_idx_to_irec+0x340/0x340 [ 564.009969] ? xfs_bmap_last_extent+0x1d0/0x1d0 [ 564.014630] xfs_iomap_write_allocate+0x42b/0xa30 [ 564.019462] ? xfs_file_iomap_begin+0x1ed0/0x1ed0 [ 564.024294] ? xfs_iunlock+0x248/0x3b0 [ 564.028160] ? rcu_read_lock_sched_held+0x16c/0x1d0 [ 564.033154] ? xfs_iunlock+0x21a/0x3b0 [ 564.037023] xfs_map_blocks+0x548/0x940 [ 564.040974] ? xfs_vm_set_page_dirty+0x610/0x610 [ 564.045703] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 564.051127] xfs_do_writepage+0x422/0x13d0 [ 564.055350] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 564.059657] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 564.065083] write_cache_pages+0x505/0xd20 [ 564.069295] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 564.073601] ? clear_page_dirty_for_io+0xb80/0xb80 [ 564.078521] ? trace_hardirqs_on+0x10/0x10 [ 564.082731] xfs_vm_writepages+0x258/0x340 [ 564.086939] ? xfs_vm_writepage+0xd0/0xd0 [ 564.091064] ? xfs_vm_writepage+0xd0/0xd0 [ 564.095194] do_writepages+0xc3/0x240 [ 564.098981] ? page_writeback_cpu_online+0x10/0x10 [ 564.103892] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 564.109318] __writeback_single_inode+0xda/0x1010 [ 564.114146] writeback_sb_inodes+0x48b/0xd30 [ 564.118539] ? wbc_detach_inode+0x780/0x780 [ 564.122837] ? queue_io+0x400/0x5a0 [ 564.126438] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 564.131860] wb_writeback+0x243/0xb80 [ 564.135651] ? writeback_inodes_wb.constprop.0+0x1a0/0x1a0 [ 564.141261] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 564.146687] wb_workfn+0x2bd/0xf50 [ 564.150203] ? process_one_work+0x6c4/0x14a0 [ 564.154590] ? inode_wait_for_writeback+0x30/0x30 [ 564.159416] ? lock_acquire+0x170/0x3f0 [ 564.163367] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 564.168797] process_one_work+0x793/0x14a0 [ 564.173010] ? work_busy+0x320/0x320 [ 564.176699] ? worker_thread+0x158/0xff0 [ 564.180741] ? _raw_spin_unlock_irq+0x24/0x80 [ 564.185213] worker_thread+0x5cc/0xff0 [ 564.189079] ? rescuer_thread+0xc80/0xc80 [ 564.193204] kthread+0x30d/0x420 [ 564.196556] ? kthread_create_on_node+0xd0/0xd0 [ 564.201206] ret_from_fork+0x24/0x30 [ 564.205434] XFS (loop1): page discard on page ffffea0001094880, inode 0x29, offset 1855488. [ 564.214363] XFS (loop1): Internal error XFS_WANT_CORRUPTED_RETURN at line 431 of file fs/xfs/libxfs/xfs_alloc.c. Caller xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 564.228925] CPU: 1 PID: 2818 Comm: kworker/u4:3 Not tainted 4.14.303-syzkaller #0 [ 564.236534] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023 [ 564.245884] Workqueue: writeback wb_workfn (flush-7:1) [ 564.251147] Call Trace: [ 564.253724] dump_stack+0x1b2/0x281 [ 564.257338] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 564.262606] xfs_error_report+0x98/0xa0 [ 564.266555] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 564.271812] xfs_alloc_fixup_trees+0x425/0x4f0 [ 564.276377] ? xfs_alloc_update+0x90/0x90 [ 564.280509] ? xfs_btree_rec_offset.isra.0+0x3b/0xa0 [ 564.285587] ? xfs_alloc_compute_diff+0x23c/0x3d0 [ 564.290496] xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 564.295588] ? xfs_alloc_fix_freelist+0x685/0xeb0 [ 564.300408] ? xfs_alloc_ag_vextent_size+0x1ea0/0x1ea0 [ 564.305660] ? xfs_alloc_read_agf+0xb10/0xb10 [ 564.310153] xfs_alloc_ag_vextent+0x579/0x750 [ 564.314626] ? xfs_perag_get+0x116/0x410 [ 564.318666] ? xfs_alloc_vextent+0x470/0x2010 [ 564.323133] xfs_alloc_vextent+0x10b0/0x2010 [ 564.327518] xfs_bmap_btalloc+0x9e5/0x1b20 [ 564.331747] ? xfs_bmap_adjacent+0x1480/0x1480 [ 564.336306] ? ret_from_fork+0x24/0x30 [ 564.340182] ? __xfs_bmbt_get_all+0x16/0x100 [ 564.344564] xfs_bmap_alloc+0x107/0x160 [ 564.348511] xfs_bmapi_write+0xa49/0x1d00 [ 564.352635] ? xfs_bmapi_reserve_delalloc+0x7c0/0x7c0 [ 564.357804] ? trace_hardirqs_on+0x10/0x10 [ 564.362015] ? xfs_iext_get_ext+0xeb/0x200 [ 564.366236] ? xfs_iext_idx_to_irec+0x340/0x340 [ 564.370895] ? xfs_bmap_last_extent+0x1d0/0x1d0 [ 564.375561] xfs_iomap_write_allocate+0x42b/0xa30 [ 564.380402] ? xfs_file_iomap_begin+0x1ed0/0x1ed0 [ 564.385220] ? xfs_iunlock+0x248/0x3b0 [ 564.389086] ? rcu_read_lock_sched_held+0x16c/0x1d0 [ 564.394084] ? xfs_iunlock+0x21a/0x3b0 [ 564.397959] xfs_map_blocks+0x548/0x940 [ 564.401909] ? xfs_vm_set_page_dirty+0x610/0x610 [ 564.406641] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 564.412079] xfs_do_writepage+0x422/0x13d0 [ 564.416308] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 564.420613] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 564.426037] write_cache_pages+0x505/0xd20 [ 564.430245] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 564.434551] ? clear_page_dirty_for_io+0xb80/0xb80 [ 564.439470] ? trace_hardirqs_on+0x10/0x10 [ 564.443682] xfs_vm_writepages+0x258/0x340 [ 564.447923] ? xfs_vm_writepage+0xd0/0xd0 [ 564.452070] ? xfs_vm_writepage+0xd0/0xd0 [ 564.456210] do_writepages+0xc3/0x240 [ 564.459997] ? page_writeback_cpu_online+0x10/0x10 [ 564.464904] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 564.470347] __writeback_single_inode+0xda/0x1010 [ 564.475176] writeback_sb_inodes+0x48b/0xd30 [ 564.479586] ? wbc_detach_inode+0x780/0x780 [ 564.483885] ? queue_io+0x400/0x5a0 [ 564.487484] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 564.492907] wb_writeback+0x243/0xb80 [ 564.496701] ? writeback_inodes_wb.constprop.0+0x1a0/0x1a0 [ 564.502320] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 564.507756] wb_workfn+0x2bd/0xf50 [ 564.511275] ? process_one_work+0x6c4/0x14a0 [ 564.515665] ? inode_wait_for_writeback+0x30/0x30 [ 564.520489] ? lock_acquire+0x170/0x3f0 [ 564.524439] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 564.529999] process_one_work+0x793/0x14a0 [ 564.534229] ? work_busy+0x320/0x320 [ 564.537930] ? worker_thread+0x158/0xff0 [ 564.541982] ? _raw_spin_unlock_irq+0x24/0x80 [ 564.546466] worker_thread+0x5cc/0xff0 [ 564.550337] ? rescuer_thread+0xc80/0xc80 [ 564.554470] kthread+0x30d/0x420 [ 564.557821] ? kthread_create_on_node+0xd0/0xd0 [ 564.562471] ret_from_fork+0x24/0x30 [ 564.566556] XFS (loop1): page discard on page ffffea00010948c0, inode 0x29, offset 1859584. [ 564.575471] XFS (loop1): Internal error XFS_WANT_CORRUPTED_RETURN at line 431 of file fs/xfs/libxfs/xfs_alloc.c. Caller xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 564.590033] CPU: 1 PID: 2818 Comm: kworker/u4:3 Not tainted 4.14.303-syzkaller #0 [ 564.597642] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023 [ 564.606989] Workqueue: writeback wb_workfn (flush-7:1) [ 564.612242] Call Trace: [ 564.614813] dump_stack+0x1b2/0x281 [ 564.618422] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 564.623673] xfs_error_report+0x98/0xa0 [ 564.627636] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 564.632928] xfs_alloc_fixup_trees+0x425/0x4f0 [ 564.637490] ? xfs_alloc_update+0x90/0x90 [ 564.641610] ? xfs_btree_rec_offset.isra.0+0x3b/0xa0 [ 564.646687] ? xfs_alloc_compute_diff+0x23c/0x3d0 [ 564.651504] xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 564.656608] ? xfs_alloc_fix_freelist+0x685/0xeb0 [ 564.661439] ? xfs_alloc_ag_vextent_size+0x1ea0/0x1ea0 [ 564.666695] ? xfs_alloc_read_agf+0xb10/0xb10 [ 564.671174] xfs_alloc_ag_vextent+0x579/0x750 [ 564.675648] ? xfs_perag_get+0x116/0x410 [ 564.679689] ? xfs_alloc_vextent+0x470/0x2010 [ 564.684160] xfs_alloc_vextent+0x10b0/0x2010 [ 564.688550] xfs_bmap_btalloc+0x9e5/0x1b20 [ 564.692761] ? xfs_bmap_adjacent+0x1480/0x1480 [ 564.697322] ? ret_from_fork+0x24/0x30 [ 564.701191] ? __xfs_bmbt_get_all+0x16/0x100 [ 564.705573] xfs_bmap_alloc+0x107/0x160 [ 564.709525] xfs_bmapi_write+0xa49/0x1d00 [ 564.713666] ? xfs_bmapi_reserve_delalloc+0x7c0/0x7c0 [ 564.718850] ? trace_hardirqs_on+0x10/0x10 [ 564.723078] ? xfs_iext_get_ext+0xeb/0x200 [ 564.727302] ? xfs_iext_idx_to_irec+0x340/0x340 [ 564.731954] ? xfs_bmap_last_extent+0x1d0/0x1d0 [ 564.736613] xfs_iomap_write_allocate+0x42b/0xa30 [ 564.741446] ? xfs_file_iomap_begin+0x1ed0/0x1ed0 [ 564.746262] ? xfs_iunlock+0x248/0x3b0 [ 564.750134] ? rcu_read_lock_sched_held+0x16c/0x1d0 [ 564.755130] ? xfs_iunlock+0x21a/0x3b0 [ 564.758996] xfs_map_blocks+0x548/0x940 [ 564.762945] ? xfs_vm_set_page_dirty+0x610/0x610 [ 564.767688] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 564.773118] xfs_do_writepage+0x422/0x13d0 [ 564.777339] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 564.781745] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 564.787172] write_cache_pages+0x505/0xd20 [ 564.791382] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 564.795691] ? clear_page_dirty_for_io+0xb80/0xb80 [ 564.800605] ? trace_hardirqs_on+0x10/0x10 [ 564.804819] xfs_vm_writepages+0x258/0x340 [ 564.809026] ? xfs_vm_writepage+0xd0/0xd0 [ 564.813161] ? xfs_vm_writepage+0xd0/0xd0 [ 564.817294] do_writepages+0xc3/0x240 [ 564.821078] ? page_writeback_cpu_online+0x10/0x10 [ 564.825984] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 564.831425] __writeback_single_inode+0xda/0x1010 [ 564.836253] writeback_sb_inodes+0x48b/0xd30 [ 564.840655] ? wbc_detach_inode+0x780/0x780 [ 564.844973] ? queue_io+0x400/0x5a0 [ 564.848577] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 564.854008] wb_writeback+0x243/0xb80 [ 564.857799] ? writeback_inodes_wb.constprop.0+0x1a0/0x1a0 [ 564.863399] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 564.868829] wb_workfn+0x2bd/0xf50 [ 564.872343] ? process_one_work+0x6c4/0x14a0 [ 564.876749] ? inode_wait_for_writeback+0x30/0x30 [ 564.881632] ? lock_acquire+0x170/0x3f0 [ 564.885592] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 564.891044] process_one_work+0x793/0x14a0 [ 564.895275] ? work_busy+0x320/0x320 [ 564.898972] ? worker_thread+0x158/0xff0 [ 564.903010] ? _raw_spin_unlock_irq+0x24/0x80 [ 564.907495] worker_thread+0x5cc/0xff0 [ 564.911367] ? rescuer_thread+0xc80/0xc80 [ 564.915507] kthread+0x30d/0x420 [ 564.918858] ? kthread_create_on_node+0xd0/0xd0 [ 564.923511] ret_from_fork+0x24/0x30 [ 564.927891] XFS (loop1): page discard on page ffffea0001094900, inode 0x29, offset 1863680. [ 564.936845] XFS (loop1): Internal error XFS_WANT_CORRUPTED_RETURN at line 431 of file fs/xfs/libxfs/xfs_alloc.c. Caller xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 564.951407] CPU: 1 PID: 2818 Comm: kworker/u4:3 Not tainted 4.14.303-syzkaller #0 [ 564.959017] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023 [ 564.968369] Workqueue: writeback wb_workfn (flush-7:1) [ 564.973628] Call Trace: [ 564.976204] dump_stack+0x1b2/0x281 [ 564.979815] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 564.985072] xfs_error_report+0x98/0xa0 [ 564.989019] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 564.994279] xfs_alloc_fixup_trees+0x425/0x4f0 [ 564.998843] ? xfs_alloc_update+0x90/0x90 [ 565.002967] ? xfs_btree_rec_offset.isra.0+0x3b/0xa0 [ 565.008042] ? xfs_alloc_compute_diff+0x23c/0x3d0 [ 565.012874] xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 565.017959] ? xfs_alloc_fix_freelist+0x685/0xeb0 [ 565.022782] ? xfs_alloc_ag_vextent_size+0x1ea0/0x1ea0 [ 565.028034] ? xfs_alloc_read_agf+0xb10/0xb10 [ 565.032520] xfs_alloc_ag_vextent+0x579/0x750 [ 565.036994] ? xfs_perag_get+0x116/0x410 [ 565.041027] ? xfs_alloc_vextent+0x470/0x2010 [ 565.045521] xfs_alloc_vextent+0x10b0/0x2010 [ 565.049913] xfs_bmap_btalloc+0x9e5/0x1b20 [ 565.054136] ? xfs_bmap_adjacent+0x1480/0x1480 [ 565.058703] ? ret_from_fork+0x24/0x30 [ 565.062573] ? __xfs_bmbt_get_all+0x16/0x100 [ 565.066955] xfs_bmap_alloc+0x107/0x160 [ 565.070907] xfs_bmapi_write+0xa49/0x1d00 [ 565.075045] ? xfs_bmapi_reserve_delalloc+0x7c0/0x7c0 [ 565.080218] ? trace_hardirqs_on+0x10/0x10 [ 565.084443] ? xfs_iext_get_ext+0xeb/0x200 [ 565.088649] ? xfs_iext_idx_to_irec+0x340/0x340 [ 565.093310] ? xfs_bmap_last_extent+0x1d0/0x1d0 [ 565.097978] xfs_iomap_write_allocate+0x42b/0xa30 [ 565.102818] ? xfs_file_iomap_begin+0x1ed0/0x1ed0 [ 565.107634] ? xfs_iunlock+0x248/0x3b0 [ 565.111500] ? rcu_read_lock_sched_held+0x16c/0x1d0 [ 565.116495] ? xfs_iunlock+0x21a/0x3b0 [ 565.120362] xfs_map_blocks+0x548/0x940 [ 565.124311] ? xfs_vm_set_page_dirty+0x610/0x610 [ 565.129041] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 565.134471] xfs_do_writepage+0x422/0x13d0 [ 565.138693] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 565.142994] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 565.148414] write_cache_pages+0x505/0xd20 [ 565.152621] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 565.156940] ? clear_page_dirty_for_io+0xb80/0xb80 [ 565.161849] ? trace_hardirqs_on+0x10/0x10 [ 565.166057] xfs_vm_writepages+0x258/0x340 [ 565.170262] ? xfs_vm_writepage+0xd0/0xd0 [ 565.174394] ? xfs_vm_writepage+0xd0/0xd0 [ 565.178521] do_writepages+0xc3/0x240 [ 565.182314] ? page_writeback_cpu_online+0x10/0x10 [ 565.187219] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 565.192646] __writeback_single_inode+0xda/0x1010 [ 565.197463] writeback_sb_inodes+0x48b/0xd30 [ 565.201848] ? wbc_detach_inode+0x780/0x780 [ 565.206145] ? queue_io+0x400/0x5a0 [ 565.209749] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 565.215178] wb_writeback+0x243/0xb80 [ 565.218963] ? writeback_inodes_wb.constprop.0+0x1a0/0x1a0 [ 565.224563] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 565.229987] wb_workfn+0x2bd/0xf50 [ 565.233510] ? process_one_work+0x6c4/0x14a0 [ 565.237897] ? inode_wait_for_writeback+0x30/0x30 [ 565.242711] ? lock_acquire+0x170/0x3f0 [ 565.246659] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 565.252088] process_one_work+0x793/0x14a0 [ 565.256314] ? work_busy+0x320/0x320 [ 565.260007] ? worker_thread+0x158/0xff0 [ 565.264040] ? _raw_spin_unlock_irq+0x24/0x80 [ 565.268509] worker_thread+0x5cc/0xff0 [ 565.272373] ? rescuer_thread+0xc80/0xc80 [ 565.276503] kthread+0x30d/0x420 [ 565.279852] ? kthread_create_on_node+0xd0/0xd0 [ 565.284507] ret_from_fork+0x24/0x30 [ 565.288835] XFS (loop1): page discard on page ffffea0001094940, inode 0x29, offset 1867776. [ 565.297759] XFS (loop1): Internal error XFS_WANT_CORRUPTED_RETURN at line 431 of file fs/xfs/libxfs/xfs_alloc.c. Caller xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 565.312321] CPU: 1 PID: 2818 Comm: kworker/u4:3 Not tainted 4.14.303-syzkaller #0 [ 565.319935] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023 [ 565.329297] Workqueue: writeback wb_workfn (flush-7:1) [ 565.334551] Call Trace: [ 565.337129] dump_stack+0x1b2/0x281 [ 565.340745] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 565.346003] xfs_error_report+0x98/0xa0 [ 565.349956] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 565.355209] xfs_alloc_fixup_trees+0x425/0x4f0 [ 565.359767] ? xfs_alloc_update+0x90/0x90 [ 565.363996] ? xfs_btree_rec_offset.isra.0+0x3b/0xa0 [ 565.369106] ? xfs_alloc_compute_diff+0x23c/0x3d0 [ 565.373941] xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 565.379039] ? xfs_alloc_fix_freelist+0x685/0xeb0 [ 565.383865] ? xfs_alloc_ag_vextent_size+0x1ea0/0x1ea0 [ 565.389125] ? xfs_alloc_read_agf+0xb10/0xb10 [ 565.393601] xfs_alloc_ag_vextent+0x579/0x750 [ 565.398071] ? xfs_perag_get+0x116/0x410 [ 565.402124] ? xfs_alloc_vextent+0x470/0x2010 [ 565.406595] xfs_alloc_vextent+0x10b0/0x2010 [ 565.410987] xfs_bmap_btalloc+0x9e5/0x1b20 [ 565.415220] ? xfs_bmap_adjacent+0x1480/0x1480 [ 565.419794] ? ret_from_fork+0x24/0x30 [ 565.423685] ? __xfs_bmbt_get_all+0x16/0x100 [ 565.428095] xfs_bmap_alloc+0x107/0x160 [ 565.432046] xfs_bmapi_write+0xa49/0x1d00 [ 565.436174] ? xfs_bmapi_reserve_delalloc+0x7c0/0x7c0 [ 565.441348] ? trace_hardirqs_on+0x10/0x10 [ 565.445569] ? xfs_iext_get_ext+0xeb/0x200 [ 565.449788] ? xfs_iext_idx_to_irec+0x340/0x340 [ 565.454437] ? xfs_bmap_last_extent+0x1d0/0x1d0 [ 565.459088] xfs_iomap_write_allocate+0x42b/0xa30 [ 565.463924] ? xfs_file_iomap_begin+0x1ed0/0x1ed0 [ 565.468748] ? xfs_iunlock+0x248/0x3b0 [ 565.472616] ? rcu_read_lock_sched_held+0x16c/0x1d0 [ 565.477607] ? xfs_iunlock+0x21a/0x3b0 [ 565.481470] xfs_map_blocks+0x548/0x940 [ 565.485428] ? xfs_vm_set_page_dirty+0x610/0x610 [ 565.490170] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 565.495618] xfs_do_writepage+0x422/0x13d0 [ 565.499835] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 565.504143] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 565.509577] write_cache_pages+0x505/0xd20 [ 565.513807] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 565.518107] ? clear_page_dirty_for_io+0xb80/0xb80 [ 565.523021] ? trace_hardirqs_on+0x10/0x10 [ 565.527239] xfs_vm_writepages+0x258/0x340 [ 565.531473] ? xfs_vm_writepage+0xd0/0xd0 [ 565.535609] ? xfs_vm_writepage+0xd0/0xd0 [ 565.539744] do_writepages+0xc3/0x240 [ 565.543532] ? page_writeback_cpu_online+0x10/0x10 [ 565.548449] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 565.553877] __writeback_single_inode+0xda/0x1010 [ 565.558696] writeback_sb_inodes+0x48b/0xd30 [ 565.563095] ? wbc_detach_inode+0x780/0x780 [ 565.567402] ? queue_io+0x400/0x5a0 [ 565.571004] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 565.576456] wb_writeback+0x243/0xb80 [ 565.580257] ? writeback_inodes_wb.constprop.0+0x1a0/0x1a0 [ 565.585868] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 565.591300] wb_workfn+0x2bd/0xf50 [ 565.594841] ? process_one_work+0x6c4/0x14a0 [ 565.599229] ? inode_wait_for_writeback+0x30/0x30 [ 565.604053] ? lock_acquire+0x170/0x3f0 [ 565.608036] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 565.613466] process_one_work+0x793/0x14a0 [ 565.617680] ? work_busy+0x320/0x320 [ 565.621366] ? worker_thread+0x158/0xff0 [ 565.625410] ? _raw_spin_unlock_irq+0x24/0x80 [ 565.629890] worker_thread+0x5cc/0xff0 [ 565.633757] ? rescuer_thread+0xc80/0xc80 [ 565.637881] kthread+0x30d/0x420 [ 565.641222] ? kthread_create_on_node+0xd0/0xd0 [ 565.645876] ret_from_fork+0x24/0x30 [ 565.649949] XFS (loop1): page discard on page ffffea0001094980, inode 0x29, offset 1871872. [ 565.658862] XFS (loop1): Internal error XFS_WANT_CORRUPTED_RETURN at line 431 of file fs/xfs/libxfs/xfs_alloc.c. Caller xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 565.673406] CPU: 1 PID: 2818 Comm: kworker/u4:3 Not tainted 4.14.303-syzkaller #0 [ 565.681041] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023 [ 565.690386] Workqueue: writeback wb_workfn (flush-7:1) [ 565.695641] Call Trace: [ 565.698208] dump_stack+0x1b2/0x281 [ 565.701810] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 565.707067] xfs_error_report+0x98/0xa0 [ 565.711021] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 565.716276] xfs_alloc_fixup_trees+0x425/0x4f0 [ 565.720833] ? xfs_alloc_update+0x90/0x90 [ 565.724958] ? xfs_btree_rec_offset.isra.0+0x3b/0xa0 [ 565.730048] ? xfs_alloc_compute_diff+0x23c/0x3d0 [ 565.734866] xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 565.739951] ? xfs_alloc_fix_freelist+0x685/0xeb0 [ 565.744775] ? xfs_alloc_ag_vextent_size+0x1ea0/0x1ea0 [ 565.750034] ? xfs_alloc_read_agf+0xb10/0xb10 [ 565.754510] xfs_alloc_ag_vextent+0x579/0x750 [ 565.758978] ? xfs_perag_get+0x116/0x410 [ 565.763020] ? xfs_alloc_vextent+0x470/0x2010 [ 565.767496] xfs_alloc_vextent+0x10b0/0x2010 [ 565.771889] xfs_bmap_btalloc+0x9e5/0x1b20 [ 565.776106] ? xfs_bmap_adjacent+0x1480/0x1480 [ 565.780663] ? ret_from_fork+0x24/0x30 [ 565.784542] ? __xfs_bmbt_get_all+0x16/0x100 [ 565.788956] xfs_bmap_alloc+0x107/0x160 [ 565.792905] xfs_bmapi_write+0xa49/0x1d00 [ 565.797035] ? xfs_bmapi_reserve_delalloc+0x7c0/0x7c0 [ 565.802200] ? trace_hardirqs_on+0x10/0x10 [ 565.806419] ? xfs_iext_get_ext+0xeb/0x200 [ 565.810634] ? xfs_iext_idx_to_irec+0x340/0x340 [ 565.815285] ? xfs_bmap_last_extent+0x1d0/0x1d0 [ 565.819952] xfs_iomap_write_allocate+0x42b/0xa30 [ 565.824787] ? xfs_file_iomap_begin+0x1ed0/0x1ed0 [ 565.829611] ? xfs_iunlock+0x248/0x3b0 [ 565.833494] ? rcu_read_lock_sched_held+0x16c/0x1d0 [ 565.838491] ? xfs_iunlock+0x21a/0x3b0 [ 565.842354] xfs_map_blocks+0x548/0x940 [ 565.846314] ? xfs_vm_set_page_dirty+0x610/0x610 [ 565.851051] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 565.856478] xfs_do_writepage+0x422/0x13d0 [ 565.860700] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 565.865019] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 565.870460] write_cache_pages+0x505/0xd20 [ 565.874674] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 565.878977] ? clear_page_dirty_for_io+0xb80/0xb80 [ 565.883902] ? trace_hardirqs_on+0x10/0x10 [ 565.888122] xfs_vm_writepages+0x258/0x340 [ 565.892335] ? xfs_vm_writepage+0xd0/0xd0 [ 565.896462] ? xfs_vm_writepage+0xd0/0xd0 [ 565.900583] do_writepages+0xc3/0x240 [ 565.904370] ? page_writeback_cpu_online+0x10/0x10 [ 565.909305] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 565.914753] __writeback_single_inode+0xda/0x1010 [ 565.919575] writeback_sb_inodes+0x48b/0xd30 [ 565.923992] ? wbc_detach_inode+0x780/0x780 [ 565.928319] ? queue_io+0x400/0x5a0 [ 565.931935] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 565.937360] wb_writeback+0x243/0xb80 [ 565.941157] ? writeback_inodes_wb.constprop.0+0x1a0/0x1a0 [ 565.946784] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 565.952212] wb_workfn+0x2bd/0xf50 [ 565.955730] ? process_one_work+0x6c4/0x14a0 [ 565.960116] ? inode_wait_for_writeback+0x30/0x30 [ 565.964939] ? lock_acquire+0x170/0x3f0 [ 565.968897] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 565.974323] process_one_work+0x793/0x14a0 [ 565.978539] ? work_busy+0x320/0x320 [ 565.982228] ? worker_thread+0x158/0xff0 [ 565.986275] ? _raw_spin_unlock_irq+0x24/0x80 [ 565.990772] worker_thread+0x5cc/0xff0 [ 565.994639] ? rescuer_thread+0xc80/0xc80 [ 565.998764] kthread+0x30d/0x420 [ 566.002127] ? kthread_create_on_node+0xd0/0xd0 [ 566.006773] ret_from_fork+0x24/0x30 [ 566.011219] XFS (loop1): page discard on page ffffea00010949c0, inode 0x29, offset 1875968. [ 566.020199] XFS (loop1): Internal error XFS_WANT_CORRUPTED_RETURN at line 431 of file fs/xfs/libxfs/xfs_alloc.c. Caller xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 566.034921] CPU: 1 PID: 2818 Comm: kworker/u4:3 Not tainted 4.14.303-syzkaller #0 [ 566.042535] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023 [ 566.051883] Workqueue: writeback wb_workfn (flush-7:1) [ 566.057159] Call Trace: [ 566.059727] dump_stack+0x1b2/0x281 [ 566.063340] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 566.068601] xfs_error_report+0x98/0xa0 [ 566.072549] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 566.077808] xfs_alloc_fixup_trees+0x425/0x4f0 [ 566.082367] ? xfs_alloc_update+0x90/0x90 [ 566.086495] ? xfs_btree_rec_offset.isra.0+0x3b/0xa0 [ 566.091580] ? xfs_alloc_compute_diff+0x23c/0x3d0 [ 566.096396] xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 566.101480] ? xfs_alloc_fix_freelist+0x685/0xeb0 [ 566.106303] ? xfs_alloc_ag_vextent_size+0x1ea0/0x1ea0 [ 566.111560] ? xfs_alloc_read_agf+0xb10/0xb10 [ 566.116041] xfs_alloc_ag_vextent+0x579/0x750 [ 566.120512] ? xfs_perag_get+0x116/0x410 [ 566.124549] ? xfs_alloc_vextent+0x470/0x2010 [ 566.129050] xfs_alloc_vextent+0x10b0/0x2010 [ 566.133438] xfs_bmap_btalloc+0x9e5/0x1b20 [ 566.137649] ? xfs_bmap_adjacent+0x1480/0x1480 [ 566.142204] ? ret_from_fork+0x24/0x30 [ 566.146086] ? __xfs_bmbt_get_all+0x16/0x100 [ 566.150476] xfs_bmap_alloc+0x107/0x160 [ 566.154426] xfs_bmapi_write+0xa49/0x1d00 [ 566.158555] ? xfs_bmapi_reserve_delalloc+0x7c0/0x7c0 [ 566.163729] ? trace_hardirqs_on+0x10/0x10 [ 566.167949] ? xfs_iext_get_ext+0xeb/0x200 [ 566.172158] ? xfs_iext_idx_to_irec+0x340/0x340 [ 566.176837] ? xfs_bmap_last_extent+0x1d0/0x1d0 [ 566.181490] xfs_iomap_write_allocate+0x42b/0xa30 [ 566.186364] ? xfs_file_iomap_begin+0x1ed0/0x1ed0 [ 566.191189] ? xfs_iunlock+0x248/0x3b0 [ 566.195060] ? rcu_read_lock_sched_held+0x16c/0x1d0 [ 566.200054] ? xfs_iunlock+0x21a/0x3b0 [ 566.203923] xfs_map_blocks+0x548/0x940 [ 566.207881] ? xfs_vm_set_page_dirty+0x610/0x610 [ 566.212612] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 566.218040] xfs_do_writepage+0x422/0x13d0 [ 566.222254] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 566.226562] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 566.231994] write_cache_pages+0x505/0xd20 [ 566.236205] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 566.240503] ? clear_page_dirty_for_io+0xb80/0xb80 [ 566.245421] ? trace_hardirqs_on+0x10/0x10 [ 566.249641] xfs_vm_writepages+0x258/0x340 [ 566.253854] ? xfs_vm_writepage+0xd0/0xd0 [ 566.257982] ? xfs_vm_writepage+0xd0/0xd0 [ 566.262104] do_writepages+0xc3/0x240 [ 566.265893] ? page_writeback_cpu_online+0x10/0x10 [ 566.270807] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 566.276236] __writeback_single_inode+0xda/0x1010 [ 566.281058] writeback_sb_inodes+0x48b/0xd30 [ 566.285453] ? wbc_detach_inode+0x780/0x780 [ 566.289783] ? queue_io+0x400/0x5a0 [ 566.293405] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 566.298846] wb_writeback+0x243/0xb80 [ 566.302627] ? writeback_inodes_wb.constprop.0+0x1a0/0x1a0 [ 566.308230] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 566.313658] wb_workfn+0x2bd/0xf50 [ 566.317176] ? process_one_work+0x6c4/0x14a0 [ 566.321559] ? inode_wait_for_writeback+0x30/0x30 [ 566.326383] ? lock_acquire+0x170/0x3f0 [ 566.330358] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 566.335785] process_one_work+0x793/0x14a0 [ 566.339998] ? work_busy+0x320/0x320 [ 566.343696] ? worker_thread+0x158/0xff0 [ 566.347746] ? _raw_spin_unlock_irq+0x24/0x80 [ 566.352215] worker_thread+0x5cc/0xff0 [ 566.356081] ? rescuer_thread+0xc80/0xc80 [ 566.360202] kthread+0x30d/0x420 [ 566.363549] ? kthread_create_on_node+0xd0/0xd0 [ 566.368202] ret_from_fork+0x24/0x30 [ 566.372396] XFS (loop1): page discard on page ffffea0001094a00, inode 0x29, offset 1880064. [ 566.381313] XFS (loop1): Internal error XFS_WANT_CORRUPTED_RETURN at line 431 of file fs/xfs/libxfs/xfs_alloc.c. Caller xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 566.395877] CPU: 1 PID: 2818 Comm: kworker/u4:3 Not tainted 4.14.303-syzkaller #0 [ 566.403489] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023 [ 566.412844] Workqueue: writeback wb_workfn (flush-7:1) [ 566.418098] Call Trace: [ 566.420664] dump_stack+0x1b2/0x281 [ 566.424278] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 566.429560] xfs_error_report+0x98/0xa0 [ 566.433511] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 566.438765] xfs_alloc_fixup_trees+0x425/0x4f0 [ 566.443332] ? xfs_alloc_update+0x90/0x90 [ 566.447464] ? xfs_btree_rec_offset.isra.0+0x3b/0xa0 [ 566.452568] ? xfs_alloc_compute_diff+0x23c/0x3d0 [ 566.457385] xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 566.462464] ? xfs_alloc_fix_freelist+0x685/0xeb0 [ 566.467285] ? xfs_alloc_ag_vextent_size+0x1ea0/0x1ea0 [ 566.472539] ? xfs_alloc_read_agf+0xb10/0xb10 [ 566.477016] xfs_alloc_ag_vextent+0x579/0x750 [ 566.481485] ? xfs_perag_get+0x116/0x410 [ 566.485524] ? xfs_alloc_vextent+0x470/0x2010 [ 566.490003] xfs_alloc_vextent+0x10b0/0x2010 [ 566.494391] xfs_bmap_btalloc+0x9e5/0x1b20 [ 566.498602] ? xfs_bmap_adjacent+0x1480/0x1480 [ 566.503163] ? ret_from_fork+0x24/0x30 [ 566.507037] ? __xfs_bmbt_get_all+0x16/0x100 [ 566.511422] xfs_bmap_alloc+0x107/0x160 [ 566.515370] xfs_bmapi_write+0xa49/0x1d00 [ 566.519497] ? xfs_bmapi_reserve_delalloc+0x7c0/0x7c0 [ 566.524668] ? trace_hardirqs_on+0x10/0x10 [ 566.528885] ? xfs_iext_get_ext+0xeb/0x200 [ 566.533100] ? xfs_iext_idx_to_irec+0x340/0x340 [ 566.537757] ? xfs_bmap_last_extent+0x1d0/0x1d0 [ 566.542403] xfs_iomap_write_allocate+0x42b/0xa30 [ 566.547226] ? xfs_file_iomap_begin+0x1ed0/0x1ed0 [ 566.552044] ? xfs_iunlock+0x248/0x3b0 [ 566.555913] ? rcu_read_lock_sched_held+0x16c/0x1d0 [ 566.560904] ? xfs_iunlock+0x21a/0x3b0 [ 566.564772] xfs_map_blocks+0x548/0x940 [ 566.568731] ? xfs_vm_set_page_dirty+0x610/0x610 [ 566.573470] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 566.578910] xfs_do_writepage+0x422/0x13d0 [ 566.583135] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 566.587443] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 566.592872] write_cache_pages+0x505/0xd20 [ 566.597084] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 566.601382] ? clear_page_dirty_for_io+0xb80/0xb80 [ 566.606304] ? trace_hardirqs_on+0x10/0x10 [ 566.610521] xfs_vm_writepages+0x258/0x340 [ 566.614733] ? xfs_vm_writepage+0xd0/0xd0 [ 566.618862] ? xfs_vm_writepage+0xd0/0xd0 [ 566.622986] do_writepages+0xc3/0x240 [ 566.626774] ? page_writeback_cpu_online+0x10/0x10 [ 566.631682] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 566.637108] __writeback_single_inode+0xda/0x1010 [ 566.641929] writeback_sb_inodes+0x48b/0xd30 [ 566.646342] ? wbc_detach_inode+0x780/0x780 [ 566.650661] ? queue_io+0x400/0x5a0 [ 566.654267] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 566.659705] wb_writeback+0x243/0xb80 [ 566.663495] ? writeback_inodes_wb.constprop.0+0x1a0/0x1a0 [ 566.669109] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 566.674543] wb_workfn+0x2bd/0xf50 [ 566.678071] ? process_one_work+0x6c4/0x14a0 [ 566.682458] ? inode_wait_for_writeback+0x30/0x30 [ 566.687276] ? lock_acquire+0x170/0x3f0 [ 566.691228] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 566.696659] process_one_work+0x793/0x14a0 [ 566.700872] ? work_busy+0x320/0x320 [ 566.704705] ? worker_thread+0x158/0xff0 [ 566.708754] ? _raw_spin_unlock_irq+0x24/0x80 [ 566.713230] worker_thread+0x5cc/0xff0 [ 566.717101] ? rescuer_thread+0xc80/0xc80 [ 566.721228] kthread+0x30d/0x420 [ 566.724577] ? kthread_create_on_node+0xd0/0xd0 [ 566.729230] ret_from_fork+0x24/0x30 [ 566.733377] XFS (loop1): page discard on page ffffea0001094a40, inode 0x29, offset 1884160. [ 566.742248] XFS (loop1): Internal error XFS_WANT_CORRUPTED_RETURN at line 431 of file fs/xfs/libxfs/xfs_alloc.c. Caller xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 566.756809] CPU: 1 PID: 2818 Comm: kworker/u4:3 Not tainted 4.14.303-syzkaller #0 [ 566.764418] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023 [ 566.773766] Workqueue: writeback wb_workfn (flush-7:1) [ 566.779021] Call Trace: [ 566.781584] dump_stack+0x1b2/0x281 [ 566.785202] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 566.790460] xfs_error_report+0x98/0xa0 [ 566.794408] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 566.799662] xfs_alloc_fixup_trees+0x425/0x4f0 [ 566.804228] ? xfs_alloc_update+0x90/0x90 [ 566.808356] ? xfs_btree_rec_offset.isra.0+0x3b/0xa0 [ 566.813444] ? xfs_alloc_compute_diff+0x23c/0x3d0 [ 566.818280] xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 566.823381] ? xfs_alloc_fix_freelist+0x685/0xeb0 [ 566.828218] ? xfs_alloc_ag_vextent_size+0x1ea0/0x1ea0 [ 566.833474] ? xfs_alloc_read_agf+0xb10/0xb10 [ 566.837976] xfs_alloc_ag_vextent+0x579/0x750 [ 566.842452] ? xfs_perag_get+0x116/0x410 [ 566.846497] ? xfs_alloc_vextent+0x470/0x2010 [ 566.850977] xfs_alloc_vextent+0x10b0/0x2010 [ 566.855365] xfs_bmap_btalloc+0x9e5/0x1b20 [ 566.859578] ? xfs_bmap_adjacent+0x1480/0x1480 [ 566.864144] ? ret_from_fork+0x24/0x30 [ 566.868021] ? __xfs_bmbt_get_all+0x16/0x100 [ 566.872403] xfs_bmap_alloc+0x107/0x160 [ 566.876350] xfs_bmapi_write+0xa49/0x1d00 [ 566.880476] ? xfs_bmapi_reserve_delalloc+0x7c0/0x7c0 [ 566.885648] ? trace_hardirqs_on+0x10/0x10 [ 566.889876] ? xfs_iext_get_ext+0xeb/0x200 [ 566.894100] ? xfs_iext_idx_to_irec+0x340/0x340 [ 566.898762] ? xfs_bmap_last_extent+0x1d0/0x1d0 [ 566.903431] xfs_iomap_write_allocate+0x42b/0xa30 [ 566.908267] ? xfs_file_iomap_begin+0x1ed0/0x1ed0 [ 566.913087] ? xfs_iunlock+0x248/0x3b0 [ 566.916960] ? rcu_read_lock_sched_held+0x16c/0x1d0 [ 566.921979] ? xfs_iunlock+0x21a/0x3b0 [ 566.925855] xfs_map_blocks+0x548/0x940 [ 566.929817] ? xfs_vm_set_page_dirty+0x610/0x610 [ 566.934573] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 566.940019] xfs_do_writepage+0x422/0x13d0 [ 566.944268] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 566.948575] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 566.954018] write_cache_pages+0x505/0xd20 [ 566.958231] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 566.962546] ? clear_page_dirty_for_io+0xb80/0xb80 [ 566.967470] ? trace_hardirqs_on+0x10/0x10 [ 566.971700] xfs_vm_writepages+0x258/0x340 [ 566.975914] ? xfs_vm_writepage+0xd0/0xd0 [ 566.980057] ? xfs_vm_writepage+0xd0/0xd0 [ 566.984191] do_writepages+0xc3/0x240 [ 566.987975] ? page_writeback_cpu_online+0x10/0x10 [ 566.992888] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 566.998317] __writeback_single_inode+0xda/0x1010 [ 567.003143] writeback_sb_inodes+0x48b/0xd30 [ 567.007542] ? wbc_detach_inode+0x780/0x780 [ 567.011856] ? queue_io+0x400/0x5a0 [ 567.015457] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 567.020890] wb_writeback+0x243/0xb80 [ 567.024677] ? writeback_inodes_wb.constprop.0+0x1a0/0x1a0 [ 567.030287] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 567.035732] wb_workfn+0x2bd/0xf50 [ 567.039250] ? process_one_work+0x6c4/0x14a0 [ 567.043640] ? inode_wait_for_writeback+0x30/0x30 [ 567.048488] ? lock_acquire+0x170/0x3f0 [ 567.052439] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 567.057867] process_one_work+0x793/0x14a0 [ 567.062086] ? work_busy+0x320/0x320 [ 567.065784] ? worker_thread+0x158/0xff0 [ 567.069827] ? _raw_spin_unlock_irq+0x24/0x80 [ 567.074299] worker_thread+0x5cc/0xff0 [ 567.078183] ? rescuer_thread+0xc80/0xc80 [ 567.082307] kthread+0x30d/0x420 [ 567.085654] ? kthread_create_on_node+0xd0/0xd0 [ 567.090305] ret_from_fork+0x24/0x30 [ 567.094672] XFS (loop1): page discard on page ffffea0001094a80, inode 0x29, offset 1888256. [ 567.103569] XFS (loop1): Internal error XFS_WANT_CORRUPTED_RETURN at line 431 of file fs/xfs/libxfs/xfs_alloc.c. Caller xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 567.118135] CPU: 1 PID: 2818 Comm: kworker/u4:3 Not tainted 4.14.303-syzkaller #0 [ 567.125752] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023 [ 567.135105] Workqueue: writeback wb_workfn (flush-7:1) [ 567.140360] Call Trace: [ 567.142931] dump_stack+0x1b2/0x281 [ 567.146543] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 567.151816] xfs_error_report+0x98/0xa0 [ 567.155782] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 567.161049] xfs_alloc_fixup_trees+0x425/0x4f0 [ 567.165623] ? xfs_alloc_update+0x90/0x90 [ 567.169755] ? xfs_btree_rec_offset.isra.0+0x3b/0xa0 [ 567.174837] ? xfs_alloc_compute_diff+0x23c/0x3d0 [ 567.179657] xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 567.184759] ? xfs_alloc_fix_freelist+0x685/0xeb0 [ 567.189592] ? xfs_alloc_ag_vextent_size+0x1ea0/0x1ea0 [ 567.194846] ? xfs_alloc_read_agf+0xb10/0xb10 [ 567.199325] xfs_alloc_ag_vextent+0x579/0x750 [ 567.203809] ? xfs_perag_get+0x116/0x410 [ 567.207853] ? xfs_alloc_vextent+0x470/0x2010 [ 567.212324] xfs_alloc_vextent+0x10b0/0x2010 [ 567.216735] xfs_bmap_btalloc+0x9e5/0x1b20 [ 567.220961] ? xfs_bmap_adjacent+0x1480/0x1480 [ 567.225525] ? ret_from_fork+0x24/0x30 [ 567.229406] ? __xfs_bmbt_get_all+0x16/0x100 [ 567.233791] xfs_bmap_alloc+0x107/0x160 [ 567.237745] xfs_bmapi_write+0xa49/0x1d00 [ 567.241874] ? xfs_bmapi_reserve_delalloc+0x7c0/0x7c0 [ 567.247042] ? trace_hardirqs_on+0x10/0x10 [ 567.251253] ? xfs_iext_get_ext+0xeb/0x200 [ 567.255463] ? xfs_iext_idx_to_irec+0x340/0x340 [ 567.260113] ? xfs_bmap_last_extent+0x1d0/0x1d0 [ 567.264773] xfs_iomap_write_allocate+0x42b/0xa30 [ 567.269607] ? xfs_file_iomap_begin+0x1ed0/0x1ed0 [ 567.274447] ? xfs_iunlock+0x248/0x3b0 [ 567.278345] ? rcu_read_lock_sched_held+0x16c/0x1d0 [ 567.283341] ? xfs_iunlock+0x21a/0x3b0 [ 567.287214] xfs_map_blocks+0x548/0x940 [ 567.291180] ? xfs_vm_set_page_dirty+0x610/0x610 [ 567.295923] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 567.301367] xfs_do_writepage+0x422/0x13d0 [ 567.305598] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 567.309912] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 567.315342] write_cache_pages+0x505/0xd20 [ 567.319560] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 567.323868] ? clear_page_dirty_for_io+0xb80/0xb80 [ 567.328799] ? trace_hardirqs_on+0x10/0x10 [ 567.333029] xfs_vm_writepages+0x258/0x340 [ 567.337275] ? xfs_vm_writepage+0xd0/0xd0 [ 567.341403] ? xfs_vm_writepage+0xd0/0xd0 [ 567.345532] do_writepages+0xc3/0x240 [ 567.349322] ? page_writeback_cpu_online+0x10/0x10 [ 567.354229] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 567.359659] __writeback_single_inode+0xda/0x1010 [ 567.364485] writeback_sb_inodes+0x48b/0xd30 [ 567.368880] ? wbc_detach_inode+0x780/0x780 [ 567.373179] ? queue_io+0x400/0x5a0 [ 567.376781] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 567.382209] wb_writeback+0x243/0xb80 [ 567.385999] ? writeback_inodes_wb.constprop.0+0x1a0/0x1a0 [ 567.391608] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 567.397036] wb_workfn+0x2bd/0xf50 [ 567.400559] ? process_one_work+0x6c4/0x14a0 [ 567.404971] ? inode_wait_for_writeback+0x30/0x30 [ 567.409797] ? lock_acquire+0x170/0x3f0 [ 567.413749] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 567.419200] process_one_work+0x793/0x14a0 [ 567.423422] ? work_busy+0x320/0x320 [ 567.427118] ? worker_thread+0x158/0xff0 [ 567.431156] ? _raw_spin_unlock_irq+0x24/0x80 [ 567.435627] worker_thread+0x5cc/0xff0 [ 567.439492] ? rescuer_thread+0xc80/0xc80 [ 567.443633] kthread+0x30d/0x420 [ 567.447004] ? kthread_create_on_node+0xd0/0xd0 [ 567.451663] ret_from_fork+0x24/0x30 [ 567.455726] XFS (loop1): page discard on page ffffea0001094ac0, inode 0x29, offset 1892352. [ 567.464658] XFS (loop1): Internal error XFS_WANT_CORRUPTED_RETURN at line 431 of file fs/xfs/libxfs/xfs_alloc.c. Caller xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 567.479210] CPU: 1 PID: 2818 Comm: kworker/u4:3 Not tainted 4.14.303-syzkaller #0 [ 567.486831] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023 [ 567.496184] Workqueue: writeback wb_workfn (flush-7:1) [ 567.501438] Call Trace: [ 567.504014] dump_stack+0x1b2/0x281 [ 567.507626] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 567.512878] xfs_error_report+0x98/0xa0 [ 567.516829] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 567.522082] xfs_alloc_fixup_trees+0x425/0x4f0 [ 567.526652] ? xfs_alloc_update+0x90/0x90 [ 567.530791] ? xfs_btree_rec_offset.isra.0+0x3b/0xa0 [ 567.535881] ? xfs_alloc_compute_diff+0x23c/0x3d0 [ 567.540710] xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 567.545809] ? xfs_alloc_fix_freelist+0x685/0xeb0 [ 567.550636] ? xfs_alloc_ag_vextent_size+0x1ea0/0x1ea0 [ 567.555892] ? xfs_alloc_read_agf+0xb10/0xb10 [ 567.560373] xfs_alloc_ag_vextent+0x579/0x750 [ 567.564846] ? xfs_perag_get+0x116/0x410 [ 567.568888] ? xfs_alloc_vextent+0x470/0x2010 [ 567.573358] xfs_alloc_vextent+0x10b0/0x2010 [ 567.577748] xfs_bmap_btalloc+0x9e5/0x1b20 [ 567.581960] ? xfs_bmap_adjacent+0x1480/0x1480 [ 567.586520] ? ret_from_fork+0x24/0x30 [ 567.590392] ? __xfs_bmbt_get_all+0x16/0x100 [ 567.594777] xfs_bmap_alloc+0x107/0x160 [ 567.598726] xfs_bmapi_write+0xa49/0x1d00 [ 567.602853] ? xfs_bmapi_reserve_delalloc+0x7c0/0x7c0 [ 567.608018] ? trace_hardirqs_on+0x10/0x10 [ 567.612252] ? xfs_iext_get_ext+0xeb/0x200 [ 567.616474] ? xfs_iext_idx_to_irec+0x340/0x340 [ 567.621135] ? xfs_bmap_last_extent+0x1d0/0x1d0 [ 567.625821] xfs_iomap_write_allocate+0x42b/0xa30 [ 567.630652] ? xfs_file_iomap_begin+0x1ed0/0x1ed0 [ 567.635472] ? xfs_iunlock+0x248/0x3b0 [ 567.639340] ? rcu_read_lock_sched_held+0x16c/0x1d0 [ 567.644334] ? xfs_iunlock+0x21a/0x3b0 [ 567.648204] xfs_map_blocks+0x548/0x940 [ 567.652156] ? xfs_vm_set_page_dirty+0x610/0x610 [ 567.656889] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 567.662315] xfs_do_writepage+0x422/0x13d0 [ 567.666546] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 567.670852] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 567.676303] write_cache_pages+0x505/0xd20 [ 567.680514] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 567.684822] ? clear_page_dirty_for_io+0xb80/0xb80 [ 567.689741] ? trace_hardirqs_on+0x10/0x10 [ 567.693953] xfs_vm_writepages+0x258/0x340 [ 567.698162] ? xfs_vm_writepage+0xd0/0xd0 [ 567.702286] ? xfs_vm_writepage+0xd0/0xd0 [ 567.706414] do_writepages+0xc3/0x240 [ 567.710198] ? page_writeback_cpu_online+0x10/0x10 [ 567.715108] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 567.720535] __writeback_single_inode+0xda/0x1010 [ 567.725359] writeback_sb_inodes+0x48b/0xd30 [ 567.729777] ? wbc_detach_inode+0x780/0x780 [ 567.734077] ? queue_io+0x400/0x5a0 [ 567.737680] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 567.743115] wb_writeback+0x243/0xb80 [ 567.746900] ? writeback_inodes_wb.constprop.0+0x1a0/0x1a0 [ 567.752502] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 567.757925] wb_workfn+0x2bd/0xf50 [ 567.761441] ? process_one_work+0x6c4/0x14a0 [ 567.765831] ? inode_wait_for_writeback+0x30/0x30 [ 567.770657] ? lock_acquire+0x170/0x3f0 [ 567.774608] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 567.780036] process_one_work+0x793/0x14a0 [ 567.784263] ? work_busy+0x320/0x320 [ 567.787958] ? worker_thread+0x158/0xff0 [ 567.792010] ? _raw_spin_unlock_irq+0x24/0x80 [ 567.796488] worker_thread+0x5cc/0xff0 [ 567.800411] ? rescuer_thread+0xc80/0xc80 [ 567.804546] kthread+0x30d/0x420 [ 567.807899] ? kthread_create_on_node+0xd0/0xd0 [ 567.812548] ret_from_fork+0x24/0x30 [ 567.816710] XFS (loop1): page discard on page ffffea0001094b00, inode 0x29, offset 1896448. [ 567.825644] XFS (loop1): Internal error XFS_WANT_CORRUPTED_RETURN at line 431 of file fs/xfs/libxfs/xfs_alloc.c. Caller xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 567.840210] CPU: 1 PID: 2818 Comm: kworker/u4:3 Not tainted 4.14.303-syzkaller #0 [ 567.848930] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023 [ 567.858283] Workqueue: writeback wb_workfn (flush-7:1) [ 567.863547] Call Trace: [ 567.866126] dump_stack+0x1b2/0x281 [ 567.869742] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 567.875003] xfs_error_report+0x98/0xa0 [ 567.878956] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 567.884226] xfs_alloc_fixup_trees+0x425/0x4f0 [ 567.888795] ? xfs_alloc_update+0x90/0x90 [ 567.892928] ? xfs_btree_rec_offset.isra.0+0x3b/0xa0 [ 567.898021] ? xfs_alloc_compute_diff+0x23c/0x3d0 [ 567.902846] xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 567.907934] ? xfs_alloc_fix_freelist+0x685/0xeb0 [ 567.912752] ? xfs_alloc_ag_vextent_size+0x1ea0/0x1ea0 [ 567.918004] ? xfs_alloc_read_agf+0xb10/0xb10 [ 567.922483] xfs_alloc_ag_vextent+0x579/0x750 [ 567.926953] ? xfs_perag_get+0x116/0x410 [ 567.930986] ? xfs_alloc_vextent+0x470/0x2010 [ 567.935461] xfs_alloc_vextent+0x10b0/0x2010 [ 567.939849] xfs_bmap_btalloc+0x9e5/0x1b20 [ 567.944069] ? xfs_bmap_adjacent+0x1480/0x1480 [ 567.948635] ? ret_from_fork+0x24/0x30 [ 567.952505] ? __xfs_bmbt_get_all+0x16/0x100 [ 567.956891] xfs_bmap_alloc+0x107/0x160 [ 567.960841] xfs_bmapi_write+0xa49/0x1d00 [ 567.964984] ? xfs_bmapi_reserve_delalloc+0x7c0/0x7c0 [ 567.970158] ? trace_hardirqs_on+0x10/0x10 [ 567.974388] ? xfs_iext_get_ext+0xeb/0x200 [ 567.978598] ? xfs_iext_idx_to_irec+0x340/0x340 [ 567.983261] ? xfs_bmap_last_extent+0x1d0/0x1d0 [ 567.987917] xfs_iomap_write_allocate+0x42b/0xa30 [ 567.992742] ? xfs_file_iomap_begin+0x1ed0/0x1ed0 [ 567.997563] ? xfs_iunlock+0x248/0x3b0 [ 568.001434] ? rcu_read_lock_sched_held+0x16c/0x1d0 [ 568.006433] ? xfs_iunlock+0x21a/0x3b0 [ 568.010305] xfs_map_blocks+0x548/0x940 [ 568.014284] ? xfs_vm_set_page_dirty+0x610/0x610 [ 568.019040] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 568.024475] xfs_do_writepage+0x422/0x13d0 [ 568.028697] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 568.033002] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 568.038437] write_cache_pages+0x505/0xd20 [ 568.042671] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 568.046978] ? clear_page_dirty_for_io+0xb80/0xb80 [ 568.051890] ? trace_hardirqs_on+0x10/0x10 [ 568.056101] xfs_vm_writepages+0x258/0x340 [ 568.060321] ? xfs_vm_writepage+0xd0/0xd0 [ 568.064457] ? xfs_vm_writepage+0xd0/0xd0 [ 568.068590] do_writepages+0xc3/0x240 [ 568.072369] ? page_writeback_cpu_online+0x10/0x10 [ 568.077278] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 568.082706] __writeback_single_inode+0xda/0x1010 [ 568.087528] writeback_sb_inodes+0x48b/0xd30 [ 568.091919] ? wbc_detach_inode+0x780/0x780 [ 568.096217] ? queue_io+0x400/0x5a0 [ 568.099817] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 568.105249] wb_writeback+0x243/0xb80 [ 568.109032] ? writeback_inodes_wb.constprop.0+0x1a0/0x1a0 [ 568.114689] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 568.120115] wb_workfn+0x2bd/0xf50 [ 568.123641] ? process_one_work+0x6c4/0x14a0 [ 568.128030] ? inode_wait_for_writeback+0x30/0x30 [ 568.132845] ? lock_acquire+0x170/0x3f0 [ 568.136794] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 568.142232] process_one_work+0x793/0x14a0 [ 568.146454] ? work_busy+0x320/0x320 [ 568.150162] ? worker_thread+0x158/0xff0 [ 568.154198] ? _raw_spin_unlock_irq+0x24/0x80 [ 568.158668] worker_thread+0x5cc/0xff0 [ 568.162534] ? rescuer_thread+0xc80/0xc80 [ 568.166656] kthread+0x30d/0x420 [ 568.169997] ? kthread_create_on_node+0xd0/0xd0 [ 568.174643] ret_from_fork+0x24/0x30 [ 568.179308] XFS (loop1): page discard on page ffffea0001094b40, inode 0x29, offset 1900544. [ 568.188211] XFS (loop1): Internal error XFS_WANT_CORRUPTED_RETURN at line 431 of file fs/xfs/libxfs/xfs_alloc.c. Caller xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 568.202777] CPU: 1 PID: 2818 Comm: kworker/u4:3 Not tainted 4.14.303-syzkaller #0 [ 568.210388] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023 [ 568.219736] Workqueue: writeback wb_workfn (flush-7:1) [ 568.224996] Call Trace: [ 568.227568] dump_stack+0x1b2/0x281 [ 568.231171] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 568.236421] xfs_error_report+0x98/0xa0 [ 568.240368] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 568.245626] xfs_alloc_fixup_trees+0x425/0x4f0 [ 568.250192] ? xfs_alloc_update+0x90/0x90 [ 568.254327] ? xfs_btree_rec_offset.isra.0+0x3b/0xa0 [ 568.259426] ? xfs_alloc_compute_diff+0x23c/0x3d0 [ 568.264263] xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 568.269358] ? xfs_alloc_fix_freelist+0x685/0xeb0 [ 568.274189] ? xfs_alloc_ag_vextent_size+0x1ea0/0x1ea0 [ 568.279441] ? xfs_alloc_read_agf+0xb10/0xb10 [ 568.283934] xfs_alloc_ag_vextent+0x579/0x750 [ 568.288410] ? xfs_perag_get+0x116/0x410 [ 568.292445] ? xfs_alloc_vextent+0x470/0x2010 [ 568.296913] xfs_alloc_vextent+0x10b0/0x2010 [ 568.301300] xfs_bmap_btalloc+0x9e5/0x1b20 [ 568.305530] ? xfs_bmap_adjacent+0x1480/0x1480 [ 568.310096] ? ret_from_fork+0x24/0x30 [ 568.313962] ? __xfs_bmbt_get_all+0x16/0x100 [ 568.318344] xfs_bmap_alloc+0x107/0x160 [ 568.322300] xfs_bmapi_write+0xa49/0x1d00 [ 568.326437] ? xfs_bmapi_reserve_delalloc+0x7c0/0x7c0 [ 568.331609] ? trace_hardirqs_on+0x10/0x10 [ 568.335821] ? xfs_iext_get_ext+0xeb/0x200 [ 568.340039] ? xfs_iext_idx_to_irec+0x340/0x340 [ 568.344698] ? xfs_bmap_last_extent+0x1d0/0x1d0 [ 568.349351] xfs_iomap_write_allocate+0x42b/0xa30 [ 568.354172] ? xfs_file_iomap_begin+0x1ed0/0x1ed0 [ 568.358987] ? xfs_iunlock+0x248/0x3b0 [ 568.362869] ? rcu_read_lock_sched_held+0x16c/0x1d0 [ 568.367864] ? xfs_iunlock+0x21a/0x3b0 [ 568.371728] xfs_map_blocks+0x548/0x940 [ 568.375688] ? xfs_vm_set_page_dirty+0x610/0x610 [ 568.380418] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 568.385849] xfs_do_writepage+0x422/0x13d0 [ 568.390069] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 568.394368] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 568.399795] write_cache_pages+0x505/0xd20 [ 568.404014] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 568.408319] ? clear_page_dirty_for_io+0xb80/0xb80 [ 568.413235] ? trace_hardirqs_on+0x10/0x10 [ 568.417453] xfs_vm_writepages+0x258/0x340 [ 568.421679] ? xfs_vm_writepage+0xd0/0xd0 [ 568.425818] ? xfs_vm_writepage+0xd0/0xd0 [ 568.430015] do_writepages+0xc3/0x240 [ 568.433804] ? page_writeback_cpu_online+0x10/0x10 [ 568.438716] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 568.444150] __writeback_single_inode+0xda/0x1010 [ 568.448976] writeback_sb_inodes+0x48b/0xd30 [ 568.453363] ? wbc_detach_inode+0x780/0x780 [ 568.457660] ? queue_io+0x400/0x5a0 [ 568.461263] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 568.466692] wb_writeback+0x243/0xb80 [ 568.470470] ? writeback_inodes_wb.constprop.0+0x1a0/0x1a0 [ 568.476071] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 568.481494] wb_workfn+0x2bd/0xf50 [ 568.485024] ? process_one_work+0x6c4/0x14a0 [ 568.489425] ? inode_wait_for_writeback+0x30/0x30 [ 568.494327] ? lock_acquire+0x170/0x3f0 [ 568.498285] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 568.503720] process_one_work+0x793/0x14a0 [ 568.507943] ? work_busy+0x320/0x320 [ 568.511630] ? worker_thread+0x158/0xff0 [ 568.515680] ? _raw_spin_unlock_irq+0x24/0x80 [ 568.520150] worker_thread+0x5cc/0xff0 [ 568.524026] ? rescuer_thread+0xc80/0xc80 [ 568.528153] kthread+0x30d/0x420 [ 568.531524] ? kthread_create_on_node+0xd0/0xd0 [ 568.536166] ret_from_fork+0x24/0x30 [ 568.540622] XFS (loop1): page discard on page ffffea0001094b80, inode 0x29, offset 1904640. [ 568.549541] XFS (loop1): Internal error XFS_WANT_CORRUPTED_RETURN at line 431 of file fs/xfs/libxfs/xfs_alloc.c. Caller xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 568.564075] CPU: 1 PID: 2818 Comm: kworker/u4:3 Not tainted 4.14.303-syzkaller #0 [ 568.571692] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023 [ 568.581046] Workqueue: writeback wb_workfn (flush-7:1) [ 568.586300] Call Trace: [ 568.588862] dump_stack+0x1b2/0x281 [ 568.592465] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 568.597718] xfs_error_report+0x98/0xa0 [ 568.601679] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 568.606946] xfs_alloc_fixup_trees+0x425/0x4f0 [ 568.611513] ? xfs_alloc_update+0x90/0x90 [ 568.615640] ? xfs_btree_rec_offset.isra.0+0x3b/0xa0 [ 568.620725] ? xfs_alloc_compute_diff+0x23c/0x3d0 [ 568.625571] xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 568.630651] ? xfs_alloc_fix_freelist+0x685/0xeb0 [ 568.635472] ? xfs_alloc_ag_vextent_size+0x1ea0/0x1ea0 [ 568.640730] ? xfs_alloc_read_agf+0xb10/0xb10 [ 568.645207] xfs_alloc_ag_vextent+0x579/0x750 [ 568.649674] ? xfs_perag_get+0x116/0x410 [ 568.653710] ? xfs_alloc_vextent+0x470/0x2010 [ 568.658196] xfs_alloc_vextent+0x10b0/0x2010 [ 568.662603] xfs_bmap_btalloc+0x9e5/0x1b20 [ 568.666822] ? xfs_bmap_adjacent+0x1480/0x1480 [ 568.671379] ? ret_from_fork+0x24/0x30 [ 568.675259] ? __xfs_bmbt_get_all+0x16/0x100 [ 568.679648] xfs_bmap_alloc+0x107/0x160 [ 568.683681] xfs_bmapi_write+0xa49/0x1d00 [ 568.687831] ? xfs_bmapi_reserve_delalloc+0x7c0/0x7c0 [ 568.693096] ? trace_hardirqs_on+0x10/0x10 [ 568.697439] ? xfs_iext_get_ext+0xeb/0x200 [ 568.701654] ? xfs_iext_idx_to_irec+0x340/0x340 [ 568.706313] ? xfs_bmap_last_extent+0x1d0/0x1d0 [ 568.710966] xfs_iomap_write_allocate+0x42b/0xa30 [ 568.715792] ? xfs_file_iomap_begin+0x1ed0/0x1ed0 [ 568.720609] ? xfs_iunlock+0x248/0x3b0 [ 568.724479] ? rcu_read_lock_sched_held+0x16c/0x1d0 [ 568.729473] ? xfs_iunlock+0x21a/0x3b0 [ 568.733342] xfs_map_blocks+0x548/0x940 [ 568.737302] ? xfs_vm_set_page_dirty+0x610/0x610 [ 568.742039] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 568.747468] xfs_do_writepage+0x422/0x13d0 [ 568.751684] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 568.755985] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 568.761409] write_cache_pages+0x505/0xd20 [ 568.765624] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 568.769924] ? clear_page_dirty_for_io+0xb80/0xb80 [ 568.774847] ? trace_hardirqs_on+0x10/0x10 [ 568.779067] xfs_vm_writepages+0x258/0x340 [ 568.783280] ? xfs_vm_writepage+0xd0/0xd0 [ 568.787410] ? xfs_vm_writepage+0xd0/0xd0 [ 568.791531] do_writepages+0xc3/0x240 [ 568.795316] ? page_writeback_cpu_online+0x10/0x10 [ 568.800234] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 568.805660] __writeback_single_inode+0xda/0x1010 [ 568.810507] writeback_sb_inodes+0x48b/0xd30 [ 568.814905] ? wbc_detach_inode+0x780/0x780 [ 568.819207] ? queue_io+0x400/0x5a0 [ 568.822821] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 568.828256] wb_writeback+0x243/0xb80 [ 568.832053] ? writeback_inodes_wb.constprop.0+0x1a0/0x1a0 [ 568.837667] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 568.843102] wb_workfn+0x2bd/0xf50 [ 568.846632] ? process_one_work+0x6c4/0x14a0 [ 568.851021] ? inode_wait_for_writeback+0x30/0x30 [ 568.855840] ? lock_acquire+0x170/0x3f0 [ 568.859793] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 568.865219] process_one_work+0x793/0x14a0 [ 568.869433] ? work_busy+0x320/0x320 [ 568.873140] ? worker_thread+0x158/0xff0 [ 568.877209] ? _raw_spin_unlock_irq+0x24/0x80 [ 568.881702] worker_thread+0x5cc/0xff0 [ 568.885574] ? rescuer_thread+0xc80/0xc80 [ 568.889700] kthread+0x30d/0x420 [ 568.893045] ? kthread_create_on_node+0xd0/0xd0 [ 568.897697] ret_from_fork+0x24/0x30 [ 568.901854] XFS (loop1): page discard on page ffffea0001094bc0, inode 0x29, offset 1908736. [ 568.910779] XFS (loop1): Internal error XFS_WANT_CORRUPTED_RETURN at line 431 of file fs/xfs/libxfs/xfs_alloc.c. Caller xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 568.925591] CPU: 1 PID: 2818 Comm: kworker/u4:3 Not tainted 4.14.303-syzkaller #0 [ 568.933201] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023 [ 568.942549] Workqueue: writeback wb_workfn (flush-7:1) [ 568.947808] Call Trace: [ 568.950383] dump_stack+0x1b2/0x281 [ 568.953996] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 568.959268] xfs_error_report+0x98/0xa0 [ 568.963216] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 568.968467] xfs_alloc_fixup_trees+0x425/0x4f0 [ 568.973030] ? xfs_alloc_update+0x90/0x90 [ 568.977162] ? xfs_btree_rec_offset.isra.0+0x3b/0xa0 [ 568.982248] ? xfs_alloc_compute_diff+0x23c/0x3d0 [ 568.987077] xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 568.992159] ? xfs_alloc_fix_freelist+0x685/0xeb0 [ 568.996979] ? xfs_alloc_ag_vextent_size+0x1ea0/0x1ea0 [ 569.002227] ? xfs_alloc_read_agf+0xb10/0xb10 [ 569.006714] xfs_alloc_ag_vextent+0x579/0x750 [ 569.011181] ? xfs_perag_get+0x116/0x410 [ 569.015224] ? xfs_alloc_vextent+0x470/0x2010 [ 569.019699] xfs_alloc_vextent+0x10b0/0x2010 [ 569.024085] xfs_bmap_btalloc+0x9e5/0x1b20 [ 569.028308] ? xfs_bmap_adjacent+0x1480/0x1480 [ 569.032874] ? ret_from_fork+0x24/0x30 [ 569.036742] ? __xfs_bmbt_get_all+0x16/0x100 [ 569.041136] xfs_bmap_alloc+0x107/0x160 [ 569.045082] xfs_bmapi_write+0xa49/0x1d00 [ 569.049209] ? xfs_bmapi_reserve_delalloc+0x7c0/0x7c0 [ 569.054377] ? trace_hardirqs_on+0x10/0x10 [ 569.058594] ? xfs_iext_get_ext+0xeb/0x200 [ 569.062813] ? xfs_iext_idx_to_irec+0x340/0x340 [ 569.067466] ? xfs_bmap_last_extent+0x1d0/0x1d0 [ 569.072112] xfs_iomap_write_allocate+0x42b/0xa30 [ 569.076937] ? xfs_file_iomap_begin+0x1ed0/0x1ed0 [ 569.081753] ? xfs_iunlock+0x248/0x3b0 [ 569.085632] ? rcu_read_lock_sched_held+0x16c/0x1d0 [ 569.090619] ? xfs_iunlock+0x21a/0x3b0 [ 569.094517] xfs_map_blocks+0x548/0x940 [ 569.098476] ? xfs_vm_set_page_dirty+0x610/0x610 [ 569.103207] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 569.108662] xfs_do_writepage+0x422/0x13d0 [ 569.112886] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 569.117195] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 569.122732] write_cache_pages+0x505/0xd20 [ 569.126953] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 569.131253] ? clear_page_dirty_for_io+0xb80/0xb80 [ 569.136176] ? trace_hardirqs_on+0x10/0x10 [ 569.140399] xfs_vm_writepages+0x258/0x340 [ 569.144614] ? xfs_vm_writepage+0xd0/0xd0 [ 569.148741] ? xfs_vm_writepage+0xd0/0xd0 [ 569.152868] do_writepages+0xc3/0x240 [ 569.156648] ? page_writeback_cpu_online+0x10/0x10 [ 569.161558] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 569.166985] __writeback_single_inode+0xda/0x1010 [ 569.171805] writeback_sb_inodes+0x48b/0xd30 [ 569.176200] ? wbc_detach_inode+0x780/0x780 [ 569.180508] ? queue_io+0x400/0x5a0 [ 569.184113] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 569.189534] wb_writeback+0x243/0xb80 [ 569.193322] ? writeback_inodes_wb.constprop.0+0x1a0/0x1a0 [ 569.198927] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 569.204351] wb_workfn+0x2bd/0xf50 [ 569.207868] ? process_one_work+0x6c4/0x14a0 [ 569.212249] ? inode_wait_for_writeback+0x30/0x30 [ 569.217072] ? lock_acquire+0x170/0x3f0 [ 569.221026] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 569.226455] process_one_work+0x793/0x14a0 [ 569.230664] ? work_busy+0x320/0x320 [ 569.234357] ? worker_thread+0x158/0xff0 [ 569.238399] ? _raw_spin_unlock_irq+0x24/0x80 [ 569.242872] worker_thread+0x5cc/0xff0 [ 569.246743] ? rescuer_thread+0xc80/0xc80 [ 569.250867] kthread+0x30d/0x420 [ 569.254217] ? kthread_create_on_node+0xd0/0xd0 [ 569.258882] ret_from_fork+0x24/0x30 [ 569.263174] XFS (loop1): page discard on page ffffea0001094c00, inode 0x29, offset 1912832. [ 569.272035] XFS (loop1): Internal error XFS_WANT_CORRUPTED_RETURN at line 431 of file fs/xfs/libxfs/xfs_alloc.c. Caller xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 569.286583] CPU: 1 PID: 2818 Comm: kworker/u4:3 Not tainted 4.14.303-syzkaller #0 [ 569.294192] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023 [ 569.303541] Workqueue: writeback wb_workfn (flush-7:1) [ 569.308790] Call Trace: [ 569.311352] dump_stack+0x1b2/0x281 [ 569.314964] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 569.320220] xfs_error_report+0x98/0xa0 [ 569.324167] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 569.329416] xfs_alloc_fixup_trees+0x425/0x4f0 [ 569.333983] ? xfs_alloc_update+0x90/0x90 [ 569.338126] ? xfs_btree_rec_offset.isra.0+0x3b/0xa0 [ 569.343211] ? xfs_alloc_compute_diff+0x23c/0x3d0 [ 569.348054] xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 569.353142] ? xfs_alloc_fix_freelist+0x685/0xeb0 [ 569.357970] ? xfs_alloc_ag_vextent_size+0x1ea0/0x1ea0 [ 569.363220] ? xfs_alloc_read_agf+0xb10/0xb10 [ 569.367695] xfs_alloc_ag_vextent+0x579/0x750 [ 569.372162] ? xfs_perag_get+0x116/0x410 [ 569.376200] ? xfs_alloc_vextent+0x470/0x2010 [ 569.380676] xfs_alloc_vextent+0x10b0/0x2010 [ 569.385061] xfs_bmap_btalloc+0x9e5/0x1b20 [ 569.389274] ? xfs_bmap_adjacent+0x1480/0x1480 [ 569.393835] ? ret_from_fork+0x24/0x30 [ 569.397710] ? __xfs_bmbt_get_all+0x16/0x100 [ 569.402094] xfs_bmap_alloc+0x107/0x160 [ 569.406043] xfs_bmapi_write+0xa49/0x1d00 [ 569.410169] ? xfs_bmapi_reserve_delalloc+0x7c0/0x7c0 [ 569.415339] ? trace_hardirqs_on+0x10/0x10 [ 569.419554] ? xfs_iext_get_ext+0xeb/0x200 [ 569.423761] ? xfs_iext_idx_to_irec+0x340/0x340 [ 569.428409] ? xfs_bmap_last_extent+0x1d0/0x1d0 [ 569.433066] xfs_iomap_write_allocate+0x42b/0xa30 [ 569.437895] ? xfs_file_iomap_begin+0x1ed0/0x1ed0 [ 569.442709] ? xfs_iunlock+0x248/0x3b0 [ 569.446577] ? rcu_read_lock_sched_held+0x16c/0x1d0 [ 569.451579] ? xfs_iunlock+0x21a/0x3b0 [ 569.455447] xfs_map_blocks+0x548/0x940 [ 569.459413] ? xfs_vm_set_page_dirty+0x610/0x610 [ 569.464143] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 569.469567] xfs_do_writepage+0x422/0x13d0 [ 569.473789] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 569.478093] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 569.483517] write_cache_pages+0x505/0xd20 [ 569.487726] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 569.492022] ? clear_page_dirty_for_io+0xb80/0xb80 [ 569.496929] ? trace_hardirqs_on+0x10/0x10 [ 569.501139] xfs_vm_writepages+0x258/0x340 [ 569.505355] ? xfs_vm_writepage+0xd0/0xd0 [ 569.509480] ? xfs_vm_writepage+0xd0/0xd0 [ 569.513610] do_writepages+0xc3/0x240 [ 569.517392] ? page_writeback_cpu_online+0x10/0x10 [ 569.522300] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 569.527725] __writeback_single_inode+0xda/0x1010 [ 569.532542] writeback_sb_inodes+0x48b/0xd30 [ 569.536930] ? wbc_detach_inode+0x780/0x780 [ 569.541229] ? queue_io+0x400/0x5a0 [ 569.544832] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 569.550257] wb_writeback+0x243/0xb80 [ 569.554047] ? writeback_inodes_wb.constprop.0+0x1a0/0x1a0 [ 569.559654] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 569.565082] wb_workfn+0x2bd/0xf50 [ 569.568597] ? process_one_work+0x6c4/0x14a0 [ 569.572985] ? inode_wait_for_writeback+0x30/0x30 [ 569.577811] ? lock_acquire+0x170/0x3f0 [ 569.581770] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 569.587194] process_one_work+0x793/0x14a0 [ 569.591419] ? work_busy+0x320/0x320 [ 569.595113] ? worker_thread+0x158/0xff0 [ 569.599155] ? _raw_spin_unlock_irq+0x24/0x80 [ 569.603627] worker_thread+0x5cc/0xff0 [ 569.607495] ? rescuer_thread+0xc80/0xc80 [ 569.611615] kthread+0x30d/0x420 [ 569.614961] ? kthread_create_on_node+0xd0/0xd0 [ 569.619610] ret_from_fork+0x24/0x30 [ 569.623668] XFS (loop1): page discard on page ffffea0001094c40, inode 0x29, offset 1916928. [ 569.632536] XFS (loop1): Internal error XFS_WANT_CORRUPTED_RETURN at line 431 of file fs/xfs/libxfs/xfs_alloc.c. Caller xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 569.647088] CPU: 1 PID: 2818 Comm: kworker/u4:3 Not tainted 4.14.303-syzkaller #0 [ 569.654697] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023 [ 569.664044] Workqueue: writeback wb_workfn (flush-7:1) [ 569.669294] Call Trace: [ 569.671858] dump_stack+0x1b2/0x281 [ 569.675467] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 569.680727] xfs_error_report+0x98/0xa0 [ 569.684673] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 569.689923] xfs_alloc_fixup_trees+0x425/0x4f0 [ 569.694493] ? xfs_alloc_update+0x90/0x90 [ 569.698718] ? xfs_btree_rec_offset.isra.0+0x3b/0xa0 [ 569.703810] ? xfs_alloc_compute_diff+0x23c/0x3d0 [ 569.708628] xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 569.713720] ? xfs_alloc_fix_freelist+0x685/0xeb0 [ 569.718545] ? xfs_alloc_ag_vextent_size+0x1ea0/0x1ea0 [ 569.723796] ? xfs_alloc_read_agf+0xb10/0xb10 [ 569.728274] xfs_alloc_ag_vextent+0x579/0x750 [ 569.732742] ? xfs_perag_get+0x116/0x410 [ 569.736783] ? xfs_alloc_vextent+0x470/0x2010 [ 569.741260] xfs_alloc_vextent+0x10b0/0x2010 [ 569.745649] xfs_bmap_btalloc+0x9e5/0x1b20 [ 569.749870] ? xfs_bmap_adjacent+0x1480/0x1480 [ 569.754438] ? ret_from_fork+0x24/0x30 [ 569.758318] ? __xfs_bmbt_get_all+0x16/0x100 [ 569.762703] xfs_bmap_alloc+0x107/0x160 [ 569.766651] xfs_bmapi_write+0xa49/0x1d00 [ 569.770777] ? xfs_bmapi_reserve_delalloc+0x7c0/0x7c0 [ 569.775955] ? trace_hardirqs_on+0x10/0x10 [ 569.780172] ? xfs_iext_get_ext+0xeb/0x200 [ 569.784381] ? xfs_iext_idx_to_irec+0x340/0x340 [ 569.789028] ? xfs_bmap_last_extent+0x1d0/0x1d0 [ 569.793704] xfs_iomap_write_allocate+0x42b/0xa30 [ 569.798536] ? xfs_file_iomap_begin+0x1ed0/0x1ed0 [ 569.803370] ? xfs_iunlock+0x248/0x3b0 [ 569.807237] ? rcu_read_lock_sched_held+0x16c/0x1d0 [ 569.812240] ? xfs_iunlock+0x21a/0x3b0 [ 569.816111] xfs_map_blocks+0x548/0x940 [ 569.820071] ? xfs_vm_set_page_dirty+0x610/0x610 [ 569.824817] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 569.830240] xfs_do_writepage+0x422/0x13d0 [ 569.834472] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 569.838777] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 569.844202] write_cache_pages+0x505/0xd20 [ 569.848423] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 569.852723] ? clear_page_dirty_for_io+0xb80/0xb80 [ 569.857637] ? trace_hardirqs_on+0x10/0x10 [ 569.861849] xfs_vm_writepages+0x258/0x340 [ 569.866060] ? xfs_vm_writepage+0xd0/0xd0 [ 569.870183] ? xfs_vm_writepage+0xd0/0xd0 [ 569.874313] do_writepages+0xc3/0x240 [ 569.878097] ? page_writeback_cpu_online+0x10/0x10 [ 569.883008] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 569.888450] __writeback_single_inode+0xda/0x1010 [ 569.893282] writeback_sb_inodes+0x48b/0xd30 [ 569.897716] ? wbc_detach_inode+0x780/0x780 [ 569.902025] ? queue_io+0x400/0x5a0 [ 569.905640] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 569.911073] wb_writeback+0x243/0xb80 [ 569.914866] ? writeback_inodes_wb.constprop.0+0x1a0/0x1a0 [ 569.920479] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 569.925905] wb_workfn+0x2bd/0xf50 [ 569.929424] ? process_one_work+0x6c4/0x14a0 [ 569.933816] ? inode_wait_for_writeback+0x30/0x30 [ 569.938644] ? lock_acquire+0x170/0x3f0 [ 569.942595] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 569.948021] process_one_work+0x793/0x14a0 [ 569.952233] ? work_busy+0x320/0x320 [ 569.955924] ? worker_thread+0x158/0xff0 [ 569.959969] ? _raw_spin_unlock_irq+0x24/0x80 [ 569.964440] worker_thread+0x5cc/0xff0 [ 569.968327] ? rescuer_thread+0xc80/0xc80 [ 569.972451] kthread+0x30d/0x420 [ 569.975804] ? kthread_create_on_node+0xd0/0xd0 [ 569.980455] ret_from_fork+0x24/0x30 [ 569.984596] XFS (loop1): page discard on page ffffea0001094c80, inode 0x29, offset 1921024. [ 569.993501] XFS (loop1): Internal error XFS_WANT_CORRUPTED_RETURN at line 431 of file fs/xfs/libxfs/xfs_alloc.c. Caller xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 570.008061] CPU: 1 PID: 2818 Comm: kworker/u4:3 Not tainted 4.14.303-syzkaller #0 [ 570.015673] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023 [ 570.025030] Workqueue: writeback wb_workfn (flush-7:1) [ 570.030304] Call Trace: [ 570.032884] dump_stack+0x1b2/0x281 [ 570.036495] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 570.041745] xfs_error_report+0x98/0xa0 [ 570.045694] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 570.050946] xfs_alloc_fixup_trees+0x425/0x4f0 [ 570.055514] ? xfs_alloc_update+0x90/0x90 [ 570.059646] ? xfs_btree_rec_offset.isra.0+0x3b/0xa0 [ 570.064725] ? xfs_alloc_compute_diff+0x23c/0x3d0 [ 570.069548] xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 570.074641] ? xfs_alloc_fix_freelist+0x685/0xeb0 [ 570.079467] ? xfs_alloc_ag_vextent_size+0x1ea0/0x1ea0 [ 570.084736] ? xfs_alloc_read_agf+0xb10/0xb10 [ 570.089215] xfs_alloc_ag_vextent+0x579/0x750 [ 570.093693] ? xfs_perag_get+0x116/0x410 [ 570.097754] ? xfs_alloc_vextent+0x470/0x2010 [ 570.102225] xfs_alloc_vextent+0x10b0/0x2010 [ 570.106619] xfs_bmap_btalloc+0x9e5/0x1b20 [ 570.110831] ? xfs_bmap_adjacent+0x1480/0x1480 [ 570.115396] ? ret_from_fork+0x24/0x30 [ 570.119273] ? __xfs_bmbt_get_all+0x16/0x100 [ 570.123664] xfs_bmap_alloc+0x107/0x160 [ 570.127620] xfs_bmapi_write+0xa49/0x1d00 [ 570.131745] ? xfs_bmapi_reserve_delalloc+0x7c0/0x7c0 [ 570.136912] ? trace_hardirqs_on+0x10/0x10 [ 570.141125] ? xfs_iext_get_ext+0xeb/0x200 [ 570.145335] ? xfs_iext_idx_to_irec+0x340/0x340 [ 570.150001] ? xfs_bmap_last_extent+0x1d0/0x1d0 [ 570.154663] xfs_iomap_write_allocate+0x42b/0xa30 [ 570.159493] ? xfs_file_iomap_begin+0x1ed0/0x1ed0 [ 570.164312] ? xfs_iunlock+0x248/0x3b0 [ 570.168182] ? rcu_read_lock_sched_held+0x16c/0x1d0 [ 570.173177] ? xfs_iunlock+0x21a/0x3b0 [ 570.177065] xfs_map_blocks+0x548/0x940 [ 570.181015] ? xfs_vm_set_page_dirty+0x610/0x610 [ 570.185748] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 570.191190] xfs_do_writepage+0x422/0x13d0 [ 570.195424] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 570.199746] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 570.205174] write_cache_pages+0x505/0xd20 [ 570.209386] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 570.213690] ? clear_page_dirty_for_io+0xb80/0xb80 [ 570.218612] ? trace_hardirqs_on+0x10/0x10 [ 570.222827] xfs_vm_writepages+0x258/0x340 [ 570.227039] ? xfs_vm_writepage+0xd0/0xd0 [ 570.231164] ? xfs_vm_writepage+0xd0/0xd0 [ 570.235293] do_writepages+0xc3/0x240 [ 570.239078] ? page_writeback_cpu_online+0x10/0x10 [ 570.243985] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 570.249413] __writeback_single_inode+0xda/0x1010 [ 570.254241] writeback_sb_inodes+0x48b/0xd30 [ 570.258637] ? wbc_detach_inode+0x780/0x780 [ 570.262942] ? queue_io+0x400/0x5a0 [ 570.266546] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 570.271972] wb_writeback+0x243/0xb80 [ 570.275758] ? writeback_inodes_wb.constprop.0+0x1a0/0x1a0 [ 570.281371] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 570.286797] wb_workfn+0x2bd/0xf50 [ 570.290313] ? process_one_work+0x6c4/0x14a0 [ 570.294702] ? inode_wait_for_writeback+0x30/0x30 [ 570.299529] ? lock_acquire+0x170/0x3f0 [ 570.303484] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 570.308911] process_one_work+0x793/0x14a0 [ 570.313135] ? work_busy+0x320/0x320 [ 570.316831] ? worker_thread+0x158/0xff0 [ 570.320870] ? _raw_spin_unlock_irq+0x24/0x80 [ 570.325343] worker_thread+0x5cc/0xff0 [ 570.329215] ? rescuer_thread+0xc80/0xc80 [ 570.333348] kthread+0x30d/0x420 [ 570.336705] ? kthread_create_on_node+0xd0/0xd0 [ 570.341359] ret_from_fork+0x24/0x30 [ 570.346012] XFS (loop1): page discard on page ffffea0001094cc0, inode 0x29, offset 1925120. [ 570.354965] XFS (loop1): Internal error XFS_WANT_CORRUPTED_RETURN at line 431 of file fs/xfs/libxfs/xfs_alloc.c. Caller xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 570.369527] CPU: 1 PID: 2818 Comm: kworker/u4:3 Not tainted 4.14.303-syzkaller #0 [ 570.377143] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023 [ 570.386496] Workqueue: writeback wb_workfn (flush-7:1) [ 570.391751] Call Trace: [ 570.394325] dump_stack+0x1b2/0x281 [ 570.397939] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 570.403195] xfs_error_report+0x98/0xa0 [ 570.407162] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 570.412419] xfs_alloc_fixup_trees+0x425/0x4f0 [ 570.416985] ? xfs_alloc_update+0x90/0x90 [ 570.421108] ? xfs_btree_rec_offset.isra.0+0x3b/0xa0 [ 570.426185] ? xfs_alloc_compute_diff+0x23c/0x3d0 [ 570.431005] xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 570.436100] ? xfs_alloc_fix_freelist+0x685/0xeb0 [ 570.440922] ? xfs_alloc_ag_vextent_size+0x1ea0/0x1ea0 [ 570.446175] ? xfs_alloc_read_agf+0xb10/0xb10 [ 570.450654] xfs_alloc_ag_vextent+0x579/0x750 [ 570.455130] ? xfs_perag_get+0x116/0x410 [ 570.459171] ? xfs_alloc_vextent+0x470/0x2010 [ 570.463644] xfs_alloc_vextent+0x10b0/0x2010 [ 570.468051] xfs_bmap_btalloc+0x9e5/0x1b20 [ 570.472283] ? xfs_bmap_adjacent+0x1480/0x1480 [ 570.476862] ? ret_from_fork+0x24/0x30 [ 570.480731] ? __xfs_bmbt_get_all+0x16/0x100 [ 570.485117] xfs_bmap_alloc+0x107/0x160 [ 570.489066] xfs_bmapi_write+0xa49/0x1d00 [ 570.493204] ? xfs_bmapi_reserve_delalloc+0x7c0/0x7c0 [ 570.498378] ? trace_hardirqs_on+0x10/0x10 [ 570.502595] ? xfs_iext_get_ext+0xeb/0x200 [ 570.506828] ? xfs_iext_idx_to_irec+0x340/0x340 [ 570.511479] ? xfs_bmap_last_extent+0x1d0/0x1d0 [ 570.516141] xfs_iomap_write_allocate+0x42b/0xa30 [ 570.520971] ? xfs_file_iomap_begin+0x1ed0/0x1ed0 [ 570.525789] ? xfs_iunlock+0x248/0x3b0 [ 570.529660] ? rcu_read_lock_sched_held+0x16c/0x1d0 [ 570.534657] ? xfs_iunlock+0x21a/0x3b0 [ 570.538531] xfs_map_blocks+0x548/0x940 [ 570.542484] ? xfs_vm_set_page_dirty+0x610/0x610 [ 570.547214] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 570.552651] xfs_do_writepage+0x422/0x13d0 [ 570.556871] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 570.561193] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 570.566623] write_cache_pages+0x505/0xd20 [ 570.570835] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 570.575143] ? clear_page_dirty_for_io+0xb80/0xb80 [ 570.580062] ? trace_hardirqs_on+0x10/0x10 [ 570.584304] xfs_vm_writepages+0x258/0x340 [ 570.588517] ? xfs_vm_writepage+0xd0/0xd0 [ 570.592642] ? xfs_vm_writepage+0xd0/0xd0 [ 570.596765] do_writepages+0xc3/0x240 [ 570.600543] ? page_writeback_cpu_online+0x10/0x10 [ 570.605451] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 570.610896] __writeback_single_inode+0xda/0x1010 [ 570.615729] writeback_sb_inodes+0x48b/0xd30 [ 570.620143] ? wbc_detach_inode+0x780/0x780 [ 570.624442] ? queue_io+0x400/0x5a0 [ 570.628045] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 570.633482] wb_writeback+0x243/0xb80 [ 570.637286] ? writeback_inodes_wb.constprop.0+0x1a0/0x1a0 [ 570.642904] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 570.648337] wb_workfn+0x2bd/0xf50 [ 570.651857] ? process_one_work+0x6c4/0x14a0 [ 570.656248] ? inode_wait_for_writeback+0x30/0x30 [ 570.661079] ? lock_acquire+0x170/0x3f0 [ 570.665030] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 570.670459] process_one_work+0x793/0x14a0 [ 570.674682] ? work_busy+0x320/0x320 [ 570.678375] ? worker_thread+0x158/0xff0 [ 570.682413] ? _raw_spin_unlock_irq+0x24/0x80 [ 570.686899] worker_thread+0x5cc/0xff0 [ 570.690765] ? rescuer_thread+0xc80/0xc80 [ 570.694899] kthread+0x30d/0x420 [ 570.698247] ? kthread_create_on_node+0xd0/0xd0 [ 570.702899] ret_from_fork+0x24/0x30 [ 570.707172] XFS (loop1): page discard on page ffffea0001094d00, inode 0x29, offset 1929216. [ 570.716081] XFS (loop1): Internal error XFS_WANT_CORRUPTED_RETURN at line 431 of file fs/xfs/libxfs/xfs_alloc.c. Caller xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 570.730667] CPU: 1 PID: 2818 Comm: kworker/u4:3 Not tainted 4.14.303-syzkaller #0 [ 570.738284] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023 [ 570.747641] Workqueue: writeback wb_workfn (flush-7:1) [ 570.752917] Call Trace: [ 570.755490] dump_stack+0x1b2/0x281 [ 570.759095] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 570.764356] xfs_error_report+0x98/0xa0 [ 570.768315] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 570.773577] xfs_alloc_fixup_trees+0x425/0x4f0 [ 570.778154] ? xfs_alloc_update+0x90/0x90 [ 570.782279] ? xfs_btree_rec_offset.isra.0+0x3b/0xa0 [ 570.787357] ? xfs_alloc_compute_diff+0x23c/0x3d0 [ 570.792179] xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 570.797276] ? xfs_alloc_fix_freelist+0x685/0xeb0 [ 570.802101] ? xfs_alloc_ag_vextent_size+0x1ea0/0x1ea0 [ 570.807384] ? xfs_alloc_read_agf+0xb10/0xb10 [ 570.811871] xfs_alloc_ag_vextent+0x579/0x750 [ 570.816348] ? xfs_perag_get+0x116/0x410 [ 570.820384] ? xfs_alloc_vextent+0x470/0x2010 [ 570.824865] xfs_alloc_vextent+0x10b0/0x2010 [ 570.829262] xfs_bmap_btalloc+0x9e5/0x1b20 [ 570.833481] ? xfs_bmap_adjacent+0x1480/0x1480 [ 570.838040] ? ret_from_fork+0x24/0x30 [ 570.841908] ? __xfs_bmbt_get_all+0x16/0x100 [ 570.846306] xfs_bmap_alloc+0x107/0x160 [ 570.850261] xfs_bmapi_write+0xa49/0x1d00 [ 570.854400] ? xfs_bmapi_reserve_delalloc+0x7c0/0x7c0 [ 570.859569] ? trace_hardirqs_on+0x10/0x10 [ 570.863791] ? xfs_iext_get_ext+0xeb/0x200 [ 570.868020] ? xfs_iext_idx_to_irec+0x340/0x340 [ 570.872683] ? xfs_bmap_last_extent+0x1d0/0x1d0 [ 570.877341] xfs_iomap_write_allocate+0x42b/0xa30 [ 570.882166] ? xfs_file_iomap_begin+0x1ed0/0x1ed0 [ 570.886996] ? xfs_iunlock+0x248/0x3b0 [ 570.890890] ? rcu_read_lock_sched_held+0x16c/0x1d0 [ 570.895879] ? xfs_iunlock+0x21a/0x3b0 [ 570.899744] xfs_map_blocks+0x548/0x940 [ 570.903704] ? xfs_vm_set_page_dirty+0x610/0x610 [ 570.908448] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 570.913875] xfs_do_writepage+0x422/0x13d0 [ 570.918090] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 570.922392] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 570.927820] write_cache_pages+0x505/0xd20 [ 570.932031] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 570.936337] ? clear_page_dirty_for_io+0xb80/0xb80 [ 570.941247] ? trace_hardirqs_on+0x10/0x10 [ 570.945468] xfs_vm_writepages+0x258/0x340 [ 570.949687] ? xfs_vm_writepage+0xd0/0xd0 [ 570.953811] ? xfs_vm_writepage+0xd0/0xd0 [ 570.957936] do_writepages+0xc3/0x240 [ 570.961718] ? page_writeback_cpu_online+0x10/0x10 [ 570.966628] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 570.972056] __writeback_single_inode+0xda/0x1010 [ 570.976878] writeback_sb_inodes+0x48b/0xd30 [ 570.981266] ? wbc_detach_inode+0x780/0x780 [ 570.985576] ? queue_io+0x400/0x5a0 [ 570.989186] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 570.994612] wb_writeback+0x243/0xb80 [ 570.998392] ? writeback_inodes_wb.constprop.0+0x1a0/0x1a0 [ 571.004002] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 571.009435] wb_workfn+0x2bd/0xf50 [ 571.012962] ? process_one_work+0x6c4/0x14a0 [ 571.017345] ? inode_wait_for_writeback+0x30/0x30 [ 571.022164] ? lock_acquire+0x170/0x3f0 [ 571.026123] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 571.031578] process_one_work+0x793/0x14a0 [ 571.035791] ? work_busy+0x320/0x320 [ 571.039478] ? worker_thread+0x158/0xff0 [ 571.043523] ? _raw_spin_unlock_irq+0x24/0x80 [ 571.048003] worker_thread+0x5cc/0xff0 [ 571.051869] ? rescuer_thread+0xc80/0xc80 [ 571.055998] kthread+0x30d/0x420 [ 571.059342] ? kthread_create_on_node+0xd0/0xd0 [ 571.063992] ret_from_fork+0x24/0x30 [ 571.068087] XFS (loop1): page discard on page ffffea0001094d40, inode 0x29, offset 1933312. [ 571.077007] XFS (loop1): Internal error XFS_WANT_CORRUPTED_RETURN at line 431 of file fs/xfs/libxfs/xfs_alloc.c. Caller xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 571.091562] CPU: 1 PID: 2818 Comm: kworker/u4:3 Not tainted 4.14.303-syzkaller #0 [ 571.099172] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023 [ 571.108514] Workqueue: writeback wb_workfn (flush-7:1) [ 571.113770] Call Trace: [ 571.116336] dump_stack+0x1b2/0x281 [ 571.119942] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 571.125199] xfs_error_report+0x98/0xa0 [ 571.129156] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 571.134411] xfs_alloc_fixup_trees+0x425/0x4f0 [ 571.138968] ? xfs_alloc_update+0x90/0x90 [ 571.143101] ? xfs_btree_rec_offset.isra.0+0x3b/0xa0 [ 571.148188] ? xfs_alloc_compute_diff+0x23c/0x3d0 [ 571.153004] xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 571.158088] ? xfs_alloc_fix_freelist+0x685/0xeb0 [ 571.162908] ? xfs_alloc_ag_vextent_size+0x1ea0/0x1ea0 [ 571.168172] ? xfs_alloc_read_agf+0xb10/0xb10 [ 571.172649] xfs_alloc_ag_vextent+0x579/0x750 [ 571.177119] ? xfs_perag_get+0x116/0x410 [ 571.181155] ? xfs_alloc_vextent+0x470/0x2010 [ 571.185632] xfs_alloc_vextent+0x10b0/0x2010 [ 571.190029] xfs_bmap_btalloc+0x9e5/0x1b20 [ 571.194241] ? xfs_bmap_adjacent+0x1480/0x1480 [ 571.198799] ? ret_from_fork+0x24/0x30 [ 571.202665] ? __xfs_bmbt_get_all+0x16/0x100 [ 571.207051] xfs_bmap_alloc+0x107/0x160 [ 571.211001] xfs_bmapi_write+0xa49/0x1d00 [ 571.215127] ? xfs_bmapi_reserve_delalloc+0x7c0/0x7c0 [ 571.220295] ? trace_hardirqs_on+0x10/0x10 [ 571.224517] ? xfs_iext_get_ext+0xeb/0x200 [ 571.228732] ? xfs_iext_idx_to_irec+0x340/0x340 [ 571.233381] ? xfs_bmap_last_extent+0x1d0/0x1d0 [ 571.238026] xfs_iomap_write_allocate+0x42b/0xa30 [ 571.242857] ? xfs_file_iomap_begin+0x1ed0/0x1ed0 [ 571.247682] ? xfs_iunlock+0x248/0x3b0 [ 571.251561] ? rcu_read_lock_sched_held+0x16c/0x1d0 [ 571.256569] ? xfs_iunlock+0x21a/0x3b0 [ 571.260462] xfs_map_blocks+0x548/0x940 [ 571.264423] ? xfs_vm_set_page_dirty+0x610/0x610 [ 571.269160] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 571.274593] xfs_do_writepage+0x422/0x13d0 [ 571.278807] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 571.283116] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 571.288548] write_cache_pages+0x505/0xd20 [ 571.292759] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 571.293002] INFO: task syz-executor.1:7996 blocked for more than 140 seconds. [ 571.297061] ? clear_page_dirty_for_io+0xb80/0xb80 [ 571.297079] ? trace_hardirqs_on+0x10/0x10 [ 571.308423] Not tainted 4.14.303-syzkaller #0 [ 571.309323] xfs_vm_writepages+0x258/0x340 [ 571.322744] ? xfs_vm_writepage+0xd0/0xd0 [ 571.326810] "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. [ 571.326888] ? xfs_vm_writepage+0xd0/0xd0 [ 571.338958] do_writepages+0xc3/0x240 [ 571.342760] ? page_writeback_cpu_online+0x10/0x10 [ 571.346644] syz-executor.1 D [ 571.347684] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 571.347688] 25784 7996 1 0x00000004 [ 571.347692] Call Trace: [ 571.350778] __writeback_single_inode+0xda/0x1010 [ 571.358976] __schedule+0x88b/0x1de0 [ 571.360336] writeback_sb_inodes+0x48b/0xd30 [ 571.367496] ? trace_hardirqs_on_caller+0x3a8/0x580 [ 571.367729] ? wbc_detach_inode+0x780/0x780 [ 571.371428] ? io_schedule_timeout+0x140/0x140 [ 571.375801] ? queue_io+0x400/0x5a0 [ 571.375809] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 571.375816] wb_writeback+0x243/0xb80 [ 571.375828] ? writeback_inodes_wb.constprop.0+0x1a0/0x1a0 [ 571.375840] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 571.375848] wb_workfn+0x2bd/0xf50 [ 571.375859] ? process_one_work+0x6c4/0x14a0 [ 571.375867] ? inode_wait_for_writeback+0x30/0x30 [ 571.375876] ? lock_acquire+0x170/0x3f0 [ 571.375887] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 571.375896] process_one_work+0x793/0x14a0 [ 571.375908] ? work_busy+0x320/0x320 [ 571.375919] ? worker_thread+0x158/0xff0 [ 571.375928] ? _raw_spin_unlock_irq+0x24/0x80 [ 571.375939] worker_thread+0x5cc/0xff0 [ 571.375953] ? rescuer_thread+0xc80/0xc80 [ 571.375960] kthread+0x30d/0x420 [ 571.375967] ? kthread_create_on_node+0xd0/0xd0 [ 571.375976] ret_from_fork+0x24/0x30 [ 571.396655] schedule+0x8d/0x1b0 [ 571.399765] XFS (loop1): page discard on page ffffea0001094d80, inode 0x29, offset 1937408. [ 571.405639] wb_wait_for_completion+0x118/0x170 [ 571.409421] XFS (loop1): Internal error XFS_WANT_CORRUPTED_RETURN at line 431 of file fs/xfs/libxfs/xfs_alloc.c. Caller xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 571.415709] ? wbc_account_io+0x2a0/0x2a0 [ 571.418049] CPU: 1 PID: 2818 Comm: kworker/u4:3 Not tainted 4.14.303-syzkaller #0 [ 571.421659] ? lock_acquire+0x170/0x3f0 [ 571.426472] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023 [ 571.426483] Workqueue: writeback wb_workfn (flush-7:1) [ 571.426489] Call Trace: [ 571.426499] dump_stack+0x1b2/0x281 [ 571.426510] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 571.426518] xfs_error_report+0x98/0xa0 [ 571.426524] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 571.426535] xfs_alloc_fixup_trees+0x425/0x4f0 [ 571.426544] ? xfs_alloc_update+0x90/0x90 [ 571.426552] ? xfs_btree_rec_offset.isra.0+0x3b/0xa0 [ 571.426560] ? xfs_alloc_compute_diff+0x23c/0x3d0 [ 571.426569] xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 571.426583] ? xfs_alloc_fix_freelist+0x685/0xeb0 [ 571.426589] ? xfs_alloc_ag_vextent_size+0x1ea0/0x1ea0 [ 571.426597] ? xfs_alloc_read_agf+0xb10/0xb10 [ 571.426620] xfs_alloc_ag_vextent+0x579/0x750 [ 571.436762] ? wait_woken+0x230/0x230 [ 571.440198] ? xfs_perag_get+0x116/0x410 [ 571.445706] sync_inodes_sb+0x173/0x880 [ 571.447933] ? xfs_alloc_vextent+0x470/0x2010 [ 571.452408] ? trace_hardirqs_on_caller+0x3a8/0x580 [ 571.456265] xfs_alloc_vextent+0x10b0/0x2010 [ 571.456295] xfs_bmap_btalloc+0x9e5/0x1b20 [ 571.456308] ? xfs_bmap_adjacent+0x1480/0x1480 [ 571.456315] ? ret_from_fork+0x24/0x30 [ 571.456335] ? __xfs_bmbt_get_all+0x16/0x100 [ 571.456345] xfs_bmap_alloc+0x107/0x160 [ 571.456353] xfs_bmapi_write+0xa49/0x1d00 [ 571.456368] ? xfs_bmapi_reserve_delalloc+0x7c0/0x7c0 [ 571.456376] ? trace_hardirqs_on+0x10/0x10 [ 571.465649] ? radix_tree_tagged+0xc/0x50 [ 571.468527] ? xfs_iext_get_ext+0xeb/0x200 [ 571.472219] ? __filemap_fdatawrite_range+0x175/0x310 [ 571.475558] ? xfs_iext_idx_to_irec+0x340/0x340 [ 571.475574] ? xfs_bmap_last_extent+0x1d0/0x1d0 [ 571.475588] xfs_iomap_write_allocate+0x42b/0xa30 [ 571.475605] ? xfs_file_iomap_begin+0x1ed0/0x1ed0 [ 571.475613] ? xfs_iunlock+0x248/0x3b0 [ 571.475631] ? rcu_read_lock_sched_held+0x16c/0x1d0 [ 571.475638] ? xfs_iunlock+0x21a/0x3b0 [ 571.475647] xfs_map_blocks+0x548/0x940 [ 571.475656] ? xfs_vm_set_page_dirty+0x610/0x610 [ 571.475666] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 571.487942] ? try_to_writeback_inodes_sb_nr+0x70/0x70 [ 571.488776] xfs_do_writepage+0x422/0x13d0 [ 571.507015] ? __writeback_inodes_sb_nr+0x169/0x1d0 [ 571.507365] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 571.515203] ? dput.part.0+0x56f/0x710 [ 571.518916] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 571.531973] sync_filesystem+0x12f/0x230 [ 571.533495] write_cache_pages+0x505/0xd20 [ 571.533507] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 571.533519] ? clear_page_dirty_for_io+0xb80/0xb80 [ 571.533535] ? trace_hardirqs_on+0x10/0x10 [ 571.533545] xfs_vm_writepages+0x258/0x340 [ 571.536842] generic_shutdown_super+0x70/0x370 [ 571.539708] ? xfs_vm_writepage+0xd0/0xd0 [ 571.548704] kill_block_super+0x95/0xe0 [ 571.548942] ? xfs_vm_writepage+0xd0/0xd0 [ 571.554411] deactivate_locked_super+0x6c/0xd0 [ 571.558749] do_writepages+0xc3/0x240 [ 571.567118] deactivate_super+0x7f/0xa0 [ 571.567977] ? page_writeback_cpu_online+0x10/0x10 [ 571.572791] cleanup_mnt+0x186/0x2c0 [ 571.577874] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 571.577884] __writeback_single_inode+0xda/0x1010 [ 571.577894] writeback_sb_inodes+0x48b/0xd30 [ 571.577912] ? wbc_detach_inode+0x780/0x780 [ 571.577924] ? queue_io+0x400/0x5a0 [ 571.577932] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 571.587301] task_work_run+0x11f/0x190 [ 571.588004] wb_writeback+0x243/0xb80 [ 571.592478] exit_to_usermode_loop+0x1ad/0x200 [ 571.596969] ? writeback_inodes_wb.constprop.0+0x1a0/0x1a0 [ 571.596982] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 571.596990] wb_workfn+0x2bd/0xf50 [ 571.597001] ? process_one_work+0x6c4/0x14a0 [ 571.597009] ? inode_wait_for_writeback+0x30/0x30 [ 571.597017] ? lock_acquire+0x170/0x3f0 [ 571.597027] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 571.601978] do_syscall_64+0x4a3/0x640 [ 571.604839] process_one_work+0x793/0x14a0 [ 571.604852] ? work_busy+0x320/0x320 [ 571.604858] ? worker_thread+0x158/0xff0 [ 571.604868] ? _raw_spin_unlock_irq+0x24/0x80 [ 571.604878] worker_thread+0x5cc/0xff0 [ 571.604892] ? rescuer_thread+0xc80/0xc80 [ 571.604906] kthread+0x30d/0x420 [ 571.604913] ? kthread_create_on_node+0xd0/0xd0 [ 571.604921] ret_from_fork+0x24/0x30 [ 571.636676] XFS (loop1): page discard on page ffffea0001094dc0, inode 0x29, offset 1941504. [ 571.645317] entry_SYSCALL_64_after_hwframe+0x5e/0xd3 [ 571.649308] XFS (loop1): Internal error XFS_WANT_CORRUPTED_RETURN at line 431 of file fs/xfs/libxfs/xfs_alloc.c. Caller xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 571.655927] RIP: 0033:0x7fc213c7f537 [ 571.658364] CPU: 1 PID: 2818 Comm: kworker/u4:3 Not tainted 4.14.303-syzkaller #0 [ 571.661734] RSP: 002b:00007ffedf7eca68 EFLAGS: 00000246 [ 571.665942] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023 [ 571.665955] Workqueue: writeback wb_workfn (flush-7:1) [ 571.665962] Call Trace: [ 571.665972] dump_stack+0x1b2/0x281 [ 571.665984] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 571.665992] xfs_error_report+0x98/0xa0 [ 571.665998] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 571.666008] xfs_alloc_fixup_trees+0x425/0x4f0 [ 571.666018] ? xfs_alloc_update+0x90/0x90 [ 571.666026] ? xfs_btree_rec_offset.isra.0+0x3b/0xa0 [ 571.666034] ? xfs_alloc_compute_diff+0x23c/0x3d0 [ 571.666042] xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 571.666056] ? xfs_alloc_fix_freelist+0x685/0xeb0 [ 571.676560] ORIG_RAX: 00000000000000a6 [ 571.680512] ? xfs_alloc_ag_vextent_size+0x1ea0/0x1ea0 [ 571.686553] RAX: 0000000000000000 RBX: 0000000000000000 RCX: 00007fc213c7f537 [ 571.690150] ? xfs_alloc_read_agf+0xb10/0xb10 [ 571.697193] RDX: 00007ffedf7ecb3a RSI: 000000000000000a RDI: 00007ffedf7ecb30 [ 571.699021] xfs_alloc_ag_vextent+0x579/0x750 [ 571.704276] RBP: 00007ffedf7ecb30 R08: 00000000ffffffff R09: 00007ffedf7ec900 [ 571.706847] ? xfs_perag_get+0x116/0x410 [ 571.711574] R10: 0000555555e19903 R11: 0000000000000246 R12: 00007fc213cd8b24 [ 571.716998] ? xfs_alloc_vextent+0x470/0x2010 [ 571.717007] xfs_alloc_vextent+0x10b0/0x2010 [ 571.717024] xfs_bmap_btalloc+0x9e5/0x1b20 [ 571.717037] ? xfs_bmap_adjacent+0x1480/0x1480 [ 571.717044] ? ret_from_fork+0x24/0x30 [ 571.717065] ? __xfs_bmbt_get_all+0x16/0x100 [ 571.717075] xfs_bmap_alloc+0x107/0x160 [ 571.717083] xfs_bmapi_write+0xa49/0x1d00 [ 571.717100] ? xfs_bmapi_reserve_delalloc+0x7c0/0x7c0 [ 571.727253] R13: 00007ffedf7edbf0 R14: 0000555555e19810 R15: 00007ffedf7edc30 [ 571.731594] ? trace_hardirqs_on+0x10/0x10 [ 571.736008] [ 571.736008] Showing all locks held in the system: [ 571.739755] ? xfs_iext_get_ext+0xeb/0x200 [ 571.750313] 1 lock held by khungtaskd/1532: [ 571.753442] ? xfs_iext_idx_to_irec+0x340/0x340 [ 571.753461] ? xfs_bmap_last_extent+0x1d0/0x1d0 [ 571.753476] xfs_iomap_write_allocate+0x42b/0xa30 [ 571.753493] ? xfs_file_iomap_begin+0x1ed0/0x1ed0 [ 571.753501] ? xfs_iunlock+0x248/0x3b0 [ 571.753519] ? rcu_read_lock_sched_held+0x16c/0x1d0 [ 571.757893] #0: [ 571.762802] ? xfs_iunlock+0x21a/0x3b0 [ 571.767103] ( [ 571.771223] xfs_map_blocks+0x548/0x940 [ 571.775871] tasklist_lock [ 571.779912] ? xfs_vm_set_page_dirty+0x610/0x610 [ 571.783884] ){.+.+} [ 571.787988] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 571.792546] , at: [] debug_show_all_locks+0x7c/0x21a [ 571.796319] xfs_do_writepage+0x422/0x13d0 [ 571.796335] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 571.796347] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 571.796358] write_cache_pages+0x505/0xd20 [ 571.800330] 2 locks held by syz-executor.1/7996: [ 571.805213] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 571.805225] ? clear_page_dirty_for_io+0xb80/0xb80 [ 571.805242] ? trace_hardirqs_on+0x10/0x10 [ 571.805252] xfs_vm_writepages+0x258/0x340 [ 571.808938] #0: [ 571.814366] ? xfs_vm_writepage+0xd0/0xd0 [ 571.814381] ? xfs_vm_writepage+0xd0/0xd0 [ 571.814387] do_writepages+0xc3/0x240 [ 571.814398] ? page_writeback_cpu_online+0x10/0x10 [ 571.819218] ( [ 571.823623] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 571.823634] __writeback_single_inode+0xda/0x1010 [ 571.823644] writeback_sb_inodes+0x48b/0xd30 [ 571.823658] ? wbc_detach_inode+0x780/0x780 [ 571.823669] ? queue_io+0x400/0x5a0 [ 571.823676] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 571.823684] wb_writeback+0x243/0xb80 [ 571.823695] ? writeback_inodes_wb.constprop.0+0x1a0/0x1a0 [ 571.823707] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 571.828001] &type->s_umount_key [ 571.831610] wb_workfn+0x2bd/0xf50 [ 571.837067] #56 [ 571.840905] ? process_one_work+0x6c4/0x14a0 [ 571.844702] ){+.+.} [ 571.849232] ? inode_wait_for_writeback+0x30/0x30 [ 571.854893] , at: [] deactivate_super+0x77/0xa0 [ 571.860255] ? lock_acquire+0x170/0x3f0 [ 571.863803] #1: [ 571.868150] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 571.872987] ( [ 571.876914] process_one_work+0x793/0x14a0 [ 571.882361] &bdi->wb_switch_rwsem [ 571.886244] ? work_busy+0x320/0x320 [ 571.886251] ? worker_thread+0x158/0xff0 [ 571.886261] ? _raw_spin_unlock_irq+0x24/0x80 [ 571.886276] worker_thread+0x5cc/0xff0 [ 571.886292] ? rescuer_thread+0xc80/0xc80 [ 571.890498] ){+.+.} [ 571.894191] kthread+0x30d/0x420 [ 571.894199] ? kthread_create_on_node+0xd0/0xd0 [ 571.894207] ret_from_fork+0x24/0x30 [ 571.947652] XFS (loop1): page discard on page ffffea0001094e00, inode 0x29, offset 1945600. [ 571.950837] , at: [] sync_inodes_sb+0x156/0x880 [ 571.959902] XFS (loop1): Internal error XFS_WANT_CORRUPTED_RETURN at line 431 of file fs/xfs/libxfs/xfs_alloc.c. Caller xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 571.962134] [ 571.968831] CPU: 1 PID: 2818 Comm: kworker/u4:3 Not tainted 4.14.303-syzkaller #0 [ 571.976936] ============================================= [ 571.976936] [ 571.982132] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023 [ 571.986267] NMI backtrace for cpu 0 [ 571.988301] Workqueue: writeback wb_workfn (flush-7:1) [ 572.457411] Call Trace: [ 572.459986] dump_stack+0x1b2/0x281 [ 572.463611] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 572.468866] xfs_error_report+0x98/0xa0 [ 572.472821] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 572.478077] xfs_alloc_fixup_trees+0x425/0x4f0 [ 572.482641] ? xfs_alloc_update+0x90/0x90 [ 572.486796] ? xfs_btree_rec_offset.isra.0+0x3b/0xa0 [ 572.491881] ? xfs_alloc_compute_diff+0x23c/0x3d0 [ 572.496705] xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 572.501790] ? xfs_alloc_fix_freelist+0x685/0xeb0 [ 572.506612] ? xfs_alloc_ag_vextent_size+0x1ea0/0x1ea0 [ 572.511868] ? xfs_alloc_read_agf+0xb10/0xb10 [ 572.516353] xfs_alloc_ag_vextent+0x579/0x750 [ 572.520828] ? xfs_perag_get+0x116/0x410 [ 572.524865] ? xfs_alloc_vextent+0x470/0x2010 [ 572.529340] xfs_alloc_vextent+0x10b0/0x2010 [ 572.533737] xfs_bmap_btalloc+0x9e5/0x1b20 [ 572.537957] ? xfs_bmap_adjacent+0x1480/0x1480 [ 572.542521] ? ret_from_fork+0x24/0x30 [ 572.546415] ? __xfs_bmbt_get_all+0x16/0x100 [ 572.550802] xfs_bmap_alloc+0x107/0x160 [ 572.554754] xfs_bmapi_write+0xa49/0x1d00 [ 572.558888] ? xfs_bmapi_reserve_delalloc+0x7c0/0x7c0 [ 572.564057] ? trace_hardirqs_on+0x10/0x10 [ 572.568272] ? xfs_iext_get_ext+0xeb/0x200 [ 572.572484] ? xfs_iext_idx_to_irec+0x340/0x340 [ 572.577140] ? xfs_bmap_last_extent+0x1d0/0x1d0 [ 572.581793] xfs_iomap_write_allocate+0x42b/0xa30 [ 572.586623] ? xfs_file_iomap_begin+0x1ed0/0x1ed0 [ 572.591446] ? xfs_iunlock+0x248/0x3b0 [ 572.595322] ? rcu_read_lock_sched_held+0x16c/0x1d0 [ 572.600318] ? xfs_iunlock+0x21a/0x3b0 [ 572.604185] xfs_map_blocks+0x548/0x940 [ 572.608139] ? xfs_vm_set_page_dirty+0x610/0x610 [ 572.612872] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 572.618300] xfs_do_writepage+0x422/0x13d0 [ 572.622521] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 572.626827] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 572.632257] write_cache_pages+0x505/0xd20 [ 572.636470] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 572.640771] ? clear_page_dirty_for_io+0xb80/0xb80 [ 572.645688] ? trace_hardirqs_on+0x10/0x10 [ 572.649903] xfs_vm_writepages+0x258/0x340 [ 572.654115] ? xfs_vm_writepage+0xd0/0xd0 [ 572.658247] ? xfs_vm_writepage+0xd0/0xd0 [ 572.662374] do_writepages+0xc3/0x240 [ 572.666158] ? page_writeback_cpu_online+0x10/0x10 [ 572.671070] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 572.676501] __writeback_single_inode+0xda/0x1010 [ 572.681326] writeback_sb_inodes+0x48b/0xd30 [ 572.685721] ? wbc_detach_inode+0x780/0x780 [ 572.690026] ? queue_io+0x400/0x5a0 [ 572.693631] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 572.699063] wb_writeback+0x243/0xb80 [ 572.702848] ? writeback_inodes_wb.constprop.0+0x1a0/0x1a0 [ 572.708453] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 572.713894] wb_workfn+0x2bd/0xf50 [ 572.717437] ? process_one_work+0x6c4/0x14a0 [ 572.721857] ? inode_wait_for_writeback+0x30/0x30 [ 572.726684] ? lock_acquire+0x170/0x3f0 [ 572.730642] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 572.736073] process_one_work+0x793/0x14a0 [ 572.740296] ? work_busy+0x320/0x320 [ 572.743989] ? worker_thread+0x158/0xff0 [ 572.748031] ? _raw_spin_unlock_irq+0x24/0x80 [ 572.752508] worker_thread+0x5cc/0xff0 [ 572.756382] ? rescuer_thread+0xc80/0xc80 [ 572.760510] kthread+0x30d/0x420 [ 572.763855] ? kthread_create_on_node+0xd0/0xd0 [ 572.768502] ret_from_fork+0x24/0x30 [ 572.772204] CPU: 0 PID: 1532 Comm: khungtaskd Not tainted 4.14.303-syzkaller #0 [ 572.779655] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023 [ 572.789006] Call Trace: [ 572.791591] dump_stack+0x1b2/0x281 [ 572.795220] nmi_cpu_backtrace.cold+0x57/0x93 [ 572.799709] ? irq_force_complete_move+0x350/0x350 [ 572.804633] nmi_trigger_cpumask_backtrace+0x13a/0x180 [ 572.809904] watchdog+0x5b9/0xb40 [ 572.812731] XFS (loop1): page discard on page ffffea0001094e40, inode 0x29, offset 1949696. [ 572.813348] ? hungtask_pm_notify+0x50/0x50 [ 572.813357] kthread+0x30d/0x420 [ 572.813364] ? kthread_create_on_node+0xd0/0xd0 [ 572.813373] ret_from_fork+0x24/0x30 [ 572.813489] Sending NMI from CPU 0 to CPUs 1: [ 572.826702] XFS (loop1): Internal error XFS_WANT_CORRUPTED_RETURN at line 431 of file fs/xfs/libxfs/xfs_alloc.c. Caller xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 572.830565] NMI backtrace for cpu 1 [ 572.830569] CPU: 1 PID: 2818 Comm: kworker/u4:3 Not tainted 4.14.303-syzkaller #0 [ 572.830574] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023 [ 572.830576] Workqueue: writeback wb_workfn (flush-7:1) [ 572.830583] task: ffff8880ae6ba4c0 task.stack: ffff8880ae6c0000 [ 572.830585] RIP: 0010:univ8250_console_write+0x2/0x70 [ 572.830588] RSP: 0018:ffff8880ae6c67f8 EFLAGS: 00000097 [ 572.830593] RAX: ffff8880ae6ba4c0 RBX: ffffffff894879e0 RCX: 00000000000002df [ 572.830597] RDX: 0000000000000033 RSI: ffffffff8be8f920 RDI: ffffffff894879e0 [ 572.830601] RBP: 0000000000000000 R08: ffffffff8b9a61f8 R09: 00000000000c0008 [ 572.830604] R10: ffff8880ae6bae10 R11: ffff8880ae6ba4c0 R12: ffffffff835b71c0 [ 572.830608] R13: ffffffff894879f0 R14: dffffc0000000000 R15: 0000000000000033 [ 572.830612] FS: 0000000000000000(0000) GS:ffff8880ba500000(0000) knlGS:0000000000000000 [ 572.830616] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 572.830619] CR2: 00007fb1c96ca010 CR3: 00000000a183d000 CR4: 00000000003406e0 [ 572.830623] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 [ 572.830627] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 [ 572.830628] Call Trace: [ 572.830631] ? univ8250_console_setup+0x140/0x140 [ 572.830633] console_unlock+0x99d/0xf20 [ 572.830635] ? lock_acquire+0x170/0x3f0 [ 572.830637] vprintk_emit+0x224/0x620 [ 572.830639] vprintk_func+0x58/0x160 [ 572.830642] printk+0x9e/0xbc [ 572.830644] ? log_store.cold+0x16/0x16 [ 572.830646] ? xfs_allocbt_init_key_from_rec+0xf/0xe0 [ 572.830649] ? xfs_lookup_get_search_key+0x8f/0xf0 [ 572.830651] __xfs_printk+0x66/0x8a [ 572.830654] xfs_alert_tag+0x12a/0x166 [ 572.830656] ? xfs_info+0x163/0x163 [ 572.830658] ? do_raw_spin_unlock+0x164/0x220 [ 572.830661] ? _raw_spin_unlock+0x29/0x40 [ 572.830663] ? xfs_extent_busy_trim+0x44c/0x970 [ 572.830666] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 572.830668] xfs_error_report+0x93/0xa0 [ 572.830672] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 572.830674] xfs_alloc_fixup_trees+0x425/0x4f0 [ 572.830677] ? xfs_alloc_update+0x90/0x90 [ 572.830679] ? xfs_btree_rec_offset.isra.0+0x3b/0xa0 [ 572.830682] ? xfs_alloc_compute_diff+0x23c/0x3d0 [ 572.830685] xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 572.830688] ? xfs_alloc_fix_freelist+0x685/0xeb0 [ 572.830691] ? xfs_alloc_ag_vextent_size+0x1ea0/0x1ea0 [ 572.830693] ? xfs_alloc_read_agf+0xb10/0xb10 [ 572.830696] xfs_alloc_ag_vextent+0x579/0x750 [ 572.830698] ? xfs_perag_get+0x116/0x410 [ 572.830700] ? xfs_alloc_vextent+0x470/0x2010 [ 572.830703] xfs_alloc_vextent+0x10b0/0x2010 [ 572.830705] xfs_bmap_btalloc+0x9e5/0x1b20 [ 572.830708] ? xfs_bmap_adjacent+0x1480/0x1480 [ 572.830710] ? ret_from_fork+0x24/0x30 [ 572.830712] ? __xfs_bmbt_get_all+0x16/0x100 [ 572.830714] xfs_bmap_alloc+0x107/0x160 [ 572.830717] xfs_bmapi_write+0xa49/0x1d00 [ 572.830719] ? xfs_bmapi_reserve_delalloc+0x7c0/0x7c0 [ 572.830722] ? trace_hardirqs_on+0x10/0x10 [ 572.830724] ? xfs_iext_get_ext+0xeb/0x200 [ 572.830727] ? xfs_iext_idx_to_irec+0x340/0x340 [ 572.830729] ? xfs_bmap_last_extent+0x1d0/0x1d0 [ 572.830732] xfs_iomap_write_allocate+0x42b/0xa30 [ 572.830735] ? xfs_file_iomap_begin+0x1ed0/0x1ed0 [ 572.830737] ? xfs_iunlock+0x248/0x3b0 [ 572.830739] ? rcu_read_lock_sched_held+0x16c/0x1d0 [ 572.830742] ? xfs_iunlock+0x21a/0x3b0 [ 572.830744] xfs_map_blocks+0x548/0x940 [ 572.830747] ? xfs_vm_set_page_dirty+0x610/0x610 [ 572.830750] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 572.830752] xfs_do_writepage+0x422/0x13d0 [ 572.830755] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 572.830758] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 572.830760] write_cache_pages+0x505/0xd20 [ 572.830763] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 572.830766] ? clear_page_dirty_for_io+0xb80/0xb80 [ 572.830768] ? trace_hardirqs_on+0x10/0x10 [ 572.830771] xfs_vm_writepages+0x258/0x340 [ 572.830773] ? xfs_vm_writepage+0xd0/0xd0 [ 572.830775] ? xfs_vm_writepage+0xd0/0xd0 [ 572.830778] do_writepages+0xc3/0x240 [ 572.830780] ? page_writeback_cpu_online+0x10/0x10 [ 572.830783] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 572.830786] __writeback_single_inode+0xda/0x1010 [ 572.830788] writeback_sb_inodes+0x48b/0xd30 [ 572.830791] ? wbc_detach_inode+0x780/0x780 [ 572.830793] ? queue_io+0x400/0x5a0 [ 572.830796] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 572.830798] wb_writeback+0x243/0xb80 [ 572.830801] ? writeback_inodes_wb.constprop.0+0x1a0/0x1a0 [ 572.830804] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 572.830805] wb_workfn+0x2bd/0xf50 [ 572.830808] ? process_one_work+0x6c4/0x14a0 [ 572.830811] ? inode_wait_for_writeback+0x30/0x30 [ 572.830813] ? lock_acquire+0x170/0x3f0 [ 572.830816] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 572.830819] process_one_work+0x793/0x14a0 [ 572.830821] ? work_busy+0x320/0x320 [ 572.830823] ? worker_thread+0x158/0xff0 [ 572.830826] ? _raw_spin_unlock_irq+0x24/0x80 [ 572.830828] worker_thread+0x5cc/0xff0 [ 572.830831] ? rescuer_thread+0xc80/0xc80 [ 572.830832] kthread+0x30d/0x420 [ 572.830835] ? kthread_create_on_node+0xd0/0xd0 [ 572.830837] ret_from_fork+0x24/0x30 [ 572.830839] Code: 23 fe e9 24 ff ff ff 4c 89 f7 e8 3a a9 23 fe eb ae 4c 89 f7 e8 30 a9 23 fe e9 63 ff ff ff 66 66 2e 0f 1f 84 00 00 00 00 00 41 54 <41> 89 d4 55 48 89 f5 53 48 89 fb e8 1e e4 f9 fd 48 8d 7b 42 48 [ 572.833974] Kernel panic - not syncing: hung_task: blocked tasks [ 572.852826] CPU: 1 PID: 2818 Comm: kworker/u4:3 Not tainted 4.14.303-syzkaller #0 [ 573.376999] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023 [ 573.386343] Workqueue: writeback wb_workfn (flush-7:1) [ 573.391617] Call Trace: [ 573.394191] dump_stack+0x1b2/0x281 [ 573.397804] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 573.403065] xfs_error_report+0x98/0xa0 [ 573.407038] ? xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 573.412299] xfs_alloc_fixup_trees+0x425/0x4f0 [ 573.416867] ? xfs_alloc_update+0x90/0x90 [ 573.420995] ? xfs_btree_rec_offset.isra.0+0x3b/0xa0 [ 573.426081] ? xfs_alloc_compute_diff+0x23c/0x3d0 [ 573.430905] xfs_alloc_ag_vextent_near+0x17b2/0x2fb0 [ 573.435997] ? xfs_alloc_fix_freelist+0x685/0xeb0 [ 573.440822] ? xfs_alloc_ag_vextent_size+0x1ea0/0x1ea0 [ 573.446086] ? xfs_alloc_read_agf+0xb10/0xb10 [ 573.450579] xfs_alloc_ag_vextent+0x579/0x750 [ 573.455053] ? xfs_perag_get+0x116/0x410 [ 573.459093] ? xfs_alloc_vextent+0x470/0x2010 [ 573.463572] xfs_alloc_vextent+0x10b0/0x2010 [ 573.467971] xfs_bmap_btalloc+0x9e5/0x1b20 [ 573.472195] ? xfs_bmap_adjacent+0x1480/0x1480 [ 573.476760] ? ret_from_fork+0x24/0x30 [ 573.480640] ? __xfs_bmbt_get_all+0x16/0x100 [ 573.485033] xfs_bmap_alloc+0x107/0x160 [ 573.488992] xfs_bmapi_write+0xa49/0x1d00 [ 573.493146] ? xfs_bmapi_reserve_delalloc+0x7c0/0x7c0 [ 573.498323] ? trace_hardirqs_on+0x10/0x10 [ 573.502541] ? xfs_iext_get_ext+0xeb/0x200 [ 573.506757] ? xfs_iext_idx_to_irec+0x340/0x340 [ 573.511416] ? xfs_bmap_last_extent+0x1d0/0x1d0 [ 573.516089] xfs_iomap_write_allocate+0x42b/0xa30 [ 573.520923] ? xfs_file_iomap_begin+0x1ed0/0x1ed0 [ 573.525746] ? xfs_iunlock+0x248/0x3b0 [ 573.529629] ? rcu_read_lock_sched_held+0x16c/0x1d0 [ 573.534629] ? xfs_iunlock+0x21a/0x3b0 [ 573.538498] xfs_map_blocks+0x548/0x940 [ 573.542454] ? xfs_vm_set_page_dirty+0x610/0x610 [ 573.547195] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 573.552629] xfs_do_writepage+0x422/0x13d0 [ 573.556848] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 573.561154] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 573.566590] write_cache_pages+0x505/0xd20 [ 573.570810] ? xfs_add_to_ioend+0xfd0/0xfd0 [ 573.575117] ? clear_page_dirty_for_io+0xb80/0xb80 [ 573.580034] ? trace_hardirqs_on+0x10/0x10 [ 573.584253] xfs_vm_writepages+0x258/0x340 [ 573.588469] ? xfs_vm_writepage+0xd0/0xd0 [ 573.592604] ? xfs_vm_writepage+0xd0/0xd0 [ 573.596733] do_writepages+0xc3/0x240 [ 573.600517] ? page_writeback_cpu_online+0x10/0x10 [ 573.605434] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 573.610869] __writeback_single_inode+0xda/0x1010 [ 573.615697] writeback_sb_inodes+0x48b/0xd30 [ 573.620094] ? wbc_detach_inode+0x780/0x780 [ 573.624422] ? queue_io+0x400/0x5a0 [ 573.628035] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 573.633466] wb_writeback+0x243/0xb80 [ 573.637256] ? writeback_inodes_wb.constprop.0+0x1a0/0x1a0 [ 573.642863] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 573.648305] wb_workfn+0x2bd/0xf50 [ 573.651829] ? process_one_work+0x6c4/0x14a0 [ 573.656218] ? inode_wait_for_writeback+0x30/0x30 [ 573.661044] ? lock_acquire+0x170/0x3f0 [ 573.665003] ? rcu_lockdep_current_cpu_online+0xed/0x140 [ 573.670435] process_one_work+0x793/0x14a0 [ 573.674657] ? work_busy+0x320/0x320 [ 573.678353] ? worker_thread+0x158/0xff0 [ 573.682397] ? _raw_spin_unlock_irq+0x24/0x80 [ 573.686875] worker_thread+0x5cc/0xff0 [ 573.690752] ? rescuer_thread+0xc80/0xc80 [ 573.694883] kthread+0x30d/0x420 [ 573.698232] ? kthread_create_on_node+0xd0/0xd0 [ 573.702881] ret_from_fork+0x24/0x30 [ 573.706586] CPU: 0 PID: 1532 Comm: khungtaskd Not tainted 4.14.303-syzkaller #0 [ 573.714037] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023 [ 573.723387] Call Trace: [ 573.725967] dump_stack+0x1b2/0x281 [ 573.729588] panic+0x1f9/0x42d [ 573.732770] ? add_taint.cold+0x16/0x16 [ 573.736743] watchdog+0x5ca/0xb40 [ 573.740193] ? hungtask_pm_notify+0x50/0x50 [ 573.744512] kthread+0x30d/0x420 [ 573.747869] ? kthread_create_on_node+0xd0/0xd0 [ 573.752531] ret_from_fork+0x24/0x30 [ 573.756582] Kernel Offset: disabled [ 573.760219] Rebooting in 86400 seconds..