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 [ 22.230716][ T232] ip (232) used greatest stack depth: 23600 bytes left [ 27.217658][ T283] 8021q: 802.1Q VLAN Support v1.8 [ 32.591550][ T326] br1: port 1(vx100) entered blocking state [ 32.592000][ T326] br1: port 1(vx100) entered disabled state [ 32.592498][ T326] vx100: entered allmulticast mode [ 32.595039][ T326] vx100: entered promiscuous mode [ 32.595986][ T326] br1: port 1(vx100) entered blocking state [ 32.596359][ T326] br1: port 1(vx100) entered forwarding state [ 32.934274][ T328] br1: port 2(veth1) entered blocking state [ 32.934622][ T328] br1: port 2(veth1) entered disabled state [ 32.934974][ T328] veth1: entered allmulticast mode [ 32.937489][ T328] veth1: entered promiscuous mode [ 33.101497][ T8] br1: port 2(veth1) entered blocking state [ 33.101901][ T8] br1: port 2(veth1) entered forwarding state [ 33.673102][ T334] br2: port 1(vx200) entered blocking state [ 33.674266][ T334] br2: port 1(vx200) entered disabled state [ 33.674665][ T334] vx200: entered allmulticast mode [ 33.676786][ T334] vx200: entered promiscuous mode [ 33.678090][ T334] br2: port 1(vx200) entered blocking state [ 33.678508][ T334] br2: port 1(vx200) entered forwarding state [ 34.156340][ T337] br2: port 2(veth2.20) entered blocking state [ 34.156724][ T337] br2: port 2(veth2.20) entered disabled state [ 34.157144][ T337] veth2.20: entered allmulticast mode [ 34.159390][ T337] veth2.20: entered promiscuous mode [ 34.329543][ T339] veth2: entered allmulticast mode [ 34.329860][ T339] veth2: entered promiscuous mode [ 34.331165][ T339] br2: port 2(veth2.20) entered blocking state [ 34.331498][ T339] br2: port 2(veth2.20) entered forwarding state [ 39.467861][ T379] br3: port 1(w1) entered blocking state [ 39.468212][ T379] br3: port 1(w1) entered disabled state [ 39.468550][ T379] w1: entered allmulticast mode [ 39.471495][ T379] w1: entered promiscuous mode [ 40.444943][ T386] br3: port 2(vx100) entered blocking state [ 40.446202][ T386] br3: port 2(vx100) entered disabled state [ 40.446565][ T386] vx100: entered allmulticast mode [ 40.448686][ T386] vx100: entered promiscuous mode [ 40.450374][ T386] br3: port 2(vx100) entered blocking state [ 40.450689][ T386] br3: port 2(vx100) entered forwarding state [ 41.650987][ T8] br3: port 1(w1) entered blocking state [ 41.651437][ T8] br3: port 1(w1) entered forwarding state [ 45.779427][ T424] br3: port 1(w1) entered blocking state [ 45.779761][ T424] br3: port 1(w1) entered disabled state [ 45.780111][ T424] w1: entered allmulticast mode [ 45.782854][ T424] w1: entered promiscuous mode [ 46.719798][ T430] br3: port 2(vx200) entered blocking state [ 46.720159][ T430] br3: port 2(vx200) entered disabled state [ 46.720523][ T430] vx200: entered allmulticast mode [ 46.722611][ T430] vx200: entered promiscuous mode [ 46.723563][ T430] br3: port 2(vx200) entered blocking state [ 46.723880][ T430] br3: port 2(vx200) entered forwarding state [ 47.894897][ T28] br3: port 1(w1) entered blocking state [ 47.895421][ T28] br3: port 1(w1) entered forwarding state [ 50.739876][ T459] br3: port 3(w1.20) entered blocking state [ 50.741211][ T459] br3: port 3(w1.20) entered disabled state [ 50.741575][ T459] w1.20: entered allmulticast mode [ 50.743656][ T459] w1.20: entered promiscuous mode [ 51.640922][ T467] br3: port 3(w1.20) entered blocking state [ 51.641298][ T467] 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 ] [ 63.812368][ T11] w1.20: left allmulticast mode [ 63.812745][ T11] w1.20: left promiscuous mode [ 63.813456][ T11] br3: port 3(w1.20) entered disabled state [ 63.830777][ T11] vx200: left allmulticast mode [ 63.831090][ T11] vx200: left promiscuous mode [ 63.831535][ T11] br3: port 2(vx200) entered disabled state [ 63.845687][ T11] w1: left allmulticast mode [ 63.846013][ T11] w1: left promiscuous mode [ 63.846530][ T11] br3: port 1(w1) entered disabled state [ 63.941754][ T11] ================================================================== [ 63.942434][ T11] BUG: KASAN: slab-out-of-bounds in vxlan_netdevice_event+0x32f/0x340 [vxlan] [ 63.943133][ T11] Read of size 8 at addr ffff888009a08bd0 by task kworker/u8:0/11 [ 63.943708][ T11] [ 63.943883][ T11] CPU: 2 PID: 11 Comm: kworker/u8:0 Not tainted 6.8.0-rc2-virtme #1 [ 63.944478][ T11] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.16.3-0-ga6ed6b701f0a-prebuilt.qemu.org 04/01/2014 [ 63.945388][ T11] Workqueue: netns cleanup_net [ 63.945779][ T11] Call Trace: [ 63.946025][ T11] [ 63.946241][ T11] dump_stack_lvl+0x64/0xb0 [ 63.946616][ T11] print_address_description.constprop.0+0x2c/0x3b0 [ 63.947140][ T11] ? vxlan_netdevice_event+0x32f/0x340 [vxlan] [ 63.947598][ T11] print_report+0xb5/0x270 [ 63.947866][ T11] ? kasan_addr_to_slab+0x4e/0x90 [ 63.948160][ T11] kasan_report+0xbe/0xf0 [ 63.948410][ T11] ? vxlan_netdevice_event+0x32f/0x340 [vxlan] [ 63.948833][ T11] vxlan_netdevice_event+0x32f/0x340 [vxlan] [ 63.949187][ T11] ? __pfx_vlan_device_event+0x10/0x10 [8021q] [ 63.949545][ T11] ? __pfx_vxlan_netdevice_event+0x10/0x10 [vxlan] [ 63.949923][ T11] ? netconsole_netdev_event+0x1b4/0x300 [ 63.950255][ T11] notifier_call_chain+0x9a/0x290 [ 63.950565][ T11] unregister_netdevice_many_notify+0x55a/0x1180 [ 63.950963][ T11] ? mutex_is_locked+0x17/0x50 [ 63.951234][ T11] ? __pfx_unregister_netdevice_many_notify+0x10/0x10 [ 63.951643][ T11] ? vrf_dellink+0x101/0x150 [vrf] [ 63.951990][ T11] ? __pfx_unregister_netdevice_queue+0x10/0x10 [ 63.952320][ T11] default_device_exit_batch+0x228/0x2c0 [ 63.952643][ T11] ? __pfx_default_device_exit_batch+0x10/0x10 [ 63.952985][ T11] ? mutex_is_locked+0x17/0x50 [ 63.953303][ T11] ? nexthop_net_exit_batch_rtnl+0x83/0x210 [ 63.953626][ T11] cleanup_net+0x4f3/0xa20 [ 63.953875][ T11] ? __pfx_lock_acquire.part.0+0x10/0x10 [ 63.954183][ T11] ? __pfx_cleanup_net+0x10/0x10 [ 63.954480][ T11] ? lock_acquire+0x1c1/0x220 [ 63.954756][ T11] ? process_one_work+0x714/0x1310 [ 63.955109][ T11] process_one_work+0x78c/0x1310 [ 63.955397][ T11] ? hlock_class+0x4e/0x130 [ 63.955700][ T11] ? __pfx_process_one_work+0x10/0x10 [ 63.956012][ T11] ? assign_work+0x16c/0x240 [ 63.956342][ T11] worker_thread+0x73d/0x1010 [ 63.956584][ T11] ? __pfx_worker_thread+0x10/0x10 [ 63.956863][ T11] kthread+0x28f/0x360 [ 63.957092][ T11] ? __pfx_kthread+0x10/0x10 [ 63.957387][ T11] ret_from_fork+0x31/0x70 [ 63.957666][ T11] ? __pfx_kthread+0x10/0x10 [ 63.957919][ T11] ret_from_fork_asm+0x1b/0x30 [ 63.958188][ T11] [ 63.958362][ T11] [ 63.958531][ T11] Allocated by task 11: [ 63.958760][ T11] kasan_save_stack+0x24/0x50 [ 63.959020][ T11] kasan_save_track+0x14/0x30 [ 63.959283][ T11] __kasan_kmalloc+0x7f/0x90 [ 63.959516][ T11] __kmalloc_node_track_caller+0x1fb/0x440 [ 63.959831][ T11] kmalloc_reserve+0xbc/0x1f0 [ 63.960090][ T11] __alloc_skb+0xd4/0x280 [ 63.960339][ T11] rtmsg_ifinfo_build_skb+0x7c/0x240 [ 63.960643][ T11] rtnetlink_event+0xf0/0x1c0 [ 63.960895][ T11] notifier_call_chain+0x9a/0x290 [ 63.961171][ T11] __netdev_upper_dev_unlink+0x115/0x220 [ 63.961508][ T11] netdev_upper_dev_unlink+0x71/0xa0 [ 63.961796][ T11] unregister_vlan_dev+0x1c9/0x3b0 [8021q] [ 63.962119][ T11] default_device_exit_batch+0x16a/0x2c0 [ 63.962446][ T11] cleanup_net+0x4f3/0xa20 [ 63.962671][ T11] process_one_work+0x78c/0x1310 [ 63.962941][ T11] worker_thread+0x73d/0x1010 [ 63.963198][ T11] kthread+0x28f/0x360 [ 63.963418][ T11] ret_from_fork+0x31/0x70 [ 63.963701][ T11] ret_from_fork_asm+0x1b/0x30 [ 63.963958][ T11] [ 63.964085][ T11] Freed by task 11: [ 63.964318][ T11] kasan_save_stack+0x24/0x50 [ 63.964582][ T11] kasan_save_track+0x14/0x30 [ 63.964839][ T11] kasan_save_free_info+0x3f/0x60 [ 63.965145][ T11] __kasan_slab_free+0xfc/0x1c0 [ 63.965467][ T11] kfree+0xf2/0x2d0 [ 63.965693][ T11] pskb_expand_head+0x33a/0xff0 [ 63.965942][ T11] netlink_trim+0x198/0x200 [ 63.966221][ T11] netlink_broadcast_filtered+0xcb/0x340 [ 63.966534][ T11] nlmsg_notify+0x6e/0x1e0 [ 63.966801][ T11] rtnetlink_event+0x167/0x1c0 [ 63.967056][ T11] notifier_call_chain+0x9a/0x290 [ 63.967332][ T11] __netdev_upper_dev_unlink+0x115/0x220 [ 63.967645][ T11] netdev_upper_dev_unlink+0x71/0xa0 [ 63.967931][ T11] unregister_vlan_dev+0x1c9/0x3b0 [8021q] [ 63.968265][ T11] default_device_exit_batch+0x16a/0x2c0 [ 63.968568][ T11] cleanup_net+0x4f3/0xa20 [ 63.968796][ T11] process_one_work+0x78c/0x1310 [ 63.969064][ T11] worker_thread+0x73d/0x1010 [ 63.969353][ T11] kthread+0x28f/0x360 [ 63.969596][ T11] ret_from_fork+0x31/0x70 [ 63.969833][ T11] ret_from_fork_asm+0x1b/0x30 [ 63.970077][ T11] [ 63.970219][ T11] The buggy address belongs to the object at ffff888009a09000 [ 63.970219][ T11] which belongs to the cache kmalloc-4k of size 4096 [ 63.970960][ T11] The buggy address is located 1072 bytes to the left of [ 63.970960][ T11] allocated 4096-byte region [ffff888009a09000, ffff888009a0a000) [ 63.971748][ T11] [ 63.971870][ T11] The buggy address belongs to the physical page: [ 63.972193][ T11] page:ffffea0000268200 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x9a08 [ 63.972711][ T11] head:ffffea0000268200 order:3 entire_mapcount:0 nr_pages_mapped:0 pincount:0 [ 63.973168][ T11] flags: 0x80000000000840(slab|head|node=0|zone=1) [ 63.973559][ T11] page_type: 0xffffffff() [ 63.973782][ T11] raw: 0080000000000840 ffff888001043700 ffffea0000272010 ffffea000020de10 [ 63.974263][ T11] raw: 0000000000000000 0000000000020002 00000001ffffffff 0000000000000000 [ 63.974718][ T11] page dumped because: kasan: bad access detected [ 63.975042][ T11] [ 63.975191][ T11] Memory state around the buggy address: [ 63.975486][ T11] ffff888009a08a80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 63.975950][ T11] ffff888009a08b00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 63.976382][ T11] >ffff888009a08b80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 63.976812][ T11] ^ [ 63.977170][ T11] ffff888009a08c00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 63.977638][ T11] ffff888009a08c80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 63.978047][ T11] ================================================================== [ 63.978543][ T11] Disabling lock debugging due to kernel taint [ 63.978883][ T11] general protection fault, probably for non-canonical address 0xf999959999999999: 0000 [#1] PREEMPT SMP KASAN NOPTI [ 63.979607][ T11] KASAN: maybe wild-memory-access in range [0xccccccccccccccc8-0xcccccccccccccccf] [ 63.980218][ T11] CPU: 2 PID: 11 Comm: kworker/u8:0 Tainted: G B 6.8.0-rc2-virtme #1 [ 63.980754][ T11] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.16.3-0-ga6ed6b701f0a-prebuilt.qemu.org 04/01/2014 [ 63.981566][ T11] Workqueue: netns cleanup_net [ 63.981887][ T11] RIP: 0010:vxlan_netdevice_event+0x19e/0x340 [vxlan] [ 63.982337][ 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 [ 63.983573][ T11] RSP: 0018:ffffc900000bf980 EFLAGS: 00010a07 [ 63.983992][ T11] RAX: 1999999999999999 RBX: cccccccccccccc9c RCX: dffffc0000000000 [ 63.984479][ T11] RDX: cccccccccccccccc RSI: 0000000000000004 RDI: ffff888009a08c24 [ 63.984911][ T11] RBP: 1ffff92000017f33 R08: 1ffff1100104681a R09: ffffc900000bf9b8 [ 63.985345][ T11] R10: ffffffffb853ca07 R11: 205d313154202020 R12: ffffed100104681a [ 63.985799][ T11] R13: ffff888009a08ba0 R14: ffff8880083b9000 R15: ffff888008234000 [ 63.986259][ T11] FS: 0000000000000000(0000) GS:ffff888035a00000(0000) knlGS:0000000000000000 [ 63.986758][ T11] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 63.987164][ T11] CR2: 0000560eda56fdec CR3: 00000000066f8006 CR4: 0000000000770ef0 [ 63.987682][ T11] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 [ 63.988178][ T11] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 [ 63.988635][ T11] PKRU: 55555554 [ 63.988851][ T11] Call Trace: [ 63.989060][ T11] [ 63.989212][ T11] ? die_addr+0x41/0xa0 [ 63.989507][ T11] ? exc_general_protection+0x149/0x220 [ 63.989818][ T11] ? asm_exc_general_protection+0x26/0x30 [ 63.990154][ T11] ? vxlan_netdevice_event+0x19e/0x340 [vxlan] [ 63.990532][ T11] ? __pfx_vxlan_netdevice_event+0x10/0x10 [vxlan] [ 63.990935][ T11] ? netconsole_netdev_event+0x1b4/0x300 [ 63.991263][ T11] notifier_call_chain+0x9a/0x290 [ 63.991570][ T11] unregister_netdevice_many_notify+0x55a/0x1180 [ 63.991936][ T11] ? mutex_is_locked+0x17/0x50 [ 63.992258][ T11] ? __pfx_unregister_netdevice_many_notify+0x10/0x10 [ 63.992627][ T11] ? vrf_dellink+0x101/0x150 [vrf] [ 63.992928][ T11] ? __pfx_unregister_netdevice_queue+0x10/0x10 [ 63.993308][ T11] default_device_exit_batch+0x228/0x2c0 [ 63.993598][ T11] ? __pfx_default_device_exit_batch+0x10/0x10 [ 63.993939][ T11] ? mutex_is_locked+0x17/0x50 [ 63.994193][ T11] ? nexthop_net_exit_batch_rtnl+0x83/0x210 [ 63.994526][ T11] cleanup_net+0x4f3/0xa20 [ 63.994764][ T11] ? __pfx_lock_acquire.part.0+0x10/0x10 [ 63.995092][ T11] ? __pfx_cleanup_net+0x10/0x10 [ 63.995401][ T11] ? lock_acquire+0x1c1/0x220 [ 63.995671][ T11] ? process_one_work+0x714/0x1310 [ 63.995952][ T11] process_one_work+0x78c/0x1310 [ 63.996231][ T11] ? hlock_class+0x4e/0x130 [ 63.996469][ T11] ? __pfx_process_one_work+0x10/0x10 [ 63.996775][ T11] ? assign_work+0x16c/0x240 [ 63.997012][ T11] worker_thread+0x73d/0x1010 [ 63.997278][ T11] ? __pfx_worker_thread+0x10/0x10 [ 63.997578][ T11] kthread+0x28f/0x360 [ 63.997800][ T11] ? __pfx_kthread+0x10/0x10 [ 63.998054][ T11] ret_from_fork+0x31/0x70 [ 63.998307][ T11] ? __pfx_kthread+0x10/0x10 [ 63.998543][ T11] ret_from_fork_asm+0x1b/0x30 [ 63.998813][ T11] [ 63.998970][ T11] Modules linked in: vxlan ip6_udp_tunnel udp_tunnel bridge stp llc 8021q sch_ingress vrf veth [ 63.999970][ T11] ---[ end trace 0000000000000000 ]--- [ 64.000279][ T11] RIP: 0010:vxlan_netdevice_event+0x19e/0x340 [vxlan] [ 64.000689][ 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 [ 64.001817][ T11] RSP: 0018:ffffc900000bf980 EFLAGS: 00010a07 [ 64.002154][ T11] RAX: 1999999999999999 RBX: cccccccccccccc9c RCX: dffffc0000000000 [ 64.002620][ T11] RDX: cccccccccccccccc RSI: 0000000000000004 RDI: ffff888009a08c24 [ 64.003081][ T11] RBP: 1ffff92000017f33 R08: 1ffff1100104681a R09: ffffc900000bf9b8 [ 64.003583][ T11] R10: ffffffffb853ca07 R11: 205d313154202020 R12: ffffed100104681a [ 64.004034][ T11] R13: ffff888009a08ba0 R14: ffff8880083b9000 R15: ffff888008234000 [ 64.004542][ T11] FS: 0000000000000000(0000) GS:ffff888035a00000(0000) knlGS:0000000000000000 [ 64.005054][ T11] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 64.005438][ T11] CR2: 0000560eda56fdec CR3: 00000000066f8006 CR4: 0000000000770ef0 [ 64.005883][ T11] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 [ 64.006369][ T11] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 [ 64.006845][ T11] PKRU: 55555554 [ 64.007056][ T11] Kernel panic - not syncing: Fatal exception [ 64.007525][ T11] Kernel Offset: 0x31e00000 from 0xffffffff81000000 (relocation range: 0xffffffff80000000-0xffffffffbfffffff) [ 64.008128][ T11] ---[ end Kernel panic - not syncing: Fatal exception ]--- WAIT TIMEOUT stdout Ctrl-C stdout Ctrl-C stdout WAIT TIMEOUT stdout