================================================================== BUG: KASAN: stack-out-of-bounds in instrument_atomic_read include/linux/instrumented.h:72 [inline] BUG: KASAN: stack-out-of-bounds in atomic_read include/linux/atomic/atomic-instrumented.h:27 [inline] BUG: KASAN: stack-out-of-bounds in xfs_buf_lock+0xd0/0x750 fs/xfs/xfs_buf.c:1118 Read of size 4 at addr ffffc9000754fbcc by task kswapd1/139 CPU: 3 PID: 139 Comm: kswapd1 Not tainted 6.1.0-rc7-syzkaller-00102-g04aa64375f48 #0 Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.14.0-2 04/01/2014 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0xd1/0x138 lib/dump_stack.c:106 print_address_description mm/kasan/report.c:284 [inline] print_report+0x15e/0x45d mm/kasan/report.c:395 kasan_report+0xbf/0x1f0 mm/kasan/report.c:495 check_region_inline mm/kasan/generic.c:183 [inline] kasan_check_range+0x141/0x190 mm/kasan/generic.c:189 instrument_atomic_read include/linux/instrumented.h:72 [inline] atomic_read include/linux/atomic/atomic-instrumented.h:27 [inline] xfs_buf_lock+0xd0/0x750 fs/xfs/xfs_buf.c:1118 xfs_buf_delwri_submit_buffers+0x131/0xae0 fs/xfs/xfs_buf.c:2164 xfs_buf_delwri_submit+0x8a/0x260 fs/xfs/xfs_buf.c:2242 xfs_qm_shrink_scan fs/xfs/xfs_qm.c:514 [inline] xfs_qm_shrink_scan+0x1a7/0x370 fs/xfs/xfs_qm.c:495 do_shrink_slab+0x464/0xce0 mm/vmscan.c:842 shrink_slab+0x175/0x660 mm/vmscan.c:1002 shrink_node_memcgs mm/vmscan.c:6112 [inline] shrink_node+0x93d/0x1f30 mm/vmscan.c:6141 kswapd_shrink_node mm/vmscan.c:6930 [inline] balance_pgdat+0x8f5/0x1530 mm/vmscan.c:7120 kswapd+0x70b/0xfc0 mm/vmscan.c:7380 kthread+0x2e8/0x3a0 kernel/kthread.c:376 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:306 The buggy address belongs to the virtual mapping at [ffffc90007548000, ffffc90007551000) created by: kernel_clone+0xeb/0x980 kernel/fork.c:2671 The buggy address belongs to the physical page: page:ffffea0001d740c0 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x75d03 memcg:ffff8880734cf002 flags: 0x4fff00000000000(node=1|zone=1|lastcpupid=0x7ff) raw: 04fff00000000000 0000000000000000 dead000000000122 0000000000000000 raw: 0000000000000000 0000000000000000 00000001ffffffff ffff8880734cf002 page dumped because: kasan: bad access detected page_owner tracks the page as allocated page last allocated via order 0, migratetype Unmovable, gfp_mask 0x102dc2(GFP_HIGHUSER|__GFP_NOWARN|__GFP_ZERO), pid 2, tgid 2 (kthreadd), ts 334723758750, free_ts 334657311954 prep_new_page mm/page_alloc.c:2539 [inline] get_page_from_freelist+0x10b5/0x2d50 mm/page_alloc.c:4291 __alloc_pages+0x1cb/0x5b0 mm/page_alloc.c:5558 alloc_pages+0x1aa/0x270 mm/mempolicy.c:2285 vm_area_alloc_pages mm/vmalloc.c:2975 [inline] __vmalloc_area_node mm/vmalloc.c:3043 [inline] __vmalloc_node_range+0x958/0x13a0 mm/vmalloc.c:3213 alloc_thread_stack_node kernel/fork.c:311 [inline] dup_task_struct kernel/fork.c:974 [inline] copy_process+0x1566/0x7190 kernel/fork.c:2084 kernel_clone+0xeb/0x980 kernel/fork.c:2671 kernel_thread+0xb9/0xf0 kernel/fork.c:2731 create_kthread kernel/kthread.c:399 [inline] kthreadd+0x4f2/0x750 kernel/kthread.c:746 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:306 page last free stack trace: reset_page_owner include/linux/page_owner.h:24 [inline] free_pages_prepare mm/page_alloc.c:1459 [inline] free_pcp_prepare+0x65c/0xd90 mm/page_alloc.c:1509 free_unref_page_prepare mm/page_alloc.c:3387 [inline] free_unref_page+0x1d/0x4d0 mm/page_alloc.c:3483 __folio_put_small mm/swap.c:105 [inline] __folio_put+0xc5/0x140 mm/swap.c:128 folio_put include/linux/mm.h:1159 [inline] put_page include/linux/mm.h:1211 [inline] free_page_and_swap_cache+0x257/0x2c0 mm/swap_state.c:299 __tlb_remove_table arch/x86/include/asm/tlb.h:34 [inline] __tlb_remove_table_free mm/mmu_gather.c:115 [inline] tlb_remove_table_rcu+0x89/0xe0 mm/mmu_gather.c:170 rcu_do_batch kernel/rcu/tree.c:2250 [inline] rcu_core+0x81f/0x1980 kernel/rcu/tree.c:2510 __do_softirq+0x1fb/0xadc kernel/softirq.c:571 Memory state around the buggy address: ffffc9000754fa80: 00 f1 f1 f1 f1 00 00 f3 f3 00 00 00 00 00 00 00 ffffc9000754fb00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffffc9000754fb80: 00 00 00 00 00 00 00 f1 f1 f1 f1 04 f2 04 f2 00 ^ ffffc9000754fc00: f2 f2 f2 00 f3 f3 f3 00 00 00 00 00 00 00 00 00 ffffc9000754fc80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ==================================================================