R10: 0000000000000000 R11: 0000000000000246 R12: 00007fdace16529c R13: 00007fdace0c6210 R14: 0000000000000001 R15: 0030656c69662f2e ================================================================== BUG: KASAN: stack-out-of-bounds in iov_iter_revert+0x47f/0x590 lib/iov_iter.c:648 Read of size 8 at addr ffffc90003effc98 by task syz-executor220/5843 CPU: 1 UID: 0 PID: 5843 Comm: syz-executor220 Not tainted 6.12.0-syzkaller-10296-gaaf20f870da0 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024 Call Trace: __dump_stack lib/dump_stack.c:94 [inline] dump_stack_lvl+0x241/0x360 lib/dump_stack.c:120 print_address_description mm/kasan/report.c:378 [inline] print_report+0x169/0x550 mm/kasan/report.c:489 kasan_report+0x143/0x180 mm/kasan/report.c:602 iov_iter_revert+0x47f/0x590 lib/iov_iter.c:648 fuse_direct_io+0x30b3/0x31f0 fs/fuse/file.c:1667 fuse_direct_write_iter fs/fuse/file.c:1742 [inline] fuse_file_write_iter+0xae2/0xf70 fs/fuse/file.c:1787 do_iter_readv_writev+0x600/0x880 vfs_writev+0x376/0xba0 fs/read_write.c:1050 do_writev+0x1b6/0x360 fs/read_write.c:1096 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7fdace113519 Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 31 1b 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:00007fdace0c6208 EFLAGS: 00000246 ORIG_RAX: 0000000000000014 RAX: ffffffffffffffda RBX: 00007fdace1983e8 RCX: 00007fdace113519 RDX: 0000000000000002 RSI: 0000000020000180 RDI: 0000000000000004 RBP: 00007fdace1983e0 R08: 00007fdace0c5fa7 R09: 0000000000000033 R10: 0000000000000000 R11: 0000000000000246 R12: 00007fdace16529c R13: 00007fdace0c6210 R14: 0000000000000001 R15: 0030656c69662f2e The buggy address belongs to stack of task syz-executor220/5843 and is located at offset 24 in frame: vfs_writev+0x0/0xba0 This frame has 3 objects: [32, 160) 'iovstack' [192, 200) 'iov' [224, 264) 'iter' The buggy address belongs to the virtual mapping at [ffffc90003ef8000, ffffc90003f01000) created by: copy_process+0x5d1/0x3d50 kernel/fork.c:2205 The buggy address belongs to the physical page: page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x7a65f flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff) raw: 00fff00000000000 0000000000000000 dead000000000122 0000000000000000 raw: 0000000000000000 0000000000000000 00000001ffffffff 0000000000000000 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 5842, tgid 5842 (syz-executor220), ts 66583539533, free_ts 59534252530 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x1f3/0x230 mm/page_alloc.c:1556 prep_new_page mm/page_alloc.c:1564 [inline] get_page_from_freelist+0x363e/0x3790 mm/page_alloc.c:3474 __alloc_pages_noprof+0x292/0x710 mm/page_alloc.c:4751 alloc_pages_mpol_noprof+0x3e8/0x680 mm/mempolicy.c:2265 vm_area_alloc_pages mm/vmalloc.c:3589 [inline] __vmalloc_area_node mm/vmalloc.c:3667 [inline] __vmalloc_node_range_noprof+0x9c9/0x1380 mm/vmalloc.c:3844 alloc_thread_stack_node kernel/fork.c:314 [inline] dup_task_struct+0x444/0x8c0 kernel/fork.c:1115 copy_process+0x5d1/0x3d50 kernel/fork.c:2205 kernel_clone+0x223/0x880 kernel/fork.c:2787 __do_sys_clone3 kernel/fork.c:3091 [inline] __se_sys_clone3+0x2d8/0x360 kernel/fork.c:3070 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f page last free pid 5832 tgid 5832 stack trace: reset_page_owner include/linux/page_owner.h:25 [inline] free_pages_prepare mm/page_alloc.c:1127 [inline] free_unref_page+0xded/0x1130 mm/page_alloc.c:2657 __folio_put+0x2c7/0x440 mm/swap.c:112 pipe_buf_release include/linux/pipe_fs_i.h:219 [inline] pipe_update_tail fs/pipe.c:224 [inline] pipe_read+0x6ed/0x13e0 fs/pipe.c:344 new_sync_read fs/read_write.c:484 [inline] vfs_read+0x991/0xb70 fs/read_write.c:565 ksys_read+0x18f/0x2b0 fs/read_write.c:708 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f Memory state around the buggy address: ffffc90003effb80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffffc90003effc00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffffc90003effc80: f1 f1 f1 f1 00 00 00 00 00 00 00 00 00 00 00 00 ^ ffffc90003effd00: 00 00 00 00 f2 f2 f2 f2 00 f2 f2 f2 00 00 00 00 ffffc90003effd80: 00 f3 f3 f3 f3 f3 f3 f3 00 00 00 00 00 00 00 00 ==================================================================