task:kworker/0:3 state:R running task stack:0 pid:3875 ppid:2 flags:0x00000000 Workqueue: events_power_efficient wg_ratelimiter_gc_entries Call Trace: [] context_switch kernel/sched/core.c:5382 [inline] [] __schedule+0x794/0x1884 kernel/sched/core.c:6695 ================================================================== BUG: KASAN: out-of-bounds in walk_stackframe+0x120/0x2ea arch/riscv/kernel/stacktrace.c:59 Read of size 8 at addr ff20000002a57b70 by task kworker/1:4/3815 CPU: 1 PID: 3815 Comm: kworker/1:4 Not tainted 6.6.0-rc1-syzkaller-gb06fab003ae1-dirty #0 Hardware name: riscv-virtio,qemu (DT) Workqueue: usb_hub_wq hub_event Call Trace: [] dump_backtrace+0x2e/0x3c arch/riscv/kernel/stacktrace.c:122 [] show_stack+0x34/0x40 arch/riscv/kernel/stacktrace.c:128 [] __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/0x1ba mm/kasan/report.c:588 [] check_region_inline mm/kasan/generic.c:181 [inline] [] __asan_load8+0x80/0xa8 mm/kasan/generic.c:260 The buggy address belongs to the virtual mapping at [ff20000002a50000, ff20000002a59000) created by: kernel_clone+0x118/0x896 kernel/fork.c:2909 The buggy address belongs to the physical page: page:ff1c0000024f3040 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x93cc1 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 0x102dc2(GFP_HIGHUSER|__GFP_NOWARN|__GFP_ZERO), pid 2, tgid 2 (kthreadd), ts 892887995600, free_ts 527260666700 __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:1536 prep_new_page mm/page_alloc.c:1543 [inline] get_page_from_freelist+0x84a/0x121e mm/page_alloc.c:3170 __alloc_pages+0x19c/0x142e mm/page_alloc.c:4426 __alloc_pages_node include/linux/gfp.h:237 [inline] alloc_pages_node include/linux/gfp.h:260 [inline] vm_area_alloc_pages mm/vmalloc.c:3065 [inline] __vmalloc_area_node mm/vmalloc.c:3139 [inline] __vmalloc_node_range+0x516/0xec2 mm/vmalloc.c:3320 alloc_thread_stack_node kernel/fork.c:309 [inline] dup_task_struct kernel/fork.c:1118 [inline] copy_process+0x225a/0x3f1e kernel/fork.c:2327 kernel_clone+0x118/0x896 kernel/fork.c:2909 kernel_thread+0xf4/0x126 kernel/fork.c:2971 create_kthread kernel/kthread.c:411 [inline] kthreadd+0x33e/0x482 kernel/kthread.c:746 ret_from_fork+0xa/0x1c arch/riscv/kernel/entry.S:264 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:1136 [inline] free_unref_page_prepare+0x224/0x592 mm/page_alloc.c:2312 free_unref_page+0x5a/0x234 mm/page_alloc.c:2405 free_the_page mm/page_alloc.c:562 [inline] __free_pages+0x104/0x126 mm/page_alloc.c:4516 free_pages.part.0+0xd8/0x136 mm/page_alloc.c:4527 free_pages+0xe/0x18 mm/page_alloc.c:4524 Memory state around the buggy address: ff20000002a57a00: 00 00 00 00 00 00 00 00 f1 f1 f1 f1 f1 f1 04 f2 ff20000002a57a80: 00 00 f2 f2 00 00 00 f3 f3 f3 f3 f3 00 00 00 00 >ff20000002a57b00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ^ ff20000002a57b80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ff20000002a57c00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ==================================================================