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-2/tools/testing/selftests' make[1]: Entering directory '/home/virtme/testing-2/tools/testing/selftests/net/forwarding' make[1]: Nothing to be done for 'all'. make[1]: Leaving directory '/home/virtme/testing-2/tools/testing/selftests/net/forwarding' make[1]: Entering directory '/home/virtme/testing-2/tools/testing/selftests/net/forwarding' TAP version 13 1..1 # timeout set to 10800 # selftests: net/forwarding: dual_vxlan_bridge.sh [ 1337.519155] br1: port 1(vx100) entered blocking state [ 1337.519603] br1: port 1(vx100) entered disabled state [ 1337.520082] vx100: entered allmulticast mode [ 1337.520562] vx100: entered promiscuous mode [ 1337.521030] br1: port 1(vx100) entered blocking state [ 1337.521556] br1: port 1(vx100) entered forwarding state [ 1337.541369] br1: port 2(veth1) entered blocking state [ 1337.541686] br1: port 2(veth1) entered disabled state [ 1337.541988] veth1: entered allmulticast mode [ 1337.542315] veth1: entered promiscuous mode [ 1337.552293] br1: port 2(veth1) entered blocking state [ 1337.552612] br1: port 2(veth1) entered forwarding state [ 1337.587931] br2: port 1(vx200) entered blocking state [ 1337.588296] br2: port 1(vx200) entered disabled state [ 1337.588642] vx200: entered allmulticast mode [ 1337.589019] vx200: entered promiscuous mode [ 1337.589331] br2: port 1(vx200) entered blocking state [ 1337.589652] br2: port 1(vx200) entered forwarding state [ 1337.617246] br2: port 2(veth2.20) entered blocking state [ 1337.617813] br2: port 2(veth2.20) entered disabled state [ 1337.618207] veth2.20: entered allmulticast mode [ 1337.618531] veth2.20: entered promiscuous mode [ 1337.627032] veth2: entered allmulticast mode [ 1337.627293] veth2: entered promiscuous mode [ 1337.627642] br2: port 2(veth2.20) entered blocking state [ 1337.627958] br2: port 2(veth2.20) entered forwarding state [ 1337.965852] br3: port 1(w1) entered blocking state [ 1337.966203] br3: port 1(w1) entered disabled state [ 1337.966489] w1: entered allmulticast mode [ 1337.966796] w1: entered promiscuous mode [ 1338.025714] br3: port 2(vx100) entered blocking state [ 1338.026052] br3: port 2(vx100) entered disabled state [ 1338.026340] vx100: entered allmulticast mode [ 1338.026663] vx100: entered promiscuous mode [ 1338.026936] br3: port 2(vx100) entered blocking state [ 1338.027221] br3: port 2(vx100) entered forwarding state [ 1338.098496] br3: port 1(w1) entered blocking state [ 1338.098797] br3: port 1(w1) entered forwarding state [ 1338.390804] br3: port 1(w1) entered blocking state [ 1338.391141] br3: port 1(w1) entered disabled state [ 1338.391423] w1: entered allmulticast mode [ 1338.391722] w1: entered promiscuous mode [ 1338.455862] br3: port 2(vx200) entered blocking state [ 1338.456223] br3: port 2(vx200) entered disabled state [ 1338.456526] vx200: entered allmulticast mode [ 1338.456871] vx200: entered promiscuous mode [ 1338.457169] br3: port 2(vx200) entered blocking state [ 1338.457489] br3: port 2(vx200) entered forwarding state [ 1338.528292] br3: port 1(w1) entered blocking state [ 1338.528615] br3: port 1(w1) entered forwarding state [ 1338.720567] br3: port 3(w1.20) entered blocking state [ 1338.720885] br3: port 3(w1.20) entered disabled state [ 1338.721196] w1.20: entered allmulticast mode [ 1338.721519] w1.20: entered promiscuous mode [ 1338.788806] br3: port 3(w1.20) entered blocking state [ 1338.789126] br3: port 3(w1.20) entered forwarding state [ 1338.790098] net_ratelimit: 10 callbacks suppressed [ 1338.790101] IPv6: w2: IPv6 duplicate address fe80::c834:ff:fe52:dda used by ca:34:00:52:0d:da detected! # 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 ] [ 1346.176968] w1.20: left allmulticast mode [ 1346.177520] w1.20: left promiscuous mode [ 1346.178039] br3: port 3(w1.20) entered disabled state [ 1346.186151] vx200: left allmulticast mode [ 1346.186560] vx200: left promiscuous mode [ 1346.186844] br3: port 2(vx200) entered disabled state [ 1346.200112] w1: left allmulticast mode [ 1346.200339] w1: left promiscuous mode [ 1346.200558] br3: port 1(w1) entered disabled state [ 1346.209379] ------------[ cut here ]------------ [ 1346.209662] refcount_t: underflow; use-after-free. [ 1346.210010] WARNING: CPU: 1 PID: 68 at lib/refcount.c:28 refcount_warn_saturate+0xd0/0x130 [ 1346.210615] Modules linked in: vxlan ip6_udp_tunnel udp_tunnel sch_tbf act_pedit macvlan act_mirred cls_flower 8021q bridge stp llc ip6_gre ip6_tunnel tunnel6 act_gact cls_matchall ip_gre gre sch_ingress vrf veth [ 1346.212100] CPU: 1 PID: 68 Comm: kworker/u8:1 Not tainted 6.8.0-rc2-virtme #1 [ 1346.212664] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.16.3-0-ga6ed6b701f0a-prebuilt.qemu.org 04/01/2014 [ 1346.213567] Workqueue: netns cleanup_net [ 1346.213895] RIP: 0010:refcount_warn_saturate+0xd0/0x130 [ 1346.214324] Code: 0b 90 90 c3 cc cc cc cc 80 3d a1 b9 66 01 00 0f 85 75 ff ff ff c6 05 94 b9 66 01 01 90 48 c7 c7 a0 70 6f a1 e8 71 92 b4 ff 90 <0f> 0b 90 90 c3 cc cc cc cc 80 3d 74 b9 66 01 00 0f 85 4a ff ff ff [ 1346.215783] RSP: 0018:ffffa91840263d78 EFLAGS: 00010286 [ 1346.216218] RAX: 0000000000000000 RBX: ffff90b982888000 RCX: 00000000ffffdfff [ 1346.216779] RDX: 0000000000000000 RSI: 00000000ffffffea RDI: 0000000000000001 [ 1346.217355] RBP: ffff90b9828885f8 R08: ffffffffa1b64508 R09: 00000000ffffdfff [ 1346.217926] R10: ffffffffa1a84520 R11: ffffffffa1b34520 R12: ffff90b982888000 [ 1346.218500] R13: ffffa91840263e08 R14: ffff90b982888b60 R15: ffff90b985d60050 [ 1346.219075] FS: 0000000000000000(0000) GS:ffff90b9bec80000(0000) knlGS:0000000000000000 [ 1346.219686] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 1346.220012] CR2: 00007f2f4c663270 CR3: 000000003684c005 CR4: 00000000001706f0 [ 1346.220415] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 [ 1346.220803] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 [ 1346.221204] Call Trace: [ 1346.221353] [ 1346.221483] ? __warn+0x84/0x170 [ 1346.221678] ? refcount_warn_saturate+0xd0/0x130 [ 1346.221942] ? report_bug+0x199/0x1b0 [ 1346.222161] ? handle_bug+0x3d/0x70 [ 1346.222366] ? exc_invalid_op+0x18/0x70 [ 1346.222581] ? asm_exc_invalid_op+0x1a/0x20 [ 1346.222816] ? refcount_warn_saturate+0xd0/0x130 [ 1346.223086] ? refcount_warn_saturate+0xcf/0x130 [ 1346.223350] br_sysfs_delbr+0x1d/0x40 [bridge] [ 1346.223651] br_dev_delete+0x88/0xa0 [bridge] [ 1346.223907] br_net_exit_batch_rtnl+0x70/0xd0 [bridge] [ 1346.224205] cleanup_net+0x251/0x3a0 [ 1346.224418] ? process_one_work+0x16c/0x4b0 [ 1346.224657] process_one_work+0x1d9/0x4b0 [ 1346.224885] worker_thread+0x1c1/0x3d0 [ 1346.225103] ? __pfx_worker_thread+0x10/0x10 [ 1346.225367] kthread+0xdd/0x110 [ 1346.225555] ? __pfx_kthread+0x10/0x10 [ 1346.225764] ret_from_fork+0x34/0x50 [ 1346.225965] ? __pfx_kthread+0x10/0x10 [ 1346.226190] ret_from_fork_asm+0x1b/0x30 [ 1346.226431] [ 1346.226559] irq event stamp: 61599 [ 1346.226752] hardirqs last enabled at (61609): [] console_unlock+0x10d/0x130 [ 1346.227230] hardirqs last disabled at (61620): [] console_unlock+0xf2/0x130 [ 1346.227705] softirqs last enabled at (61176): [] __do_softirq+0x2c2/0x37a [ 1346.228167] softirqs last disabled at (61171): [] irq_exit_rcu+0x7f/0xa0 [ 1346.228701] ---[ end trace 0000000000000000 ]--- [ 1346.229093] ------------[ cut here ]------------ [ 1346.229456] sysfs group 'bridge' not found for kobject 'br3' [ 1346.229924] WARNING: CPU: 1 PID: 68 at fs/sysfs/group.c:282 sysfs_remove_group+0x75/0x90 [ 1346.230573] Modules linked in: vxlan ip6_udp_tunnel udp_tunnel sch_tbf act_pedit macvlan act_mirred cls_flower 8021q bridge stp llc ip6_gre ip6_tunnel tunnel6 act_gact cls_matchall ip_gre gre sch_ingress vrf veth [ 1346.232081] CPU: 1 PID: 68 Comm: kworker/u8:1 Tainted: G W 6.8.0-rc2-virtme #1 [ 1346.232751] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.16.3-0-ga6ed6b701f0a-prebuilt.qemu.org 04/01/2014 [ 1346.233650] Workqueue: netns cleanup_net [ 1346.233971] RIP: 0010:sysfs_remove_group+0x75/0x90 [ 1346.234374] Code: 48 89 ef 5d 41 5c e9 0a ae ff ff 48 89 ef e8 a2 9b ff ff eb d1 90 49 8b 14 24 48 8b 33 48 c7 c7 88 06 6f a1 e8 fc b0 c5 ff 90 <0f> 0b 90 90 5b 5d 41 5c c3 cc cc cc cc 66 66 2e 0f 1f 84 00 00 00 [ 1346.235842] RSP: 0018:ffffa91840263d70 EFLAGS: 00010286 [ 1346.236265] RAX: 0000000000000000 RBX: ffffffffc04aec60 RCX: 00000000ffffdfff [ 1346.236762] RDX: 0000000000000000 RSI: 00000000ffffffea RDI: 0000000000000001 [ 1346.237153] RBP: 0000000000000000 R08: ffffffffa1b64508 R09: 00000000ffffdfff [ 1346.237556] R10: ffffffffa1a84520 R11: ffffffffa1b34520 R12: ffff90b9828885f8 [ 1346.237936] R13: ffffa91840263e08 R14: ffff90b982888b60 R15: ffff90b985d60050 [ 1346.238336] FS: 0000000000000000(0000) GS:ffff90b9bec80000(0000) knlGS:0000000000000000 [ 1346.238775] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 1346.239094] CR2: 00007f2f4c663270 CR3: 000000003684c005 CR4: 00000000001706f0 [ 1346.239511] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 [ 1346.239893] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 [ 1346.240291] Call Trace: [ 1346.240432] [ 1346.240557] ? __warn+0x84/0x170 [ 1346.240742] ? sysfs_remove_group+0x75/0x90 [ 1346.240985] ? report_bug+0x199/0x1b0 [ 1346.241198] ? handle_bug+0x3d/0x70 [ 1346.241405] ? exc_invalid_op+0x18/0x70 [ 1346.241619] ? asm_exc_invalid_op+0x1a/0x20 [ 1346.241861] ? sysfs_remove_group+0x75/0x90 [ 1346.242103] br_dev_delete+0x88/0xa0 [bridge] [ 1346.242381] br_net_exit_batch_rtnl+0x70/0xd0 [bridge] [ 1346.242672] cleanup_net+0x251/0x3a0 [ 1346.242877] ? process_one_work+0x16c/0x4b0 [ 1346.243119] process_one_work+0x1d9/0x4b0 [ 1346.243352] worker_thread+0x1c1/0x3d0 [ 1346.243561] ? __pfx_worker_thread+0x10/0x10 [ 1346.243802] kthread+0xdd/0x110 [ 1346.243989] ? __pfx_kthread+0x10/0x10 [ 1346.244200] ret_from_fork+0x34/0x50 [ 1346.244432] ? __pfx_kthread+0x10/0x10 [ 1346.244642] ret_from_fork_asm+0x1b/0x30 [ 1346.244868] [ 1346.244999] irq event stamp: 62265 [ 1346.245189] hardirqs last enabled at (62275): [] console_unlock+0x10d/0x130 [ 1346.245658] hardirqs last disabled at (62284): [] console_unlock+0xf2/0x130 [ 1346.246122] softirqs last enabled at (61176): [] __do_softirq+0x2c2/0x37a [ 1346.246584] softirqs last disabled at (61171): [] irq_exit_rcu+0x7f/0xa0 [ 1346.247030] ---[ end trace 0000000000000000 ]--- [ 1346.328096] vx100: left allmulticast mode [ 1346.328460] vx100: left promiscuous mode [ 1346.328878] br3: port 2(vx100) entered disabled state [ 1346.339119] w1: left allmulticast mode [ 1346.339349] w1: left promiscuous mode [ 1346.339567] br3: port 1(w1) entered disabled state [ 1346.348187] ------------[ cut here ]------------ [ 1346.348467] sysfs group 'bridge' not found for kobject 'br3' [ 1346.348870] WARNING: CPU: 3 PID: 68 at fs/sysfs/group.c:282 sysfs_remove_group+0x75/0x90 [ 1346.349335] Modules linked in: vxlan ip6_udp_tunnel udp_tunnel sch_tbf act_pedit macvlan act_mirred cls_flower 8021q bridge stp llc ip6_gre ip6_tunnel tunnel6 act_gact cls_matchall ip_gre gre sch_ingress vrf veth [ 1346.350363] CPU: 3 PID: 68 Comm: kworker/u8:1 Tainted: G W 6.8.0-rc2-virtme #1 [ 1346.350827] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.16.3-0-ga6ed6b701f0a-prebuilt.qemu.org 04/01/2014 [ 1346.351463] Workqueue: netns cleanup_net [ 1346.351713] RIP: 0010:sysfs_remove_group+0x75/0x90 [ 1346.352004] Code: 48 89 ef 5d 41 5c e9 0a ae ff ff 48 89 ef e8 a2 9b ff ff eb d1 90 49 8b 14 24 48 8b 33 48 c7 c7 88 06 6f a1 e8 fc b0 c5 ff 90 <0f> 0b 90 90 5b 5d 41 5c c3 cc cc cc cc 66 66 2e 0f 1f 84 00 00 00 [ 1346.353032] RSP: 0018:ffffa91840263d70 EFLAGS: 00010286 [ 1346.353372] RAX: 0000000000000000 RBX: ffffffffc04aec60 RCX: 00000000ffffdfff [ 1346.353765] RDX: 0000000000000000 RSI: 00000000ffffffea RDI: 0000000000000001 [ 1346.354159] RBP: 0000000000000000 R08: ffffffffa1b64508 R09: 00000000ffffdfff [ 1346.354567] R10: ffffffffa1a84520 R11: ffffffffa1b34520 R12: ffff90b982bb45f8 [ 1346.354970] R13: ffffa91840263e08 R14: ffff90b982bb4b60 R15: ffffffffa3013dd0 [ 1346.355394] FS: 0000000000000000(0000) GS:ffff90b9bed80000(0000) knlGS:0000000000000000 [ 1346.355872] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 1346.356241] CR2: 00005637a6bfbdec CR3: 0000000002a06001 CR4: 00000000001706f0 [ 1346.356645] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 [ 1346.357043] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 [ 1346.357435] Call Trace: [ 1346.357581] [ 1346.357708] ? __warn+0x84/0x170 [ 1346.357903] ? sysfs_remove_group+0x75/0x90 [ 1346.358144] ? report_bug+0x199/0x1b0 [ 1346.358368] ? handle_bug+0x3d/0x70 [ 1346.358563] ? exc_invalid_op+0x18/0x70 [ 1346.358789] ? asm_exc_invalid_op+0x1a/0x20 [ 1346.359036] ? sysfs_remove_group+0x75/0x90 [ 1346.359285] br_dev_delete+0x88/0xa0 [bridge] [ 1346.359574] br_net_exit_batch_rtnl+0x70/0xd0 [bridge] [ 1346.359877] cleanup_net+0x251/0x3a0 [ 1346.360099] ? process_one_work+0x16c/0x4b0 [ 1346.360332] process_one_work+0x1d9/0x4b0 [ 1346.360557] worker_thread+0x1c1/0x3d0 [ 1346.360765] ? __pfx_worker_thread+0x10/0x10 [ 1346.361012] kthread+0xdd/0x110 [ 1346.361192] ? __pfx_kthread+0x10/0x10 [ 1346.361408] ret_from_fork+0x34/0x50 [ 1346.361610] ? __pfx_kthread+0x10/0x10 [ 1346.361817] ret_from_fork_asm+0x1b/0x30 [ 1346.362073] [ 1346.362211] irq event stamp: 96883 [ 1346.362413] hardirqs last enabled at (96893): [] console_unlock+0x10d/0x130 [ 1346.362876] hardirqs last disabled at (96902): [] console_unlock+0xf2/0x130 [ 1346.363368] softirqs last enabled at (96562): [] __do_softirq+0x2c2/0x37a [ 1346.363845] softirqs last disabled at (96557): [] irq_exit_rcu+0x7f/0xa0 [ 1346.364335] ---[ end trace 0000000000000000 ]--- [ 1346.637053] vx200: left allmulticast mode [ 1346.637310] vx200: left promiscuous mode [ 1346.637548] br2: port 1(vx200) entered disabled state [ 1346.689096] veth2: left allmulticast mode [ 1346.689450] veth2: left promiscuous mode [ 1346.690027] br2: port 2(veth2.20) entered disabled state [ 1346.690754] veth2.20 (unregistering): left allmulticast mode [ 1346.691221] veth2.20 (unregistering): left promiscuous mode [ 1346.691658] br2: port 2(veth2.20) entered disabled state [ 1346.744573] br1: port 2(veth1) entered disabled state [ 1346.754092] veth1: left allmulticast mode [ 1346.754341] veth1: left promiscuous mode [ 1346.754568] br1: port 2(veth1) entered disabled state [ 1346.772972] vx100: left allmulticast mode [ 1346.773310] vx100: left promiscuous mode [ 1346.773574] br1: port 1(vx100) entered disabled state ok 1 selftests: net/forwarding: dual_vxlan_bridge.sh make[1]: Leaving directory '/home/virtme/testing-2/tools/testing/selftests/net/forwarding' make: Leaving directory '/home/virtme/testing-2/tools/testing/selftests' xx__-> echo $? 0 xx__->