====================================== | [ 1932.612590][ T11] ================================================================== | [ 1932.613029][ 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 | [ 1932.613474][ T11] Read of size 8 at addr ffff88800e9f8bf0 by task kworker/u8:0/11 | [ 1932.613864][ T11] [ 1932.614392][ T11] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.16.3-0-ga6ed6b701f0a-prebuilt.qemu.org 04/01/2014 [ 1932.615006][ T11] Workqueue: netns cleanup_net [ 1932.615260][ T11] Call Trace: [ 1932.615433][ T11] [ 1932.615582][ T11] dump_stack_lvl (lib/dump_stack.c:107) [ 1932.615820][ T11] print_address_description.constprop.0 (mm/kasan/report.c:378) [ 1932.616163][ T11] ? vxlan_netdevice_event (drivers/net/vxlan/vxlan_core.c:4613 drivers/net/vxlan/vxlan_core.c:4636) vxlan [ 1932.616486][ T11] print_report (mm/kasan/report.c:489) [ 1932.616714][ 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) [ 1932.616971][ T11] kasan_report (mm/kasan/report.c:603) [ 1932.617194][ T11] ? vxlan_netdevice_event (drivers/net/vxlan/vxlan_core.c:4613 drivers/net/vxlan/vxlan_core.c:4636) vxlan [ 1932.617518][ T11] vxlan_netdevice_event (drivers/net/vxlan/vxlan_core.c:4613 drivers/net/vxlan/vxlan_core.c:4636) vxlan [ 1932.617832][ T11] ? __pfx_vxlan_netdevice_event (drivers/net/vxlan/vxlan_core.c:4631) vxlan [ 1932.618172][ T11] ? mpls_dev_notify (net/mpls/af_mpls.c:1661) mpls_router [ 1932.618497][ T11] notifier_call_chain (kernel/notifier.c:93) [ 1932.618758][ T11] unregister_netdevice_many_notify (net/core/dev.c:11095) [ 1932.619080][ 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) [ 1932.619323][ T11] ? __pfx_unregister_netdevice_many_notify (net/core/dev.c:11035) [ 1932.619664][ T11] ? __pfx_unregister_netdevice_queue (net/core/dev.c:11019) [ 1932.619981][ T11] default_device_exit_batch (net/core/dev.c:11629) [ 1932.620262][ T11] ? __pfx_default_device_exit_batch (net/core/dev.c:11604) [ 1932.620571][ 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) [ 1932.620814][ 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) [ 1932.621115][ T11] cleanup_net (net/core/net_namespace.c:636 (discriminator 3)) [ 1932.621341][ T11] ? __pfx_lock_acquire.part.0 (kernel/locking/lockdep.c:5719) [ 1932.621626][ T11] ? __pfx_cleanup_net (net/core/net_namespace.c:581) [ 1932.621875][ T11] ? lock_acquire (./include/trace/events/lock.h:24 kernel/locking/lockdep.c:5725) [ 1932.622113][ T11] ? process_one_work (kernel/workqueue.c:2609) [ 1932.622380][ T11] process_one_work (kernel/workqueue.c:2633) [ 1932.622631][ 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) [ 1932.622864][ T11] ? __pfx_process_one_work (kernel/workqueue.c:2542) [ 1932.623141][ T11] ? assign_work (kernel/workqueue.c:1101) [ 1932.623377][ T11] worker_thread (kernel/workqueue.c:2700 kernel/workqueue.c:2787) [ 1932.623618][ T11] ? __pfx_worker_thread (kernel/workqueue.c:2733) [ 1932.623877][ T11] kthread (kernel/kthread.c:388) [ 1932.624086][ T11] ? __pfx_kthread (kernel/kthread.c:341) [ 1932.624319][ T11] ret_from_fork (arch/x86/kernel/process.c:147) [ 1932.624546][ T11] ? __pfx_kthread (kernel/kthread.c:341) [ 1932.624779][ T11] ret_from_fork_asm (arch/x86/entry/entry_64.S:250) | [ 1932.630630][ T11] ================================================================== | [ 1932.631087][ T11] Disabling lock debugging due to kernel taint | [ 1932.637311][ T11] general protection fault, probably for non-canonical address 0xed6d696d6d6d6d6d: 0000 [#1] PREEMPT SMP KASAN NOPTI | [ 1932.637975][ T11] KASAN: maybe wild-memory-access in range [0x6b6b6b6b6b6b6b68-0x6b6b6b6b6b6b6b6f] [ 1932.638906][ T11] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.16.3-0-ga6ed6b701f0a-prebuilt.qemu.org 04/01/2014 [ 1932.639510][ T11] Workqueue: netns cleanup_net [ 1932.639758][ T11] RIP: 0010:vxlan_netdevice_event (drivers/net/vxlan/vxlan_core.c:4613 drivers/net/vxlan/vxlan_core.c:4636) vxlan [ 1932.640111][ 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 [ 1932.641076][ T11] RSP: 0018:ffffc900000bf980 EFLAGS: 00010202 [ 1932.641382][ T11] RAX: 0d6d6d6d6d6d6d6d RBX: 6b6b6b6b6b6b6b3b RCX: dffffc0000000000 [ 1932.641777][ T11] RDX: 6b6b6b6b6b6b6b6b RSI: 0000000000000004 RDI: ffff88800e9f8c44 [ 1932.642180][ T11] RBP: 1ffff92000017f33 R08: 1ffff11003fdf21a R09: ffffc900000bf9b8 [ 1932.642574][ T11] R10: ffffffff88551397 R11: ffffc900000bf669 R12: ffffed1003fdf21a [ 1932.642969][ T11] R13: ffff88800e9f8bc0 R14: ffff888010a1c000 R15: ffff88801fef9000 [ 1932.643362][ T11] FS: 0000000000000000(0000) GS:ffff888035200000(0000) knlGS:0000000000000000 [ 1932.643805][ T11] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 1932.644135][ T11] CR2: 00005632f2cef040 CR3: 000000001e334004 CR4: 0000000000770ef0 [ 1932.644530][ T11] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 [ 1932.644925][ T11] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 [ 1932.645321][ T11] PKRU: 55555554 [ 1932.645500][ T11] Call Trace: [ 1932.645671][ T11] [ 1932.645821][ T11] ? die_addr (arch/x86/kernel/dumpstack.c:421 arch/x86/kernel/dumpstack.c:460) [ 1932.646036][ T11] ? exc_general_protection (arch/x86/kernel/traps.c:701 arch/x86/kernel/traps.c:643) [ 1932.646319][ T11] ? asm_exc_general_protection (./arch/x86/include/asm/idtentry.h:564) [ 1932.646611][ T11] ? vxlan_netdevice_event (drivers/net/vxlan/vxlan_core.c:4613 drivers/net/vxlan/vxlan_core.c:4636) vxlan [ 1932.646933][ T11] ? __pfx_vxlan_netdevice_event (drivers/net/vxlan/vxlan_core.c:4631) vxlan [ 1932.647271][ T11] ? mpls_dev_notify (net/mpls/af_mpls.c:1661) mpls_router [ 1932.647588][ T11] notifier_call_chain (kernel/notifier.c:93) [ 1932.647845][ T11] unregister_netdevice_many_notify (net/core/dev.c:11095) [ 1932.648166][ 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) [ 1932.648409][ T11] ? __pfx_unregister_netdevice_many_notify (net/core/dev.c:11035) [ 1932.648748][ T11] ? __pfx_unregister_netdevice_queue (net/core/dev.c:11019) [ 1932.649064][ T11] default_device_exit_batch (net/core/dev.c:11629) [ 1932.649345][ T11] ? __pfx_default_device_exit_batch (net/core/dev.c:11604) [ 1932.649652][ 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) [ 1932.649892][ 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) [ 1932.650190][ T11] cleanup_net (net/core/net_namespace.c:636 (discriminator 3)) [ 1932.650417][ T11] ? __pfx_lock_acquire.part.0 (kernel/locking/lockdep.c:5719) [ 1932.650699][ T11] ? __pfx_cleanup_net (net/core/net_namespace.c:581) [ 1932.650948][ T11] ? lock_acquire (./include/trace/events/lock.h:24 kernel/locking/lockdep.c:5725) [ 1932.651245][ T11] ? process_one_work (kernel/workqueue.c:2609) [ 1932.651608][ T11] process_one_work (kernel/workqueue.c:2633) [ 1932.651957][ 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) [ 1932.652305][ T11] ? __pfx_process_one_work (kernel/workqueue.c:2542) [ 1932.652692][ T11] ? assign_work (kernel/workqueue.c:1101) [ 1932.653034][ T11] worker_thread (kernel/workqueue.c:2700 kernel/workqueue.c:2787) [ 1932.653384][ T11] ? __pfx_worker_thread (kernel/workqueue.c:2733) [ 1932.653758][ T11] kthread (kernel/kthread.c:388) [ 1932.654062][ T11] ? __pfx_kthread (kernel/kthread.c:341) [ 1932.654400][ T11] ret_from_fork (arch/x86/kernel/process.c:147) [ 1932.654736][ 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