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 [ 37.875170] br0: port 1(gw_l) entered blocking state [ 37.875567] br0: port 1(gw_l) entered disabled state [ 37.875908] gw_l: entered allmulticast mode [ 37.876293] gw_l: entered promiscuous mode [ 37.876946] br0: port 1(gw_l) entered blocking state [ 37.877349] br0: port 1(gw_l) entered forwarding state [ 37.941593] br0: port 2(amtg) entered blocking state [ 37.941887] br0: port 2(amtg) entered disabled state [ 37.942145] amtg: entered allmulticast mode [ 37.942476] amtg: entered promiscuous mode [ 38.222530] br0: port 2(amtg) entered blocking state [ 38.222974] br0: port 2(amtg) entered forwarding state [ 38.397813] amtr: entered allmulticast mode [ 38.398228] relay_gw: entered allmulticast mode [ 38.398682] 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 [ 38.441128] br0: port 1(gw_l) entered disabled state [ 38.443511] gw_l (unregistering): left allmulticast mode [ 38.444072] gw_l (unregistering): left promiscuous mode [ 38.444537] br0: port 1(gw_l) entered disabled state [ 38.481679] amtg: left allmulticast mode [ 38.482024] amtg: left promiscuous mode [ 38.482317] br0: port 2(amtg) 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__-> [ 38.491112] ------------[ cut here ]------------ [ 38.491469] refcount_t: underflow; use-after-free. [ 38.491849] WARNING: CPU: 2 PID: 68 at lib/refcount.c:28 refcount_warn_saturate+0xd0/0x130 [ 38.492434] Modules linked in: xt_HL nft_compat nf_tables libcrc32c amt act_mirred act_tunnel_key cls_flower bareudp ip6_udp_tunnel udp_tunnel mpls_iptunnel mpls_router sch_ingress [ 38.493582] CPU: 2 PID: 68 Comm: kworker/u8:1 Not tainted 6.8.0-rc2-virtme #1 [ 38.494086] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.16.3-0-ga6ed6b701f0a-prebuilt.qemu.org 04/01/2014 [ 38.494864] Workqueue: netns cleanup_net [ 38.495147] RIP: 0010:refcount_warn_saturate+0xd0/0x130 [ 38.495502] 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 33 aa 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 [ 38.496753] RSP: 0018:ffffb33c80263d78 EFLAGS: 00010286 [ 38.497114] RAX: 0000000000000000 RBX: ffff9dfb43b2c000 RCX: 00000000ffffdfff [ 38.497585] RDX: 0000000000000000 RSI: 00000000ffffffea RDI: 0000000000000001 [ 38.497957] RBP: ffff9dfb43b2c610 R08: ffffffffaa778508 R09: 00000000ffffdfff [ 38.498321] R10: ffffffffaa698520 R11: ffffffffaa748520 R12: ffff9dfb43b2c000 [ 38.498778] R13: ffffb33c80263e08 R14: ffff9dfb43b2cb80 R15: ffff9dfb439b4550 [ 38.499206] FS: 0000000000000000(0000) GS:ffff9dfb7ed00000(0000) knlGS:0000000000000000 [ 38.499742] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 38.500058] CR2: 00007fc9cde560e0 CR3: 000000001be60001 CR4: 0000000000770ef0 [ 38.500504] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 [ 38.500927] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 [ 38.501379] PKRU: 55555554 [ 38.501579] Call Trace: [ 38.501758] [ 38.501915] ? __warn+0x84/0x170 [ 38.502143] ? refcount_warn_saturate+0xd0/0x130 [ 38.502467] ? report_bug+0x199/0x1b0 [ 38.502740] ? handle_bug+0x3d/0x70 [ 38.502981] ? exc_invalid_op+0x18/0x70 [ 38.503252] ? asm_exc_invalid_op+0x1a/0x20 [ 38.503551] ? refcount_warn_saturate+0xd0/0x130 [ 38.503877] ? refcount_warn_saturate+0xcf/0x130 [ 38.504199] br_sysfs_delbr+0x1d/0x40 [ 38.504475] br_dev_delete+0x88/0xa0 [ 38.504723] br_net_exit_batch_rtnl+0x70/0xd0 [ 38.505036] cleanup_net+0x24e/0x400 [ 38.505289] ? process_one_work+0x16c/0x4b0 [ 38.505657] process_one_work+0x1d6/0x4b0 [ 38.505919] worker_thread+0x1c1/0x3d0 [ 38.506188] ? __pfx_worker_thread+0x10/0x10 [ 38.506482] kthread+0xda/0x110 [ 38.506660] ? __pfx_kthread+0x10/0x10 [ 38.506857] ret_from_fork+0x31/0x50 [ 38.507049] ? __pfx_kthread+0x10/0x10 [ 38.507244] ret_from_fork_asm+0x1b/0x30 [ 38.507457] [ 38.507594] irq event stamp: 415491 [ 38.507828] hardirqs last enabled at (415501): [] console_unlock+0x10d/0x130 [ 38.508275] hardirqs last disabled at (415510): [] console_unlock+0xf2/0x130 [ 38.508717] softirqs last enabled at (415058): [] __do_softirq+0x2c2/0x37a [ 38.509250] softirqs last disabled at (415049): [] irq_exit_rcu+0x7f/0xa0 [ 38.509776] ---[ end trace 0000000000000000 ]--- [ 38.510102] ------------[ cut here ]------------ [ 38.510583] sysfs group 'bridge' not found for kobject 'br0' [ 38.510909] WARNING: CPU: 3 PID: 68 at fs/sysfs/group.c:282 sysfs_remove_group+0x75/0x90 [ 38.511346] Modules linked in: xt_HL nft_compat nf_tables libcrc32c amt act_mirred act_tunnel_key cls_flower bareudp ip6_udp_tunnel udp_tunnel mpls_iptunnel mpls_router sch_ingress [ 38.512209] CPU: 3 PID: 68 Comm: kworker/u8:1 Tainted: G W 6.8.0-rc2-virtme #1 [ 38.512697] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.16.3-0-ga6ed6b701f0a-prebuilt.qemu.org 04/01/2014 [ 38.513366] Workqueue: netns cleanup_net [ 38.513598] RIP: 0010:sysfs_remove_group+0x75/0x90 [ 38.513884] 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 32 aa 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 [ 38.514939] RSP: 0018:ffffb33c80263d70 EFLAGS: 00010286 xx__-> [ 38.515231] RAX: 0000000000000000 RBX: ffffffffa9f472c0 RCX: 00000000ffffdfff [ 38.515668] RDX: 0000000000000000 RSI: 00000000ffffffea RDI: 0000000000000001 [ 38.516048] RBP: 0000000000000000 R08: ffffffffaa778508 R09: 00000000ffffdfff [ 38.516452] R10: ffffffffaa698520 R11: ffffffffaa748520 R12: ffff9dfb43b2c610 [ 38.516842] R13: ffffb33c80263e08 R14: ffff9dfb43b2cb80 R15: ffff9dfb439b4550 [ 38.517284] FS: 0000000000000000(0000) GS:ffff9dfb7ed80000(0000) knlGS:0000000000000000 [ 38.517716] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 38.518030] CR2: 00007fd87631e0e0 CR3: 000000001be60004 CR4: 0000000000770ef0 [ 38.518411] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 [ 38.518784] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 xx__-> [ 38.519202] PKRU: 55555554 [ 38.519397] Call Trace: [ 38.519530] [ 38.519657] ? __warn+0x84/0x170 [ 38.519836] ? sysfs_remove_group+0x75/0x90 [ 38.520089] ? report_bug+0x199/0x1b0 [ 38.520286] ? handle_bug+0x3d/0x70 [ 38.520484] ? exc_invalid_op+0x18/0x70 [ 38.520705] ? asm_exc_invalid_op+0x1a/0x20 [ 38.520942] ? sysfs_remove_group+0x75/0x90 [ 38.521169] br_dev_delete+0x88/0xa0 [ 38.521367] br_net_exit_batch_rtnl+0x70/0xd0 [ 38.521621] cleanup_net+0x24e/0x400 [ 38.521822] ? process_one_work+0x16c/0x4b0 [ 38.522042] process_one_work+0x1d6/0x4b0 [ 38.522266] worker_thread+0x1c1/0x3d0 [ 38.522466] ? __pfx_worker_thread+0x10/0x10 [ 38.522714] kthread+0xda/0x110 [ 38.522884] ? __pfx_kthread+0x10/0x10 [ 38.523081] ret_from_fork+0x31/0x50 [ 38.523271] ? __pfx_kthread+0x10/0x10 [ 38.523466] ret_from_fork_asm+0x1b/0x30 [ 38.523687] [ 38.523811] irq event stamp: 416143 [ 38.523991] hardirqs last enabled at (416153): [] console_unlock+0x10d/0x130 [ 38.524431] hardirqs last disabled at (416162): [] console_unlock+0xf2/0x130 [ 38.524872] softirqs last enabled at (415752): [] __do_softirq+0x2c2/0x37a [ 38.525308] softirqs last disabled at (415747): [] irq_exit_rcu+0x7f/0xa0 [ 38.525740] ---[ end trace 0000000000000000 ]--- [ 38.533917] relay_gw (unregistering): left allmulticast mode [ 38.541990] amtr (unregistering): left allmulticast mode [ 38.579173] relay_src (unregistering): left allmulticast mode xx__-> xx__-> xx__-> xx__-> echo $? 0 xx__->