====================================== | [ 4998.220052][ C0] ================================================================== | [ 4998.220325][ C0] BUG: KASAN: slab-use-after-free in dst_destroy (net/core/dst.c:115) | [ 4998.220564][ C0] Read of size 8 at addr ffff88800a39d730 by task swapper/0/0 | [ 4998.220785][ C0] [ 4998.221114][ C0] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.16.3-0-ga6ed6b701f0a-prebuilt.qemu.org 04/01/2014 [ 4998.221454][ C0] Call Trace: [ 4998.221570][ C0] [ 4998.221652][ C0] dump_stack_lvl (lib/dump_stack.c:117) [ 4998.221815][ C0] print_address_description.constprop.0 (mm/kasan/report.c:378) [ 4998.221998][ C0] ? dst_destroy (net/core/dst.c:115) [ 4998.222154][ C0] print_report (mm/kasan/report.c:489) [ 4998.222302][ C0] ? 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) [ 4998.222464][ C0] kasan_report (mm/kasan/report.c:603) [ 4998.222596][ C0] ? dst_destroy (net/core/dst.c:115) [ 4998.222770][ C0] dst_destroy (net/core/dst.c:115) [ 4998.222921][ C0] ? rcu_do_batch (kernel/rcu/tree.c:2196) [ 4998.223091][ C0] rcu_do_batch (kernel/rcu/tree.c:2196) [ 4998.223238][ C0] ? __pfx_rcu_do_batch (kernel/rcu/tree.c:2120) [ 4998.223390][ C0] ? lockdep_hardirqs_on_prepare.part.0 (kernel/locking/lockdep.c:4292 kernel/locking/lockdep.c:4359) [ 4998.223583][ C0] rcu_core (kernel/rcu/tree.c:2473) [ 4998.223699][ C0] __do_softirq (kernel/softirq.c:554) [ 4998.223858][ C0] irq_exit_rcu (kernel/softirq.c:428 kernel/softirq.c:633 kernel/softirq.c:645) [ 4998.223984][ C0] sysvec_apic_timer_interrupt (arch/x86/kernel/apic/apic.c:1043 arch/x86/kernel/apic/apic.c:1043) [ 4998.224137][ C0] [ 4998.224215][ C0] [ 4998.224297][ C0] asm_sysvec_apic_timer_interrupt (./arch/x86/include/asm/idtentry.h:702) [ 4998.224490][ C0] RIP: 0010:default_idle (./arch/x86/include/asm/irqflags.h:37 ./arch/x86/include/asm/irqflags.h:72 arch/x86/kernel/process.c:743) [ 4998.224649][ C0] 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 [ 4998.225176][ C0] RSP: 0018:ffffffff92a07e00 EFLAGS: 00000246 [ 4998.225371][ C0] RAX: 0000000005ad0005 RBX: 1ffffffff2540fc2 RCX: ffffffff91b526a5 [ 4998.225611][ C0] RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffffffff8f2aefc4 [ 4998.225834][ C0] RBP: 0000000000000000 R08: 0000000000000001 R09: ffffed1005ec709c [ 4998.226056][ C0] R10: ffff88802f6384e3 R11: ffff88802f63de40 R12: 0000000000000000 [ 4998.226286][ C0] R13: ffffffff92a31000 R14: dffffc0000000000 R15: 0000000000014770 [ 4998.226621][ C0] ? ct_kernel_exit.constprop.0 (kernel/context_tracking.c:147) [ 4998.226772][ C0] ? cpuidle_idle_call (kernel/sched/idle.c:192) [ 4998.226928][ C0] default_idle_call (./include/linux/cpuidle.h:143 kernel/sched/idle.c:118) [ 4998.227076][ C0] cpuidle_idle_call (kernel/sched/idle.c:192) [ 4998.227328][ C0] ? __pfx_cpuidle_idle_call (kernel/sched/idle.c:168) [ 4998.227482][ C0] ? tsc_verify_tsc_adjust (arch/x86/kernel/tsc_sync.c:59) [ 4998.227634][ C0] do_idle (kernel/sched/idle.c:332) [ 4998.227751][ C0] cpu_startup_entry (kernel/sched/idle.c:429 (discriminator 1)) [ 4998.227993][ C0] rest_init (./include/linux/rcupdate.h:782 init/main.c:710) [ 4998.228104][ C0] start_kernel (init/main.c:1031 (discriminator 1)) [ 4998.228259][ C0] x86_64_start_reservations (arch/x86/kernel/head64.c:495) [ 4998.228419][ C0] x86_64_start_kernel (arch/x86/kernel/head64.c:437 (discriminator 17)) Finger prints: print_report:kasan_report:dst_destroy:rcu_do_batch:rcu_core