====================================== | [ 2016.680535][ T70] ================================================================== | [ 2016.681204][ T70] BUG: KASAN: slab-out-of-bounds in vxlan_netdevice_event (drivers/net/vxlan/vxlan_core.c:4613 drivers/net/vxlan/vxlan_core.c:4636) vxlan | [ 2016.681899][ T70] Read of size 8 at addr ffff8880098c0bd0 by task kworker/u8:1/70 | [ 2016.682507][ T70] [ 2016.683403][ T70] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.16.3-0-ga6ed6b701f0a-prebuilt.qemu.org 04/01/2014 [ 2016.684371][ T70] Workqueue: netns cleanup_net [ 2016.684743][ T70] Call Trace: [ 2016.685024][ T70] [ 2016.685242][ T70] dump_stack_lvl (lib/dump_stack.c:107) [ 2016.685588][ T70] print_address_description.constprop.0 (mm/kasan/report.c:378) [ 2016.686083][ T70] ? vxlan_netdevice_event (drivers/net/vxlan/vxlan_core.c:4613 drivers/net/vxlan/vxlan_core.c:4636) vxlan [ 2016.686543][ T70] print_report (mm/kasan/report.c:489) [ 2016.686882][ T70] ? 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) [ 2016.687274][ T70] kasan_report (mm/kasan/report.c:603) [ 2016.687598][ T70] ? vxlan_netdevice_event (drivers/net/vxlan/vxlan_core.c:4613 drivers/net/vxlan/vxlan_core.c:4636) vxlan [ 2016.688056][ T70] vxlan_netdevice_event (drivers/net/vxlan/vxlan_core.c:4613 drivers/net/vxlan/vxlan_core.c:4636) vxlan [ 2016.688496][ T70] ? __pfx_vlan_device_event (net/8021q/vlan.c:362) 8021q [ 2016.688945][ T70] ? __pfx_vxlan_netdevice_event (drivers/net/vxlan/vxlan_core.c:4631) vxlan [ 2016.689418][ T70] ? netconsole_netdev_event (drivers/net/netconsole.c:991) [ 2016.689820][ T70] notifier_call_chain (kernel/notifier.c:93) [ 2016.690185][ T70] unregister_netdevice_many_notify (net/core/dev.c:11095) [ 2016.690658][ T70] ? 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) [ 2016.691034][ T70] ? __pfx_unregister_netdevice_many_notify (net/core/dev.c:11035) [ 2016.691573][ T70] ? vrf_dellink (drivers/net/vrf.c:1708) vrf [ 2016.691988][ T70] ? __pfx_unregister_netdevice_queue (net/core/dev.c:11019) [ 2016.692457][ T70] default_device_exit_batch (net/core/dev.c:11629) [ 2016.692877][ T70] ? __pfx_default_device_exit_batch (net/core/dev.c:11604) [ 2016.693336][ T70] ? 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) [ 2016.693720][ T70] ? 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) [ 2016.694195][ T70] cleanup_net (net/core/net_namespace.c:636 (discriminator 3)) [ 2016.694535][ T70] ? __pfx_lock_acquire.part.0 (kernel/locking/lockdep.c:5719) [ 2016.694962][ T70] ? __pfx_cleanup_net (net/core/net_namespace.c:581) [ 2016.695353][ T70] ? lock_acquire (./include/trace/events/lock.h:24 kernel/locking/lockdep.c:5725) [ 2016.695721][ T70] ? process_one_work (kernel/workqueue.c:2609) [ 2016.696128][ T70] process_one_work (kernel/workqueue.c:2633) [ 2016.696523][ T70] ? 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) [ 2016.696894][ T70] ? __pfx_process_one_work (kernel/workqueue.c:2542) [ 2016.697317][ T70] ? assign_work (kernel/workqueue.c:1101) [ 2016.697658][ T70] worker_thread (kernel/workqueue.c:2700 kernel/workqueue.c:2787) [ 2016.698027][ T70] ? lockdep_hardirqs_on_prepare.part.0 (kernel/locking/lockdep.c:4300 kernel/locking/lockdep.c:4359) [ 2016.698542][ T70] ? __pfx_worker_thread (kernel/workqueue.c:2733) [ 2016.698930][ T70] ? __pfx_worker_thread (kernel/workqueue.c:2733) [ 2016.699316][ T70] kthread (kernel/kthread.c:388) [ 2016.699625][ T70] ? __pfx_kthread (kernel/kthread.c:341) [ 2016.699963][ T70] ret_from_fork (arch/x86/kernel/process.c:147) [ 2016.700333][ T70] ? __pfx_kthread (kernel/kthread.c:341) [ 2016.700721][ T70] ret_from_fork_asm (arch/x86/entry/entry_64.S:250) | [ 2016.734490][ T70] ================================================================== | [ 2016.735152][ T70] Disabling lock debugging due to kernel taint | [ 2016.735509][ T70] general protection fault, probably for non-canonical address 0xeb4b474b4b4b4b4b: 0000 [#1] PREEMPT SMP KASAN NOPTI | [ 2016.736205][ T70] KASAN: maybe wild-memory-access in range [0x5a5a5a5a5a5a5a58-0x5a5a5a5a5a5a5a5f] [ 2016.737235][ T70] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.16.3-0-ga6ed6b701f0a-prebuilt.qemu.org 04/01/2014 [ 2016.737903][ T70] Workqueue: netns cleanup_net [ 2016.738174][ T70] RIP: 0010:vxlan_netdevice_event (drivers/net/vxlan/vxlan_core.c:4613 drivers/net/vxlan/vxlan_core.c:4636) vxlan [ 2016.738577][ T70] 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 [ 2016.739641][ T70] RSP: 0018:ffffc900004ff980 EFLAGS: 00010206 [ 2016.740007][ T70] RAX: 0b4b4b4b4b4b4b4b RBX: 5a5a5a5a5a5a5a2a RCX: dffffc0000000000 [ 2016.740472][ T70] RDX: 5a5a5a5a5a5a5a5a RSI: 0000000000000004 RDI: ffff8880098c0c24 [ 2016.740901][ T70] RBP: 1ffff9200009ff33 R08: 1ffff11000c5921a R09: ffffc900004ff9b8 [ 2016.741325][ T70] R10: ffffffffb7f3ca07 R11: 205d303754202020 R12: ffffed1000c5921a [ 2016.741754][ T70] R13: ffff8880098c0ba0 R14: ffff888005c64000 R15: ffff8880062c9000 [ 2016.742171][ T70] FS: 0000000000000000(0000) GS:ffff888035a00000(0000) knlGS:0000000000000000 [ 2016.742651][ T70] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 2016.742985][ T70] CR2: 00007f5b5d3812a8 CR3: 0000000011d1e002 CR4: 0000000000770ef0 [ 2016.743416][ T70] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 [ 2016.743846][ T70] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 [ 2016.744276][ T70] PKRU: 55555554 [ 2016.744457][ T70] Call Trace: [ 2016.744651][ T70] [ 2016.744803][ T70] ? die_addr (arch/x86/kernel/dumpstack.c:421 arch/x86/kernel/dumpstack.c:460) [ 2016.745039][ T70] ? exc_general_protection (arch/x86/kernel/traps.c:701 arch/x86/kernel/traps.c:643) [ 2016.745349][ T70] ? asm_exc_general_protection (./arch/x86/include/asm/idtentry.h:564) [ 2016.745674][ T70] ? vxlan_netdevice_event (drivers/net/vxlan/vxlan_core.c:4613 drivers/net/vxlan/vxlan_core.c:4636) vxlan [ 2016.746024][ T70] ? __pfx_vxlan_netdevice_event (drivers/net/vxlan/vxlan_core.c:4631) vxlan [ 2016.746365][ T70] ? netconsole_netdev_event (drivers/net/netconsole.c:991) [ 2016.746672][ T70] notifier_call_chain (kernel/notifier.c:93) [ 2016.746954][ T70] unregister_netdevice_many_notify (net/core/dev.c:11095) [ 2016.747289][ T70] ? 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) [ 2016.747558][ T70] ? __pfx_unregister_netdevice_many_notify (net/core/dev.c:11035) [ 2016.747938][ T70] ? vrf_dellink (drivers/net/vrf.c:1708) vrf [ 2016.748233][ T70] ? __pfx_unregister_netdevice_queue (net/core/dev.c:11019) [ 2016.748567][ T70] default_device_exit_batch (net/core/dev.c:11629) [ 2016.748870][ T70] ? __pfx_default_device_exit_batch (net/core/dev.c:11604) [ 2016.749213][ T70] ? 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) [ 2016.749510][ T70] ? 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) [ 2016.749864][ T70] cleanup_net (net/core/net_namespace.c:636 (discriminator 3)) [ 2016.750093][ T70] ? __pfx_lock_acquire.part.0 (kernel/locking/lockdep.c:5719) [ 2016.750422][ T70] ? __pfx_cleanup_net (net/core/net_namespace.c:581) [ 2016.750691][ T70] ? lock_acquire (./include/trace/events/lock.h:24 kernel/locking/lockdep.c:5725) [ 2016.750960][ T70] ? process_one_work (kernel/workqueue.c:2609) [ 2016.751250][ T70] process_one_work (kernel/workqueue.c:2633) [ 2016.751556][ T70] ? 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) [ 2016.751813][ T70] ? __pfx_process_one_work (kernel/workqueue.c:2542) [ 2016.752116][ T70] ? assign_work (kernel/workqueue.c:1101) [ 2016.752404][ T70] worker_thread (kernel/workqueue.c:2700 kernel/workqueue.c:2787) [ 2016.752661][ T70] ? lockdep_hardirqs_on_prepare.part.0 (kernel/locking/lockdep.c:4300 kernel/locking/lockdep.c:4359) [ 2016.753024][ T70] ? __pfx_worker_thread (kernel/workqueue.c:2733) [ 2016.753314][ T70] ? __pfx_worker_thread (kernel/workqueue.c:2733) [ 2016.753627][ T70] kthread (kernel/kthread.c:388) [ 2016.753863][ T70] ? __pfx_kthread (kernel/kthread.c:341) [ 2016.754103][ T70] ret_from_fork (arch/x86/kernel/process.c:147) [ 2016.754362][ T70] ? __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