syz-executor.5 (16311): drop_caches: 2 ================================================================== 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 ffffc90003effb84 by task syz-executor.5/16311 CPU: 1 PID: 16311 Comm: syz-executor.5 Not tainted 6.7.0-syzkaller-09928-g052d534373b7 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/17/2023 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/0x190 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+0x205/0x3f0 fs/xfs/xfs_qm.c:521 do_shrink_slab+0x428/0x1120 mm/shrinker.c:435 shrink_slab+0x18a/0x1310 mm/shrinker.c:662 drop_slab_node mm/vmscan.c:387 [inline] drop_slab+0x14d/0x2c0 mm/vmscan.c:405 drop_caches_sysctl_handler+0x16f/0x190 fs/drop_caches.c:68 proc_sys_call_handler+0x4c6/0x6f0 fs/proc/proc_sysctl.c:595 call_write_iter include/linux/fs.h:2085 [inline] iter_file_splice_write+0x7c8/0xda0 fs/splice.c:743 do_splice_from fs/splice.c:941 [inline] direct_splice_actor+0x19b/0x6c0 fs/splice.c:1164 splice_direct_to_actor+0x347/0xa30 fs/splice.c:1108 do_splice_direct_actor fs/splice.c:1207 [inline] do_splice_direct+0x17e/0x250 fs/splice.c:1233 do_sendfile+0xaa8/0xdb0 fs/read_write.c:1295 __do_sys_sendfile64 fs/read_write.c:1356 [inline] __se_sys_sendfile64 fs/read_write.c:1348 [inline] __x64_sys_sendfile64+0x155/0x220 fs/read_write.c:1348 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xd3/0x250 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x63/0x6b RIP: 0033:0x7f5e88e7cda9 Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 e1 20 00 00 90 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 b0 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f5e89b460c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000028 RAX: ffffffffffffffda RBX: 00007f5e88fac120 RCX: 00007f5e88e7cda9 RDX: 0000000020002080 RSI: 0000000000000005 RDI: 0000000000000006 RBP: 00007f5e88ec947a R08: 0000000000000000 R09: 0000000000000000 R10: 000000000000023b R11: 0000000000000246 R12: 0000000000000000 R13: 000000000000006e R14: 00007f5e88fac120 R15: 00007ffecd5f4de8 The buggy address belongs to the virtual mapping at [ffffc90003ef8000, ffffc90003f01000) created by: kernel_clone+0xfd/0x930 kernel/fork.c:2901 The buggy address belongs to the physical page: page:ffffea0002218580 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x88616 memcg:ffff8880212df3c2 flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff) page_type: 0xffffffff() raw: 00fff00000000000 0000000000000000 dead000000000122 0000000000000000 raw: 0000000000000000 0000000000000000 00000001ffffffff ffff8880212df3c2 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 16268, tgid 16268 (syz-executor.1), ts 2281858706054, free_ts 2281454632285 set_page_owner include/linux/page_owner.h:31 [inline] post_alloc_hook+0x2d0/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+0x22f/0x2440 mm/page_alloc.c:4567 alloc_pages_mpol+0x258/0x5f0 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+0x1507/0x97b0 kernel/fork.c:2326 kernel_clone+0xfd/0x930 kernel/fork.c:2901 __do_sys_clone3+0x1f1/0x260 kernel/fork.c:3202 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xd3/0x250 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x63/0x6b page last free pid 16232 tgid 16230 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+0x51f/0xb10 mm/page_alloc.c:2346 free_unref_page_list+0xe6/0xb40 mm/page_alloc.c:2532 release_pages+0x32a/0x14f0 mm/swap.c:1042 tlb_batch_pages_flush+0x9a/0x190 mm/mmu_gather.c:98 tlb_flush_mmu_free mm/mmu_gather.c:293 [inline] tlb_flush_mmu mm/mmu_gather.c:300 [inline] tlb_finish_mmu+0x14b/0x6f0 mm/mmu_gather.c:392 unmap_region+0x342/0x420 mm/mmap.c:2309 do_vmi_align_munmap+0x11af/0x1ad0 mm/mmap.c:2625 do_vmi_munmap+0x20e/0x450 mm/mmap.c:2693 __vm_munmap+0x146/0x390 mm/mmap.c:2980 __do_sys_munmap mm/mmap.c:2997 [inline] __se_sys_munmap mm/mmap.c:2994 [inline] __x64_sys_munmap+0x62/0x80 mm/mmap.c:2994 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xd3/0x250 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x63/0x6b Memory state around the buggy address: ffffc90003effa80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffffc90003effb00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 f1 f1 >ffffc90003effb80: f1 f1 04 f2 04 f2 00 f3 f3 f3 00 00 00 00 00 00 ^ ffffc90003effc00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffffc90003effc80: 00 00 00 00 00 00 00 00 f1 f1 f1 f1 f1 f1 04 f2 ==================================================================