====================================== | [ 147.099172][ T11] ================================================================== | [ 147.099605][ T11] BUG: KASAN: use-after-free in vxlan_netdevice_event (drivers/net/vxlan/vxlan_core.c:4613 drivers/net/vxlan/vxlan_core.c:4636) vxlan | [ 147.100096][ T11] Read of size 8 at addr ffff888006000bd0 by task kworker/u8:0/11 | [ 147.100513][ T11] [ 147.101090][ T11] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.16.3-0-ga6ed6b701f0a-prebuilt.qemu.org 04/01/2014 [ 147.101725][ T11] Workqueue: netns cleanup_net [ 147.101987][ T11] Call Trace: [ 147.102167][ T11] [ 147.102349][ T11] dump_stack_lvl (lib/dump_stack.c:107) [ 147.102586][ T11] print_address_description.constprop.0 (mm/kasan/report.c:378) [ 147.102956][ T11] ? vxlan_netdevice_event (drivers/net/vxlan/vxlan_core.c:4613 drivers/net/vxlan/vxlan_core.c:4636) vxlan [ 147.103314][ T11] print_report (mm/kasan/report.c:489) [ 147.103562][ T11] ? 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:481 mm/kasan/../slab.h:206 mm/kasan/common.c:38) [ 147.103842][ T11] kasan_report (mm/kasan/report.c:603) [ 147.104062][ T11] ? vxlan_netdevice_event (drivers/net/vxlan/vxlan_core.c:4613 drivers/net/vxlan/vxlan_core.c:4636) vxlan [ 147.104432][ T11] vxlan_netdevice_event (drivers/net/vxlan/vxlan_core.c:4613 drivers/net/vxlan/vxlan_core.c:4636) vxlan [ 147.104776][ T11] ? __pfx_vxlan_netdevice_event (drivers/net/vxlan/vxlan_core.c:4631) vxlan [ 147.105135][ T11] ? _raw_spin_unlock (./arch/x86/include/asm/preempt.h:94 ./include/linux/spinlock_api_smp.h:143 kernel/locking/spinlock.c:186) [ 147.105388][ T11] ? mirred_device_event (./include/linux/spinlock.h:392 net/sched/act_mirred.c:543) act_mirred [ 147.105760][ T11] notifier_call_chain (kernel/notifier.c:93) [ 147.106052][ T11] unregister_netdevice_many_notify (net/core/dev.c:11095) [ 147.106384][ T11] ? mutex_is_locked (./arch/x86/include/asm/atomic64_64.h:15 ./include/linux/atomic/atomic-arch-fallback.h:2569 ./include/linux/atomic/atomic-long.h:38 ./include/linux/atomic/atomic-instrumented.h:3161 kernel/locking/mutex.c:81 kernel/locking/mutex.c:91) [ 147.106647][ T11] ? __pfx_unregister_netdevice_many_notify (net/core/dev.c:11035) [ 147.106999][ T11] ? vrf_dellink (drivers/net/vrf.c:1708) vrf [ 147.107299][ T11] ? __pfx_unregister_netdevice_queue (net/core/dev.c:11019) [ 147.107658][ T11] default_device_exit_batch (net/core/dev.c:11629) [ 147.107964][ T11] ? __pfx_default_device_exit_batch (net/core/dev.c:11604) [ 147.108309][ T11] ? mutex_is_locked (./arch/x86/include/asm/atomic64_64.h:15 ./include/linux/atomic/atomic-arch-fallback.h:2569 ./include/linux/atomic/atomic-long.h:38 ./include/linux/atomic/atomic-instrumented.h:3161 kernel/locking/mutex.c:81 kernel/locking/mutex.c:91) [ 147.108600][ T11] ? nexthop_net_exit_batch_rtnl (net/ipv4/nexthop.c:569 net/ipv4/nexthop.c:1918 net/ipv4/nexthop.c:2426 net/ipv4/nexthop.c:3754) [ 147.108943][ T11] cleanup_net (net/core/net_namespace.c:636 (discriminator 3)) [ 147.109209][ T11] ? __pfx_lock_acquire.part.0 (kernel/locking/lockdep.c:5719) [ 147.109504][ T11] ? __pfx_cleanup_net (net/core/net_namespace.c:581) [ 147.109779][ T11] ? lock_acquire (./include/trace/events/lock.h:24 kernel/locking/lockdep.c:5725) [ 147.110080][ T11] ? process_one_work (kernel/workqueue.c:2609) [ 147.110343][ T11] process_one_work (kernel/workqueue.c:2633) [ 147.110670][ T11] ? hlock_class (./arch/x86/include/asm/bitops.h:227 ./arch/x86/include/asm/bitops.h:239 ./include/asm-generic/bitops/instrumented-non-atomic.h:142 kernel/locking/lockdep.c:228) [ 147.110927][ T11] ? __pfx_process_one_work (kernel/workqueue.c:2542) [ 147.111202][ T11] ? assign_work (kernel/workqueue.c:1101) [ 147.111467][ T11] worker_thread (kernel/workqueue.c:2700 kernel/workqueue.c:2787) [ 147.111768][ T11] ? __pfx_worker_thread (kernel/workqueue.c:2733) [ 147.112061][ T11] kthread (kernel/kthread.c:388) [ 147.112328][ T11] ? __pfx_kthread (kernel/kthread.c:341) [ 147.112573][ T11] ret_from_fork (arch/x86/kernel/process.c:147) [ 147.112837][ T11] ? __pfx_kthread (kernel/kthread.c:341) Finger prints: dump_stack_lvl:print_report:kasan_report:vxlan_netdevice_event