================================================================== BUG: KASAN: stack-out-of-bounds in deref_stack_regs arch/x86/kernel/unwind_orc.c:304 [inline] BUG: KASAN: stack-out-of-bounds in unwind_next_frame+0x146f/0x17d0 arch/x86/kernel/unwind_orc.c:437 Read of size 8 at addr ffff8880962579a8 by task syz-executor167/7999 CPU: 1 PID: 7999 Comm: syz-executor167 Not tainted 4.14.285-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/18/2022 Call Trace: __dump_stack lib/dump_stack.c:17 [inline] dump_stack+0x1b2/0x281 lib/dump_stack.c:58 print_address_description.cold+0x54/0x1d3 mm/kasan/report.c:252 kasan_report_error.cold+0x8a/0x191 mm/kasan/report.c:351 kasan_report mm/kasan/report.c:409 [inline] __asan_report_load8_noabort+0x68/0x70 mm/kasan/report.c:430 deref_stack_regs arch/x86/kernel/unwind_orc.c:304 [inline] unwind_next_frame+0x146f/0x17d0 arch/x86/kernel/unwind_orc.c:437 perf_callchain_kernel+0x38c/0x520 arch/x86/events/core.c:2344 get_perf_callchain+0x2de/0x740 kernel/events/callchain.c:217 perf_callchain+0x147/0x190 kernel/events/callchain.c:190 perf_prepare_sample+0xc9a/0x1370 kernel/events/core.c:6166 __perf_event_output kernel/events/core.c:6282 [inline] perf_event_output_forward+0xc9/0x1f0 kernel/events/core.c:6300 __perf_event_overflow+0x113/0x310 kernel/events/core.c:7549 perf_swevent_overflow kernel/events/core.c:7625 [inline] perf_swevent_event+0x299/0x460 kernel/events/core.c:7653 perf_tp_event+0x540/0x6e0 kernel/events/core.c:8087 perf_trace_run_bpf_submit+0x119/0x200 kernel/events/core.c:8057 perf_trace_lock+0x2d6/0x490 include/trace/events/lock.h:39 trace_lock_release include/trace/events/lock.h:58 [inline] lock_release+0x4df/0x870 kernel/locking/lockdep.c:4016 __raw_spin_unlock_irqrestore include/linux/spinlock_api_smp.h:158 [inline] _raw_spin_unlock_irqrestore+0x1b/0xe0 kernel/locking/spinlock.c:192 __debug_check_no_obj_freed lib/debugobjects.c:760 [inline] debug_check_no_obj_freed+0x2c0/0x680 lib/debugobjects.c:776 kmem_cache_free+0x156/0x2b0 mm/slab.c:3757 pgtable_pmd_page_dtor include/linux/mm.h:1864 [inline] ___pmd_free_tlb+0xa3/0xf0 arch/x86/mm/pgtable.c:76 __pmd_free_tlb arch/x86/include/asm/pgalloc.h:124 [inline] free_pmd_range mm/memory.c:505 [inline] free_pud_range mm/memory.c:523 [inline] free_p4d_range mm/memory.c:556 [inline] free_pgd_range+0x697/0xcd0 mm/memory.c:636 free_pgtables+0x1ec/0x2b0 mm/memory.c:668 exit_mmap+0x27f/0x4d0 mm/mmap.c:3059 __mmput kernel/fork.c:931 [inline] mmput kernel/fork.c:952 [inline] mmput+0xfa/0x420 kernel/fork.c:947 exit_mm kernel/exit.c:548 [inline] do_exit+0x984/0x2850 kernel/exit.c:855 do_group_exit+0x100/0x2e0 kernel/exit.c:965 SYSC_exit_group kernel/exit.c:976 [inline] SyS_exit_group+0x19/0x20 kernel/exit.c:974 do_syscall_64+0x1d5/0x640 arch/x86/entry/common.c:292 entry_SYSCALL_64_after_hwframe+0x46/0xbb RIP: 0033:0x7fa062930a89 RSP: 002b:00007ffe9f74b788 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 RAX: ffffffffffffffda RBX: 00007fa0629a4330 RCX: 00007fa062930a89 RDX: 000000000000003c RSI: 00000000000000e7 RDI: 0000000000000000 RBP: 0000000000000000 R08: ffffffffffffffc0 R09: 00007ffe9f74b978 R10: 00000000ffffffff R11: 0000000000000246 R12: 00007fa0629a4330 R13: 0000000000000001 R14: 0000000000000000 R15: 0000000000000001 The buggy address belongs to the page: page:ffffea00025895c0 count:0 mapcount:0 mapping: (null) index:0x0 flags: 0xfff00000000000() raw: 00fff00000000000 0000000000000000 0000000000000000 00000000ffffffff raw: 0000000000000000 0000000100000001 0000000000000000 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff888096257880: 00 00 00 00 00 00 00 00 00 f1 f1 f1 f1 f1 f1 04 ffff888096257900: f2 00 f3 f3 f3 00 00 00 00 00 00 00 00 00 00 f1 >ffff888096257980: f1 f1 f1 04 f3 f3 f3 00 00 00 00 00 00 00 00 00 ^ ffff888096257a00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 f1 f1 ffff888096257a80: f1 f1 00 f3 f3 f3 00 00 00 00 00 00 00 00 00 00 ==================================================================