================================================================== BUG: KASAN: stack-out-of-bounds in user_mode arch/x86/include/asm/ptrace.h:131 [inline] BUG: KASAN: stack-out-of-bounds in unwind_next_frame+0x10a0/0x1400 arch/x86/kernel/unwind_orc.c:410 Read of size 8 at addr ffff888052cb7ca0 by task syz-executor.3/2805 CPU: 1 PID: 2805 Comm: syz-executor.3 Not tainted 4.19.211-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+0x1fc/0x2ef lib/dump_stack.c:118 print_address_description.cold+0x54/0x219 mm/kasan/report.c:256 kasan_report_error.cold+0x8a/0x1b9 mm/kasan/report.c:354 kasan_report mm/kasan/report.c:412 [inline] __asan_report_load8_noabort+0x88/0x90 mm/kasan/report.c:433 user_mode arch/x86/include/asm/ptrace.h:131 [inline] unwind_next_frame+0x10a0/0x1400 arch/x86/kernel/unwind_orc.c:410 __save_stack_trace+0x9f/0x190 arch/x86/kernel/stacktrace.c:44 save_stack mm/kasan/kasan.c:448 [inline] set_track mm/kasan/kasan.c:460 [inline] __kasan_slab_free+0x126/0x1f0 mm/kasan/kasan.c:521 __cache_free mm/slab.c:3503 [inline] kmem_cache_free+0x7f/0x260 mm/slab.c:3765 __rcu_reclaim kernel/rcu/rcu.h:236 [inline] rcu_do_batch kernel/rcu/tree.c:2584 [inline] invoke_rcu_callbacks kernel/rcu/tree.c:2897 [inline] __rcu_process_callbacks kernel/rcu/tree.c:2864 [inline] rcu_process_callbacks+0x8ff/0x18b0 kernel/rcu/tree.c:2881 __do_softirq+0x265/0x980 kernel/softirq.c:292 invoke_softirq kernel/softirq.c:372 [inline] irq_exit+0x215/0x260 kernel/softirq.c:412 exiting_irq arch/x86/include/asm/apic.h:536 [inline] smp_apic_timer_interrupt+0x136/0x550 arch/x86/kernel/apic/apic.c:1098 apic_timer_interrupt+0xf/0x20 arch/x86/entry/entry_64.S:894 RIP: 0010:arch_local_save_flags arch/x86/include/asm/paravirt.h:784 [inline] RIP: 0010:arch_local_irq_save arch/x86/include/asm/paravirt.h:806 [inline] RIP: 0010:lock_acquire+0x97/0x3c0 kernel/locking/lockdep.c:3903 Code: 82 f1 89 48 ba 00 00 00 00 00 fc ff df 48 c1 e8 03 80 3c 10 00 0f 85 eb 02 00 00 48 83 3d 50 2f a6 08 00 0f 84 75 02 00 00 9c <58> 0f 1f 44 00 00 48 ba 00 00 00 00 00 fc ff df 48 89 44 24 08 48 RSP: 0018:ffff888052cb7b40 EFLAGS: 00000286 ORIG_RAX: ffffffffffffff13 RAX: 1ffffffff13e3050 RBX: ffff888097f66240 RCX: 0000000000000000 RDX: dffffc0000000000 RSI: 0000000000000000 RDI: ffff888097f66ac4 RBP: ffff88809253d5e0 R08: 0000000000000001 R09: 0000000000000000 R10: 0000000000000005 R11: 0000000000000000 R12: 0000000000000001 R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000001 pipe_lock_nested fs/pipe.c:77 [inline] pipe_lock+0x63/0x80 fs/pipe.c:85 __trace_hardirqs_on_caller kernel/locking/lockdep.c:2839 [inline] lockdep_hardirqs_on+0x3a8/0x5c0 kernel/locking/lockdep.c:2884 trace_hardirqs_on_thunk+0x1a/0x1c retint_kernel+0x2d/0x2d RIP: 0010:__write_once_size include/linux/compiler.h:290 [inline] RIP: 0010:__sanitizer_cov_trace_pc+0x44/0x50 kernel/kcov.c:109 Code: 75 2b 8b 90 60 13 00 00 83 fa 02 75 20 48 8b 88 68 13 00 00 8b 80 64 13 00 00 48 8b 11 48 83 c2 01 48 39 d0 76 07 48 89 34 d1 <48> 89 11 c3 0f 1f 84 00 00 00 00 00 49 89 f1 49 89 fa 65 48 8b 34 RSP: 0018:ffff888052cb7cc0 EFLAGS: 00000216 ORIG_RAX: ffffffffffffff13 RAX: 0000000000040000 RBX: ffff88823b88e2a0 RCX: ffffc90006bd9000 RDX: 00000000000000a1 RSI: ffffffff8343d755 RDI: ffff8880a8a00088 RBP: ffff8880b2e5b080 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000 R13: ffff88823b88e2a0 R14: 0000000000000002 R15: ffff8880b2e5b080 kref_put include/linux/kref.h:69 [inline] aa_put_label security/apparmor/include/label.h:448 [inline] end_current_label_crit_section security/apparmor/include/cred.h:113 [inline] common_file_perm+0x4e5/0x850 security/apparmor/lsm.c:462 fsnotify_perm include/linux/fsnotify.h:52 [inline] security_file_permission+0x1c0/0x220 security/security.c:875 The buggy address belongs to the page: page:ffffea00014b2dc0 count:0 mapcount:0 mapping:0000000000000000 index:0x0 flags: 0xfff00000000000() raw: 00fff00000000000 0000000000000000 ffffffff014b0101 0000000000000000 raw: 0000000000000000 0000000000000000 00000000ffffffff 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff888052cb7b80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 f1 f1 ffff888052cb7c00: f1 f1 00 00 00 f2 00 00 00 f2 f2 f2 00 00 00 00 >ffff888052cb7c80: 00 f3 f3 f3 f3 f3 00 00 00 00 00 00 00 00 00 00 ^ ffff888052cb7d00: 00 00 00 00 00 f1 f1 f1 f1 00 00 00 00 00 00 00 ffff888052cb7d80: f3 f3 f3 f3 f3 00 00 00 00 00 00 00 00 00 00 00 ================================================================== ---------------- Code disassembly (best guess), 3 bytes skipped: 0: 48 ba 00 00 00 00 00 movabs $0xdffffc0000000000,%rdx 7: fc ff df a: 48 c1 e8 03 shr $0x3,%rax e: 80 3c 10 00 cmpb $0x0,(%rax,%rdx,1) 12: 0f 85 eb 02 00 00 jne 0x303 18: 48 83 3d 50 2f a6 08 cmpq $0x0,0x8a62f50(%rip) # 0x8a62f70 1f: 00 20: 0f 84 75 02 00 00 je 0x29b 26: 9c pushfq * 27: 58 pop %rax <-- trapping instruction 28: 0f 1f 44 00 00 nopl 0x0(%rax,%rax,1) 2d: 48 ba 00 00 00 00 00 movabs $0xdffffc0000000000,%rdx 34: fc ff df 37: 48 89 44 24 08 mov %rax,0x8(%rsp) 3c: 48 rex.W