================================================================== BUG: KASAN: stack-out-of-bounds in walk_stackframe+0x120/0x2f2 arch/riscv/kernel/stacktrace.c:58 Read of size 8 at addr ff20000007197dd0 by task syz-executor.1/4116 CPU: 1 PID: 4116 Comm: syz-executor.1 Not tainted 6.5.0-rc1-syzkaller-00028-gef21fa7c198e #0 Hardware name: riscv-virtio,qemu (DT) Call Trace: [] dump_backtrace+0x2e/0x3c arch/riscv/kernel/stacktrace.c:121 [] show_stack+0x34/0x40 arch/riscv/kernel/stacktrace.c:127 [] __dump_stack lib/dump_stack.c:88 [inline] [] dump_stack_lvl+0xe8/0x154 lib/dump_stack.c:106 [] print_address_description mm/kasan/report.c:364 [inline] [] print_report+0x1e4/0x4f4 mm/kasan/report.c:475 [] kasan_report+0xf0/0x1b8 mm/kasan/report.c:588 [] check_region_inline mm/kasan/generic.c:181 [inline] [] __asan_load8+0x80/0xa8 mm/kasan/generic.c:260 [] walk_stackframe+0x120/0x2f2 arch/riscv/kernel/stacktrace.c:58 [] __get_wchan+0x1a0/0x270 arch/riscv/kernel/stacktrace.c:146 [] get_wchan+0x5c/0x8e kernel/sched/core.c:2065 [] proc_pid_wchan+0x132/0x186 fs/proc/base.c:395 [] proc_single_show+0x9c/0x148 fs/proc/base.c:777 [] seq_read_iter+0x30a/0x8c6 fs/seq_file.c:230 [] seq_read+0x122/0x176 fs/seq_file.c:162 [] vfs_read+0x1ec/0x5be fs/read_write.c:468 [] ksys_read+0x104/0x226 fs/read_write.c:613 [] __do_sys_read fs/read_write.c:623 [inline] [] sys_read+0x28/0x36 fs/read_write.c:621 [] syscall_handler+0xfa/0x148 arch/riscv/include/asm/syscall.h:90 [] do_trap_ecall_u+0x9c/0x9e arch/riscv/kernel/traps.c:310 [] ret_from_exception+0x0/0x64 arch/riscv/kernel/entry.S:102 The buggy address belongs to the virtual mapping at [ff20000007190000, ff20000007199000) created by: kernel_clone+0x118/0x854 kernel/fork.c:2912 The buggy address belongs to the physical page: page:ff1c0000025113c0 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x9444f memcg:ff6000000f7cad82 flags: 0xffe000000000000(node=0|zone=0|lastcpupid=0x7ff) page_type: 0xffffffff() raw: 0ffe000000000000 0000000000000000 0000000000000122 0000000000000000 raw: 0000000000000000 0000000000000000 00000001ffffffff ff6000000f7cad82 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 2934, tgid 2934 (syz-executor.0), ts 2582633220600, free_ts 2509802002300 __set_page_owner+0x32/0x18a mm/page_owner.c:192 set_page_owner include/linux/page_owner.h:31 [inline] post_alloc_hook+0x8e/0xe4 mm/page_alloc.c:1570 prep_new_page mm/page_alloc.c:1577 [inline] get_page_from_freelist+0x912/0x122c mm/page_alloc.c:3221 __alloc_pages+0x19c/0x1428 mm/page_alloc.c:4477 alloc_pages+0x126/0x252 mm/mempolicy.c:2279 vm_area_alloc_pages mm/vmalloc.c:3059 [inline] __vmalloc_area_node mm/vmalloc.c:3135 [inline] __vmalloc_node_range+0x838/0xec2 mm/vmalloc.c:3316 alloc_thread_stack_node kernel/fork.c:309 [inline] dup_task_struct kernel/fork.c:1113 [inline] copy_process+0x225a/0x3f1e kernel/fork.c:2330 kernel_clone+0x118/0x854 kernel/fork.c:2912 __do_sys_clone+0xe4/0x118 kernel/fork.c:3055 sys_clone+0x32/0x44 kernel/fork.c:3023 syscall_handler+0xfa/0x148 arch/riscv/include/asm/syscall.h:90 do_trap_ecall_u+0x9c/0x9e arch/riscv/kernel/traps.c:310 ret_from_exception+0x0/0x64 arch/riscv/kernel/entry.S:102 page last free stack trace: __reset_page_owner+0x4c/0xf8 mm/page_owner.c:149 reset_page_owner include/linux/page_owner.h:24 [inline] free_pages_prepare mm/page_alloc.c:1161 [inline] free_unref_page_prepare+0x420/0x5fc mm/page_alloc.c:2348 free_unref_page+0x5a/0x234 mm/page_alloc.c:2443 free_the_page mm/page_alloc.c:584 [inline] __free_pages+0x102/0x124 mm/page_alloc.c:4566 vfree+0x14e/0x690 mm/vmalloc.c:2842 __vmalloc_area_node mm/vmalloc.c:3199 [inline] __vmalloc_node_range+0xe18/0xec2 mm/vmalloc.c:3316 __vmalloc_node mm/vmalloc.c:3381 [inline] vmalloc+0xa0/0xb6 mm/vmalloc.c:3414 kcov_remote_start+0x526/0x6e0 kernel/kcov.c:904 kcov_remote_start_common include/linux/kcov.h:48 [inline] vhost_worker+0xec/0x14a drivers/vhost/vhost.c:410 vhost_task_fn+0x134/0x266 kernel/vhost_task.c:55 ret_from_fork+0xa/0x1c arch/riscv/kernel/entry.S:264 Memory state around the buggy address: ff20000007197c80: f1 f1 f1 f1 04 f3 f3 f3 00 00 00 00 00 00 00 00 ff20000007197d00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ff20000007197d80: f1 f1 f1 f1 00 f2 f2 f2 00 00 f3 f3 00 00 00 00 ^ ff20000007197e00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ff20000007197e80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ==================================================================