R10: 0000000000000000 R11: 0000000000000246 R12: 00007f7b1ea89064 R13: 00007f7b1e9eb210 R14: 0000000000000001 R15: 280fa7820815caab ================================================================== 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 ffffc90003977d78 by task syz-executor414/5950 CPU: 0 UID: 0 PID: 5950 Comm: syz-executor414 Not tainted 6.12.0-syzkaller-09734-g445d9f05fa14 #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: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:0x7f7b1ea371f9 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:00007f7b1e9eb208 EFLAGS: 00000246 ORIG_RAX: 0000000000000014 RAX: ffffffffffffffda RBX: 00007f7b1eabc3e8 RCX: 00007f7b1ea371f9 RDX: 0000000000000002 RSI: 0000000020000900 RDI: 0000000000000004 RBP: 00007f7b1eabc3e0 R08: 00007f7b1e9eafa7 R09: 0000000000000033 R10: 0000000000000000 R11: 0000000000000246 R12: 00007f7b1ea89064 R13: 00007f7b1e9eb210 R14: 0000000000000001 R15: 280fa7820815caab The buggy address belongs to stack of task syz-executor414/5950 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 [ffffc90003970000, ffffc90003979000) 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:0xffff888028a05f08 pfn:0x28a05 flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff) raw: 00fff00000000000 0000000000000000 dead000000000122 0000000000000000 raw: ffff888028a05f08 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 5872, tgid 5872 (dhcpcd-run-hook), ts 32572962584, free_ts 26057415788 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 0 tgid 0 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 rcu_do_batch kernel/rcu/tree.c:2567 [inline] rcu_core+0x79d/0x14d0 kernel/rcu/tree.c:2823 handle_softirqs+0x213/0x8f0 kernel/softirq.c:554 __do_softirq kernel/softirq.c:588 [inline] invoke_softirq kernel/softirq.c:428 [inline] __irq_exit_rcu+0x109/0x170 kernel/softirq.c:655 irq_exit_rcu+0x9/0x30 kernel/softirq.c:671 instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1049 [inline] sysvec_apic_timer_interrupt+0xa4/0xc0 arch/x86/kernel/apic/apic.c:1049 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:702 Memory state around the buggy address: ffffc90003977c00: 00 f3 f3 f3 f3 00 00 00 00 00 00 00 00 00 00 00 ffffc90003977c80: 00 00 00 00 00 00 00 00 00 00 00 00 f1 f1 f1 f1 >ffffc90003977d00: f1 f1 00 f2 f2 f2 00 00 00 00 00 f2 f2 f2 f2 f2 ^ ffffc90003977d80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffffc90003977e00: f3 f3 f3 f3 00 00 00 00 00 00 00 00 00 00 00 00 ==================================================================