make -C tools/testing/selftests TARGETS=net/forwarding TEST_PROGS=vxlan_brridge_1d.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: vxlan_bridge_1d.sh [ 2.040206] ip (230) used greatest stack depth: 12056 bytes left [ 2.087706] ip (238) used greatest stack depth: 12032 bytes left [ 2.132238] ip (244) used greatest stack depth: 11864 bytes left [ 2.673730] br1: port 1(vx1) entered blocking state [ 2.674214] br1: port 1(vx1) entered disabled state [ 2.674711] vx1: entered allmulticast mode [ 2.675178] vx1: entered promiscuous mode [ 2.675664] br1: port 1(vx1) entered blocking state [ 2.676090] br1: port 1(vx1) entered forwarding state [ 2.686636] br1: port 2(veth1) entered blocking state [ 2.686960] br1: port 2(veth1) entered disabled state [ 2.687289] veth1: entered allmulticast mode [ 2.687639] veth1: entered promiscuous mode [ 2.697570] br1: port 2(veth1) entered blocking state [ 2.697892] br1: port 2(veth1) entered forwarding state [ 2.707361] br1: port 3(veth2) entered blocking state [ 2.707702] br1: port 3(veth2) entered disabled state [ 2.707988] veth2: entered allmulticast mode [ 2.708327] veth2: entered promiscuous mode [ 2.717872] br1: port 3(veth2) entered blocking state [ 2.718181] br1: port 3(veth2) entered forwarding state [ 3.074984] br2: port 1(w1) entered blocking state [ 3.075424] br2: port 1(w1) entered disabled state [ 3.075826] w1: entered allmulticast mode [ 3.076289] w1: entered promiscuous mode [ 3.137355] br2: port 2(vx2) entered blocking state [ 3.137665] br2: port 2(vx2) entered disabled state [ 3.137963] vx2: entered allmulticast mode [ 3.138286] vx2: entered promiscuous mode [ 3.138573] br2: port 2(vx2) entered blocking state [ 3.138842] br2: port 2(vx2) entered forwarding state [ 3.214215] br2: port 1(w1) entered blocking state [ 3.214519] br2: port 1(w1) entered forwarding state [ 3.408269] br2: port 1(w1) entered blocking state [ 3.408560] br2: port 1(w1) entered disabled state [ 3.408895] w1: entered allmulticast mode [ 3.409212] w1: entered promiscuous mode [ 3.469784] br2: port 2(vx2) entered blocking state [ 3.470111] br2: port 2(vx2) entered disabled state [ 3.470391] vx2: entered allmulticast mode [ 3.470695] vx2: entered promiscuous mode [ 3.470972] br2: port 2(vx2) entered blocking state [ 3.471249] br2: port 2(vx2) entered forwarding state [ 3.543209] br2: port 1(w1) entered blocking state [ 3.543524] br2: port 1(w1) entered forwarding state # Running tests with UDP port 4789 # TEST: ping: local->local [ OK ] # TEST: ping: local->remote 1 [ OK ] # TEST: ping: local->remote 2 [ OK ] [ 11.952930] GACT probability NOT on # TEST: VXLAN: flood [ OK ] [ 14.869680] veth3: entered promiscuous mode # TEST: VXLAN: local MAC unicast [ OK ] [ 18.129683] tc (704) used greatest stack depth: 11696 bytes left # TEST: VXLAN: remote MAC 1 unicast [ OK ] # TEST: VXLAN: remote MAC 2 unicast [ OK ] [ 23.769164] veth3: left promiscuous mode # TEST: VXLAN: envelope TTL [ OK ] # TEST: VXLAN: envelope TOS inheritance [ OK ] # TEST: VXLAN: ECN encap: 0x00->0x00 [ OK ] # TEST: VXLAN: ECN encap: 0x01->0x01 [ OK ] # TEST: VXLAN: ECN encap: 0x02->0x02 [ OK ] # TEST: VXLAN: ECN encap: 0x03->0x02 [ OK ] # TEST: VXLAN: ECN decap: 00/00->0x00 [ OK ] [ 39.081370] vxlan: non-ECT from 192.0.2.34 with TOS=0x1 [ 39.181985] vxlan: non-ECT from 192.0.2.34 with TOS=0x1 [ 39.282575] vxlan: non-ECT from 192.0.2.34 with TOS=0x1 [ 39.383177] vxlan: non-ECT from 192.0.2.34 with TOS=0x1 [ 39.483902] vxlan: non-ECT from 192.0.2.34 with TOS=0x1 [ 39.584654] vxlan: non-ECT from 192.0.2.34 with TOS=0x1 [ 39.685403] vxlan: non-ECT from 192.0.2.34 with TOS=0x1 [ 39.786098] vxlan: non-ECT from 192.0.2.34 with TOS=0x1 [ 39.886653] vxlan: non-ECT from 192.0.2.34 with TOS=0x1 [ 39.987187] vxlan: non-ECT from 192.0.2.34 with TOS=0x1 # TEST: VXLAN: ECN decap: 01/00->0x00 [ OK ] # TEST: VXLAN: ECN decap: 02/00->0x00 [ OK ] # TEST: VXLAN: ECN decap: 00/01->0x01 [ OK ] # TEST: VXLAN: ECN decap: 01/01->0x01 [ OK ] # TEST: VXLAN: ECN decap: 02/01->0x01 [ OK ] [ 49.456838] tc (1316) used greatest stack depth: 11576 bytes left # TEST: VXLAN: ECN decap: 03/01->0x03 [ OK ] # TEST: VXLAN: ECN decap: 00/02->0x02 [ OK ] # TEST: VXLAN: ECN decap: 01/02->0x01 [ OK ] # TEST: VXLAN: ECN decap: 02/02->0x02 [ OK ] # TEST: VXLAN: ECN decap: 03/02->0x03 [ OK ] # TEST: VXLAN: ECN decap: 00/03->0x03 [ OK ] # TEST: VXLAN: ECN decap: 01/03->0x03 [ OK ] # TEST: VXLAN: ECN decap: 02/03->0x03 [ OK ] # TEST: VXLAN: ECN decap: 03/03->0x03 [ OK ] [ 70.506360] net_ratelimit: 10 callbacks suppressed [ 70.506363] vxlan: non-ECT from 192.0.2.34 with TOS=0x3 [ 70.607151] vxlan: non-ECT from 192.0.2.34 with TOS=0x3 [ 70.707738] vxlan: non-ECT from 192.0.2.34 with TOS=0x3 [ 70.808329] vxlan: non-ECT from 192.0.2.34 with TOS=0x3 [ 70.908990] vxlan: non-ECT from 192.0.2.34 with TOS=0x3 [ 71.009590] vxlan: non-ECT from 192.0.2.34 with TOS=0x3 [ 71.110249] vxlan: non-ECT from 192.0.2.34 with TOS=0x3 [ 71.210987] vxlan: non-ECT from 192.0.2.34 with TOS=0x3 [ 71.311583] vxlan: non-ECT from 192.0.2.34 with TOS=0x3 [ 71.412267] vxlan: non-ECT from 192.0.2.34 with TOS=0x3 # TEST: VXLAN: ECN decap: 03/00->error [ OK ] # Reapplying configuration [ 71.606843] vx1: left allmulticast mode [ 71.607102] vx1: left promiscuous mode [ 71.607329] br1: port 1(vx1) entered disabled state [ 76.633606] br1: port 1(vx1) entered blocking state [ 76.633911] br1: port 1(vx1) entered disabled state [ 76.634239] vx1: entered allmulticast mode [ 76.634557] vx1: entered promiscuous mode [ 76.634818] br1: port 1(vx1) entered blocking state [ 76.635092] br1: port 1(vx1) entered forwarding state # TEST: ping: local->local [ OK ] # TEST: ping: local->remote 1 [ OK ] # TEST: ping: local->remote 2 [ OK ] # TEST: VXLAN: flood [ OK ] [ 88.645442] veth3: entered promiscuous mode # TEST: VXLAN: local MAC unicast [ OK ] # TEST: VXLAN: remote MAC 1 unicast [ OK ] # TEST: VXLAN: remote MAC 2 unicast [ OK ] [ 97.399518] veth3: left promiscuous mode # Reapplying configuration [ 97.536444] vx1: left allmulticast mode [ 97.536790] vx1: left promiscuous mode [ 97.537109] br1: port 1(vx1) entered disabled state [ 102.566174] br1: port 1(vx1) entered blocking state [ 102.566476] br1: port 1(vx1) entered disabled state [ 102.566762] vx1: entered allmulticast mode [ 102.567269] vx1: entered promiscuous mode [ 102.567526] br1: port 1(vx1) entered blocking state [ 102.567794] br1: port 1(vx1) entered forwarding state # TEST: VXLAN: flood before learning [ OK ] # TEST: VXLAN: show learned FDB entry [ OK ] # TEST: VXLAN: learned FDB entry [ OK ] # TEST: VXLAN: deletion of learned FDB entry [ OK ] # TEST: VXLAN: Ageing of learned FDB entry [ OK ] # TEST: VXLAN: learning toggling on bridge port [ OK ] # Reapplying configuration [ 149.028636] vx1: left allmulticast mode [ 149.028907] vx1: left promiscuous mode [ 149.029148] br1: port 1(vx1) entered disabled state [ 154.059268] br1: port 1(vx1) entered blocking state [ 154.059704] br1: port 1(vx1) entered disabled state [ 154.060127] vx1: entered allmulticast mode [ 154.060611] vx1: entered promiscuous mode [ 154.060988] br1: port 1(vx1) entered blocking state [ 154.061399] br1: port 1(vx1) entered forwarding state [ 160.179161] vx2: left allmulticast mode [ 160.179462] vx2: left promiscuous mode [ 160.179683] br2: port 2(vx2) entered disabled state [ 160.190362] w1: left allmulticast mode [ 160.190880] w1: left promiscuous mode [ 160.191381] br2: port 1(w1) entered disabled state [ 160.202508] ------------[ cut here ]------------ [ 160.202923] refcount_t: underflow; use-after-free. [ 160.203362] WARNING: CPU: 3 PID: 10 at lib/refcount.c:28 refcount_warn_saturate+0xd0/0x130 [ 160.204033] Modules linked in: act_gact cls_flower vxlan ip6_udp_tunnel udp_tunnel bridge stp llc sch_ingress vrf veth [ 160.204917] CPU: 3 PID: 10 Comm: kworker/u8:0 Not tainted 6.8.0-rc2-virtme #1 [ 160.205510] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.16.3-0-ga6ed6b701f0a-prebuilt.qemu.org 04/01/2014 [ 160.206444] Workqueue: netns cleanup_net [ 160.206772] RIP: 0010:refcount_warn_saturate+0xd0/0x130 [ 160.207212] 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 c8 70 0f 87 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 [ 160.208702] RSP: 0018:ffffc05e0005bd78 EFLAGS: 00010286 [ 160.209148] RAX: 0000000000000000 RBX: ffff9ce381d3a000 RCX: 00000000ffffdfff [ 160.209728] RDX: 0000000000000000 RSI: 00000000ffffffea RDI: 0000000000000001 [ 160.210318] RBP: ffff9ce381d3a5f8 R08: ffffffff87564508 R09: 00000000ffffdfff [ 160.210899] R10: ffffffff87484520 R11: ffffffff87534520 R12: ffff9ce381d3a000 [ 160.211490] R13: ffffc05e0005be08 R14: ffff9ce381d3ab60 R15: ffff9ce385590050 [ 160.212068] FS: 0000000000000000(0000) GS:ffff9ce3bed80000(0000) knlGS:0000000000000000 [ 160.212744] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 160.213220] CR2: 00007fc7c6d7a270 CR3: 000000000594e003 CR4: 00000000001706f0 [ 160.213799] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 [ 160.214374] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 [ 160.214942] Call Trace: [ 160.215160] [ 160.215343] ? __warn+0x84/0x170 [ 160.215622] ? refcount_warn_saturate+0xd0/0x130 [ 160.216010] ? report_bug+0x199/0x1b0 [ 160.216334] ? handle_bug+0x3d/0x70 [ 160.216631] ? exc_invalid_op+0x18/0x70 [ 160.216957] ? asm_exc_invalid_op+0x1a/0x20 [ 160.217325] ? refcount_warn_saturate+0xd0/0x130 [ 160.217710] ? refcount_warn_saturate+0xcf/0x130 [ 160.218099] br_sysfs_delbr+0x1d/0x40 [bridge] [ 160.218543] br_dev_delete+0x88/0xa0 [bridge] [ 160.218919] br_net_exit_batch_rtnl+0x70/0xd0 [bridge] [ 160.219371] cleanup_net+0x251/0x3a0 [ 160.219682] ? process_one_work+0x16c/0x4b0 [ 160.220029] process_one_work+0x1d9/0x4b0 [ 160.220383] worker_thread+0x1c1/0x3d0 [ 160.220695] ? __pfx_worker_thread+0x10/0x10 [ 160.221051] kthread+0xdd/0x110 [ 160.221329] ? __pfx_kthread+0x10/0x10 [ 160.221646] ret_from_fork+0x34/0x50 [ 160.221948] ? __pfx_kthread+0x10/0x10 [ 160.222273] ret_from_fork_asm+0x1b/0x30 [ 160.222616] [ 160.222808] irq event stamp: 14959 [ 160.223107] hardirqs last enabled at (14971): [] console_unlock+0x10d/0x130 [ 160.223803] hardirqs last disabled at (14980): [] console_unlock+0xf2/0x130 [ 160.224498] softirqs last enabled at (14588): [] __do_softirq+0x2c2/0x37a [ 160.225186] softirqs last disabled at (14583): [] irq_exit_rcu+0x7f/0xa0 [ 160.225845] ---[ end trace 0000000000000000 ]--- [ 160.226238] ------------[ cut here ]------------ [ 160.226611] sysfs group 'bridge' not found for kobject 'br2' [ 160.227108] WARNING: CPU: 3 PID: 10 at fs/sysfs/group.c:282 sysfs_remove_group+0x75/0x90 [ 160.227765] Modules linked in: act_gact cls_flower vxlan ip6_udp_tunnel udp_tunnel bridge stp llc sch_ingress vrf veth [ 160.228648] CPU: 3 PID: 10 Comm: kworker/u8:0 Tainted: G W 6.8.0-rc2-virtme #1 [ 160.229347] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.16.3-0-ga6ed6b701f0a-prebuilt.qemu.org 04/01/2014 [ 160.230265] Workqueue: netns cleanup_net [ 160.230596] RIP: 0010:sysfs_remove_group+0x75/0x90 [ 160.230997] 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 b0 06 0f 87 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 [ 160.232590] RSP: 0018:ffffc05e0005bd70 EFLAGS: 00010286 [ 160.233016] RAX: 0000000000000000 RBX: ffffffffc02b5c60 RCX: 00000000ffffdfff [ 160.233597] RDX: 0000000000000000 RSI: 00000000ffffffea RDI: 0000000000000001 [ 160.234183] RBP: 0000000000000000 R08: ffffffff87564508 R09: 00000000ffffdfff [ 160.234756] R10: ffffffff87484520 R11: ffffffff87534520 R12: ffff9ce381d3a5f8 [ 160.235349] R13: ffffc05e0005be08 R14: ffff9ce381d3ab60 R15: ffff9ce385590050 [ 160.235923] FS: 0000000000000000(0000) GS:ffff9ce3bed80000(0000) knlGS:0000000000000000 [ 160.236576] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 160.237049] CR2: 00007fc7c6d7a270 CR3: 000000000594e003 CR4: 00000000001706f0 [ 160.237641] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 [ 160.238224] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 [ 160.238798] Call Trace: [ 160.239008] [ 160.239205] ? __warn+0x84/0x170 [ 160.239480] ? sysfs_remove_group+0x75/0x90 [ 160.239828] ? report_bug+0x199/0x1b0 [ 160.240153] ? handle_bug+0x3d/0x70 [ 160.240448] ? exc_invalid_op+0x18/0x70 [ 160.240770] ? asm_exc_invalid_op+0x1a/0x20 [ 160.241131] ? sysfs_remove_group+0x75/0x90 [ 160.241484] br_dev_delete+0x88/0xa0 [bridge] [ 160.241883] br_net_exit_batch_rtnl+0x70/0xd0 [bridge] [ 160.242341] cleanup_net+0x251/0x3a0 [ 160.242658] ? process_one_work+0x16c/0x4b0 [ 160.243007] process_one_work+0x1d9/0x4b0 [ 160.243357] worker_thread+0x1c1/0x3d0 [ 160.243671] ? __pfx_worker_thread+0x10/0x10 [ 160.244025] kthread+0xdd/0x110 [ 160.244296] ? __pfx_kthread+0x10/0x10 [ 160.244599] ret_from_fork+0x34/0x50 [ 160.244899] ? __pfx_kthread+0x10/0x10 [ 160.245220] ret_from_fork_asm+0x1b/0x30 [ 160.245552] [ 160.245740] irq event stamp: 15567 [ 160.246025] hardirqs last enabled at (15577): [] console_unlock+0x10d/0x130 [ 160.246726] hardirqs last disabled at (15588): [] console_unlock+0xf2/0x130 [ 160.247425] softirqs last enabled at (14588): [] __do_softirq+0x2c2/0x37a [ 160.248114] softirqs last disabled at (14583): [] irq_exit_rcu+0x7f/0xa0 [ 160.248773] ---[ end trace 0000000000000000 ]--- [ 160.320652] vx2: left allmulticast mode [ 160.320951] vx2: left promiscuous mode [ 160.321238] br2: port 2(vx2) entered disabled state [ 160.330264] w1: left allmulticast mode [ 160.330501] w1: left promiscuous mode [ 160.330715] br2: port 1(w1) entered disabled state [ 160.342293] ------------[ cut here ]------------ [ 160.342581] sysfs group 'bridge' not found for kobject 'br2' [ 160.342910] WARNING: CPU: 3 PID: 10 at fs/sysfs/group.c:282 sysfs_remove_group+0x75/0x90 [ 160.343371] Modules linked in: act_gact cls_flower vxlan ip6_udp_tunnel udp_tunnel bridge stp llc sch_ingress vrf veth [ 160.343957] CPU: 3 PID: 10 Comm: kworker/u8:0 Tainted: G W 6.8.0-rc2-virtme #1 [ 160.344424] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.16.3-0-ga6ed6b701f0a-prebuilt.qemu.org 04/01/2014 [ 160.345067] Workqueue: netns cleanup_net [ 160.345317] RIP: 0010:sysfs_remove_group+0x75/0x90 [ 160.345589] 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 b0 06 0f 87 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 [ 160.346609] RSP: 0018:ffffc05e0005bd70 EFLAGS: 00010286 [ 160.346896] RAX: 0000000000000000 RBX: ffffffffc02b5c60 RCX: 00000000ffffdfff [ 160.347289] RDX: 0000000000000000 RSI: 00000000ffffffea RDI: 0000000000000001 [ 160.347705] RBP: 0000000000000000 R08: ffffffff87564508 R09: 00000000ffffdfff [ 160.348105] R10: ffffffff87484520 R11: ffffffff87534520 R12: ffff9ce38190c5f8 [ 160.348500] R13: ffffc05e0005be08 R14: ffff9ce38190cb60 R15: ffffffff88a13dd0 [ 160.348911] FS: 0000000000000000(0000) GS:ffff9ce3bed80000(0000) knlGS:0000000000000000 [ 160.349362] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 160.349674] CR2: 00007fc7c6d7a270 CR3: 000000002a64c004 CR4: 00000000001706f0 [ 160.350090] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 [ 160.350472] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 [ 160.350853] Call Trace: [ 160.350999] [ 160.351143] ? __warn+0x84/0x170 [ 160.351331] ? sysfs_remove_group+0x75/0x90 [ 160.351560] ? report_bug+0x199/0x1b0 [ 160.351775] ? handle_bug+0x3d/0x70 [ 160.351971] ? exc_invalid_op+0x18/0x70 [ 160.352201] ? asm_exc_invalid_op+0x1a/0x20 [ 160.352465] ? sysfs_remove_group+0x75/0x90 [ 160.352711] br_dev_delete+0x88/0xa0 [bridge] [ 160.352988] br_net_exit_batch_rtnl+0x70/0xd0 [bridge] [ 160.353303] cleanup_net+0x251/0x3a0 [ 160.353508] ? process_one_work+0x16c/0x4b0 [ 160.353756] process_one_work+0x1d9/0x4b0 [ 160.353991] worker_thread+0x1c1/0x3d0 [ 160.354213] ? __pfx_worker_thread+0x10/0x10 [ 160.354451] kthread+0xdd/0x110 [ 160.354630] ? __pfx_kthread+0x10/0x10 [ 160.354838] ret_from_fork+0x34/0x50 [ 160.355052] ? __pfx_kthread+0x10/0x10 [ 160.355271] ret_from_fork_asm+0x1b/0x30 [ 160.355507] [ 160.355647] irq event stamp: 37543 [ 160.355840] hardirqs last enabled at (37553): [] console_unlock+0x10d/0x130 [ 160.356321] hardirqs last disabled at (37564): [] console_unlock+0xf2/0x130 [ 160.356789] softirqs last enabled at (37288): [] __do_softirq+0x2c2/0x37a [ 160.357249] softirqs last disabled at (37283): [] irq_exit_rcu+0x7f/0xa0 [ 160.357693] ---[ end trace 0000000000000000 ]--- [ 160.679456] vx1: left allmulticast mode [ 160.679736] vx1: left promiscuous mode [ 160.679973] br1: port 1(vx1) entered disabled state [ 160.754106] br1: port 3(veth2) entered disabled state [ 160.765666] veth2: left allmulticast mode [ 160.765940] veth2: left promiscuous mode [ 160.766208] br1: port 3(veth2) entered disabled state [ 160.786979] br1: port 2(veth1) entered disabled state [ 160.797982] veth1: left allmulticast mode [ 160.798250] veth1: left promiscuous mode [ 160.798474] br1: port 2(veth1) entered disabled state ok 1 selftests: net/forwarding: vxlan_bridge_1d.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__->