Call Trace: [] context_switch kernel/sched/core.c:5400 [inline] [] __schedule+0xc40/0x3196 kernel/sched/core.c:6727 [] preempt_schedule_common kernel/sched/core.c:6904 [inline] [] preempt_schedule+0xd2/0x1cc kernel/sched/core.c:6928 ================================================================== BUG: KASAN: stack-out-of-bounds in walk_stackframe+0x3a0/0x410 arch/riscv/kernel/stacktrace.c:59 Read of size 8 at addr ff20000000763a18 by task dhcpcd/2860 CPU: 0 PID: 2860 Comm: dhcpcd Not tainted 6.8.0-rc1-syzkaller #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:377 [inline] [] print_report+0x26e/0x57e mm/kasan/report.c:488 [] kasan_report+0xf0/0x1b8 mm/kasan/report.c:601 [] __asan_report_load8_noabort+0x12/0x1a mm/kasan/report_generic.c:381 [] walk_stackframe+0x3a0/0x410 arch/riscv/kernel/stacktrace.c:59 [] dump_backtrace+0x2e/0x3c arch/riscv/kernel/stacktrace.c:121 [] show_stack+0x34/0x40 arch/riscv/kernel/stacktrace.c:127 [] sched_show_task kernel/sched/core.c:9171 [inline] [] sched_show_task+0x446/0x5c0 kernel/sched/core.c:9145 [] show_state_filter+0xcc/0x28e kernel/sched/core.c:9216 [] show_state include/linux/sched/debug.h:21 [inline] [] fn_show_state+0x1a/0x22 drivers/tty/vt/keyboard.c:614 [] k_spec drivers/tty/vt/keyboard.c:667 [inline] [] k_spec+0xf8/0x140 drivers/tty/vt/keyboard.c:656 [] kbd_keycode drivers/tty/vt/keyboard.c:1524 [inline] [] kbd_event+0x856/0xf54 drivers/tty/vt/keyboard.c:1543 [] input_to_handler+0x374/0x466 drivers/input/input.c:132 [] input_pass_values+0x54a/0x7d0 drivers/input/input.c:161 [] input_event_dispose+0x336/0x5a0 drivers/input/input.c:378 [] input_handle_event+0x11e/0xc9e drivers/input/input.c:406 [] input_repeat_key+0x1f6/0x316 drivers/input/input.c:2263 [] call_timer_fn+0x1cc/0x7fe kernel/time/timer.c:1700 [] expire_timers kernel/time/timer.c:1751 [inline] [] __run_timers+0x830/0xae0 kernel/time/timer.c:2038 [] run_timer_softirq+0x56/0xb6 kernel/time/timer.c:2051 [] __do_softirq+0x480/0xfe2 kernel/softirq.c:553 [] invoke_softirq kernel/softirq.c:427 [inline] [] __irq_exit_rcu kernel/softirq.c:632 [inline] [] irq_exit_rcu+0x220/0x3c2 kernel/softirq.c:644 [] handle_riscv_irq+0x40/0x4c arch/riscv/kernel/traps.c:363 [] call_on_irq_stack+0x32/0x40 arch/riscv/kernel/entry.S:258 The buggy address belongs to the virtual mapping at [ff20000000760000, ff20000000765000) created by: kernel_clone+0x11e/0xa16 kernel/fork.c:2901 The buggy address belongs to the physical page: page:ff1c00000236ed80 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x8dbb6 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 25, tgid 25 (kworker/u5:0), ts 8780396400, free_ts 0 __set_page_owner+0x32/0x31e mm/page_owner.c:195 set_page_owner include/linux/page_owner.h:31 [inline] post_alloc_hook+0x9c/0xfc mm/page_alloc.c:1533 prep_new_page mm/page_alloc.c:1540 [inline] get_page_from_freelist+0x882/0x23e8 mm/page_alloc.c:3311 __alloc_pages+0x1ee/0x2032 mm/page_alloc.c:4567 alloc_pages_mpol+0xf8/0x46e mm/mempolicy.c:2133 alloc_pages+0x1f6/0x246 mm/mempolicy.c:2204 vm_area_alloc_pages mm/vmalloc.c:3063 [inline] __vmalloc_area_node mm/vmalloc.c:3139 [inline] __vmalloc_node_range+0x968/0x1316 mm/vmalloc.c:3320 alloc_thread_stack_node kernel/fork.c:307 [inline] dup_task_struct kernel/fork.c:1112 [inline] copy_process+0x2c2a/0x6b54 kernel/fork.c:2326 kernel_clone+0x11e/0xa16 kernel/fork.c:2901 user_mode_thread+0xea/0x11a kernel/fork.c:2979 call_usermodehelper_exec_work kernel/umh.c:172 [inline] call_usermodehelper_exec_work+0xd4/0x1ac kernel/umh.c:158 process_one_work+0x7ce/0x179c kernel/workqueue.c:2633 process_scheduled_works kernel/workqueue.c:2706 [inline] worker_thread+0xadc/0x10f8 kernel/workqueue.c:2787 kthread+0x28c/0x3a6 kernel/kthread.c:388 ret_from_fork+0xe/0x1c arch/riscv/kernel/entry.S:229 page_owner free stack trace missing Memory state around the buggy address: ff20000000763900: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ff20000000763980: 00 00 00 00 f1 f1 f1 f1 f1 f1 04 f2 00 00 f2 f2 >ff20000000763a00: 00 00 00 f3 f3 f3 f3 f3 00 00 00 00 00 00 00 00 ^ ff20000000763a80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ff20000000763b00: 00 00 00 00 00 00 00 00 00 00 00 00 f1 f1 f1 f1 ==================================================================