====================================== | [ 330.557545][ T71] ================================================================== | [ 330.558142][ T71] BUG: KASAN: use-after-free in vxlan_netdevice_event (drivers/net/vxlan/vxlan_core.c:4613 drivers/net/vxlan/vxlan_core.c:4636) vxlan | [ 330.558749][ T71] Read of size 8 at addr ffff888006b40bf0 by task kworker/u8:1/71 | [ 330.559244][ T71] [ 330.559902][ T71] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.16.3-0-ga6ed6b701f0a-prebuilt.qemu.org 04/01/2014 [ 330.560543][ T71] Workqueue: netns cleanup_net [ 330.560819][ T71] Call Trace: [ 330.561023][ T71] [ 330.561237][ T71] dump_stack_lvl (lib/dump_stack.c:107) [ 330.561481][ T71] print_address_description.constprop.0 (mm/kasan/report.c:378) [ 330.561986][ T71] ? vxlan_netdevice_event (drivers/net/vxlan/vxlan_core.c:4613 drivers/net/vxlan/vxlan_core.c:4636) vxlan [ 330.562513][ T71] print_report (mm/kasan/report.c:489) [ 330.562878][ T71] ? 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) [ 330.563236][ T71] kasan_report (mm/kasan/report.c:603) [ 330.563563][ T71] ? vxlan_netdevice_event (drivers/net/vxlan/vxlan_core.c:4613 drivers/net/vxlan/vxlan_core.c:4636) vxlan [ 330.564051][ T71] vxlan_netdevice_event (drivers/net/vxlan/vxlan_core.c:4613 drivers/net/vxlan/vxlan_core.c:4636) vxlan [ 330.564502][ T71] ? __pfx_vxlan_netdevice_event (drivers/net/vxlan/vxlan_core.c:4631) vxlan [ 330.564859][ T71] ? netconsole_netdev_event (drivers/net/netconsole.c:991) [ 330.565159][ T71] notifier_call_chain (kernel/notifier.c:93) [ 330.565451][ T71] unregister_netdevice_many_notify (net/core/dev.c:11095) [ 330.565821][ T71] ? 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) [ 330.566088][ T71] ? 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) [ 330.566351][ T71] ? __pfx_unregister_netdevice_many_notify (net/core/dev.c:11035) [ 330.566723][ T71] ? __pfx_unregister_netdevice_queue (net/core/dev.c:11019) [ 330.567083][ T71] default_device_exit_batch (net/core/dev.c:11629) [ 330.567371][ T71] ? __pfx_default_device_exit_batch (net/core/dev.c:11604) [ 330.567715][ T71] ? ops_exit_list (net/core/net_namespace.c:169 (discriminator 3)) [ 330.568050][ T71] cleanup_net (net/core/net_namespace.c:636 (discriminator 3)) [ 330.568346][ T71] ? __pfx_lock_acquire.part.0 (kernel/locking/lockdep.c:5719) [ 330.568665][ T71] ? __pfx_cleanup_net (net/core/net_namespace.c:581) [ 330.568934][ T71] ? lock_acquire (./include/trace/events/lock.h:24 kernel/locking/lockdep.c:5725) [ 330.569253][ T71] ? process_one_work (kernel/workqueue.c:2609) [ 330.569539][ T71] process_one_work (kernel/workqueue.c:2633) [ 330.569811][ T71] ? 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) [ 330.570042][ T71] ? __pfx_process_one_work (kernel/workqueue.c:2542) [ 330.570353][ T71] ? assign_work (kernel/workqueue.c:1101) [ 330.570589][ T71] worker_thread (kernel/workqueue.c:2700 kernel/workqueue.c:2787) [ 330.570830][ T71] ? lockdep_hardirqs_on_prepare.part.0 (kernel/locking/lockdep.c:4300 kernel/locking/lockdep.c:4359) [ 330.571198][ T71] ? __pfx_worker_thread (kernel/workqueue.c:2733) [ 330.571456][ T71] ? __pfx_worker_thread (kernel/workqueue.c:2733) [ 330.571756][ T71] kthread (kernel/kthread.c:388) [ 330.571980][ T71] ? __pfx_kthread (kernel/kthread.c:341) [ 330.572271][ T71] ret_from_fork (arch/x86/kernel/process.c:147) [ 330.572596][ T71] ? __pfx_kthread (kernel/kthread.c:341) Finger prints: dump_stack_lvl:print_report:kasan_report:vxlan_netdevice_event