make -C tools/testing/selftests TARGETS=net TEST_PROGS=test_vxlan_mdb.sh TTEST_GEN_PROGS="" run_tests
make: Entering directory '/home/virtme/testing-3/tools/testing/selftests'
make[1]: Entering directory '/home/virtme/testing-3/tools/testing/selftests/net'
make[1]: Nothing to be done for 'all'.
make[1]: Leaving directory '/home/virtme/testing-3/tools/testing/selftests/net'
make[1]: Entering directory '/home/virtme/testing-3/tools/testing/selftests/net'
TAP version 13
1..1
# timeout set to 6000
# selftests: net: test_vxlan_mdb.sh
[ 23.071399][ T242] ip (242) used greatest stack depth: 24048 bytes left
[ 23.438528][ T249] veth0: renamed from veth1
[ 28.115936][ T276] br0: port 1(vx0) entered blocking state
[ 28.116367][ T276] br0: port 1(vx0) entered disabled state
[ 28.116694][ T276] vx0: entered allmulticast mode
[ 28.118065][ T276] vx0: entered promiscuous mode
[ 28.121252][ T276] br0: port 1(vx0) entered blocking state
[ 28.121590][ T276] br0: port 1(vx0) entered forwarding state
[ 33.823062][ T311] br0: port 1(vx0) entered blocking state
[ 33.823410][ T311] br0: port 1(vx0) entered disabled state
[ 33.823732][ T311] vx0: entered allmulticast mode
[ 33.825028][ T311] vx0: entered promiscuous mode
[ 33.827478][ T311] br0: port 1(vx0) entered blocking state
[ 33.827788][ T311] br0: port 1(vx0) entered forwarding state
[ 37.489272][ T338] veth0: renamed from veth1
[ 41.847988][ T364] br0: port 1(vx0) entered blocking state
[ 41.848557][ T364] br0: port 1(vx0) entered disabled state
[ 41.849109][ T364] vx0: entered allmulticast mode
[ 41.852101][ T364] vx0: entered promiscuous mode
[ 41.855884][ T364] br0: port 1(vx0) entered blocking state
[ 41.856451][ T364] br0: port 1(vx0) entered forwarding state
[ 47.655734][ T394] br0: port 1(vx0) entered blocking state
[ 47.656069][ T394] br0: port 1(vx0) entered disabled state
[ 47.656403][ T394] vx0: entered allmulticast mode
[ 47.657962][ T394] vx0: entered promiscuous mode
[ 47.660786][ T394] br0: port 1(vx0) entered blocking state
[ 47.661091][ T394] br0: port 1(vx0) entered forwarding state
#
# Control path: Basic (*, G) operations - IPv4 overlay / IPv4 underlay
# --------------------------------------------------------------------
# TEST: MDB entry addition [ OK ]
# TEST: MDB entry presence after addition [ OK ]
# TEST: MDB entry replacement [ OK ]
# TEST: MDB entry presence after replacement [ OK ]
# TEST: MDB entry deletion [ OK ]
# TEST: MDB entry presence after deletion [ OK ]
# TEST: Non-existent MDB entry deletion [ OK ]
# TEST: MDB entry default protocol [ OK ]
# TEST: MDB entry protocol replacement [ OK ]
# TEST: MDB entry default destination port [ OK ]
# TEST: MDB entry destination port replacement [ OK ]
# TEST: MDB entry default destination VNI [ OK ]
# TEST: MDB entry destination VNI replacement [ OK ]
# TEST: MDB entry default outgoing interface [ OK ]
# TEST: MDB entry outgoing interface replacement [ OK ]
# TEST: MDB entry with mismatch between device and port [ OK ]
# TEST: MDB entry with temp state [ OK ]
# TEST: MDB entry with VLAN [ OK ]
# TEST: MDB entry MAC address [ OK ]
# TEST: MDB entry without extended parameters [ OK ]
# TEST: MDB entry with an invalid protocol [ OK ]
# TEST: MDB entry with an invalid destination VNI [ OK ]
# TEST: MDB entry with an invalid source VNI [ OK ]
# TEST: MDB entry without a remote destination IP [ OK ]
# TEST: Duplicate MDB entries [ OK ]
[ 61.550798][ T11] vx0: left allmulticast mode
[ 61.551131][ T11] vx0: left promiscuous mode
[ 61.551611][ T11] br0: port 1(vx0) entered disabled state
[ 61.655888][ T11] ==================================================================
[ 61.656405][ T11] BUG: KASAN: slab-out-of-bounds in vxlan_netdevice_event+0x32f/0x340 [vxlan]
[ 61.656935][ T11] Read of size 8 at addr ffff888009d00bf0 by task kworker/u8:0/11
[ 61.657359][ T11]
[ 61.657495][ T11] CPU: 3 PID: 11 Comm: kworker/u8:0 Not tainted 6.8.0-rc2-virtme #1
[ 61.657943][ T11] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.16.3-0-ga6ed6b701f0a-prebuilt.qemu.org 04/01/2014
[ 61.658598][ T11] Workqueue: netns cleanup_net
[ 61.658886][ T11] Call Trace:
[ 61.659072][ T11]
[ 61.659226][ T11] dump_stack_lvl+0x64/0xb0
[ 61.659506][ T11] print_address_description.constprop.0+0x2c/0x3b0
[ 61.659884][ T11] ? vxlan_netdevice_event+0x32f/0x340 [vxlan]
[ 61.660269][ T11] print_report+0xb5/0x270
[ 61.660511][ T11] ? kasan_addr_to_slab+0x4e/0x90
[ 61.660773][ T11] kasan_report+0xbe/0xf0
[ 61.661041][ T11] ? vxlan_netdevice_event+0x32f/0x340 [vxlan]
[ 61.661406][ T11] vxlan_netdevice_event+0x32f/0x340 [vxlan]
[ 61.661756][ T11] ? __pfx_vxlan_netdevice_event+0x10/0x10 [vxlan]
[ 61.662116][ T11] ? netconsole_netdev_event+0x1b4/0x300
[ 61.662447][ T11] notifier_call_chain+0x9a/0x290
[ 61.662767][ T11] unregister_netdevice_many_notify+0x55a/0x1180
[ 61.663118][ T11] ? mutex_is_locked+0x17/0x50
[ 61.663382][ T11] ? __pfx_unregister_netdevice_many_notify+0x10/0x10
[ 61.663740][ T11] ? __pfx_unregister_netdevice_queue+0x10/0x10
[ 61.664097][ T11] default_device_exit_batch+0x228/0x2c0
[ 61.664437][ T11] ? __pfx_default_device_exit_batch+0x10/0x10
[ 61.664798][ T11] ? mutex_is_locked+0x17/0x50
[ 61.665057][ T11] ? nexthop_net_exit_batch_rtnl+0x83/0x210
[ 61.665361][ T11] cleanup_net+0x4f3/0xb50
[ 61.665586][ T11] ? __pfx_lock_acquire.part.0+0x10/0x10
[ 61.665872][ T11] ? __pfx_cleanup_net+0x10/0x10
[ 61.666124][ T11] ? lock_acquire+0x1c1/0x220
[ 61.666361][ T11] ? process_one_work+0x714/0x1310
[ 61.666623][ T11] process_one_work+0x78c/0x1310
[ 61.666875][ T11] ? hlock_class+0x4e/0x130
[ 61.667106][ T11] ? __pfx_process_one_work+0x10/0x10
[ 61.667380][ T11] ? assign_work+0x16c/0x240
[ 61.667616][ T11] worker_thread+0x73d/0x1010
[ 61.667856][ T11] ? __pfx_worker_thread+0x10/0x10
[ 61.668118][ T11] kthread+0x28f/0x360
[ 61.668329][ T11] ? __pfx_kthread+0x10/0x10
[ 61.668563][ T11] ret_from_fork+0x31/0x70
[ 61.668787][ T11] ? __pfx_kthread+0x10/0x10
[ 61.669021][ T11] ret_from_fork_asm+0x1b/0x30
[ 61.669269][ T11]
[ 61.669424][ T11]
[ 61.669544][ T11] Allocated by task 11:
[ 61.669757][ T11] kasan_save_stack+0x24/0x50
[ 61.670017][ T11] kasan_save_track+0x14/0x30
[ 61.670295][ T11] __kasan_kmalloc+0x7f/0x90
[ 61.670609][ T11] __kmalloc_node_track_caller+0x1fb/0x440
[ 61.670904][ T11] kmalloc_reserve+0xbc/0x1f0
[ 61.671198][ T11] __alloc_skb+0xd4/0x280
[ 61.671438][ T11] inet6_rt_notify+0xda/0x280
[ 61.671684][ T11] fib6_del_route+0x823/0x11e0
[ 61.671958][ T11] fib6_del+0x1f4/0x2e0
[ 61.672168][ T11] fib6_clean_node+0x31a/0x510
[ 61.672449][ T11] fib6_walk_continue+0x2ff/0x610
[ 61.672762][ T11] fib6_walk+0x152/0x380
[ 61.672977][ T11] fib6_clean_tree+0xaf/0xf0
[ 61.673233][ T11] __fib6_clean_all+0xe0/0x230
[ 61.673475][ T11] rt6_disable_ip+0x11c/0x140
[ 61.673713][ T11] addrconf_ifdown.isra.0+0x104/0x1540
[ 61.673988][ T11] addrconf_notify+0xd1/0xd40
[ 61.674228][ T11] notifier_call_chain+0x9a/0x290
[ 61.674518][ T11] dev_close_many+0x2d8/0x650
[ 61.674759][ T11] unregister_netdevice_many_notify+0x3d5/0x1180
[ 61.675076][ T11] default_device_exit_batch+0x228/0x2c0
[ 61.675358][ T11] cleanup_net+0x4f3/0xb50
[ 61.675617][ T11] process_one_work+0x78c/0x1310
[ 61.675903][ T11] worker_thread+0x73d/0x1010
[ 61.676140][ T11] kthread+0x28f/0x360
[ 61.676349][ T11] ret_from_fork+0x31/0x70
[ 61.676572][ T11] ret_from_fork_asm+0x1b/0x30
[ 61.676851][ T11]
[ 61.676971][ T11] Freed by task 11:
[ 61.677195][ T11] kasan_save_stack+0x24/0x50
[ 61.677435][ T11] kasan_save_track+0x14/0x30
[ 61.677703][ T11] kasan_save_free_info+0x3f/0x60
[ 61.677956][ T11] __kasan_slab_free+0xfc/0x1c0
[ 61.678201][ T11] kfree+0xf2/0x2d0
[ 61.678437][ T11] skb_release_data+0x544/0x740
[ 61.678683][ T11] consume_skb+0xad/0x110
[ 61.678940][ T11] netlink_broadcast_filtered+0x224/0x340
[ 61.679256][ T11] nlmsg_notify+0x6e/0x1e0
[ 61.679485][ T11] fib6_del_route+0x823/0x11e0
[ 61.679763][ T11] fib6_del+0x1f4/0x2e0
[ 61.679975][ T11] fib6_clean_node+0x31a/0x510
[ 61.680256][ T11] fib6_walk_continue+0x2ff/0x610
[ 61.680532][ T11] fib6_walk+0x152/0x380
[ 61.680756][ T11] fib6_clean_tree+0xaf/0xf0
[ 61.681022][ T11] __fib6_clean_all+0xe0/0x230
[ 61.681272][ T11] rt6_disable_ip+0x11c/0x140
[ 61.681569][ T11] addrconf_ifdown.isra.0+0x104/0x1540
[ 61.681845][ T11] addrconf_notify+0xd1/0xd40
[ 61.682098][ T11] notifier_call_chain+0x9a/0x290
[ 61.682371][ T11] dev_close_many+0x2d8/0x650
[ 61.682651][ T11] unregister_netdevice_many_notify+0x3d5/0x1180
[ 61.682966][ T11] default_device_exit_batch+0x228/0x2c0
[ 61.683277][ T11] cleanup_net+0x4f3/0xb50
[ 61.683533][ T11] process_one_work+0x78c/0x1310
[ 61.683783][ T11] worker_thread+0x73d/0x1010
[ 61.684048][ T11] kthread+0x28f/0x360
[ 61.684253][ T11] ret_from_fork+0x31/0x70
[ 61.684482][ T11] ret_from_fork_asm+0x1b/0x30
[ 61.684722][ T11]
[ 61.684841][ T11] The buggy address belongs to the object at ffff888009d00400
[ 61.684841][ T11] which belongs to the cache kmalloc-1k of size 1024
[ 61.685567][ T11] The buggy address is located 1008 bytes to the right of
[ 61.685567][ T11] allocated 1024-byte region [ffff888009d00400, ffff888009d00800)
[ 61.686357][ T11]
[ 61.686478][ T11] The buggy address belongs to the physical page:
[ 61.686842][ T11] page:ffffea0000274000 refcount:1 mapcount:0 mapping:0000000000000000 index:0xffff888009d05800 pfn:0x9d00
[ 61.687406][ T11] head:ffffea0000274000 order:3 entire_mapcount:0 nr_pages_mapped:0 pincount:0
[ 61.687850][ T11] flags: 0x80000000000a40(workingset|slab|head|node=0|zone=1)
[ 61.688223][ T11] page_type: 0xffffffff()
[ 61.688442][ T11] raw: 0080000000000a40 ffff888001043380 ffff8880010416d0 ffff8880010416d0
[ 61.688869][ T11] raw: ffff888009d05800 00000000000a0007 00000001ffffffff 0000000000000000
[ 61.689295][ T11] page dumped because: kasan: bad access detected
[ 61.689614][ T11]
[ 61.689734][ T11] Memory state around the buggy address:
[ 61.690015][ T11] ffff888009d00a80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[ 61.690423][ T11] ffff888009d00b00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[ 61.690824][ T11] >ffff888009d00b80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[ 61.691228][ T11] ^
[ 61.691613][ T11] ffff888009d00c00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[ 61.692021][ T11] ffff888009d00c80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[ 61.692424][ T11] ==================================================================
[ 61.692916][ T11] Disabling lock debugging due to kernel taint
[ 61.693293][ T11] general protection fault, probably for non-canonical address 0xeb4b474b4b4b4b4b: 0000 [#1] PREEMPT SMP KASAN NOPTI
[ 61.693901][ T11] KASAN: maybe wild-memory-access in range [0x5a5a5a5a5a5a5a58-0x5a5a5a5a5a5a5a5f]
[ 61.694368][ T11] CPU: 3 PID: 11 Comm: kworker/u8:0 Tainted: G B 6.8.0-rc2-virtme #1
[ 61.694838][ T11] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.16.3-0-ga6ed6b701f0a-prebuilt.qemu.org 04/01/2014
[ 61.695455][ T11] Workqueue: netns cleanup_net
[ 61.695701][ T11] RIP: 0010:vxlan_netdevice_event+0x19e/0x340 [vxlan]
[ 61.696055][ 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
[ 61.697024][ T11] RSP: 0018:ffffc900000bf980 EFLAGS: 00010206
[ 61.697332][ T11] RAX: 0b4b4b4b4b4b4b4b RBX: 5a5a5a5a5a5a5a2a RCX: dffffc0000000000
[ 61.697728][ T11] RDX: 5a5a5a5a5a5a5a5a RSI: 0000000000000004 RDI: ffff888009d00c44
[ 61.698124][ T11] RBP: 1ffff92000017f33 R08: 1ffff11000f5121a R09: ffffc900000bf9b8
[ 61.698527][ T11] R10: ffffffff9f634a07 R11: 205d313154202020 R12: ffffed1000f5121a
[ 61.698928][ T11] R13: ffff888009d00bc0 R14: ffff888007879000 R15: ffff888007a89000
[ 61.699326][ T11] FS: 0000000000000000(0000) GS:ffff888035e00000(0000) knlGS:0000000000000000
[ 61.699770][ T11] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[ 61.700100][ T11] CR2: 00007ffdcec15548 CR3: 0000000003844002 CR4: 0000000000770ef0
[ 61.700507][ T11] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
[ 61.700903][ T11] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
[ 61.701300][ T11] PKRU: 55555554
[ 61.701482][ T11] Call Trace:
[ 61.701651][ T11]
[ 61.701801][ T11] ? die_addr+0x41/0xa0
[ 61.702013][ T11] ? exc_general_protection+0x149/0x220
[ 61.702302][ T11] ? asm_exc_general_protection+0x26/0x30
[ 61.702591][ T11] ? vxlan_netdevice_event+0x19e/0x340 [vxlan]
[ 61.702915][ T11] ? __pfx_vxlan_netdevice_event+0x10/0x10 [vxlan]
[ 61.703253][ T11] ? netconsole_netdev_event+0x1b4/0x300
[ 61.703540][ T11] notifier_call_chain+0x9a/0x290
[ 61.703797][ T11] unregister_netdevice_many_notify+0x55a/0x1180
[ 61.704117][ T11] ? mutex_is_locked+0x17/0x50
[ 61.704361][ T11] ? __pfx_unregister_netdevice_many_notify+0x10/0x10
[ 61.704700][ T11] ? __pfx_unregister_netdevice_queue+0x10/0x10
[ 61.705019][ T11] default_device_exit_batch+0x228/0x2c0
[ 61.705303][ T11] ? __pfx_default_device_exit_batch+0x10/0x10
[ 61.705614][ T11] ? mutex_is_locked+0x17/0x50
[ 61.705859][ T11] ? nexthop_net_exit_batch_rtnl+0x83/0x210
[ 61.706160][ T11] cleanup_net+0x4f3/0xb50
[ 61.706387][ T11] ? __pfx_lock_acquire.part.0+0x10/0x10
[ 61.706672][ T11] ? __pfx_cleanup_net+0x10/0x10
[ 61.706922][ T11] ? lock_acquire+0x1c1/0x220
[ 61.707159][ T11] ? process_one_work+0x714/0x1310
[ 61.707420][ T11] process_one_work+0x78c/0x1310
[ 61.707672][ T11] ? hlock_class+0x4e/0x130
[ 61.707903][ T11] ? __pfx_process_one_work+0x10/0x10
[ 61.708176][ T11] ? assign_work+0x16c/0x240
[ 61.708412][ T11] worker_thread+0x73d/0x1010
[ 61.708653][ T11] ? __pfx_worker_thread+0x10/0x10
[ 61.708911][ T11] kthread+0x28f/0x360
[ 61.709118][ T11] ? __pfx_kthread+0x10/0x10
[ 61.709354][ T11] ret_from_fork+0x31/0x70
[ 61.709578][ T11] ? __pfx_kthread+0x10/0x10
[ 61.709822][ T11] ret_from_fork_asm+0x1b/0x30
[ 61.710067][ T11]
[ 61.710233][ T11] Modules linked in: vxlan ip6_udp_tunnel udp_tunnel
[ 61.710660][ T11] ---[ end trace 0000000000000000 ]---
[ 61.710941][ T11] RIP: 0010:vxlan_netdevice_event+0x19e/0x340 [vxlan]
[ 61.711344][ 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
[ 61.712449][ T11] RSP: 0018:ffffc900000bf980 EFLAGS: 00010206
[ 61.712759][ T11] RAX: 0b4b4b4b4b4b4b4b RBX: 5a5a5a5a5a5a5a2a RCX: dffffc0000000000
[ 61.713180][ T11] RDX: 5a5a5a5a5a5a5a5a RSI: 0000000000000004 RDI: ffff888009d00c44
[ 61.713585][ T11] RBP: 1ffff92000017f33 R08: 1ffff11000f5121a R09: ffffc900000bf9b8
[ 61.713981][ T11] R10: ffffffff9f634a07 R11: 205d313154202020 R12: ffffed1000f5121a
[ 61.714386][ T11] R13: ffff888009d00bc0 R14: ffff888007879000 R15: ffff888007a89000
[ 61.714782][ T11] FS: 0000000000000000(0000) GS:ffff888035e00000(0000) knlGS:0000000000000000
[ 61.715233][ T11] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[ 61.715562][ T11] CR2: 00007ffdcec15548 CR3: 0000000021d34004 CR4: 0000000000770ef0
[ 61.715963][ T11] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
[ 61.716367][ T11] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
[ 61.716762][ T11] PKRU: 55555554
[ 61.716942][ T11] Kernel panic - not syncing: Fatal exception
[ 61.717347][ T11] Kernel Offset: 0x18c00000 from 0xffffffff81000000 (relocation range: 0xffffffff80000000-0xffffffffbfffffff)
[ 61.717919][ T11] ---[ end Kernel panic - not syncing: Fatal exception ]---
WAIT TIMEOUT stdout
Ctrl-C stdout
Ctrl-C stdout
WAIT TIMEOUT stdout