[<ffffffff83737e14>] context_switch kernel/sched/core.c:5376 [inline]
[<ffffffff83737e14>] __schedule+0x760/0x1824 kernel/sched/core.c:6688
[<ffffffff837396e8>] preempt_schedule_irq+0x4c/0xfa kernel/sched/core.c:7008
[<ffffffff837319da>] raw_irqentry_exit_cond_resched kernel/entry/common.c:389 [inline]
[<ffffffff837319da>] raw_irqentry_exit_cond_resched kernel/entry/common.c:381 [inline]
[<ffffffff837319da>] irqentry_exit+0x138/0x178 kernel/entry/common.c:432
==================================================================
BUG: KASAN: out-of-bounds in walk_stackframe+0x120/0x2f2 arch/riscv/kernel/stacktrace.c:58
Read of size 8 at addr ff20000007723b60 by task kworker/1:2/17408

CPU: 1 PID: 17408 Comm: kworker/1:2 Not tainted 6.7.0-rc1-syzkaller-g3b5c14361d61 #0
Hardware name: riscv-virtio,qemu (DT)
Workqueue: events nsim_dev_trap_report_work
Call Trace:
[<ffffffff8000c1e6>] dump_backtrace+0x2e/0x3c arch/riscv/kernel/stacktrace.c:121
[<ffffffff836ee406>] show_stack+0x34/0x40 arch/riscv/kernel/stacktrace.c:127
[<ffffffff8372f66a>] __dump_stack lib/dump_stack.c:88 [inline]
[<ffffffff8372f66a>] dump_stack_lvl+0xe8/0x154 lib/dump_stack.c:106
[<ffffffff836f6ccc>] print_address_description mm/kasan/report.c:364 [inline]
[<ffffffff836f6ccc>] print_report+0x1e4/0x4f4 mm/kasan/report.c:475
[<ffffffff8059650a>] kasan_report+0xf0/0x1b8 mm/kasan/report.c:588
[<ffffffff805979a4>] check_region_inline mm/kasan/generic.c:181 [inline]
[<ffffffff805979a4>] __asan_load8+0x80/0xa8 mm/kasan/generic.c:260
[<ffffffff8000bf82>] walk_stackframe+0x120/0x2f2 arch/riscv/kernel/stacktrace.c:58
[<ffffffff8000c1e6>] dump_backtrace+0x2e/0x3c arch/riscv/kernel/stacktrace.c:121
[<ffffffff836ee406>] show_stack+0x34/0x40 arch/riscv/kernel/stacktrace.c:127
[<ffffffff800fd4c4>] sched_show_task kernel/sched/core.c:9146 [inline]
[<ffffffff800fd4c4>] sched_show_task+0x310/0x426 kernel/sched/core.c:9120
[<ffffffff8010803c>] show_state_filter+0xa0/0x1e0 kernel/sched/core.c:9191
[<ffffffff8105f95e>] show_state include/linux/sched/debug.h:21 [inline]
[<ffffffff8105f95e>] fn_show_state+0x1a/0x22 drivers/tty/vt/keyboard.c:614
[<ffffffff8105fe32>] k_spec drivers/tty/vt/keyboard.c:667 [inline]
[<ffffffff8105fe32>] k_spec+0xce/0x102 drivers/tty/vt/keyboard.c:656
[<ffffffff81061d4c>] kbd_keycode drivers/tty/vt/keyboard.c:1524 [inline]
[<ffffffff81061d4c>] kbd_event+0x5fa/0xa5e drivers/tty/vt/keyboard.c:1543
[<ffffffff8223a00a>] input_to_handler+0x246/0x24c drivers/input/input.c:132
[<ffffffff8223eee4>] input_pass_values+0x410/0x5fe drivers/input/input.c:161
[<ffffffff8223f38a>] input_event_dispose+0x2b8/0x2c8 drivers/input/input.c:389
[<ffffffff8224112c>] input_handle_event+0xf0/0x972 drivers/input/input.c:406
[<ffffffff82241a38>] input_event drivers/input/input.c:435 [inline]
[<ffffffff82241a38>] input_event+0x8a/0xb2 drivers/input/input.c:427
[<ffffffff8278ab7a>] hidinput_hid_event+0x54e/0x1438 drivers/hid/hid-input.c:1731
[<ffffffff8277bb04>] hid_process_event+0x348/0x38a drivers/hid/hid-core.c:1534
[<ffffffff8277be8e>] hid_input_array_field+0x348/0x404 drivers/hid/hid-core.c:1646
[<ffffffff8277c68e>] hid_process_report drivers/hid/hid-core.c:1688 [inline]
[<ffffffff8277c68e>] hid_report_raw_event+0x744/0xa5c drivers/hid/hid-core.c:2009
[<ffffffff8277cbf4>] hid_input_report+0x24e/0x2f4 drivers/hid/hid-core.c:2083
[<ffffffff82842074>] hid_irq_in+0x244/0x412 drivers/hid/usbhid/hid-core.c:284
[<ffffffff81e6625a>] __usb_hcd_giveback_urb+0x222/0x364 drivers/usb/core/hcd.c:1650
[<ffffffff81e66616>] usb_hcd_giveback_urb+0x27a/0x290 drivers/usb/core/hcd.c:1733
[<ffffffff82124e24>] dummy_timer+0xfc2/0x204a drivers/usb/gadget/udc/dummy_hcd.c:1987
[<ffffffff801d92ce>] call_timer_fn+0x15a/0x4f2 kernel/time/timer.c:1700
[<ffffffff801d9be4>] expire_timers kernel/time/timer.c:1751 [inline]
[<ffffffff801d9be4>] __run_timers+0x57e/0x73c kernel/time/timer.c:2022
[<ffffffff801d9de8>] run_timer_softirq+0x46/0x80 kernel/time/timer.c:2035
[<ffffffff837460c8>] __do_softirq+0x2f4/0x89e kernel/softirq.c:553
[<ffffffff800912e0>] invoke_softirq kernel/softirq.c:427 [inline]
[<ffffffff800912e0>] __irq_exit_rcu kernel/softirq.c:632 [inline]
[<ffffffff800912e0>] irq_exit_rcu+0x13c/0x1e4 kernel/softirq.c:644
[<ffffffff837304b6>] handle_riscv_irq+0x40/0x4c arch/riscv/kernel/traps.c:363
[<ffffffff83745d4a>] call_on_irq_stack+0x32/0x40 arch/riscv/kernel/entry.S:250

The buggy address belongs to the virtual mapping at
 [ff20000007720000, ff20000007725000) created by:
 kernel_clone+0x118/0x896 kernel/fork.c:2907

The buggy address belongs to the physical page:
page:ff1c000002bd9c00 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0xaf670
flags: 0xffe000000000000(node=0|zone=0|lastcpupid=0x7ff)
page_type: 0xffffffff()
raw: 0ffe000000000000 0000000000000000 0000000000000122 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 3004, tgid 3004 (syz-executor.0), ts 1070026434900, free_ts 0
 __set_page_owner+0x32/0x18a mm/page_owner.c:192
 set_page_owner include/linux/page_owner.h:31 [inline]
 post_alloc_hook+0x8c/0xe2 mm/page_alloc.c:1537
 prep_new_page mm/page_alloc.c:1544 [inline]
 get_page_from_freelist+0x5ae/0x13b8 mm/page_alloc.c:3312
 __alloc_pages+0x1aa/0x13a0 mm/page_alloc.c:4568
 alloc_pages_mpol+0xd4/0x2fc mm/mempolicy.c:2133
 alloc_pages+0xbc/0x148 mm/mempolicy.c:2204
 vm_area_alloc_pages mm/vmalloc.c:3063 [inline]
 __vmalloc_area_node mm/vmalloc.c:3139 [inline]
 __vmalloc_node_range+0x834/0xec2 mm/vmalloc.c:3320
 alloc_thread_stack_node kernel/fork.c:309 [inline]
 dup_task_struct kernel/fork.c:1118 [inline]
 copy_process+0x2272/0x3fba kernel/fork.c:2332
 kernel_clone+0x118/0x896 kernel/fork.c:2907
 __do_sys_clone+0xe4/0x118 kernel/fork.c:3050
 __se_sys_clone kernel/fork.c:3018 [inline]
 __riscv_sys_clone+0x76/0x88 kernel/fork.c:3018
 syscall_handler+0x76/0xba arch/riscv/include/asm/syscall.h:90
 do_trap_ecall_u+0x9c/0x9e arch/riscv/kernel/traps.c:326
 ret_from_exception+0x0/0x64 arch/riscv/kernel/entry.S:108
page_owner free stack trace missing

Memory state around the buggy address:
 ff20000007723a00: 00 00 00 f3 f3 f3 f3 f3 00 00 00 00 00 00 00 00
 ff20000007723a80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
>ff20000007723b00: 00 00 00 f3 f3 f3 f3 f3 00 00 00 00 00 00 00 00
                                                          ^
 ff20000007723b80: 00 00 f3 f3 00 00 00 00 00 00 00 00 00 00 00 00
 ff20000007723c00: 00 00 00 00 00 00 00 00 00 00 00 00 f1 f1 f1 f1
==================================================================