make -C tools/testing/selftests TARGETS=net TEST_PROGS=test_vxlan_under_vrrf.sh TEST_GEN_PROGS="" run_tests make: Entering directory '/home/virtme/testing-1/tools/testing/selftests' make[1]: Entering directory '/home/virtme/testing-1/tools/testing/selftests/net' make[1]: Nothing to be done for 'all'. make[1]: Leaving directory '/home/virtme/testing-1/tools/testing/selftests/net' make[1]: Entering directory '/home/virtme/testing-1/tools/testing/selftests/net' TAP version 13 1..1 # timeout set to 6000 # selftests: net: test_vxlan_under_vrf.sh [ 218.163093] veth0: renamed from veth-hv-1 [ 218.279729] br0: port 1(vxlan0) entered blocking state [ 218.280096] br0: port 1(vxlan0) entered disabled state [ 218.280442] vxlan0: entered allmulticast mode [ 218.280830] vxlan0: entered promiscuous mode [ 218.293761] br0: port 1(vxlan0) entered blocking state [ 218.294061] br0: port 1(vxlan0) entered forwarding state [ 218.328705] veth0: renamed from veth-hv-2 [ 218.446665] br0: port 1(vxlan0) entered blocking state [ 218.447063] br0: port 1(vxlan0) entered disabled state [ 218.447449] vxlan0: entered allmulticast mode [ 218.447766] vxlan0: entered promiscuous mode [ 218.461136] br0: port 1(vxlan0) entered blocking state [ 218.461448] br0: port 1(vxlan0) entered forwarding state # Checking HV connectivity [ OK ] [ 218.534424] br0: port 2(veth-tap) entered blocking state [ 218.534730] br0: port 2(veth-tap) entered disabled state [ 218.535091] veth-tap: entered allmulticast mode [ 218.535416] veth-tap: entered promiscuous mode [ 218.604429] br0: port 2(veth-tap) entered blocking state [ 218.604775] br0: port 2(veth-tap) entered forwarding state [ 218.653711] br0: port 2(veth-tap) entered blocking state [ 218.654029] br0: port 2(veth-tap) entered disabled state [ 218.654307] veth-tap: entered allmulticast mode [ 218.654613] veth-tap: entered promiscuous mode [ 218.730715] br0: port 2(veth-tap) entered blocking state [ 218.731049] br0: port 2(veth-tap) entered forwarding state # Check VM connectivity through VXLAN (underlay in the default VRF) [ OK ] [ 218.819061] br0: port 1(vxlan0) entered disabled state [ 218.836123] br0: port 1(vxlan0) entered blocking state [ 218.836580] br0: port 1(vxlan0) entered forwarding state [ 218.876020] br0: port 1(vxlan0) entered disabled state [ 218.892011] br0: port 1(vxlan0) entered blocking state [ 218.892439] br0: port 1(vxlan0) entered forwarding state # Check VM connectivity through VXLAN (underlay in a VRF) [ OK ] [ 219.013033] veth-tap: left allmulticast mode [ 219.013482] veth-tap: left promiscuous mode [ 219.013858] br0: port 2(veth-tap) entered disabled state [ 219.024977] vxlan0: left allmulticast mode [ 219.025280] vxlan0: left promiscuous mode [ 219.025504] br0: port 1(vxlan0) entered disabled state [ 219.042563] ------------[ cut here ]------------ [ 219.042928] refcount_t: underflow; use-after-free. [ 219.043209] WARNING: CPU: 1 PID: 68 at lib/refcount.c:28 refcount_warn_saturate+0xd0/0x130 [ 219.043638] Modules linked in: xfrm_interface sha1_generic xfrm_user act_mirred cls_matchall ip6_gre gre nft_chain_nat xt_nat nf_nat vxlan xt_conntrack nf_conntrack nf_defrag_ipv4 nft_compat nf_tables nf_defrag_ipv6 sctp_diag sctp ip6_udp_tunnel udp_tunnel libcrc32c drop_monitor act_gact cls_flower sch_ingress netdevsim psample [ 219.045186] CPU: 1 PID: 68 Comm: kworker/u8:1 Not tainted 6.8.0-rc2-virtme #1 [ 219.045584] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.16.3-0-ga6ed6b701f0a-prebuilt.qemu.org 04/01/2014 [ 219.046400] Workqueue: netns cleanup_net [ 219.046715] RIP: 0010:refcount_warn_saturate+0xd0/0x130 [ 219.046995] Code: 0b 90 90 c3 cc cc cc cc 80 3d 69 d4 67 01 00 0f 85 75 ff ff ff c6 05 5c d4 67 01 01 90 48 c7 c7 e8 37 93 96 e8 a1 26 b4 ff 90 <0f> 0b 90 90 c3 cc cc cc cc 80 3d 3c d4 67 01 00 0f 85 4a ff ff ff [ 219.048381] RSP: 0018:ffffb7bdc0263d78 EFLAGS: 00010286 [ 219.048844] RAX: 0000000000000000 RBX: ffff9a05839ae000 RCX: 00000000ffffdfff [ 219.049452] RDX: 0000000000000000 RSI: 00000000ffffffea RDI: 0000000000000001 [ 219.050258] RBP: ffff9a05839ae610 R08: ffffffff96d78508 R09: 00000000ffffdfff [ 219.050913] R10: ffffffff96c98520 R11: ffffffff96d48520 R12: ffff9a05839ae000 [ 219.051560] R13: ffffb7bdc0263e08 R14: ffff9a05839aeb80 R15: ffff9a0582bc5c50 [ 219.052223] FS: 0000000000000000(0000) GS:ffff9a05bec80000(0000) knlGS:0000000000000000 [ 219.052962] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 219.053526] CR2: 000055b01eb77dec CR3: 000000001fa60002 CR4: 0000000000770ef0 [ 219.054175] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 [ 219.054542] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 [ 219.054971] PKRU: 55555554 [ 219.055117] Call Trace: [ 219.055252] [ 219.055372] ? __warn+0x84/0x170 [ 219.055551] ? refcount_warn_saturate+0xd0/0x130 [ 219.055798] ? report_bug+0x199/0x1b0 [ 219.056037] ? handle_bug+0x3d/0x70 [ 219.056319] ? exc_invalid_op+0x18/0x70 [ 219.056652] ? asm_exc_invalid_op+0x1a/0x20 [ 219.056882] ? refcount_warn_saturate+0xd0/0x130 [ 219.057256] ? refcount_warn_saturate+0xcf/0x130 [ 219.057685] br_sysfs_delbr+0x1d/0x40 [ 219.058057] br_dev_delete+0x88/0xa0 [ 219.058424] br_net_exit_batch_rtnl+0x70/0xd0 [ 219.058868] cleanup_net+0x24e/0x400 [ 219.059238] ? process_one_work+0x16c/0x4b0 [ 219.059686] process_one_work+0x1d6/0x4b0 [ 219.060097] worker_thread+0x1c1/0x3d0 [ 219.060479] ? __pfx_worker_thread+0x10/0x10 [ 219.060946] kthread+0xda/0x110 [ 219.061367] ? __pfx_kthread+0x10/0x10 [ 219.061838] ret_from_fork+0x31/0x50 [ 219.062294] ? __pfx_kthread+0x10/0x10 [ 219.062762] ret_from_fork_asm+0x1b/0x30 [ 219.063097] [ 219.063350] irq event stamp: 1288413 [ 219.063693] hardirqs last enabled at (1288423): [] console_unlock+0x10d/0x130 [ 219.064434] hardirqs last disabled at (1288434): [] console_unlock+0xf2/0x130 [ 219.065177] softirqs last enabled at (1287948): [] __do_softirq+0x2c2/0x37a [ 219.065904] softirqs last disabled at (1287939): [] irq_exit_rcu+0x7f/0xa0 [ 219.066615] ---[ end trace 0000000000000000 ]--- [ 219.067027] ------------[ cut here ]------------ [ 219.067351] sysfs group 'bridge' not found for kobject 'br0' [ 219.067666] WARNING: CPU: 3 PID: 68 at fs/sysfs/group.c:282 sysfs_remove_group+0x75/0x90 [ 219.068169] Modules linked in: xfrm_interface sha1_generic xfrm_user act_mirred cls_matchall ip6_gre gre nft_chain_nat xt_nat nf_nat vxlan xt_conntrack nf_conntrack nf_defrag_ipv4 nft_compat nf_tables nf_defrag_ipv6 sctp_diag sctp ip6_udp_tunnel udp_tunnel libcrc32c drop_monitor act_gact cls_flower sch_ingress netdevsim psample [ 219.070021] CPU: 3 PID: 68 Comm: kworker/u8:1 Tainted: G W 6.8.0-rc2-virtme #1 [ 219.070473] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.16.3-0-ga6ed6b701f0a-prebuilt.qemu.org 04/01/2014 [ 219.071057] Workqueue: netns cleanup_net [ 219.071287] RIP: 0010:sysfs_remove_group+0x75/0x90 [ 219.071548] Code: 48 89 ef 5d 41 5c e9 7a ad ff ff 48 89 ef e8 12 9b ff ff eb d1 90 49 8b 14 24 48 8b 33 48 c7 c7 d0 cd 92 96 e8 ac 67 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 [ 219.072483] RSP: 0018:ffffb7bdc0263d70 EFLAGS: 00010286 [ 219.072753] RAX: 0000000000000000 RBX: ffffffff965472c0 RCX: 00000000ffffdfff [ 219.073140] RDX: 0000000000000000 RSI: 00000000ffffffea RDI: 0000000000000001 [ 219.073502] RBP: 0000000000000000 R08: ffffffff96d78508 R09: 00000000ffffdfff [ 219.073937] R10: ffffffff96c98520 R11: ffffffff96d48520 R12: ffff9a05839ae610 [ 219.074438] R13: ffffb7bdc0263e08 R14: ffff9a05839aeb80 R15: ffff9a0582bc5c50 [ 219.074940] FS: 0000000000000000(0000) GS:ffff9a05bed80000(0000) knlGS:0000000000000000 [ 219.075788] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 219.076364] CR2: 000055b01eb77dec CR3: 000000001fa60005 CR4: 0000000000770ef0 [ 219.077013] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 [ 219.077640] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 [ 219.078285] PKRU: 55555554 [ 219.078570] Call Trace: [ 219.078846] [ 219.079053] ? __warn+0x84/0x170 [ 219.079404] ? sysfs_remove_group+0x75/0x90 [ 219.079826] ? report_bug+0x199/0x1b0 [ 219.080163] ? handle_bug+0x3d/0x70 [ 219.080501] ? exc_invalid_op+0x18/0x70 [ 219.080893] ? asm_exc_invalid_op+0x1a/0x20 [ 219.081270] ? sysfs_remove_group+0x75/0x90 [ 219.081635] br_dev_delete+0x88/0xa0 [ 219.081929] br_net_exit_batch_rtnl+0x70/0xd0 [ 219.082325] cleanup_net+0x24e/0x400 [ 219.082674] ? process_one_work+0x16c/0x4b0 [ 219.083048] process_one_work+0x1d6/0x4b0 [ 219.083425] worker_thread+0x1c1/0x3d0 [ 219.083775] ? __pfx_worker_thread+0x10/0x10 [ 219.084114] kthread+0xda/0x110 [ 219.084390] ? __pfx_kthread+0x10/0x10 [ 219.084693] ret_from_fork+0x31/0x50 [ 219.085032] ? __pfx_kthread+0x10/0x10 [ 219.085232] ret_from_fork_asm+0x1b/0x30 [ 219.085448] [ 219.085589] irq event stamp: 1289183 [ 219.085807] hardirqs last enabled at (1289195): [] console_unlock+0x10d/0x130 [ 219.086275] hardirqs last disabled at (1289206): [] console_unlock+0xf2/0x130 [ 219.086717] softirqs last enabled at (1288556): [] __do_softirq+0x2c2/0x37a [ 219.087169] softirqs last disabled at (1288511): [] irq_exit_rcu+0x7f/0xa0 [ 219.087599] ---[ end trace 0000000000000000 ]--- [ 219.122111] br0: port 1(vxlan0) entered disabled state [ 219.122791] vxlan0 (unregistering): left allmulticast mode [ 219.123350] vxlan0 (unregistering): left promiscuous mode [ 219.123674] br0: port 1(vxlan0) entered disabled state ok 1 selftests: net: test_vxlan_under_vrf.sh make[1]: Leaving directory '/home/virtme/testing-1/tools/testing/selftests/net' make: Leaving directory '/home/virtme/testing-1/tools/testing/selftests' xx__-> echo $? 0 xx__-> [ 219.187943] veth-tap: left allmulticast mode [ 219.188329] veth-tap: left promiscuous mode [ 219.188693] br0: port 2(veth-tap) entered disabled state [ 219.195117] ------------[ cut here ]------------ [ 219.195514] sysfs group 'bridge' not found for kobject 'br0' [ 219.196032] WARNING: CPU: 3 PID: 68 at fs/sysfs/group.c:282 sysfs_remove_group+0x75/0x90 [ 219.196678] Modules linked in: xfrm_interface sha1_generic xfrm_user act_mirred cls_matchall ip6_gre gre nft_chain_nat xt_nat nf_nat vxlan xt_conntrack nf_conntrack nf_defrag_ipv4 nft_compat nf_tables nf_defrag_ipv6 sctp_diag sctp ip6_udp_tunnel udp_tunnel libcrc32c drop_monitor act_gact cls_flower sch_ingress netdevsim psample [ 219.199017] CPU: 3 PID: 68 Comm: kworker/u8:1 Tainted: G W 6.8.0-rc2-virtme #1 [ 219.199706] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.16.3-0-ga6ed6b701f0a-prebuilt.qemu.org 04/01/2014 [ 219.200607] Workqueue: netns cleanup_net [ 219.200945] RIP: 0010:sysfs_remove_group+0x75/0x90 [ 219.201330] Code: 48 89 ef 5d 41 5c e9 7a ad ff ff 48 89 ef e8 12 9b ff ff eb d1 90 49 8b 14 24 48 8b 33 48 c7 c7 d0 cd 92 96 e8 ac 67 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 [ 219.202795] RSP: 0018:ffffb7bdc0263d70 EFLAGS: 00010286 [ 219.203216] RAX: 0000000000000000 RBX: ffffffff965472c0 RCX: 00000000ffffdfff [ 219.203770] RDX: 0000000000000000 RSI: 00000000ffffffea RDI: 0000000000000001 [ 219.204349] RBP: 0000000000000000 R08: ffffffff96d78508 R09: 00000000ffffdfff [ 219.204918] R10: ffffffff96c98520 R11: ffffffff96d48520 R12: ffff9a059193c610 [ 219.205476] R13: ffffb7bdc0263e08 R14: ffff9a059193cb80 R15: ffff9a0582bc0050 [ 219.206050] FS: 0000000000000000(0000) GS:ffff9a05bed80000(0000) knlGS:0000000000000000 [ 219.206685] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 219.207148] CR2: 00007f3a2f63b0e0 CR3: 000000001fa60006 CR4: 0000000000770ef0 [ 219.207738] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 [ 219.208315] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 [ 219.208894] PKRU: 55555554 [ 219.209115] Call Trace: [ 219.209319] [ 219.209501] ? __warn+0x84/0x170 [ 219.209782] ? sysfs_remove_group+0x75/0x90 [ 219.210136] ? report_bug+0x199/0x1b0 [ 219.210441] ? handle_bug+0x3d/0x70 [ 219.210727] ? exc_invalid_op+0x18/0x70 [ 219.211049] ? asm_exc_invalid_op+0x1a/0x20 [ 219.211393] ? sysfs_remove_group+0x75/0x90 [ 219.211747] br_dev_delete+0x88/0xa0 [ 219.212075] br_net_exit_batch_rtnl+0x70/0xd0 [ 219.212471] cleanup_net+0x24e/0x400 [ 219.212769] ? process_one_work+0x16c/0x4b0 [ 219.213126] process_one_work+0x1d6/0x4b0 [ 219.213499] worker_thread+0x1c1/0x3d0 [ 219.213805] ? __pfx_worker_thread+0x10/0x10 [ 219.214228] kthread+0xda/0x110 [ 219.214492] ? __pfx_kthread+0x10/0x10 [ 219.214796] ret_from_fork+0x31/0x50 xx__-> [ 219.215157] ? __pfx_kthread+0x10/0x10 [ 219.215523] ret_from_fork_asm+0x1b/0x30 [ 219.215900] [ 219.216146] irq event stamp: 1323851 [ 219.216448] hardirqs last enabled at (1323861): [] console_unlock+0x10d/0x130 [ 219.217149] hardirqs last disabled at (1323872): [] console_unlock+0xf2/0x130 xx__-> [ 219.217885] softirqs last enabled at (1323408): [] __do_softirq+0x2c2/0x37a [ 219.218616] softirqs last disabled at (1323401): [] irq_exit_rcu+0x7f/0xa0 [ 219.219291] ---[ end trace 0000000000000000 ]--- xx__-> xx__->