================================================================== BUG: KASAN: stack-out-of-bounds in unwind_next_frame+0x1571/0x17a0 arch/x86/kernel/unwind_orc.c:470 Read of size 8 at addr ffff8880aea07c38 by task syz-executor.0/8977 CPU: 0 PID: 8977 Comm: syz-executor.0 Not tainted 4.14.172-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Call Trace: __dump_stack lib/dump_stack.c:17 [inline] dump_stack+0x13e/0x194 lib/dump_stack.c:58 print_address_description.cold+0x7c/0x1e2 mm/kasan/report.c:252 kasan_report_error mm/kasan/report.c:351 [inline] kasan_report mm/kasan/report.c:409 [inline] kasan_report.cold+0xa9/0x2ae mm/kasan/report.c:393 unwind_next_frame+0x1571/0x17a0 arch/x86/kernel/unwind_orc.c:470 perf_callchain_kernel+0x38c/0x520 arch/x86/events/core.c:2343 get_perf_callchain+0x2df/0x740 kernel/events/callchain.c:217 perf_callchain+0x147/0x190 kernel/events/callchain.c:190 perf_prepare_sample+0x75b/0x12f0 kernel/events/core.c:6154 __perf_event_output kernel/events/core.c:6270 [inline] perf_event_output_forward+0xc9/0x1f0 kernel/events/core.c:6288 __perf_event_overflow+0x113/0x310 kernel/events/core.c:7526 perf_swevent_overflow+0x17b/0x210 kernel/events/core.c:7602 perf_swevent_event+0x112/0x270 kernel/events/core.c:7640 perf_tp_event+0x611/0x7d0 kernel/events/core.c:8064 perf_trace_run_bpf_submit kernel/events/core.c:8034 [inline] perf_trace_run_bpf_submit+0x113/0x170 kernel/events/core.c:8020 perf_trace_lock_acquire+0x32c/0x4b0 include/trace/events/lock.h:13 trace_lock_acquire include/trace/events/lock.h:13 [inline] lock_acquire+0x2b8/0x3f0 kernel/locking/lockdep.c:3993 __raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:110 [inline] _raw_spin_lock_irqsave+0x8c/0xbf kernel/locking/spinlock.c:160 __debug_check_no_obj_freed lib/debugobjects.c:738 [inline] debug_check_no_obj_freed+0x125/0x6e4 lib/debugobjects.c:776 kfree+0xbb/0x260 mm/slab.c:3814 release_callchain_buffers_rcu+0x5c/0xe0 kernel/events/callchain.c:57 __rcu_reclaim kernel/rcu/rcu.h:195 [inline] rcu_do_batch kernel/rcu/tree.c:2699 [inline] invoke_rcu_callbacks kernel/rcu/tree.c:2962 [inline] __rcu_process_callbacks kernel/rcu/tree.c:2929 [inline] rcu_process_callbacks+0x792/0x1190 kernel/rcu/tree.c:2946 __do_softirq+0x254/0x9bf kernel/softirq.c:288 invoke_softirq kernel/softirq.c:368 [inline] irq_exit+0x15b/0x1a0 kernel/softirq.c:409 exiting_irq arch/x86/include/asm/apic.h:648 [inline] smp_apic_timer_interrupt+0x141/0x5e0 arch/x86/kernel/apic/apic.c:1102 apic_timer_interrupt+0x8f/0xa0 arch/x86/entry/entry_64.S:792 RIP: 0010:arch_local_irq_restore arch/x86/include/asm/paravirt.h:779 [inline] RIP: 0010:lock_is_held_type+0x17a/0x210 kernel/locking/lockdep.c:4034 RSP: 0018:ffff88809541fc98 EFLAGS: 00000286 ORIG_RAX: ffffffffffffff10 RAX: 1ffffffff0fa2ce1 RBX: 0000000000000286 RCX: 0000000000000000 RDX: dffffc0000000000 RSI: ffffffff87d84360 RDI: 0000000000000286 RBP: ffff888083446480 R08: 0000000000000000 R09: 000000000002022c R10: ffff888083446d00 R11: ffff888083446480 R12: 0000000000000001 R13: ffff88809b7f4340 R14: ffff8880834476a8 R15: ffff8880991f3804 lock_is_held include/linux/lockdep.h:437 [inline] rcu_read_lock_sched_held+0x10a/0x130 kernel/rcu/update.c:116 __fd_install+0x2a9/0x5c0 fs/file.c:607 SYSC_perf_event_open+0x1b03/0x24a0 kernel/events/core.c:10392 do_syscall_64+0x1d5/0x640 arch/x86/entry/common.c:292 entry_SYSCALL_64_after_hwframe+0x42/0xb7 RIP: 0033:0x45c479 RSP: 002b:00007fae93b6cc78 EFLAGS: 00000246 ORIG_RAX: 000000000000012a RAX: ffffffffffffffda RBX: 00007fae93b6d6d4 RCX: 000000000045c479 RDX: ffffffffffffffff RSI: 0000000000000000 RDI: 0000000020000080 RBP: 000000000076bf20 R08: 0000000000000000 R09: 0000000000000000 R10: ffffffffffffffff R11: 0000000000000246 R12: 00000000ffffffff R13: 0000000000000813 R14: 00000000004ca8bf R15: 000000000076bf2c The buggy address belongs to the page: page:ffffea0002ba81c0 count:1 mapcount:0 mapping: (null) index:0x0 flags: 0xfffe0000000800(reserved) raw: 00fffe0000000800 0000000000000000 0000000000000000 00000001ffffffff raw: ffffea0002ba81e0 ffffea0002ba81e0 0000000000000000 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff8880aea07b00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff8880aea07b80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 f1 f1 >ffff8880aea07c00: f1 f1 f1 f1 04 f2 00 f3 f3 f3 00 00 00 00 00 00 ^ ffff8880aea07c80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff8880aea07d00: 00 00 00 00 00 00 00 00 00 00 00 00 f1 f1 f1 f1 ==================================================================