================================================================== 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+0x92/0x4b0 fs/xfs/xfs_buf.c:1124 Read of size 4 at addr ffffc9002340fb74 by task kswapd1/110 CPU: 0 PID: 110 Comm: kswapd1 Not tainted 6.8.0-rc7-syzkaller-00142-g3aaa8ce7a335 #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+0xc4/0x620 mm/kasan/report.c:488 kasan_report+0xda/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+0x92/0x4b0 fs/xfs/xfs_buf.c:1124 xfs_buf_delwri_submit_buffers+0x16e/0xa20 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+0x426/0x1120 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+0x21c0/0x37a0 mm/vmscan.c:5888 kswapd_shrink_node mm/vmscan.c:6696 [inline] balance_pgdat+0x9d2/0x1a90 mm/vmscan.c:6886 kswapd+0x5be/0xc00 mm/vmscan.c:7146 kthread+0x2c6/0x3b0 kernel/kthread.c:388 ret_from_fork+0x45/0x80 arch/x86/kernel/process.c:147 ret_from_fork_asm+0x1b/0x30 arch/x86/entry/entry_64.S:243 The buggy address belongs to the virtual mapping at [ffffc90023408000, ffffc90023411000) created by: kernel_clone+0xfd/0x930 kernel/fork.c:2902 The buggy address belongs to the physical page: page:ffffea0001268280 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x49a0a memcg:ffff888000256e02 flags: 0x4fff00000000000(node=1|zone=1|lastcpupid=0x7ff) page_type: 0xffffffff() raw: 04fff00000000000 0000000000000000 dead000000000122 0000000000000000 raw: 0000000000000000 0000000000000000 00000001ffffffff ffff888000256e02 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 9598, tgid 9598 (syz-executor.2), ts 284036746857, free_ts 283875919120 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+0x22c/0x2430 mm/page_alloc.c:4569 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+0xa6e/0x1540 mm/vmalloc.c:3320 alloc_thread_stack_node kernel/fork.c:307 [inline] dup_task_struct kernel/fork.c:1112 [inline] copy_process+0x138f/0x6e30 kernel/fork.c:2327 kernel_clone+0xfd/0x930 kernel/fork.c:2902 __do_sys_clone3+0x1f5/0x270 kernel/fork.c:3203 do_syscall_32_irqs_on arch/x86/entry/common.c:165 [inline] int80_emulation+0x10e/0x200 arch/x86/entry/common.c:253 asm_int80_emulation+0x1a/0x20 arch/x86/include/asm/idtentry.h:573 page last free pid 5171 tgid 5171 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 skb_free_frag include/linux/skbuff.h:3270 [inline] skb_free_head+0xa6/0x1b0 net/core/skbuff.c:996 skb_release_data+0x5c0/0x880 net/core/skbuff.c:1028 skb_release_all net/core/skbuff.c:1094 [inline] __kfree_skb+0x51/0x70 net/core/skbuff.c:1108 tcp_rcv_established+0xd72/0x20f0 net/ipv4/tcp_input.c:6080 tcp_v4_do_rcv+0x6ab/0xa50 net/ipv4/tcp_ipv4.c:1906 sk_backlog_rcv include/net/sock.h:1092 [inline] __release_sock+0x31b/0x400 net/core/sock.c:2972 release_sock+0x5a/0x220 net/core/sock.c:3538 tcp_sendmsg+0x38/0x50 net/ipv4/tcp.c:1342 inet_sendmsg+0xb9/0x140 net/ipv4/af_inet.c:850 sock_sendmsg_nosec net/socket.c:730 [inline] __sock_sendmsg net/socket.c:745 [inline] sock_write_iter+0x4b8/0x5c0 net/socket.c:1160 call_write_iter include/linux/fs.h:2087 [inline] new_sync_write fs/read_write.c:497 [inline] vfs_write+0x6de/0x1110 fs/read_write.c:590 ksys_write+0x1f8/0x260 fs/read_write.c:643 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xd5/0x270 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x6f/0x77 Memory state around the buggy address: ffffc9002340fa00: 00 00 00 00 00 00 f1 f1 f1 f1 00 00 f3 f3 00 00 ffffc9002340fa80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffffc9002340fb00: 00 00 00 00 00 00 00 00 00 00 00 00 f1 f1 f1 f1 ^ ffffc9002340fb80: 04 f2 04 f2 00 f3 f3 f3 00 00 00 00 00 00 00 00 ffffc9002340fc00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ==================================================================