R10: 0000000000000000 R11: 0000000000000246 R12: 00007fa47c239064 R13: 00007fa47c19b210 R14: 0000000000000001 R15: 0030656c69662f2e ================================================================== BUG: KASAN: stack-out-of-bounds in iov_iter_revert lib/iov_iter.c:648 [inline] BUG: KASAN: stack-out-of-bounds in iov_iter_revert+0x561/0x5a0 lib/iov_iter.c:611 Read of size 8 at addr ffffc90002ee7d78 by task syz-executor217/5836 CPU: 0 UID: 0 PID: 5836 Comm: syz-executor217 Not tainted 6.12.0-syzkaller-09734-g445d9f05fa14 #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+0x116/0x1f0 lib/dump_stack.c:120 print_address_description mm/kasan/report.c:378 [inline] print_report+0xc3/0x620 mm/kasan/report.c:489 kasan_report+0xd9/0x110 mm/kasan/report.c:602 iov_iter_revert lib/iov_iter.c:648 [inline] iov_iter_revert+0x561/0x5a0 lib/iov_iter.c:611 fuse_direct_io+0xf0e/0x2580 fs/fuse/file.c:1667 fuse_direct_write_iter+0x64f/0x830 fs/fuse/file.c:1742 fuse_file_write_iter+0x66e/0x8c0 fs/fuse/file.c:1787 do_iter_readv_writev+0x532/0x7f0 fs/read_write.c:820 vfs_writev+0x363/0xdd0 fs/read_write.c:1050 do_writev+0x133/0x340 fs/read_write.c:1096 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:0x7fa47c1e71b9 Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 a1 1a 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:00007fa47c19b208 EFLAGS: 00000246 ORIG_RAX: 0000000000000014 RAX: ffffffffffffffda RBX: 00007fa47c26c3e8 RCX: 00007fa47c1e71b9 RDX: 0000000000000002 RSI: 0000000020000180 RDI: 0000000000000004 RBP: 00007fa47c26c3e0 R08: 00007fa47c19afa7 R09: 0000000000000033 R10: 0000000000000000 R11: 0000000000000246 R12: 00007fa47c239064 R13: 00007fa47c19b210 R14: 0000000000000001 R15: 0030656c69662f2e The buggy address belongs to stack of task syz-executor217/5836 and is located at offset 152 in frame: vfs_writev+0x0/0xdd0 include/linux/fsnotify.h:131 This frame has 3 objects: [48, 56) 'iov' [80, 120) 'iter' [160, 288) 'iovstack' The buggy address belongs to the virtual mapping at [ffffc90002ee0000, ffffc90002ee9000) created by: kernel_clone+0xfd/0x960 kernel/fork.c:2787 The buggy address belongs to the physical page: page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x7f15b 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 5824, tgid 5824 (sshd), ts 62065641502, free_ts 61480318731 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x2d1/0x350 mm/page_alloc.c:1556 prep_new_page mm/page_alloc.c:1564 [inline] get_page_from_freelist+0xfce/0x2f80 mm/page_alloc.c:3474 __alloc_pages_noprof+0x223/0x25a0 mm/page_alloc.c:4751 alloc_pages_mpol_noprof+0x2c9/0x610 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+0x724/0x1530 mm/vmalloc.c:3844 alloc_thread_stack_node kernel/fork.c:314 [inline] dup_task_struct kernel/fork.c:1115 [inline] copy_process+0x2f0a/0x8cc0 kernel/fork.c:2205 kernel_clone+0xfd/0x960 kernel/fork.c:2787 __do_sys_clone+0xba/0x100 kernel/fork.c:2930 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 page last free pid 5823 tgid 5823 stack trace: reset_page_owner include/linux/page_owner.h:25 [inline] free_pages_prepare mm/page_alloc.c:1127 [inline] free_unref_page+0x661/0x1080 mm/page_alloc.c:2657 __folio_put+0x32a/0x450 mm/swap.c:112 folio_put include/linux/mm.h:1488 [inline] put_page+0x21e/0x280 include/linux/mm.h:1560 anon_pipe_buf_release+0x11a/0x240 fs/pipe.c:128 pipe_buf_release include/linux/pipe_fs_i.h:219 [inline] pipe_update_tail fs/pipe.c:224 [inline] pipe_read+0x641/0x13f0 fs/pipe.c:344 new_sync_read fs/read_write.c:484 [inline] vfs_read+0xa4c/0xbe0 fs/read_write.c:565 ksys_read+0x207/0x250 fs/read_write.c:708 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 Memory state around the buggy address: ffffc90002ee7c00: 00 f3 f3 f3 f3 00 00 00 00 00 00 00 00 00 00 00 ffffc90002ee7c80: 00 00 00 00 00 00 00 00 00 00 00 00 f1 f1 f1 f1 >ffffc90002ee7d00: f1 f1 00 f2 f2 f2 00 00 00 00 00 f2 f2 f2 f2 f2 ^ ffffc90002ee7d80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffffc90002ee7e00: f3 f3 f3 f3 00 00 00 00 00 00 00 00 00 00 00 00 ==================================================================