================================================================== BUG: KASAN: stack-out-of-bounds in unwind_next_frame+0x1360/0x17d0 arch/x86/kernel/unwind_orc.c:470 Read of size 8 at addr ffff88809da47a18 by task syz-executor.1/9910 CPU: 1 PID: 9910 Comm: syz-executor.1 Not tainted 4.14.295-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/22/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 unwind_next_frame+0x1360/0x17d0 arch/x86/kernel/unwind_orc.c:470 __save_stack_trace+0x90/0x160 arch/x86/kernel/stacktrace.c:44 save_stack mm/kasan/kasan.c:447 [inline] set_track mm/kasan/kasan.c:459 [inline] kasan_slab_free+0xc3/0x1a0 mm/kasan/kasan.c:524 __cache_free mm/slab.c:3496 [inline] kfree+0xc9/0x250 mm/slab.c:3815 aa_free_task_context+0xda/0x130 security/apparmor/context.c:54 apparmor_cred_free+0x34/0x70 security/apparmor/lsm.c:58 security_cred_free+0x71/0xb0 security/security.c:1003 put_cred_rcu+0xe3/0x300 kernel/cred.c:117 __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+0x780/0x1180 kernel/rcu/tree.c:2946 __do_softirq+0x24d/0x9ff kernel/softirq.c:288 invoke_softirq kernel/softirq.c:368 [inline] irq_exit+0x193/0x240 kernel/softirq.c:409 exiting_irq arch/x86/include/asm/apic.h:638 [inline] smp_apic_timer_interrupt+0x141/0x5e0 arch/x86/kernel/apic/apic.c:1106 apic_timer_interrupt+0x93/0xa0 arch/x86/entry/entry_64.S:793 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_acquire+0x97/0x3f0 kernel/locking/lockdep.c:3993 RSP: 0018:ffff88809da478a8 EFLAGS: 00000286 ORIG_RAX: ffffffffffffff10 RAX: 1ffffffff11e1358 RBX: ffff888096f320c0 RCX: 0000000000000000 RDX: dffffc0000000000 RSI: 0000000000000000 RDI: ffff888096f32944 RBP: ffffffff88fec280 R08: 0000000000000001 R09: 0000000000000000 R10: 0000000000000000 R11: ffff888096f320c0 R12: 0000000000000000 R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000001 pcpu_alloc+0x8e8/0xf50 mm/percpu.c:1380 __trace_hardirqs_on_caller kernel/locking/lockdep.c:2883 [inline] trace_hardirqs_on_caller+0x3a8/0x580 kernel/locking/lockdep.c:2930 trace_hardirqs_on_thunk+0x1a/0x1c retint_kernel+0x2d/0x2d RIP: 8789c400:0xffffffff014000c0 RSP: 0000:0000000000000004 EFLAGS: ffff8880aa63a808 ORIG_RAX: ffff8880aa63a820 RAX: 0000000000000004 RBX: 00000000014080c0 RCX: ffff8880a042be48 RDX: ffffffff8171a048 RSI: 0000000000000286 RDI: 0000000000000004 RBP: ffff88813fe74ac0 R08: 0000000000000001 R09: 0000000000000000 R10: 0000000000000003 R11: 00000000014000c0 R12: ffff8880aa63a480 R13: 00000000014080c0 R14: 0000000000000400 R15: ffff88813fe74ac0 The buggy address belongs to the page: page:ffffea00027691c0 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: ffff88809da47900: 00 00 00 00 00 00 00 00 00 00 00 00 00 f1 f1 f1 ffff88809da47980: f1 00 00 00 f2 00 00 00 f2 f2 f2 00 00 00 00 00 >ffff88809da47a00: f3 f3 f3 f3 f3 00 00 00 00 00 00 00 00 00 00 00 ^ ffff88809da47a80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff88809da47b00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ==================================================================