make -C tools/testing/selftests TARGETS=net/forwarding TEST_PROGS=dual_vxllan_bridge.sh TEST_GEN_PROGS="" run_tests make: Entering directory '/home/virtme/testing-4/tools/testing/selftests' make[1]: Entering directory '/home/virtme/testing-4/tools/testing/selftests/net/forwarding' make[1]: Nothing to be done for 'all'. make[1]: Leaving directory '/home/virtme/testing-4/tools/testing/selftests/net/forwarding' make[1]: Entering directory '/home/virtme/testing-4/tools/testing/selftests/net/forwarding' TAP version 13 1..1 # timeout set to 10800 # selftests: net/forwarding: dual_vxlan_bridge.sh [ 21.246304][ T234] ip (234) used greatest stack depth: 23664 bytes left [ 26.209816][ T285] 8021q: 802.1Q VLAN Support v1.8 [ 31.523148][ T328] br1: port 1(vx100) entered blocking state [ 31.523541][ T328] br1: port 1(vx100) entered disabled state [ 31.523926][ T328] vx100: entered allmulticast mode [ 31.525989][ T328] vx100: entered promiscuous mode [ 31.526888][ T328] br1: port 1(vx100) entered blocking state [ 31.527250][ T328] br1: port 1(vx100) entered forwarding state [ 31.852727][ T330] br1: port 2(veth1) entered blocking state [ 31.853081][ T330] br1: port 2(veth1) entered disabled state [ 31.853460][ T330] veth1: entered allmulticast mode [ 31.856093][ T330] veth1: entered promiscuous mode [ 32.016886][ T49] br1: port 2(veth1) entered blocking state [ 32.017284][ T49] br1: port 2(veth1) entered forwarding state [ 32.628319][ T336] br2: port 1(vx200) entered blocking state [ 32.628676][ T336] br2: port 1(vx200) entered disabled state [ 32.629030][ T336] vx200: entered allmulticast mode [ 32.631113][ T336] vx200: entered promiscuous mode [ 32.632535][ T336] br2: port 1(vx200) entered blocking state [ 32.632866][ T336] br2: port 1(vx200) entered forwarding state [ 33.076227][ T339] br2: port 2(veth2.20) entered blocking state [ 33.076637][ T339] br2: port 2(veth2.20) entered disabled state [ 33.077031][ T339] veth2.20: entered allmulticast mode [ 33.079958][ T339] veth2.20: entered promiscuous mode [ 33.249312][ T341] veth2: entered allmulticast mode [ 33.249620][ T341] veth2: entered promiscuous mode [ 33.250779][ T341] br2: port 2(veth2.20) entered blocking state [ 33.251116][ T341] br2: port 2(veth2.20) entered forwarding state [ 38.351729][ T381] br3: port 1(w1) entered blocking state [ 38.352060][ T381] br3: port 1(w1) entered disabled state [ 38.352404][ T381] w1: entered allmulticast mode [ 38.354413][ T381] w1: entered promiscuous mode [ 39.281077][ T387] br3: port 2(vx100) entered blocking state [ 39.281440][ T387] br3: port 2(vx100) entered disabled state [ 39.281791][ T387] vx100: entered allmulticast mode [ 39.283810][ T387] vx100: entered promiscuous mode [ 39.285470][ T387] br3: port 2(vx100) entered blocking state [ 39.285792][ T387] br3: port 2(vx100) entered forwarding state [ 40.444425][ T49] br3: port 1(w1) entered blocking state [ 40.444923][ T49] br3: port 1(w1) entered forwarding state [ 44.585032][ T425] br3: port 1(w1) entered blocking state [ 44.585380][ T425] br3: port 1(w1) entered disabled state [ 44.585708][ T425] w1: entered allmulticast mode [ 44.587716][ T425] w1: entered promiscuous mode [ 45.516478][ T431] br3: port 2(vx200) entered blocking state [ 45.516824][ T431] br3: port 2(vx200) entered disabled state [ 45.517715][ T431] vx200: entered allmulticast mode [ 45.519703][ T431] vx200: entered promiscuous mode [ 45.520595][ T431] br3: port 2(vx200) entered blocking state [ 45.520911][ T431] br3: port 2(vx200) entered forwarding state [ 46.625198][ T50] br3: port 1(w1) entered blocking state [ 46.625550][ T50] br3: port 1(w1) entered forwarding state [ 49.447972][ T460] br3: port 3(w1.20) entered blocking state [ 49.448343][ T460] br3: port 3(w1.20) entered disabled state [ 49.448700][ T460] w1.20: entered allmulticast mode [ 49.450724][ T460] w1.20: entered promiscuous mode [ 50.374173][ T468] br3: port 3(w1.20) entered blocking state [ 50.374525][ T468] br3: port 3(w1.20) entered forwarding state # Running tests with UDP port 4789 # TEST: ping: local->remote 1 through VxLAN with an 802.1ad bridge [ OK ] # TEST: ping: local->remote 2 through VxLAN with an 802.1d bridge [ OK ] [ 62.387539][ T11] w1.20: left allmulticast mode [ 62.387867][ T11] w1.20: left promiscuous mode [ 62.388431][ T11] br3: port 3(w1.20) entered disabled state [ 62.403002][ T11] vx200: left allmulticast mode [ 62.403795][ T11] vx200: left promiscuous mode [ 62.404212][ T11] br3: port 2(vx200) entered disabled state [ 62.413565][ T11] w1: left allmulticast mode [ 62.413845][ T11] w1: left promiscuous mode [ 62.414293][ T11] br3: port 1(w1) entered disabled state [ 62.504648][ T11] ================================================================== [ 62.505122][ T11] BUG: KASAN: slab-out-of-bounds in vxlan_netdevice_event+0x32f/0x340 [vxlan] [ 62.505608][ T11] Read of size 8 at addr ffff8880060e8bd0 by task kworker/u8:0/11 [ 62.506022][ T11] [ 62.506164][ T11] CPU: 2 PID: 11 Comm: kworker/u8:0 Not tainted 6.8.0-rc2-virtme #1 [ 62.506625][ T11] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.16.3-0-ga6ed6b701f0a-prebuilt.qemu.org 04/01/2014 [ 62.507428][ T11] Workqueue: netns cleanup_net [ 62.507785][ T11] Call Trace: [ 62.507994][ T11] [ 62.508187][ T11] dump_stack_lvl+0x64/0xb0 [ 62.508592][ T11] print_address_description.constprop.0+0x2c/0x3b0 [ 62.509095][ T11] ? vxlan_netdevice_event+0x32f/0x340 [vxlan] [ 62.509616][ T11] print_report+0xb5/0x270 [ 62.510001][ T11] ? kasan_addr_to_slab+0x4e/0x90 [ 62.510417][ T11] kasan_report+0xbe/0xf0 [ 62.510788][ T11] ? vxlan_netdevice_event+0x32f/0x340 [vxlan] [ 62.511344][ T11] vxlan_netdevice_event+0x32f/0x340 [vxlan] [ 62.511945][ T11] ? __pfx_vlan_device_event+0x10/0x10 [8021q] [ 62.512459][ T11] ? __pfx_vxlan_netdevice_event+0x10/0x10 [vxlan] [ 62.513058][ T11] ? netconsole_netdev_event+0x1b4/0x300 [ 62.513493][ T11] notifier_call_chain+0x9a/0x290 [ 62.513907][ T11] unregister_netdevice_many_notify+0x55a/0x1180 [ 62.514455][ T11] ? mutex_is_locked+0x17/0x50 [ 62.514845][ T11] ? __pfx_unregister_netdevice_many_notify+0x10/0x10 [ 62.515464][ T11] ? vrf_dellink+0x101/0x150 [vrf] [ 62.515944][ T11] ? __pfx_unregister_netdevice_queue+0x10/0x10 [ 62.516489][ T11] default_device_exit_batch+0x228/0x2c0 [ 62.516969][ T11] ? __pfx_default_device_exit_batch+0x10/0x10 [ 62.517437][ T11] ? mutex_is_locked+0x17/0x50 [ 62.517813][ T11] ? nexthop_net_exit_batch_rtnl+0x83/0x210 [ 62.518305][ T11] cleanup_net+0x4f3/0xa20 [ 62.518646][ T11] ? __pfx_lock_acquire.part.0+0x10/0x10 [ 62.519139][ T11] ? __pfx_cleanup_net+0x10/0x10 [ 62.519562][ T11] ? lock_acquire+0x1c1/0x220 [ 62.520030][ T11] ? process_one_work+0x714/0x1310 [ 62.520454][ T11] process_one_work+0x78c/0x1310 [ 62.520839][ T11] ? hlock_class+0x4e/0x130 [ 62.521162][ T11] ? __pfx_process_one_work+0x10/0x10 [ 62.521568][ T11] ? assign_work+0x16c/0x240 [ 62.521923][ T11] worker_thread+0x73d/0x1010 [ 62.522289][ T11] ? __pfx_worker_thread+0x10/0x10 [ 62.522590][ T11] kthread+0x28f/0x360 [ 62.522863][ T11] ? __pfx_kthread+0x10/0x10 [ 62.523195][ T11] ret_from_fork+0x31/0x70 [ 62.523528][ T11] ? __pfx_kthread+0x10/0x10 [ 62.523829][ T11] ret_from_fork_asm+0x1b/0x30 [ 62.524205][ T11] [ 62.524436][ T11] [ 62.524618][ T11] Allocated by task 11: [ 62.524899][ T11] kasan_save_stack+0x24/0x50 [ 62.525257][ T11] kasan_save_track+0x14/0x30 [ 62.525590][ T11] __kasan_kmalloc+0x7f/0x90 [ 62.525956][ T11] __kmalloc_node_track_caller+0x1fb/0x440 [ 62.526443][ T11] kmalloc_reserve+0xbc/0x1f0 [ 62.526830][ T11] __alloc_skb+0xd4/0x280 [ 62.527203][ T11] rtmsg_ifinfo_build_skb+0x7c/0x240 [ 62.527624][ T11] rtmsg_ifinfo_event.part.0+0x2d/0x120 [ 62.528044][ T11] rtmsg_ifinfo+0x5b/0xa0 [ 62.528381][ T11] __dev_notify_flags+0x1ba/0x250 [ 62.528765][ T11] dev_change_flags+0xec/0x160 [ 62.529117][ T11] cycle_netdev+0x94/0xf0 [vrf] [ 62.529480][ T11] vrf_dellink+0xdb/0x150 [vrf] [ 62.529858][ T11] default_device_exit_batch+0x16a/0x2c0 [ 62.530292][ T11] cleanup_net+0x4f3/0xa20 [ 62.530639][ T11] process_one_work+0x78c/0x1310 [ 62.531032][ T11] worker_thread+0x73d/0x1010 [ 62.531438][ T11] kthread+0x28f/0x360 [ 62.531755][ T11] ret_from_fork+0x31/0x70 [ 62.532031][ T11] ret_from_fork_asm+0x1b/0x30 [ 62.532417][ T11] [ 62.532647][ T11] Freed by task 11: [ 62.532927][ T11] kasan_save_stack+0x24/0x50 [ 62.533278][ T11] kasan_save_track+0x14/0x30 [ 62.533681][ T11] kasan_save_free_info+0x3f/0x60 [ 62.534089][ T11] __kasan_slab_free+0xfc/0x1c0 [ 62.534474][ T11] kfree+0xf2/0x2d0 [ 62.534774][ T11] pskb_expand_head+0x33a/0xff0 [ 62.535194][ T11] netlink_trim+0x198/0x200 [ 62.535567][ T11] netlink_broadcast_filtered+0xcb/0x340 [ 62.536015][ T11] nlmsg_notify+0x6e/0x1e0 [ 62.536352][ T11] rtmsg_ifinfo+0x5b/0xa0 [ 62.536723][ T11] __dev_notify_flags+0x1ba/0x250 [ 62.537118][ T11] dev_change_flags+0xec/0x160 [ 62.537543][ T11] cycle_netdev+0x94/0xf0 [vrf] [ 62.537949][ T11] vrf_dellink+0xdb/0x150 [vrf] [ 62.538201][ T11] default_device_exit_batch+0x16a/0x2c0 [ 62.538521][ T11] cleanup_net+0x4f3/0xa20 [ 62.538769][ T11] process_one_work+0x78c/0x1310 [ 62.539050][ T11] worker_thread+0x73d/0x1010 [ 62.539314][ T11] kthread+0x28f/0x360 [ 62.539529][ T11] ret_from_fork+0x31/0x70 [ 62.539801][ T11] ret_from_fork_asm+0x1b/0x30 [ 62.540045][ T11] [ 62.540167][ T11] The buggy address belongs to the object at ffff8880060e9000 [ 62.540167][ T11] which belongs to the cache kmalloc-4k of size 4096 [ 62.540943][ T11] The buggy address is located 1072 bytes to the left of [ 62.540943][ T11] allocated 4096-byte region [ffff8880060e9000, ffff8880060ea000) [ 62.541720][ T11] [ 62.541856][ T11] The buggy address belongs to the physical page: [ 62.542209][ T11] page:ffffea0000183a00 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x60e8 [ 62.542729][ T11] head:ffffea0000183a00 order:3 entire_mapcount:0 nr_pages_mapped:0 pincount:0 [ 62.543231][ T11] flags: 0x80000000000840(slab|head|node=0|zone=1) [ 62.543575][ T11] page_type: 0xffffffff() [ 62.543805][ T11] raw: 0080000000000840 ffff888001043700 ffffea0000259a10 ffffea0000297410 [ 62.544275][ T11] raw: 0000000000000000 0000000000020002 00000001ffffffff 0000000000000000 [ 62.544805][ T11] page dumped because: kasan: bad access detected [ 62.545336][ T11] [ 62.545533][ T11] Memory state around the buggy address: [ 62.545878][ T11] ffff8880060e8a80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 62.546327][ T11] ffff8880060e8b00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 62.546747][ T11] >ffff8880060e8b80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 62.547261][ T11] ^ [ 62.547616][ T11] ffff8880060e8c00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 62.548046][ T11] ffff8880060e8c80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 62.548493][ T11] ================================================================== [ 62.549289][ T11] Disabling lock debugging due to kernel taint [ 62.549640][ T11] general protection fault, probably for non-canonical address 0xf999959999999999: 0000 [#1] PREEMPT SMP KASAN NOPTI [ 62.550379][ T11] KASAN: maybe wild-memory-access in range [0xccccccccccccccc8-0xcccccccccccccccf] [ 62.550950][ T11] CPU: 2 PID: 11 Comm: kworker/u8:0 Tainted: G B 6.8.0-rc2-virtme #1 [ 62.551457][ T11] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.16.3-0-ga6ed6b701f0a-prebuilt.qemu.org 04/01/2014 [ 62.552121][ T11] Workqueue: netns cleanup_net [ 62.552410][ T11] RIP: 0010:vxlan_netdevice_event+0x19e/0x340 [vxlan] [ 62.552797][ 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 [ 62.553888][ T11] RSP: 0018:ffffc900000bf980 EFLAGS: 00010a07 [ 62.554202][ T11] RAX: 1999999999999999 RBX: cccccccccccccc9c RCX: dffffc0000000000 [ 62.554631][ T11] RDX: cccccccccccccccc RSI: 0000000000000004 RDI: ffff8880060e8c24 [ 62.555185][ T11] RBP: 1ffff92000017f33 R08: 1ffff110014f481a R09: ffffc900000bf9b8 [ 62.555611][ T11] R10: ffffffff9f13ca07 R11: 205d313154202020 R12: ffffed10014f481a [ 62.556035][ T11] R13: ffff8880060e8ba0 R14: ffff8880068d1000 R15: ffff88800a7a4000 [ 62.556485][ T11] FS: 0000000000000000(0000) GS:ffff888035a00000(0000) knlGS:0000000000000000 [ 62.556982][ T11] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 62.557367][ T11] CR2: 00007f53bc4b230d CR3: 000000000963a006 CR4: 0000000000770ef0 [ 62.557851][ T11] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 [ 62.558333][ T11] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 [ 62.558823][ T11] PKRU: 55555554 [ 62.559005][ T11] Call Trace: [ 62.559218][ T11] [ 62.559424][ T11] ? die_addr+0x41/0xa0 [ 62.559663][ T11] ? exc_general_protection+0x149/0x220 [ 62.559950][ T11] ? asm_exc_general_protection+0x26/0x30 [ 62.560268][ T11] ? vxlan_netdevice_event+0x19e/0x340 [vxlan] [ 62.560625][ T11] ? __pfx_vxlan_netdevice_event+0x10/0x10 [vxlan] [ 62.561008][ T11] ? netconsole_netdev_event+0x1b4/0x300 [ 62.561324][ T11] notifier_call_chain+0x9a/0x290 [ 62.561611][ T11] unregister_netdevice_many_notify+0x55a/0x1180 [ 62.561966][ T11] ? mutex_is_locked+0x17/0x50 [ 62.562231][ T11] ? __pfx_unregister_netdevice_many_notify+0x10/0x10 [ 62.562611][ T11] ? vrf_dellink+0x101/0x150 [vrf] [ 62.562973][ T11] ? __pfx_unregister_netdevice_queue+0x10/0x10 [ 62.563336][ T11] default_device_exit_batch+0x228/0x2c0 [ 62.563641][ T11] ? __pfx_default_device_exit_batch+0x10/0x10 [ 62.563971][ T11] ? mutex_is_locked+0x17/0x50 [ 62.564215][ T11] ? nexthop_net_exit_batch_rtnl+0x83/0x210 [ 62.564517][ T11] cleanup_net+0x4f3/0xa20 [ 62.564746][ T11] ? __pfx_lock_acquire.part.0+0x10/0x10 [ 62.565062][ T11] ? __pfx_cleanup_net+0x10/0x10 [ 62.565340][ T11] ? lock_acquire+0x1c1/0x220 [ 62.565581][ T11] ? process_one_work+0x714/0x1310 [ 62.565868][ T11] process_one_work+0x78c/0x1310 [ 62.566123][ T11] ? hlock_class+0x4e/0x130 [ 62.566357][ T11] ? __pfx_process_one_work+0x10/0x10 [ 62.566634][ T11] ? assign_work+0x16c/0x240 [ 62.566869][ T11] worker_thread+0x73d/0x1010 [ 62.567112][ T11] ? __pfx_worker_thread+0x10/0x10 [ 62.567372][ T11] kthread+0x28f/0x360 [ 62.567581][ T11] ? __pfx_kthread+0x10/0x10 [ 62.567816][ T11] ret_from_fork+0x31/0x70 [ 62.568119][ T11] ? __pfx_kthread+0x10/0x10 [ 62.568470][ T11] ret_from_fork_asm+0x1b/0x30 [ 62.568837][ T11] [ 62.569022][ T11] Modules linked in: vxlan ip6_udp_tunnel udp_tunnel bridge stp llc 8021q sch_ingress vrf veth [ 62.569619][ T11] ---[ end trace 0000000000000000 ]--- [ 62.569999][ T11] RIP: 0010:vxlan_netdevice_event+0x19e/0x340 [vxlan] [ 62.571193][ 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 [ 62.572358][ T11] RSP: 0018:ffffc900000bf980 EFLAGS: 00010a07 [ 62.572745][ T11] RAX: 1999999999999999 RBX: cccccccccccccc9c RCX: dffffc0000000000 [ 62.573221][ T11] RDX: cccccccccccccccc RSI: 0000000000000004 RDI: ffff8880060e8c24 [ 62.573675][ T11] RBP: 1ffff92000017f33 R08: 1ffff110014f481a R09: ffffc900000bf9b8 [ 62.574124][ T11] R10: ffffffff9f13ca07 R11: 205d313154202020 R12: ffffed10014f481a [ 62.574562][ T11] R13: ffff8880060e8ba0 R14: ffff8880068d1000 R15: ffff88800a7a4000 [ 62.575001][ T11] FS: 0000000000000000(0000) GS:ffff888035a00000(0000) knlGS:0000000000000000 [ 62.575522][ T11] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 62.575915][ T11] CR2: 00007f53bc4b230d CR3: 000000001031e003 CR4: 0000000000770ef0 [ 62.576419][ T11] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 [ 62.576943][ T11] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 [ 62.577393][ T11] PKRU: 55555554 [ 62.577586][ T11] Kernel panic - not syncing: Fatal exception [ 62.578020][ T11] Kernel Offset: 0x18a00000 from 0xffffffff81000000 (relocation range: 0xffffffff80000000-0xffffffffbfffffff) [ 62.578607][ T11] ---[ end Kernel panic - not syncing: Fatal exception ]--- WAIT TIMEOUT stdout Ctrl-C stdout Ctrl-C stdout WAIT TIMEOUT stdout