====================================== | [ 4024.960974][ T11] ================================================================== | [ 4024.961444][ T11] BUG: KASAN: slab-use-after-free in vxlan_netdevice_event (drivers/net/vxlan/vxlan_core.c:4613 drivers/net/vxlan/vxlan_core.c:4636) vxlan | [ 4024.961918][ T11] Read of size 8 at addr ffff888007e80bd0 by task kworker/u8:0/11 | [ 4024.962316][ T11] [ 4024.962848][ T11] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.16.3-0-ga6ed6b701f0a-prebuilt.qemu.org 04/01/2014 [ 4024.963455][ T11] Workqueue: netns cleanup_net [ 4024.963708][ T11] Call Trace: [ 4024.963883][ T11] [ 4024.964032][ T11] dump_stack_lvl (lib/dump_stack.c:107) [ 4024.964272][ T11] print_address_description.constprop.0 (mm/kasan/report.c:378) [ 4024.964606][ T11] ? vxlan_netdevice_event (drivers/net/vxlan/vxlan_core.c:4613 drivers/net/vxlan/vxlan_core.c:4636) vxlan [ 4024.964928][ T11] print_report (mm/kasan/report.c:489) [ 4024.965153][ 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) [ 4024.965407][ T11] kasan_report (mm/kasan/report.c:603) [ 4024.965629][ T11] ? vxlan_netdevice_event (drivers/net/vxlan/vxlan_core.c:4613 drivers/net/vxlan/vxlan_core.c:4636) vxlan [ 4024.965952][ T11] vxlan_netdevice_event (drivers/net/vxlan/vxlan_core.c:4613 drivers/net/vxlan/vxlan_core.c:4636) vxlan [ 4024.966264][ T11] ? __pfx_vlan_device_event (net/8021q/vlan.c:362) 8021q [ 4024.966583][ T11] ? __pfx_vxlan_netdevice_event (drivers/net/vxlan/vxlan_core.c:4631) vxlan [ 4024.966920][ T11] ? netconsole_netdev_event (drivers/net/netconsole.c:991) [ 4024.967209][ T11] notifier_call_chain (kernel/notifier.c:93) [ 4024.967468][ T11] unregister_netdevice_many_notify (net/core/dev.c:11095) [ 4024.967789][ 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) [ 4024.968032][ T11] ? __pfx_unregister_netdevice_many_notify (net/core/dev.c:11035) [ 4024.968376][ T11] ? vrf_dellink (drivers/net/vrf.c:1708) vrf [ 4024.968643][ T11] ? __pfx_unregister_netdevice_queue (net/core/dev.c:11019) [ 4024.968958][ T11] default_device_exit_batch (net/core/dev.c:11629) [ 4024.969241][ T11] ? __pfx_default_device_exit_batch (net/core/dev.c:11604) [ 4024.969550][ 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) [ 4024.969792][ 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) [ 4024.970097][ T11] cleanup_net (net/core/net_namespace.c:636 (discriminator 3)) [ 4024.970329][ T11] ? __pfx_lock_acquire.part.0 (kernel/locking/lockdep.c:5719) [ 4024.970613][ T11] ? __pfx_cleanup_net (net/core/net_namespace.c:581) [ 4024.970863][ T11] ? lock_acquire (./include/trace/events/lock.h:24 kernel/locking/lockdep.c:5725) [ 4024.971099][ T11] ? process_one_work (kernel/workqueue.c:2609) [ 4024.971359][ T11] process_one_work (kernel/workqueue.c:2633) [ 4024.971609][ 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) [ 4024.971843][ T11] ? __pfx_process_one_work (kernel/workqueue.c:2542) [ 4024.972120][ T11] ? assign_work (kernel/workqueue.c:1101) [ 4024.972355][ T11] worker_thread (kernel/workqueue.c:2700 kernel/workqueue.c:2787) [ 4024.972597][ T11] ? __pfx_worker_thread (kernel/workqueue.c:2733) [ 4024.972855][ T11] kthread (kernel/kthread.c:388) [ 4024.973066][ T11] ? __pfx_kthread (kernel/kthread.c:341) [ 4024.973301][ T11] ret_from_fork (arch/x86/kernel/process.c:147) [ 4024.973530][ T11] ? __pfx_kthread (kernel/kthread.c:341) [ 4024.973762][ T11] ret_from_fork_asm (arch/x86/entry/entry_64.S:250) | [ 4024.991538][ T11] ================================================================== | [ 4024.992338][ T11] Disabling lock debugging due to kernel taint | [ 4024.992761][ T11] general protection fault, probably for non-canonical address 0xdffffc002000007d: 0000 [#1] PREEMPT SMP KASAN NOPTI | [ 4024.993396][ T11] KASAN: probably user-memory-access in range [0x00000001000003e8-0x00000001000003ef] [ 4024.994347][ T11] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.16.3-0-ga6ed6b701f0a-prebuilt.qemu.org 04/01/2014 [ 4024.994955][ T11] Workqueue: netns cleanup_net [ 4024.995199][ T11] RIP: 0010:vxlan_netdevice_event (drivers/net/vxlan/vxlan_core.c:4613 drivers/net/vxlan/vxlan_core.c:4636) vxlan [ 4024.995561][ T11] Code: 00 00 00 48 b9 00 00 00 00 00 fc ff df 49 89 c0 48 89 44 24 08 49 c1 e8 03 4d 8d 24 08 eb 2c 48 8d 53 30 48 89 d0 48 c1 e8 03 <80> 3c 08 00 0f 85 e0 00 00 00 48 8b 43 30 49 89 dd 48 83 e8 30 49 All code ======== 0: 00 00 add %al,(%rax) 2: 00 48 b9 add %cl,-0x47(%rax) 5: 00 00 add %al,(%rax) 7: 00 00 add %al,(%rax) 9: 00 fc add %bh,%ah b: ff (bad) c: df 49 89 fisttps -0x77(%rcx) f: c0 48 89 44 rorb $0x44,-0x77(%rax) 13: 24 08 and $0x8,%al 15: 49 c1 e8 03 shr $0x3,%r8 19: 4d 8d 24 08 lea (%r8,%rcx,1),%r12 1d: eb 2c jmp 0x4b 1f: 48 8d 53 30 lea 0x30(%rbx),%rdx 23: 48 89 d0 mov %rdx,%rax 26: 48 c1 e8 03 shr $0x3,%rax 2a:* 80 3c 08 00 cmpb $0x0,(%rax,%rcx,1) <-- trapping instruction 2e: 0f 85 e0 00 00 00 jne 0x114 34: 48 8b 43 30 mov 0x30(%rbx),%rax 38: 49 89 dd mov %rbx,%r13 3b: 48 83 e8 30 sub $0x30,%rax 3f: 49 rex.WB Code starting with the faulting instruction =========================================== 0: 80 3c 08 00 cmpb $0x0,(%rax,%rcx,1) 4: 0f 85 e0 00 00 00 jne 0xea a: 48 8b 43 30 mov 0x30(%rbx),%rax e: 49 89 dd mov %rbx,%r13 11: 48 83 e8 30 sub $0x30,%rax 15: 49 rex.WB [ 4024.996524][ T11] RSP: 0018:ffffc900000bf980 EFLAGS: 00010206 [ 4024.996837][ T11] RAX: 000000002000007d RBX: 00000001000003b8 RCX: dffffc0000000000 [ 4024.997233][ T11] RDX: 00000001000003e8 RSI: 0000000000000004 RDI: ffff888007e80c24 [ 4024.997652][ T11] RBP: 1ffff92000017f33 R08: 1ffff1100135381a R09: ffffc900000bf9b8 [ 4024.998091][ T11] R10: ffffffffabd3ca07 R11: 205d313154202020 R12: ffffed100135381a [ 4024.998507][ T11] R13: ffff888007e80ba0 R14: ffff888009ab9000 R15: ffff888009a9c000 [ 4024.998904][ T11] FS: 0000000000000000(0000) GS:ffff888035200000(0000) knlGS:0000000000000000 [ 4024.999350][ T11] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 4024.999681][ T11] CR2: 00007f612c5b1270 CR3: 0000000005ccc002 CR4: 0000000000770ef0 [ 4025.000088][ T11] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 [ 4025.000491][ T11] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 [ 4025.000887][ T11] PKRU: 55555554 [ 4025.001068][ T11] Call Trace: [ 4025.001238][ T11] [ 4025.001395][ T11] ? die_addr (arch/x86/kernel/dumpstack.c:421 arch/x86/kernel/dumpstack.c:460) [ 4025.001613][ T11] ? exc_general_protection (arch/x86/kernel/traps.c:701 arch/x86/kernel/traps.c:643) [ 4025.001897][ T11] ? asm_exc_general_protection (./arch/x86/include/asm/idtentry.h:564) [ 4025.002190][ T11] ? vxlan_netdevice_event (drivers/net/vxlan/vxlan_core.c:4613 drivers/net/vxlan/vxlan_core.c:4636) vxlan [ 4025.002514][ T11] ? __pfx_vxlan_netdevice_event (drivers/net/vxlan/vxlan_core.c:4631) vxlan [ 4025.002856][ T11] ? netconsole_netdev_event (drivers/net/netconsole.c:991) [ 4025.003143][ T11] notifier_call_chain (kernel/notifier.c:93) [ 4025.003402][ T11] unregister_netdevice_many_notify (net/core/dev.c:11095) [ 4025.003722][ 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) [ 4025.003963][ T11] ? __pfx_unregister_netdevice_many_notify (net/core/dev.c:11035) [ 4025.004302][ T11] ? vrf_dellink (drivers/net/vrf.c:1708) vrf [ 4025.004572][ T11] ? __pfx_unregister_netdevice_queue (net/core/dev.c:11019) [ 4025.004893][ T11] default_device_exit_batch (net/core/dev.c:11629) [ 4025.005177][ T11] ? __pfx_default_device_exit_batch (net/core/dev.c:11604) [ 4025.005486][ 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) [ 4025.005727][ 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) [ 4025.006031][ T11] cleanup_net (net/core/net_namespace.c:636 (discriminator 3)) [ 4025.006262][ T11] ? __pfx_lock_acquire.part.0 (kernel/locking/lockdep.c:5719) [ 4025.006551][ T11] ? __pfx_cleanup_net (net/core/net_namespace.c:581) [ 4025.006802][ T11] ? lock_acquire (./include/trace/events/lock.h:24 kernel/locking/lockdep.c:5725) [ 4025.007039][ T11] ? process_one_work (kernel/workqueue.c:2609) [ 4025.007299][ T11] process_one_work (kernel/workqueue.c:2633) [ 4025.007551][ 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) [ 4025.007782][ T11] ? __pfx_process_one_work (kernel/workqueue.c:2542) [ 4025.008054][ T11] ? assign_work (kernel/workqueue.c:1101) [ 4025.008300][ T11] worker_thread (kernel/workqueue.c:2700 kernel/workqueue.c:2787) [ 4025.008541][ T11] ? __pfx_worker_thread (kernel/workqueue.c:2733) [ 4025.008802][ T11] kthread (kernel/kthread.c:388) [ 4025.009008][ T11] ? __pfx_kthread (kernel/kthread.c:341) [ 4025.009242][ T11] ret_from_fork (arch/x86/kernel/process.c:147) [ 4025.009466][ T11] ? __pfx_kthread (kernel/kthread.c:341) Finger prints: dump_stack_lvl:print_report:kasan_report:vxlan_netdevice_event vxlan_netdevice_event:notifier_call_chain:unregister_netdevice_many_notify:default_device_exit_batch