================================================================== 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 ffff88808c7ef648 by task syz-executor.1/9942 CPU: 0 PID: 9942 Comm: syz-executor.1 Not tainted 4.14.292-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/26/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+0x3c8/0x460 kernel/events/core.c:7663 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 slab_pre_alloc_hook mm/slab.h:417 [inline] slab_alloc mm/slab.c:3376 [inline] __do_kmalloc mm/slab.c:3718 [inline] __kmalloc+0x56/0x400 mm/slab.c:3729 kmalloc include/linux/slab.h:493 [inline] kzalloc include/linux/slab.h:661 [inline] crypto_create_tfm+0x79/0x2d0 crypto/api.c:453 crypto_alloc_tfm+0x11a/0x250 crypto/api.c:538 ima_alloc_tfm+0x86/0xc0 security/integrity/ima/ima_crypto.c:95 ima_calc_field_array_hash+0x47/0xb0 security/integrity/ima/ima_crypto.c:531 ima_store_template+0xf5/0x220 security/integrity/ima/ima_api.c:106 ima_store_measurement+0x189/0x420 security/integrity/ima/ima_api.c:297 process_measurement+0x8db/0xb20 security/integrity/ima/ima_main.c:272 do_last fs/namei.c:3435 [inline] path_openat+0x10ad/0x2970 fs/namei.c:3571 do_filp_open+0x179/0x3c0 fs/namei.c:3605 do_sys_open+0x296/0x410 fs/open.c:1081 do_syscall_64+0x1d5/0x640 arch/x86/entry/common.c:292 entry_SYSCALL_64_after_hwframe+0x46/0xbb RIP: 0033:0x7fb1aa018409 RSP: 002b:00007fb1a898d168 EFLAGS: 00000246 ORIG_RAX: 0000000000000101 RAX: ffffffffffffffda RBX: 00007fb1aa12af80 RCX: 00007fb1aa018409 RDX: 0000000000100002 RSI: 0000000020000100 RDI: ffffffffffffff9c RBP: 00007fb1aa073367 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffc9268c38f R14: 00007fb1a898d300 R15: 0000000000022000 The buggy address belongs to the page: page:ffffea000231fbc0 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: ffff88808c7ef500: 00 00 00 00 00 00 00 00 00 00 00 00 00 f1 f1 f1 ffff88808c7ef580: f1 f1 f1 04 f2 00 f3 f3 f3 00 00 00 00 00 00 00 >ffff88808c7ef600: 00 00 00 f1 f1 f1 f1 04 f3 f3 f3 00 00 00 00 00 ^ ffff88808c7ef680: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff88808c7ef700: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ==================================================================