audit: type=1400 audit(1602585854.852:8): avc: denied { execmem } for pid=6494 comm="syz-executor384" scontext=system_u:system_r:kernel_t:s0 tcontext=system_u:system_r:kernel_t:s0 tclass=process permissive=1 ================================================================== BUG: KASAN: stack-out-of-bounds in get_reg arch/x86/kernel/unwind_orc.c:391 [inline] BUG: KASAN: stack-out-of-bounds in unwind_next_frame+0x18d5/0x2430 arch/x86/kernel/unwind_orc.c:557 Read of size 8 at addr ffff8880895bf7f0 by task syz-executor384/6502 CPU: 0 PID: 6502 Comm: syz-executor384 Not tainted 4.19.150-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Call Trace: __dump_stack lib/dump_stack.c:77 [inline] dump_stack+0x22c/0x33e lib/dump_stack.c:118 print_address_description.cold+0x56/0x25c mm/kasan/report.c:256 kasan_report_error.cold+0x66/0xb9 mm/kasan/report.c:354 kasan_report mm/kasan/report.c:412 [inline] __asan_report_load8_noabort+0x88/0x90 mm/kasan/report.c:433 get_reg arch/x86/kernel/unwind_orc.c:391 [inline] unwind_next_frame+0x18d5/0x2430 arch/x86/kernel/unwind_orc.c:557 perf_callchain_kernel+0x48d/0x660 arch/x86/events/core.c:2346 get_perf_callchain+0x3f9/0x940 kernel/events/callchain.c:202 perf_callchain+0x165/0x1c0 kernel/events/core.c:6448 perf_prepare_sample+0x817/0x1630 kernel/events/core.c:6475 __perf_event_output kernel/events/core.c:6590 [inline] perf_event_output_forward+0x111/0x2b0 kernel/events/core.c:6608 __perf_event_overflow+0x13c/0x370 kernel/events/core.c:7881 perf_swevent_overflow kernel/events/core.c:7957 [inline] perf_swevent_event+0x1d7/0x3f0 kernel/events/core.c:7995 perf_tp_event+0x29f/0xb50 kernel/events/core.c:8413 perf_trace_run_bpf_submit+0x144/0x270 kernel/events/core.c:8387 perf_trace_lock_acquire+0x39a/0x580 include/trace/events/lock.h:13 trace_lock_acquire include/trace/events/lock.h:13 [inline] lock_acquire+0x298/0x3f0 kernel/locking/lockdep.c:3906 __raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:110 [inline] _raw_spin_lock_irqsave+0x90/0xe0 kernel/locking/spinlock.c:152 __debug_check_no_obj_freed lib/debugobjects.c:776 [inline] debug_check_no_obj_freed+0xb5/0x482 lib/debugobjects.c:817 free_pages_prepare mm/page_alloc.c:1055 [inline] free_pcp_prepare mm/page_alloc.c:1069 [inline] free_unref_page_prepare+0x1ea/0x5f0 mm/page_alloc.c:2762 free_unref_page+0x20/0x1a0 mm/page_alloc.c:2811 pte_free arch/x86/include/asm/pgalloc.h:65 [inline] zap_deposited_table mm/huge_memory.c:1739 [inline] zap_huge_pmd+0xa26/0xf70 mm/huge_memory.c:1793 zap_pmd_range mm/memory.c:1439 [inline] zap_pud_range mm/memory.c:1481 [inline] zap_p4d_range mm/memory.c:1502 [inline] unmap_page_range+0xe4a/0x2ec0 mm/memory.c:1523 unmap_single_vma+0x198/0x300 mm/memory.c:1568 unmap_vmas+0xa9/0x180 mm/memory.c:1598 exit_mmap+0x2b9/0x530 mm/mmap.c:3093 __mmput kernel/fork.c:1015 [inline] mmput+0x14e/0x4a0 kernel/fork.c:1036 exit_mm kernel/exit.c:546 [inline] do_exit+0xb12/0x2d80 kernel/exit.c:874 do_group_exit+0x125/0x320 kernel/exit.c:990 __do_sys_exit_group kernel/exit.c:1001 [inline] __se_sys_exit_group kernel/exit.c:999 [inline] __x64_sys_exit_group+0x3a/0x50 kernel/exit.c:999 do_syscall_64+0xf9/0x670 arch/x86/entry/common.c:293 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x440058 Code: Bad RIP value. RSP: 002b:00007ffe7c715ea8 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 0000000000440058 RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000 RBP: 00000000004bf890 R08: 00000000000000e7 R09: ffffffffffffffd0 R10: 00000000ffffffff R11: 0000000000000246 R12: 0000000000000001 R13: 00000000006d1180 R14: 0000000000000000 R15: 0000000000000000 The buggy address belongs to the page: page:ffffea0002256fc0 count:0 mapcount:0 mapping:0000000000000000 index:0x0 flags: 0xfffe0000000000() raw: 00fffe0000000000 0000000000000000 ffffffff02250101 0000000000000000 raw: 0000000000000000 0000000000000000 00000000ffffffff 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff8880895bf680: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff8880895bf700: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff8880895bf780: 00 00 00 00 f1 f1 f1 f1 f1 f1 04 f2 00 f3 f3 f3 ^ ffff8880895bf800: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff8880895bf880: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ==================================================================