make -C tools/testing/selftests TARGETS=net TEST_PROGS=amt.sh TEST_GEN_PROOGS="" 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: amt.sh [ 93.848572] br0: port 1(gw_l) entered blocking state [ 93.848948] br0: port 1(gw_l) entered disabled state [ 93.849230] gw_l: entered allmulticast mode [ 93.849538] gw_l: entered promiscuous mode [ 93.850030] br0: port 1(gw_l) entered blocking state [ 93.850311] br0: port 1(gw_l) entered forwarding state [ 93.920222] br0: port 2(amtg) entered blocking state [ 93.920515] br0: port 2(amtg) entered disabled state [ 93.920783] amtg: entered allmulticast mode [ 93.921130] amtg: entered promiscuous mode [ 94.172390] br0: port 2(amtg) entered blocking state [ 94.172682] br0: port 2(amtg) entered forwarding state [ 94.332987] amtr: entered allmulticast mode [ 94.333317] relay_gw: entered allmulticast mode [ 94.333696] relay_src: entered allmulticast mode # smcroutectl: Cannot find IPC socket /usr/local/var/run/smcroute.sock # smcroutectl: Daemon may be running with another -i NAME [ 94.380532] br0: port 1(gw_l) entered disabled state [ 94.383824] gw_l (unregistering): left allmulticast mode [ 94.384147] gw_l (unregistering): left promiscuous mode [ 94.384425] br0: port 1(gw_l) entered disabled state ok 1 selftests: net: amt.sh # SKIP make[1]: Leaving directory '/home/virtme/testing-1/tools/testing/selftests/net' make: Leaving directory '/home/virtme/testing-1/tools/testing/selftests' xx__-> [ 94.424925] amtg: left allmulticast mode [ 94.425167] amtg: left promiscuous mode [ 94.425384] br0: port 2(amtg) entered disabled state [ 94.435224] ------------[ cut here ]------------ [ 94.435497] refcount_t: underflow; use-after-free. [ 94.435773] WARNING: CPU: 3 PID: 11 at lib/refcount.c:28 refcount_warn_saturate+0xd0/0x130 [ 94.436225] Modules linked in: xt_HL nft_compat nf_tables libcrc32c amt udp_tunnel sch_etf sch_fq act_mirred cls_flower sch_ingress ip6_gre gre [ 94.436919] CPU: 3 PID: 11 Comm: kworker/u8:0 Not tainted 6.8.0-rc2-virtme #1 [ 94.437296] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.16.3-0-ga6ed6b701f0a-prebuilt.qemu.org 04/01/2014 [ 94.437903] Workqueue: netns cleanup_net [ 94.438130] RIP: 0010:refcount_warn_saturate+0xd0/0x130 [ 94.438427] 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 b8 37 53 b7 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 [ 94.439450] RSP: 0018:ffffa7d240063d78 EFLAGS: 00010286 [ 94.439732] RAX: 0000000000000000 RBX: ffff899e835fe000 RCX: 00000000ffffdfff [ 94.440133] RDX: 0000000000000000 RSI: 00000000ffffffea RDI: 0000000000000001 [ 94.440518] RBP: ffff899e835fe610 R08: ffffffffb7978508 R09: 00000000ffffdfff [ 94.440925] R10: ffffffffb7898520 R11: ffffffffb7948520 R12: ffff899e835fe000 [ 94.441328] R13: ffffa7d240063e08 R14: ffff899e835feb80 R15: ffff899e829a5c50 [ 94.441729] FS: 0000000000000000(0000) GS:ffff899ebed80000(0000) knlGS:0000000000000000 [ 94.442178] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 94.442504] CR2: 00007f77335160e0 CR3: 000000001f460003 CR4: 0000000000770ef0 [ 94.442882] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 [ 94.443250] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 [ 94.443634] PKRU: 55555554 [ 94.443784] Call Trace: [ 94.443931] [ 94.444090] ? __warn+0x84/0x170 [ 94.444269] ? refcount_warn_saturate+0xd0/0x130 [ 94.444514] ? report_bug+0x199/0x1b0 [ 94.444720] ? handle_bug+0x3d/0x70 [ 94.444933] ? exc_invalid_op+0x18/0x70 [ 94.445160] ? asm_exc_invalid_op+0x1a/0x20 [ 94.445394] ? refcount_warn_saturate+0xd0/0x130 [ 94.445687] ? refcount_warn_saturate+0xcf/0x130 [ 94.445941] br_sysfs_delbr+0x1d/0x40 [ 94.446147] br_dev_delete+0x88/0xa0 [ 94.446350] br_net_exit_batch_rtnl+0x70/0xd0 [ 94.446633] cleanup_net+0x24e/0x400 [ 94.446837] ? process_one_work+0x16c/0x4b0 xx__-> [ 94.447060] process_one_work+0x1d6/0x4b0 [ 94.447322] worker_thread+0x1c1/0x3d0 [ 94.447540] ? __pfx_worker_thread+0x10/0x10 [ 94.447770] kthread+0xda/0x110 [ 94.447964] ? __pfx_kthread+0x10/0x10 [ 94.448183] ret_from_fork+0x31/0x50 [ 94.448423] ? __pfx_kthread+0x10/0x10 [ 94.448639] ret_from_fork_asm+0x1b/0x30 [ 94.448867] [ 94.448993] irq event stamp: 1088259 [ 94.449232] hardirqs last enabled at (1088269): [] console_unlock+0x10d/0x130 xx__-> [ 94.449697] hardirqs last disabled at (1088278): [] console_unlock+0xf2/0x130 [ 94.450192] softirqs last enabled at (1087896): [] __do_softirq+0x2c2/0x37a [ 94.450636] softirqs last disabled at (1087891): [] irq_exit_rcu+0x7f/0xa0 [ 94.451078] ---[ end trace 0000000000000000 ]--- [ 94.451328] ------------[ cut here ]------------ [ 94.451572] sysfs group 'bridge' not found for kobject 'br0' [ 94.451894] WARNING: CPU: 3 PID: 11 at fs/sysfs/group.c:282 sysfs_remove_group+0x75/0x90 [ 94.452317] Modules linked in: xt_HL nft_compat nf_tables libcrc32c amt udp_tunnel sch_etf sch_fq act_mirred cls_flower sch_ingress ip6_gre gre [ 94.452998] CPU: 3 PID: 11 Comm: kworker/u8:0 Tainted: G W 6.8.0-rc2-virtme #1 [ 94.453442] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.16.3-0-ga6ed6b701f0a-prebuilt.qemu.org 04/01/2014 [ 94.454033] Workqueue: netns cleanup_net [ 94.454244] RIP: 0010:sysfs_remove_group+0x75/0x90 [ 94.454499] 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 a0 cd 52 b7 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 [ 94.455457] RSP: 0018:ffffa7d240063d70 EFLAGS: 00010286 [ 94.455732] RAX: 0000000000000000 RBX: ffffffffb71472c0 RCX: 00000000ffffdfff [ 94.456109] RDX: 0000000000000000 RSI: 00000000ffffffea RDI: 0000000000000001 [ 94.456475] RBP: 0000000000000000 R08: ffffffffb7978508 R09: 00000000ffffdfff [ 94.456848] R10: ffffffffb7898520 R11: ffffffffb7948520 R12: ffff899e835fe610 [ 94.457218] R13: ffffa7d240063e08 R14: ffff899e835feb80 R15: ffff899e829a5c50 [ 94.457587] FS: 0000000000000000(0000) GS:ffff899ebed80000(0000) knlGS:0000000000000000 [ 94.458009] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 94.458310] CR2: 00007f77335160e0 CR3: 000000001f460003 CR4: 0000000000770ef0 [ 94.458689] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 [ 94.459066] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 [ 94.459455] PKRU: 55555554 [ 94.459602] Call Trace: [ 94.459752] [ 94.459880] ? __warn+0x84/0x170 [ 94.460091] ? sysfs_remove_group+0x75/0x90 [ 94.460313] ? report_bug+0x199/0x1b0 [ 94.460512] ? handle_bug+0x3d/0x70 [ 94.460702] ? exc_invalid_op+0x18/0x70 [ 94.460928] ? asm_exc_invalid_op+0x1a/0x20 [ 94.461166] ? sysfs_remove_group+0x75/0x90 [ 94.461402] br_dev_delete+0x88/0xa0 [ 94.461598] br_net_exit_batch_rtnl+0x70/0xd0 [ 94.461859] cleanup_net+0x24e/0x400 [ 94.462077] ? process_one_work+0x16c/0x4b0 [ 94.462313] process_one_work+0x1d6/0x4b0 [ 94.462532] worker_thread+0x1c1/0x3d0 [ 94.462741] ? __pfx_worker_thread+0x10/0x10 [ 94.463002] kthread+0xda/0x110 [ 94.463213] ? __pfx_kthread+0x10/0x10 [ 94.463415] ret_from_fork+0x31/0x50 [ 94.463622] ? __pfx_kthread+0x10/0x10 [ 94.463840] ret_from_fork_asm+0x1b/0x30 [ 94.464058] [ 94.464180] irq event stamp: 1088881 [ 94.464372] hardirqs last enabled at (1088891): [] console_unlock+0x10d/0x130 [ 94.464833] hardirqs last disabled at (1088902): [] console_unlock+0xf2/0x130 [ 94.465281] softirqs last enabled at (1088814): [] __do_softirq+0x2c2/0x37a [ 94.465725] softirqs last disabled at (1088809): [] irq_exit_rcu+0x7f/0xa0 [ 94.466166] ---[ end trace 0000000000000000 ]--- [ 94.475541] relay_src (unregistering): left allmulticast mode [ 94.476874] relay_gw (unregistering): left allmulticast mode [ 94.486256] amtr (unregistering): left allmulticast mode xx__-> xx__-> lxx__-> xx__-> xx__-> xx__-> echo $? 0 xx__->