====================================== | [ 2998.647989][ T11] ================================================================== | [ 2998.648470][ T11] 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 | [ 2998.648990][ T11] Read of size 8 at addr ffff88800ac20bd0 by task kworker/u8:0/11 | [ 2998.649400][ T11] [ 2998.649984][ T11] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.16.3-0-ga6ed6b701f0a-prebuilt.qemu.org 04/01/2014 [ 2998.650593][ T11] Workqueue: netns cleanup_net [ 2998.650848][ T11] Call Trace: [ 2998.651044][ T11] [ 2998.651198][ T11] dump_stack_lvl (lib/dump_stack.c:107) [ 2998.651471][ T11] print_address_description.constprop.0 (mm/kasan/report.c:378) [ 2998.651886][ T11] ? vxlan_netdevice_event (drivers/net/vxlan/vxlan_core.c:4613 drivers/net/vxlan/vxlan_core.c:4636) vxlan [ 2998.652246][ T11] print_report (mm/kasan/report.c:489) [ 2998.652476][ 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) [ 2998.652763][ T11] kasan_report (mm/kasan/report.c:603) [ 2998.653028][ T11] ? vxlan_netdevice_event (drivers/net/vxlan/vxlan_core.c:4613 drivers/net/vxlan/vxlan_core.c:4636) vxlan [ 2998.653360][ T11] vxlan_netdevice_event (drivers/net/vxlan/vxlan_core.c:4613 drivers/net/vxlan/vxlan_core.c:4636) vxlan [ 2998.653683][ T11] ? __pfx_vxlan_netdevice_event (drivers/net/vxlan/vxlan_core.c:4631) vxlan [ 2998.654040][ T11] ? _raw_spin_unlock (./arch/x86/include/asm/preempt.h:94 ./include/linux/spinlock_api_smp.h:143 kernel/locking/spinlock.c:186) [ 2998.654289][ T11] ? mirred_device_event (./include/linux/spinlock.h:392 net/sched/act_mirred.c:543) act_mirred [ 2998.654664][ T11] notifier_call_chain (kernel/notifier.c:93) [ 2998.654957][ T11] unregister_netdevice_many_notify (net/core/dev.c:11095) [ 2998.655306][ 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) [ 2998.655584][ T11] ? __pfx_unregister_netdevice_many_notify (net/core/dev.c:11035) [ 2998.655974][ T11] ? vrf_dellink (drivers/net/vrf.c:1708) vrf [ 2998.656289][ T11] ? __pfx_unregister_netdevice_queue (net/core/dev.c:11019) [ 2998.656657][ T11] default_device_exit_batch (net/core/dev.c:11629) [ 2998.656956][ T11] ? __pfx_default_device_exit_batch (net/core/dev.c:11604) [ 2998.657293][ 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) [ 2998.657554][ 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) [ 2998.657888][ T11] cleanup_net (net/core/net_namespace.c:636 (discriminator 3)) [ 2998.658130][ T11] ? __pfx_lock_acquire.part.0 (kernel/locking/lockdep.c:5719) [ 2998.658447][ T11] ? __pfx_cleanup_net (net/core/net_namespace.c:581) [ 2998.658713][ T11] ? lock_acquire (./include/trace/events/lock.h:24 kernel/locking/lockdep.c:5725) [ 2998.658984][ T11] ? process_one_work (kernel/workqueue.c:2609) [ 2998.659298][ T11] process_one_work (kernel/workqueue.c:2633) [ 2998.659584][ 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) [ 2998.659838][ T11] ? __pfx_process_one_work (kernel/workqueue.c:2542) [ 2998.660145][ T11] ? assign_work (kernel/workqueue.c:1101) [ 2998.660405][ T11] worker_thread (kernel/workqueue.c:2700 kernel/workqueue.c:2787) [ 2998.660653][ T11] ? __pfx_worker_thread (kernel/workqueue.c:2733) [ 2998.660919][ T11] kthread (kernel/kthread.c:388) [ 2998.661127][ T11] ? __pfx_kthread (kernel/kthread.c:341) [ 2998.661386][ T11] ret_from_fork (arch/x86/kernel/process.c:147) [ 2998.661636][ T11] ? __pfx_kthread (kernel/kthread.c:341) [ 2998.661871][ T11] ret_from_fork_asm (arch/x86/entry/entry_64.S:250) | [ 2998.681351][ T11] ================================================================== | [ 2998.682014][ T11] Disabling lock debugging due to kernel taint | [ 2998.682374][ T11] general protection fault, probably for non-canonical address 0xf999959999999999: 0000 [#1] PREEMPT SMP KASAN NOPTI | [ 2998.683036][ T11] KASAN: maybe wild-memory-access in range [0xccccccccccccccc8-0xcccccccccccccccf] [ 2998.684067][ T11] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.16.3-0-ga6ed6b701f0a-prebuilt.qemu.org 04/01/2014 [ 2998.684748][ T11] Workqueue: netns cleanup_net [ 2998.685057][ T11] RIP: 0010:vxlan_netdevice_event (drivers/net/vxlan/vxlan_core.c:4613 drivers/net/vxlan/vxlan_core.c:4636) vxlan [ 2998.685452][ 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 [ 2998.686504][ T11] RSP: 0018:ffffc900000bf980 EFLAGS: 00010a07 [ 2998.686850][ T11] RAX: 1999999999999999 RBX: cccccccccccccc9c RCX: dffffc0000000000 [ 2998.687307][ T11] RDX: cccccccccccccccc RSI: 0000000000000004 RDI: ffff88800ac20c24 [ 2998.687718][ T11] RBP: 1ffff92000017f33 R08: 1ffff110016b621a R09: ffffc900000bf9b8 [ 2998.688142][ T11] R10: ffffffffab53ca07 R11: 205d313154202020 R12: ffffed10016b621a [ 2998.688559][ T11] R13: ffff88800ac20ba0 R14: ffff88800ad44000 R15: ffff88800b5b1000 [ 2998.688986][ T11] FS: 0000000000000000(0000) GS:ffff888035a00000(0000) knlGS:0000000000000000 [ 2998.689460][ T11] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 2998.689821][ T11] CR2: 0000564190578dec CR3: 00000000069be002 CR4: 0000000000770ef0 [ 2998.690246][ T11] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 [ 2998.690676][ T11] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 [ 2998.691113][ T11] PKRU: 55555554 [ 2998.691331][ T11] Call Trace: [ 2998.691499][ T11] [ 2998.691679][ T11] ? die_addr (arch/x86/kernel/dumpstack.c:421 arch/x86/kernel/dumpstack.c:460) [ 2998.691892][ T11] ? exc_general_protection (arch/x86/kernel/traps.c:701 arch/x86/kernel/traps.c:643) [ 2998.692176][ T11] ? asm_exc_general_protection (./arch/x86/include/asm/idtentry.h:564) [ 2998.692470][ T11] ? vxlan_netdevice_event (drivers/net/vxlan/vxlan_core.c:4613 drivers/net/vxlan/vxlan_core.c:4636) vxlan [ 2998.692795][ T11] ? __pfx_vxlan_netdevice_event (drivers/net/vxlan/vxlan_core.c:4631) vxlan [ 2998.693135][ T11] ? _raw_spin_unlock (./arch/x86/include/asm/preempt.h:94 ./include/linux/spinlock_api_smp.h:143 kernel/locking/spinlock.c:186) [ 2998.693383][ T11] ? mirred_device_event (./include/linux/spinlock.h:392 net/sched/act_mirred.c:543) act_mirred [ 2998.693712][ T11] notifier_call_chain (kernel/notifier.c:93) [ 2998.693972][ T11] unregister_netdevice_many_notify (net/core/dev.c:11095) [ 2998.694294][ 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) [ 2998.694538][ T11] ? __pfx_unregister_netdevice_many_notify (net/core/dev.c:11035) [ 2998.694878][ T11] ? vrf_dellink (drivers/net/vrf.c:1708) vrf [ 2998.695142][ T11] ? __pfx_unregister_netdevice_queue (net/core/dev.c:11019) [ 2998.695460][ T11] default_device_exit_batch (net/core/dev.c:11629) [ 2998.695751][ T11] ? __pfx_default_device_exit_batch (net/core/dev.c:11604) [ 2998.696067][ 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) [ 2998.696310][ 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) [ 2998.696645][ T11] cleanup_net (net/core/net_namespace.c:636 (discriminator 3)) [ 2998.696886][ T11] ? __pfx_lock_acquire.part.0 (kernel/locking/lockdep.c:5719) [ 2998.697196][ T11] ? __pfx_cleanup_net (net/core/net_namespace.c:581) [ 2998.697471][ T11] ? lock_acquire (./include/trace/events/lock.h:24 kernel/locking/lockdep.c:5725) [ 2998.697735][ T11] ? process_one_work (kernel/workqueue.c:2609) [ 2998.698030][ T11] process_one_work (kernel/workqueue.c:2633) [ 2998.698312][ 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) [ 2998.698561][ T11] ? __pfx_process_one_work (kernel/workqueue.c:2542) [ 2998.698840][ T11] ? assign_work (kernel/workqueue.c:1101) [ 2998.699087][ T11] worker_thread (kernel/workqueue.c:2700 kernel/workqueue.c:2787) [ 2998.699345][ T11] ? __pfx_worker_thread (kernel/workqueue.c:2733) [ 2998.699640][ T11] kthread (kernel/kthread.c:388) [ 2998.699872][ T11] ? __pfx_kthread (kernel/kthread.c:341) [ 2998.700126][ T11] ret_from_fork (arch/x86/kernel/process.c:147) [ 2998.700364][ 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