[] preempt_schedule_irq+0x7c/0x18e kernel/sched/core.c:7047 [] raw_irqentry_exit_cond_resched kernel/entry/common.c:305 [inline] [] raw_irqentry_exit_cond_resched kernel/entry/common.c:297 [inline] [] irqentry_exit+0x138/0x17a kernel/entry/common.c:348 [] do_irq+0x34/0x4c arch/riscv/kernel/traps.c:375 ================================================================== BUG: KASAN: stack-out-of-bounds in walk_stackframe+0x3a0/0x410 arch/riscv/kernel/stacktrace.c:59 Read of size 8 at addr ff200000000cba18 by task kworker/0:0/18354 CPU: 0 PID: 18354 Comm: kworker/0:0 Not tainted 6.8.0-rc1-syzkaller #0 Hardware name: riscv-virtio,qemu (DT) Workqueue: usb_hub_wq hub_event 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+0x4a0/0x5a0 drivers/input/input.c:389 [] input_handle_event+0x11e/0xc9e drivers/input/input.c:406 [] input_event drivers/input/input.c:435 [inline] [] input_event+0x96/0xc8 drivers/input/input.c:427 [] hidinput_hid_event+0x7d0/0x238e drivers/hid/hid-input.c:1731 [] hid_process_event+0x48a/0x59e drivers/hid/hid-core.c:1541 [] hid_input_array_field+0x49a/0x66a drivers/hid/hid-core.c:1653 [] hid_process_report drivers/hid/hid-core.c:1695 [inline] [] hid_report_raw_event+0x9ce/0x10a6 drivers/hid/hid-core.c:2016 [] hid_input_report+0x2f6/0x3fa drivers/hid/hid-core.c:2090 [] hid_irq_in+0x31c/0x6d0 drivers/hid/usbhid/hid-core.c:284 [] __usb_hcd_giveback_urb+0x34a/0x5d4 drivers/usb/core/hcd.c:1650 [] usb_hcd_giveback_urb+0x35a/0x3fc drivers/usb/core/hcd.c:1733 [] dummy_timer+0x1318/0x3348 drivers/usb/gadget/udc/dummy_hcd.c:1987 [] 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 [ff200000000c8000, ff200000000cd000) created by: kernel_clone+0x11e/0xa16 kernel/fork.c:2901 The buggy address belongs to the physical page: page:ff1c00000232a3c0 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x8ca8f 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 2, tgid 2 (kthreadd), ts 942597000, 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_node include/linux/gfp.h:238 [inline] alloc_pages_node include/linux/gfp.h:261 [inline] vm_area_alloc_pages mm/vmalloc.c:3065 [inline] __vmalloc_area_node mm/vmalloc.c:3139 [inline] __vmalloc_node_range+0x592/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 kernel_thread+0xf4/0x126 kernel/fork.c:2963 create_kthread kernel/kthread.c:411 [inline] kthreadd+0x46e/0x6e8 kernel/kthread.c:764 ret_from_fork+0xe/0x1c arch/riscv/kernel/entry.S:229 page_owner free stack trace missing Memory state around the buggy address: ff200000000cb900: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ff200000000cb980: 00 00 00 00 f1 f1 f1 f1 f1 f1 04 f2 00 00 f2 f2 >ff200000000cba00: 00 00 00 f3 f3 f3 f3 f3 00 00 00 00 00 00 00 00 ^ ff200000000cba80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ff200000000cbb00: 00 00 00 00 00 00 00 00 00 00 00 00 f1 f1 f1 f1 ==================================================================