syz-executor.0 (5837): 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+0x9e/0x520 fs/xfs/xfs_buf.c:1194 Read of size 4 at addr ffffc90003707bac by task syz-executor.0/5837 CPU: 1 UID: 0 PID: 5837 Comm: syz-executor.0 Not tainted 6.11.0-syzkaller-g2f27fce67173-dirty #0 Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2~bpo12+1 04/01/2014 Call Trace: __dump_stack lib/dump_stack.c:93 [inline] dump_stack_lvl+0x116/0x1f0 lib/dump_stack.c:119 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/0x520 fs/xfs/xfs_buf.c:1194 xfs_buf_delwri_submit_buffers+0x140/0xa40 fs/xfs/xfs_buf.c:2293 xfs_buf_delwri_submit+0x8a/0x270 fs/xfs/xfs_buf.c:2371 xfs_qm_shrink_scan+0x209/0x3f0 fs/xfs/xfs_qm.c:522 do_shrink_slab+0x44f/0x11c0 mm/shrinker.c:435 shrink_slab+0x330/0x12c0 mm/shrinker.c:662 drop_slab_node mm/vmscan.c:413 [inline] drop_slab+0x14c/0x2c0 mm/vmscan.c:431 drop_caches_sysctl_handler+0x171/0x190 fs/drop_caches.c:68 proc_sys_call_handler+0x4c6/0x6f0 fs/proc/proc_sysctl.c:590 iter_file_splice_write+0x90f/0x10b0 fs/splice.c:743 do_splice_from fs/splice.c:941 [inline] direct_splice_actor+0x18f/0x6c0 fs/splice.c:1164 splice_direct_to_actor+0x346/0xa40 fs/splice.c:1108 do_splice_direct_actor fs/splice.c:1207 [inline] do_splice_direct+0x178/0x250 fs/splice.c:1233 do_sendfile+0xb0a/0xe40 fs/read_write.c:1388 __do_sys_sendfile64 fs/read_write.c:1449 [inline] __se_sys_sendfile64 fs/read_write.c:1441 [inline] __x64_sys_sendfile64+0x155/0x220 fs/read_write.c:1441 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xcd/0x250 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f229327dda9 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:00007f2293f2b0c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000028 RAX: ffffffffffffffda RBX: 00007f22933abf80 RCX: 00007f229327dda9 RDX: 0000000020002080 RSI: 0000000000000004 RDI: 0000000000000005 RBP: 00007f22932ca47a R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000870 R11: 0000000000000246 R12: 0000000000000000 R13: 000000000000000b R14: 00007f22933abf80 R15: 00007ffdb7eb53e8 The buggy address belongs to the virtual mapping at [ffffc90003700000, ffffc90003709000) created by: kernel_clone+0xfd/0x960 kernel/fork.c:2781 The buggy address belongs to the physical page: page: refcount:1 mapcount:0 mapping:0000000000000000 index:0xffff88802487f0f8 pfn:0x2487f memcg:ffff888043d9e102 flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff) raw: 00fff00000000000 0000000000000000 dead000000000122 0000000000000000 raw: ffff88802487f0f8 0000000000000000 00000001ffffffff ffff888043d9e102 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 57414876017, free_ts 57277182861 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x2d1/0x350 mm/page_alloc.c:1500 prep_new_page mm/page_alloc.c:1508 [inline] get_page_from_freelist+0x1351/0x2e50 mm/page_alloc.c:3446 __alloc_pages_noprof+0x22b/0x2460 mm/page_alloc.c:4702 alloc_pages_mpol_noprof+0x275/0x610 mm/mempolicy.c:2263 vm_area_alloc_pages mm/vmalloc.c:3587 [inline] __vmalloc_area_node mm/vmalloc.c:3656 [inline] __vmalloc_node_range_noprof+0x6da/0x14e0 mm/vmalloc.c:3837 alloc_thread_stack_node kernel/fork.c:313 [inline] dup_task_struct kernel/fork.c:1113 [inline] copy_process+0x2f3b/0x8dd0 kernel/fork.c:2204 kernel_clone+0xfd/0x960 kernel/fork.c:2781 kernel_thread+0xc0/0x100 kernel/fork.c:2843 create_kthread kernel/kthread.c:412 [inline] kthreadd+0x4ef/0x7d0 kernel/kthread.c:765 ret_from_fork+0x45/0x80 arch/x86/kernel/process.c:147 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:244 page last free pid 5759 tgid 5758 stack trace: reset_page_owner include/linux/page_owner.h:25 [inline] free_pages_prepare mm/page_alloc.c:1101 [inline] free_unref_page+0x64a/0xe40 mm/page_alloc.c:2619 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:3989 [inline] slab_alloc_node mm/slub.c:4038 [inline] kmem_cache_alloc_noprof+0x121/0x2f0 mm/slub.c:4045 ptlock_alloc+0x1f/0x70 mm/memory.c:6606 ptlock_init include/linux/mm.h:2949 [inline] pagetable_pte_ctor include/linux/mm.h:2976 [inline] __pte_alloc_one_noprof include/asm-generic/pgalloc.h:73 [inline] pte_alloc_one+0x74/0x370 arch/x86/mm/pgtable.c:33 __pte_alloc+0x6e/0x3a0 mm/memory.c:448 do_anonymous_page mm/memory.c:4540 [inline] do_pte_missing mm/memory.c:3962 [inline] handle_pte_fault mm/memory.c:5538 [inline] __handle_mm_fault+0x5604/0x5650 mm/memory.c:5681 handle_mm_fault+0x498/0xa60 mm/memory.c:5849 do_user_addr_fault+0x60d/0x13f0 arch/x86/mm/fault.c:1338 handle_page_fault arch/x86/mm/fault.c:1481 [inline] exc_page_fault+0x5c/0xc0 arch/x86/mm/fault.c:1539 asm_exc_page_fault+0x26/0x30 arch/x86/include/asm/idtentry.h:623 Memory state around the buggy address: ffffc90003707a80: f1 00 00 f3 f3 00 00 00 00 00 00 00 00 00 00 00 ffffc90003707b00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffffc90003707b80: 00 00 00 f1 f1 f1 f1 04 f2 04 f2 00 f3 f3 f3 00 ^ ffffc90003707c00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffffc90003707c80: 00 00 00 00 00 00 00 00 f1 f1 f1 f1 f1 f1 04 f2 ==================================================================