================================================================== BUG: KASAN: stack-out-of-bounds in deref_stack_regs arch/x86/kernel/unwind_orc.c:308 [inline] BUG: KASAN: stack-out-of-bounds in unwind_next_frame+0x1757/0x1810 arch/x86/kernel/unwind_orc.c:437 Read of size 8 at addr ffff8881c66a7d40 by task syz-executor.2/8433 CPU: 1 PID: 8433 Comm: syz-executor.2 Not tainted 4.14.157-syzkaller #0 Call Trace: __dump_stack lib/dump_stack.c:17 [inline] dump_stack+0xe5/0x154 lib/dump_stack.c:58 print_address_description+0x60/0x226 mm/kasan/report.c:187 __kasan_report.cold+0x1a/0x41 mm/kasan/report.c:316 deref_stack_regs arch/x86/kernel/unwind_orc.c:308 [inline] unwind_next_frame+0x1757/0x1810 arch/x86/kernel/unwind_orc.c:437 perf_callchain_kernel+0x3a0/0x540 arch/x86/events/core.c:2338 get_perf_callchain+0x2f5/0x770 kernel/events/callchain.c:217 perf_callchain+0x147/0x190 kernel/events/callchain.c:190 perf_prepare_sample+0x6a8/0x1360 kernel/events/core.c:6149 __perf_event_output kernel/events/core.c:6265 [inline] perf_event_output_forward+0xdc/0x220 kernel/events/core.c:6283 __perf_event_overflow+0x12d/0x340 kernel/events/core.c:7541 perf_swevent_hrtimer+0x238/0x390 kernel/events/core.c:8746 __run_hrtimer kernel/time/hrtimer.c:1259 [inline] __hrtimer_run_queues+0x28b/0xc40 kernel/time/hrtimer.c:1323 hrtimer_interrupt+0x1bd/0x490 kernel/time/hrtimer.c:1357 local_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1075 [inline] smp_apic_timer_interrupt+0x147/0x650 arch/x86/kernel/apic/apic.c:1100 apic_timer_interrupt+0x8c/0xa0 arch/x86/entry/entry_64.S:792 RIP: 0010:arch_local_save_flags arch/x86/include/asm/paravirt.h:774 [inline] RIP: 0010:arch_local_irq_save arch/x86/include/asm/paravirt.h:796 [inline] RIP: 0010:lock_is_held_type+0x54/0x150 kernel/locking/lockdep.c:4028 RSP: 0018:ffff8881c66a7af0 EFLAGS: 00000246 ORIG_RAX: ffffffffffffff10 RAX: 0000000000000000 RBX: ffff888195e35e00 RCX: 0000000000000000 RDX: 0000000000000000 RSI: 00000000ffffffff RDI: ffff888195e3662c RBP: ffffffffb32d5220 R08: 0000000000000001 R09: ffffed103b7244fa R10: ffffed103b7244f9 R11: ffff8881db9227cf R12: ffffffffb1880075 R13: 0000000000000000 R14: ffff8881d2db0108 R15: ffffed103a5b6022 context_destroy security/selinux/ss/context.h:145 [inline] security_compute_sid.part.0+0xaa5/0x10a0 security/selinux/ss/services.c:1743 retint_kernel+0x2d/0x2d RIP: b1003b9b:selinux_socket_create+0x2e0/0x4e7 RSP: b1855410:ffffffffb306d6a8 EFLAGS: 41b58ab3 ORIG_RAX: 00000000000000cd RAX: ffff8881d624b450 RBX: 00000000000000cd RCX: 1ffff11038cd4fa7 RDX: 0000000000000018 RSI: 0000000000000000 RDI: ffff8881d624b454 RBP: 0000000000000018 R08: 0000000000000001 R09: ffffffffb1883f6b R10: 0000000000000000 R11: 00000000000000cd R12: ffff8881c66a7d58 R13: 0000000000000001 R14: 8698deee5dfcfe00 R15: 0000000000000000 The buggy address belongs to the page: page:ffffea000719a9c0 count:0 mapcount:0 mapping: (null) index:0x0 flags: 0x4000000000000000() raw: 4000000000000000 0000000000000000 0000000000000000 00000000ffffffff raw: 0000000000000000 ffffea000719a9e0 0000000000000000 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff8881c66a7c00: f2 f2 f2 f2 f2 00 00 00 00 00 00 00 00 00 f3 f3 ffff8881c66a7c80: f3 f3 f3 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff8881c66a7d00: 00 00 00 00 00 00 00 f1 f1 f1 f1 04 f3 f3 f3 00 ^ ffff8881c66a7d80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff8881c66a7e00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 f1 f1 ==================================================================