====================================== | [ 5529.122476][ C2] ================================================================== | [ 5529.122710][ C2] BUG: KASAN: slab-use-after-free in dst_destroy (net/core/dst.c:115) | [ 5529.122912][ C2] Read of size 8 at addr ffff88800a6923b0 by task swapper/2/0 | [ 5529.123093][ C2] [ 5529.123358][ C2] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.16.3-0-ga6ed6b701f0a-prebuilt.qemu.org 04/01/2014 [ 5529.123645][ C2] Call Trace: [ 5529.123744][ C2] [ 5529.123813][ C2] dump_stack_lvl (lib/dump_stack.c:117) [ 5529.123948][ C2] print_address_description.constprop.0 (mm/kasan/report.c:378) [ 5529.124113][ C2] ? dst_destroy (net/core/dst.c:115) [ 5529.124242][ C2] print_report (mm/kasan/report.c:489) [ 5529.124368][ C2] ? kasan_addr_to_slab (./arch/x86/include/asm/bitops.h:206 ./arch/x86/include/asm/bitops.h:238 ./include/asm-generic/bitops/instrumented-non-atomic.h:142 ./include/linux/page-flags.h:527 mm/kasan/../slab.h:206 mm/kasan/common.c:38) [ 5529.124501][ C2] kasan_report (mm/kasan/report.c:603) [ 5529.124596][ C2] ? dst_destroy (net/core/dst.c:115) [ 5529.124722][ C2] dst_destroy (net/core/dst.c:115) [ 5529.124847][ C2] ? rcu_do_batch (kernel/rcu/tree.c:2196) [ 5529.124980][ C2] rcu_do_batch (kernel/rcu/tree.c:2196) [ 5529.125109][ C2] ? __pfx_rcu_do_batch (kernel/rcu/tree.c:2120) [ 5529.125233][ C2] ? lockdep_hardirqs_on_prepare.part.0 (kernel/locking/lockdep.c:4292 kernel/locking/lockdep.c:4359) [ 5529.125393][ C2] rcu_core (kernel/rcu/tree.c:2473) [ 5529.125490][ C2] __do_softirq (kernel/softirq.c:554) [ 5529.125622][ C2] irq_exit_rcu (kernel/softirq.c:428 kernel/softirq.c:633 kernel/softirq.c:645) [ 5529.125721][ C2] sysvec_apic_timer_interrupt (arch/x86/kernel/apic/apic.c:1043 arch/x86/kernel/apic/apic.c:1043) [ 5529.125849][ C2] [ 5529.125916][ C2] [ 5529.125980][ C2] asm_sysvec_apic_timer_interrupt (./arch/x86/include/asm/idtentry.h:702) [ 5529.126139][ C2] RIP: 0010:default_idle (./arch/x86/include/asm/irqflags.h:37 ./arch/x86/include/asm/irqflags.h:72 arch/x86/kernel/process.c:743) [ 5529.126271][ C2] Code: 4c 01 c7 4c 29 c2 e9 72 ff ff ff 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 f3 0f 1e fa 66 90 0f 00 2d d3 e6 30 00 fb f4 c3 cc cc cc cc 66 66 2e 0f 1f 84 00 00 00 00 00 90 90 90 90 90 All code ======== 0: 4c 01 c7 add %r8,%rdi 3: 4c 29 c2 sub %r8,%rdx 6: e9 72 ff ff ff jmp 0xffffffffffffff7d b: 90 nop c: 90 nop d: 90 nop e: 90 nop f: 90 nop 10: 90 nop 11: 90 nop 12: 90 nop 13: 90 nop 14: 90 nop 15: 90 nop 16: 90 nop 17: 90 nop 18: 90 nop 19: 90 nop 1a: 90 nop 1b: f3 0f 1e fa endbr64 1f: 66 90 xchg %ax,%ax 21: 0f 00 2d d3 e6 30 00 verw 0x30e6d3(%rip) # 0x30e6fb 28: fb sti 29: f4 hlt 2a:* fa cli <-- trapping instruction 2b: c3 ret 2c: cc int3 2d: cc int3 2e: cc int3 2f: cc int3 30: 66 66 2e 0f 1f 84 00 data16 cs nopw 0x0(%rax,%rax,1) 37: 00 00 00 00 3b: 90 nop 3c: 90 nop 3d: 90 nop 3e: 90 nop 3f: 90 nop Code starting with the faulting instruction =========================================== 0: fa cli 1: c3 ret 2: cc int3 3: cc int3 4: cc int3 5: cc int3 6: 66 66 2e 0f 1f 84 00 data16 cs nopw 0x0(%rax,%rax,1) d: 00 00 00 00 11: 90 nop 12: 90 nop 13: 90 nop 14: 90 nop 15: 90 nop [ 5529.126724][ C2] RSP: 0018:ffffc9000015fdf8 EFLAGS: 00000246 [ 5529.126890][ C2] RAX: 00000000061d380f RBX: 1ffff9200002bfc1 RCX: ffffffffad3526a5 [ 5529.127080][ C2] RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffffffffaaaaefc4 [ 5529.127267][ C2] RBP: 0000000000000000 R08: 0000000000000001 R09: ffffed1006c2709c [ 5529.127455][ C2] R10: ffff8880361384e3 R11: ffff88803613de40 R12: 0000000000000000 [ 5529.127714][ C2] R13: ffff888001b945c0 R14: dffffc0000000000 R15: 0000000000000000 [ 5529.127977][ C2] ? ct_kernel_exit.constprop.0 (kernel/context_tracking.c:147) [ 5529.128101][ C2] ? cpuidle_idle_call (kernel/sched/idle.c:192) [ 5529.128298][ C2] default_idle_call (./include/linux/cpuidle.h:143 kernel/sched/idle.c:118) [ 5529.128424][ C2] cpuidle_idle_call (kernel/sched/idle.c:192) [ 5529.128547][ C2] ? __pfx_cpuidle_idle_call (kernel/sched/idle.c:168) [ 5529.128673][ C2] ? tsc_verify_tsc_adjust (arch/x86/kernel/tsc_sync.c:59) [ 5529.128942][ C2] do_idle (kernel/sched/idle.c:332) [ 5529.129037][ C2] cpu_startup_entry (kernel/sched/idle.c:429 (discriminator 1)) [ 5529.129162][ C2] start_secondary (arch/x86/kernel/smpboot.c:201 arch/x86/kernel/smpboot.c:281) [ 5529.129288][ C2] ? __pfx_start_secondary (arch/x86/kernel/smpboot.c:231) Finger prints: print_report:kasan_report:dst_destroy:rcu_do_batch:rcu_core