================================================================== BUG: KASAN: stack-out-of-bounds in instrument_atomic_read include/linux/instrumented.h:68 [inline] BUG: KASAN: stack-out-of-bounds in atomic_read include/linux/atomic/atomic-instrumented.h:32 [inline] BUG: KASAN: stack-out-of-bounds in xfs_buf_lock+0x9e/0x4c0 fs/xfs/xfs_buf.c:1124 Read of size 4 at addr ffffc900062cfb74 by task kswapd1/112 CPU: 2 PID: 112 Comm: kswapd1 Not tainted 6.8.0-syzkaller-01185-g855684c7d938 #0 Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.2-debian-1.16.2-1 04/01/2014 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0xd9/0x1b0 lib/dump_stack.c:106 print_address_description mm/kasan/report.c:377 [inline] print_report+0xc3/0x620 mm/kasan/report.c:488 kasan_report+0xd9/0x110 mm/kasan/report.c:601 check_region_inline mm/kasan/generic.c:183 [inline] kasan_check_range+0xef/0x1a0 mm/kasan/generic.c:189 instrument_atomic_read include/linux/instrumented.h:68 [inline] atomic_read include/linux/atomic/atomic-instrumented.h:32 [inline] xfs_buf_lock+0x9e/0x4c0 fs/xfs/xfs_buf.c:1124 xfs_buf_delwri_submit_buffers+0x140/0xa10 fs/xfs/xfs_buf.c:2210 xfs_buf_delwri_submit+0x8a/0x270 fs/xfs/xfs_buf.c:2288 xfs_qm_shrink_scan+0x209/0x3f0 fs/xfs/xfs_qm.c:521 do_shrink_slab+0x44f/0x1160 mm/shrinker.c:435 shrink_slab+0x18a/0x1310 mm/shrinker.c:662 shrink_one+0x493/0x7b0 mm/vmscan.c:4767 shrink_many mm/vmscan.c:4828 [inline] lru_gen_shrink_node mm/vmscan.c:4929 [inline] shrink_node+0x2191/0x3770 mm/vmscan.c:5888 kswapd_shrink_node mm/vmscan.c:6696 [inline] balance_pgdat+0x9d0/0x1a90 mm/vmscan.c:6886 kswapd+0x5c1/0xc10 mm/vmscan.c:7146 kthread+0x2c1/0x3a0 kernel/kthread.c:388 ret_from_fork+0x45/0x80 arch/x86/kernel/process.c:147 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:243 The buggy address belongs to the virtual mapping at [ffffc900062c8000, ffffc900062d1000) created by: kernel_clone+0xfd/0x940 kernel/fork.c:2796 The buggy address belongs to the physical page: page:ffffea00019c5080 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x67142 memcg:ffff8880189b5e02 flags: 0x4fff00000000000(node=1|zone=1|lastcpupid=0x7ff) page_type: 0xffffffff() raw: 04fff00000000000 0000000000000000 dead000000000122 0000000000000000 raw: 0000000000000000 0000000000000000 00000001ffffffff ffff8880189b5e02 page dumped because: kasan: bad access detected page_owner tracks the page as allocated page last allocated via order 0, migratetype Unmovable, gfp_mask 0x2dc2(GFP_KERNEL|__GFP_HIGHMEM|__GFP_NOWARN|__GFP_ZERO), pid 5353, tgid 5353 (syz-executor.2), ts 115027114649, free_ts 110634597535 set_page_owner include/linux/page_owner.h:31 [inline] post_alloc_hook+0x2d4/0x350 mm/page_alloc.c:1533 prep_new_page mm/page_alloc.c:1540 [inline] get_page_from_freelist+0xa28/0x3780 mm/page_alloc.c:3311 __alloc_pages_slowpath mm/page_alloc.c:4102 [inline] __alloc_pages+0x687/0x2410 mm/page_alloc.c:4582 alloc_pages_mpol+0x258/0x600 mm/mempolicy.c:2133 vm_area_alloc_pages mm/vmalloc.c:3063 [inline] __vmalloc_area_node mm/vmalloc.c:3139 [inline] __vmalloc_node_range+0xa6b/0x1540 mm/vmalloc.c:3320 alloc_thread_stack_node kernel/fork.c:309 [inline] dup_task_struct kernel/fork.c:1114 [inline] copy_process+0x140b/0x6e90 kernel/fork.c:2219 kernel_clone+0xfd/0x940 kernel/fork.c:2796 __do_sys_clone3+0x1f5/0x270 kernel/fork.c:3097 do_syscall_32_irqs_on arch/x86/entry/common.c:165 [inline] int80_emulation+0x10b/0x200 arch/x86/entry/common.c:253 asm_int80_emulation+0x1a/0x20 arch/x86/include/asm/idtentry.h:626 page last free pid 5209 tgid 5209 stack trace: reset_page_owner include/linux/page_owner.h:24 [inline] free_pages_prepare mm/page_alloc.c:1140 [inline] free_unref_page_prepare+0x527/0xb10 mm/page_alloc.c:2346 free_unref_page+0x33/0x3c0 mm/page_alloc.c:2486 qlink_free mm/kasan/quarantine.c:163 [inline] qlist_free_all+0x4e/0x140 mm/kasan/quarantine.c:179 kasan_quarantine_reduce+0x192/0x1e0 mm/kasan/quarantine.c:286 __kasan_slab_alloc+0x69/0x90 mm/kasan/common.c:322 kasan_slab_alloc include/linux/kasan.h:201 [inline] slab_post_alloc_hook mm/slub.c:3813 [inline] slab_alloc_node mm/slub.c:3860 [inline] kmem_cache_alloc_node+0x177/0x350 mm/slub.c:3903 __alloc_skb+0x28d/0x330 net/core/skbuff.c:641 alloc_skb include/linux/skbuff.h:1296 [inline] netlink_alloc_large_skb+0x4d/0xf0 net/netlink/af_netlink.c:1213 netlink_sendmsg+0x689/0xd70 net/netlink/af_netlink.c:1883 sock_sendmsg_nosec net/socket.c:730 [inline] __sock_sendmsg net/socket.c:745 [inline] __sys_sendto+0x47f/0x4e0 net/socket.c:2191 __do_compat_sys_socketcall+0x5e2/0x700 net/compat.c:475 do_syscall_32_irqs_on arch/x86/entry/common.c:165 [inline] __do_fast_syscall_32+0x7a/0x120 arch/x86/entry/common.c:321 do_fast_syscall_32+0x32/0x80 arch/x86/entry/common.c:346 entry_SYSENTER_compat_after_hwframe+0x7a/0x84 Memory state around the buggy address: ffffc900062cfa00: 00 00 00 00 00 00 f1 f1 f1 f1 00 00 f3 f3 00 00 ffffc900062cfa80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffffc900062cfb00: 00 00 00 00 00 00 00 00 00 00 00 00 f1 f1 f1 f1 ^ ffffc900062cfb80: 04 f2 04 f2 00 f3 f3 f3 00 00 00 00 00 00 00 00 ffffc900062cfc00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ==================================================================