make -C tools/testing/selftests TARGETS=net TEST_PROGS=test_bridge_backup__port.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_bridge_backup_port.sh
[ 349.602071] veth0: renamed from veth1
[ 349.764673] br0: port 1(swp1) entered blocking state
[ 349.765074] br0: port 1(swp1) entered disabled state
[ 349.765383] swp1: entered allmulticast mode
[ 349.765714] swp1: entered promiscuous mode
[ 349.766030] br0: port 1(swp1) entered blocking state
[ 349.766348] br0: port 1(swp1) entered forwarding state
[ 349.819430] br0: port 2(vx0) entered blocking state
[ 349.819730] br0: port 2(vx0) entered disabled state
[ 349.820001] vx0: entered allmulticast mode
[ 349.820305] vx0: entered promiscuous mode
[ 349.820739] br0: port 2(vx0) entered blocking state
[ 349.821132] br0: port 2(vx0) entered forwarding state
[ 350.013415] br0: port 1(swp1) entered blocking state
[ 350.013753] br0: port 1(swp1) entered disabled state
[ 350.014051] swp1: entered allmulticast mode
[ 350.014468] swp1: entered promiscuous mode
[ 350.014749] br0: port 1(swp1) entered blocking state
[ 350.015021] br0: port 1(swp1) entered forwarding state
[ 350.045318] br0: port 2(vx0) entered blocking state
[ 350.045626] br0: port 2(vx0) entered disabled state
[ 350.045929] vx0: entered allmulticast mode
[ 350.046243] vx0: entered promiscuous mode
[ 350.046487] br0: port 2(vx0) entered blocking state
[ 350.046753] br0: port 2(vx0) entered forwarding state
#
# Backup port
# -----------
[ 355.167105] GACT probability NOT on
# TEST: Forwarding out of swp1 [ OK ]
# TEST: No forwarding out of vx0 [ OK ]
[ 355.581893] br0: port 1(swp1) entered disabled state
# TEST: swp1 carrier off [ OK ]
# TEST: No forwarding out of swp1 [ OK ]
# TEST: No forwarding out of vx0 [ OK ]
[ 356.003101] br0: port 1(swp1) entered blocking state
[ 356.003440] br0: port 1(swp1) entered forwarding state
# TEST: swp1 carrier on [ OK ]
# TEST: vx0 configured as backup port of swp1 [ OK ]
# TEST: Forwarding out of swp1 [ OK ]
# TEST: No forwarding out of vx0 [ OK ]
[ 356.586271] br0: port 1(swp1) entered disabled state
# TEST: swp1 carrier off [ OK ]
# TEST: No forwarding out of swp1 [ OK ]
# TEST: Forwarding out of vx0 [ OK ]
[ 357.016453] br0: port 1(swp1) entered blocking state
[ 357.016847] br0: port 1(swp1) entered forwarding state
# TEST: swp1 carrier on [ OK ]
# TEST: Forwarding out of swp1 [ OK ]
# TEST: No forwarding out of vx0 [ OK ]
# TEST: vx0 not configured as backup port of swp1 [ OK ]
# TEST: Forwarding out of swp1 [ OK ]
# TEST: No forwarding out of vx0 [ OK ]
[ 357.791578] br0: port 1(swp1) entered disabled state
# TEST: swp1 carrier off [ OK ]
# TEST: No forwarding out of swp1 [ OK ]
# TEST: No forwarding out of vx0 [ OK ]
[ 358.211436] vx0: left allmulticast mode
[ 358.211829] vx0: left promiscuous mode
[ 358.212208] br0: port 2(vx0) entered disabled state
[ 358.219351] swp1: left allmulticast mode
[ 358.219713] swp1: left promiscuous mode
[ 358.220086] br0: port 1(swp1) entered disabled state
[ 358.291734] ------------[ cut here ]------------
[ 358.292181] DEBUG_LOCKS_WARN_ON(lock->magic != lock)
[ 358.292203] WARNING: CPU: 0 PID: 68 at kernel/locking/mutex.c:587 __mutex_lock+0x351/0x7a0
[ 358.293315] Modules linked in: act_gact cls_flower vxlan xt_mark sch_ingress act_mirred cls_basic sch_fq_codel sha1_generic xfrm_user xt_policy nft_compat nf_tables libcrc32c
[ 358.294496] CPU: 0 PID: 68 Comm: kworker/u8:1 Not tainted 6.8.0-rc2-virtme #1
[ 358.295085] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.16.3-0-ga6ed6b701f0a-prebuilt.qemu.org 04/01/2014
[ 358.295962] Workqueue: netns cleanup_net
[ 358.296322] RIP: 0010:__mutex_lock+0x351/0x7a0
[ 358.296711] Code: ff 90 e8 a2 e7 70 ff 85 c0 74 23 8b 35 9c 8e db 00 85 f6 75 19 90 48 c7 c6 97 37 8a 95 48 c7 c7 3a ac 89 95 e8 00 04 26 ff 90 <0f> 0b 90 90 90 e9 03 fd ff ff 4c 8d 6d a0 4c 89 e7 4c 89 ee e8 d6
[ 358.298170] RSP: 0018:ffffae7d80263a30 EFLAGS: 00010282
[ 358.298610] RAX: 0000000000000000 RBX: 0000000000000000 RCX: 00000000ffffdfff
[ 358.299203] RDX: 0000000000000000 RSI: 00000000ffffffea RDI: 0000000000000001
[ 358.299753] RBP: ffffae7d80263ab0 R08: ffffffff95d78508 R09: 00000000ffffdfff
[ 358.300291] R10: ffffffff95c98520 R11: ffffffff95d4af50 R12: ffff8e7b426a3a00
[ 358.300855] R13: 0000000000000000 R14: 0000000000000000 R15: ffff8e7b42660000
[ 358.301461] FS: 0000000000000000(0000) GS:ffff8e7b7ec00000(0000) knlGS:0000000000000000
[ 358.302108] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[ 358.302584] CR2: 0000560e8e895dec CR3: 0000000016460004 CR4: 0000000000770ef0
[ 358.303166] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
[ 358.303724] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
[ 358.304274] PKRU: 55555554
[ 358.304495] Call Trace:
[ 358.304715]
[ 358.304922] ? __warn+0x84/0x170
[ 358.305232] ? __mutex_lock+0x351/0x7a0
[ 358.305556] ? report_bug+0x199/0x1b0
[ 358.305879] ? handle_bug+0x3d/0x70
[ 358.306208] ? exc_invalid_op+0x18/0x70
[ 358.306542] ? asm_exc_invalid_op+0x1a/0x20
[ 358.306902] ? __mutex_lock+0x351/0x7a0
[ 358.307243] ? refcount_dec_and_mutex_lock+0x35/0x80
[ 358.307664] ? up_read+0x1b/0x30
[ 358.307958] ? tc_setup_cb_destroy+0x116/0x180
[ 358.308345] ? refcount_dec_and_mutex_lock+0x35/0x80
[ 358.308792] refcount_dec_and_mutex_lock+0x35/0x80
[ 358.309224] __tcf_action_put+0x1e/0x70
[ 358.309578] tcf_action_destroy+0x31/0x80
[ 358.309906] tcf_exts_destroy+0x20/0x40
[ 358.310245] __fl_destroy_filter+0x1e/0x80 [cls_flower]
[ 358.310718] __fl_delete+0x12d/0x180 [cls_flower]
[ 358.311130] fl_destroy+0xbd/0x140 [cls_flower]
[ 358.311506] tcf_proto_destroy+0x1f/0xc0
[ 358.311857] tcf_chain_flush+0xab/0x170
[ 358.312116] __tcf_block_put+0xd2/0x190
[ 358.312373] clsact_destroy+0xb6/0x380 [sch_ingress]
[ 358.312694] __qdisc_destroy+0x51/0x150
[ 358.312945] dev_shutdown+0x78/0x190
[ 358.313246] unregister_netdevice_many_notify+0x23e/0x7f0
[ 358.313582] default_device_exit_batch+0x2b3/0x320
[ 358.313859] cleanup_net+0x288/0x400
[ 358.314126] ? process_one_work+0x16c/0x4b0
[ 358.314414] process_one_work+0x1d6/0x4b0
[ 358.314678] worker_thread+0x1c1/0x3d0
[ 358.314915] ? __pfx_worker_thread+0x10/0x10
[ 358.315205] kthread+0xda/0x110
[ 358.315439] ? __pfx_kthread+0x10/0x10
[ 358.315674] ret_from_fork+0x31/0x50
[ 358.315891] ? __pfx_kthread+0x10/0x10
[ 358.316153] ret_from_fork_asm+0x1b/0x30
[ 358.316414]
[ 358.316586] irq event stamp: 441463
[ 358.316793] hardirqs last enabled at (441463): [] __call_rcu_common.constprop.0+0x307/0x4f0
[ 358.317391] hardirqs last disabled at (441462): [] __call_rcu_common.constprop.0+0x31c/0x4f0
[ 358.317984] softirqs last enabled at (441420): [] fib6_run_gc+0x198/0x2e0
[ 358.318679] softirqs last disabled at (441414): [] fib6_run_gc+0x1d7/0x2e0
[ 358.319194] ---[ end trace 0000000000000000 ]---
[ 358.331775] BUG: unable to handle page fault for address: 00007ffc75f4b00f
[ 358.332502] #PF: supervisor read access in kernel mode
[ 358.333010] #PF: error_code(0x0000) - not-present page
[ 358.333489] PGD 0 P4D 0
[ 358.333761] Oops: 0000 [#1] PREEMPT SMP NOPTI
[ 358.334150] CPU: 2 PID: 68 Comm: kworker/u8:1 Tainted: G W 6.8.0-rc2-virtme #1
[ 358.334982] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.16.3-0-ga6ed6b701f0a-prebuilt.qemu.org 04/01/2014
[ 358.336082] Workqueue: netns cleanup_net
[ 358.336376] RIP: 0010:__mutex_unlock_slowpath+0x1ac/0x2a0
[ 358.336669] Code: ff ff 4c 8d 65 08 4c 89 e7 e8 f0 78 00 00 48 89 ef e8 e8 bd 2d ff 48 8b 55 50 48 8d 45 50 48 39 c2 74 71 48 8b 75 50 48 89 ef <4c> 8b 6e 10 e8 9b ba 2d ff 48 89 e7 4c 89 ee 4d 89 ee e8 5d d9 2a
[ 358.338037] RSP: 0018:ffffae7d80263aa0 EFLAGS: 00010207
[ 358.338320] RAX: ffff8e7b426a3a50 RBX: ffff8e7b426a3f0e RCX: 0000000000000000
[ 358.338776] RDX: 00007ffc75f4afff RSI: 00007ffc75f4afff RDI: ffff8e7b426a3a00
[ 358.339573] RBP: ffff8e7b426a3a00 R08: 0000000000000000 R09: 0000000000000000
[ 358.340555] R10: 0000000000000000 R11: ffffae7d80263ac0 R12: ffff8e7b426a3a08
[ 358.341761] R13: 0000000000000001 R14: 0000000000000000 R15: ffff8e7b42660000
[ 358.342917] FS: 0000000000000000(0000) GS:ffff8e7b7ed00000(0000) knlGS:0000000000000000
[ 358.344210] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[ 358.345178] CR2: 00007ffc75f4b00f CR3: 0000000016460003 CR4: 0000000000770ef0
[ 358.346341] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
[ 358.347343] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
[ 358.348262] PKRU: 55555554
[ 358.348720] Call Trace:
[ 358.349070]
[ 358.349456] ? __die+0x24/0x70
[ 358.349926] ? page_fault_oops+0x15b/0x450
[ 358.350284] ? exc_page_fault+0x6e/0x1d0
[ 358.350631] ? asm_exc_page_fault+0x26/0x30
[ 358.351049] ? __mutex_unlock_slowpath+0x1ac/0x2a0
[ 358.351405] __tcf_action_put+0x55/0x70
[ 358.351697] tcf_action_destroy+0x31/0x80
[ 358.351990] tcf_exts_destroy+0x20/0x40
[ 358.352284] __fl_destroy_filter+0x1e/0x80 [cls_flower]
[ 358.352688] __fl_delete+0x12d/0x180 [cls_flower]
[ 358.353039] fl_destroy+0xbd/0x140 [cls_flower]
[ 358.353391] tcf_proto_destroy+0x1f/0xc0
[ 358.353709] tcf_chain_flush+0xab/0x170
[ 358.353998] __tcf_block_put+0xd2/0x190
[ 358.354304] clsact_destroy+0xb6/0x380 [sch_ingress]
[ 358.354688] __qdisc_destroy+0x51/0x150
[ 358.354996] dev_shutdown+0x78/0x190
[ 358.355287] unregister_netdevice_many_notify+0x23e/0x7f0
[ 358.355701] default_device_exit_batch+0x2b3/0x320
[ 358.356070] cleanup_net+0x288/0x400
[ 358.356357] ? process_one_work+0x16c/0x4b0
[ 358.356689] process_one_work+0x1d6/0x4b0
[ 358.357016] worker_thread+0x1c1/0x3d0
[ 358.357318] ? __pfx_worker_thread+0x10/0x10
[ 358.357659] kthread+0xda/0x110
[ 358.357906] ? __pfx_kthread+0x10/0x10
[ 358.358206] ret_from_fork+0x31/0x50
[ 358.358482] ? __pfx_kthread+0x10/0x10
[ 358.358776] ret_from_fork_asm+0x1b/0x30
[ 358.359091]
[ 358.359270] Modules linked in: act_gact cls_flower vxlan xt_mark sch_ingress act_mirred cls_basic sch_fq_codel sha1_generic xfrm_user xt_policy nft_compat nf_tables libcrc32c
[ 358.360476] CR2: 00007ffc75f4b00f
[ 358.360738] ---[ end trace 0000000000000000 ]---
[ 358.361097] RIP: 0010:__mutex_unlock_slowpath+0x1ac/0x2a0
[ 358.361528] Code: ff ff 4c 8d 65 08 4c 89 e7 e8 f0 78 00 00 48 89 ef e8 e8 bd 2d ff 48 8b 55 50 48 8d 45 50 48 39 c2 74 71 48 8b 75 50 48 89 ef <4c> 8b 6e 10 e8 9b ba 2d ff 48 89 e7 4c 89 ee 4d 89 ee e8 5d d9 2a
[ 358.362917] RSP: 0018:ffffae7d80263aa0 EFLAGS: 00010207
[ 358.363336] RAX: ffff8e7b426a3a50 RBX: ffff8e7b426a3f0e RCX: 0000000000000000
[ 358.363879] RDX: 00007ffc75f4afff RSI: 00007ffc75f4afff RDI: ffff8e7b426a3a00
[ 358.364415] RBP: ffff8e7b426a3a00 R08: 0000000000000000 R09: 0000000000000000
[ 358.364966] R10: 0000000000000000 R11: ffffae7d80263ac0 R12: ffff8e7b426a3a08
[ 358.365510] R13: 0000000000000001 R14: 0000000000000000 R15: ffff8e7b42660000
[ 358.366048] FS: 0000000000000000(0000) GS:ffff8e7b7ed00000(0000) knlGS:0000000000000000
[ 358.366662] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[ 358.367113] CR2: 00007ffc75f4b00f CR3: 0000000016460003 CR4: 0000000000770ef0
[ 358.367656] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
[ 358.368195] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
[ 358.368741] PKRU: 55555554
[ 358.368959] note: kworker/u8:1[68] exited with irqs disabled
[ 358.369409] note: kworker/u8:1[68] exited with preempt_count 1
[ 358.380372] BUG: unable to handle page fault for address: ffffffff00000002
[ 358.380774] #PF: supervisor instruction fetch in kernel mode
[ 358.381084] #PF: error_code(0x0010) - not-present page
[ 358.381362] PGD 16463067 P4D 16463067 PUD 0
[ 358.381603] Oops: 0010 [#2] PREEMPT SMP NOPTI
[ 358.381841] CPU: 3 PID: 32 Comm: ksoftirqd/3 Tainted: G D W 6.8.0-rc2-virtme #1
[ 358.382296] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.16.3-0-ga6ed6b701f0a-prebuilt.qemu.org 04/01/2014
[ 358.382908] RIP: 0010:0xffffffff00000002
[ 358.383128] Code: Unable to access opcode bytes at 0xfffffffeffffffd8.
[ 358.383484] RSP: 0018:ffffae7d8012be08 EFLAGS: 00010282
[ 358.383765] RAX: 0000000000000004 RBX: 000000000000000a RCX: 0000000000000000
[ 358.384151] RDX: ffffffff00000002 RSI: ffffffff95d801c8 RDI: ffff8e7b426a3a08
[ 358.384536] RBP: ffff8e7b7edb08c0 R08: 0000000000000000 R09: 0000000000000000
[ 358.384915] R10: 0000000000000000 R11: 0000000000100005 R12: ffff8e7b4183a140
[ 358.385296] R13: 0000000000000009 R14: ffff8e7b7edb0960 R15: ffffffff94403fcd
[ 358.385683] FS: 0000000000000000(0000) GS:ffff8e7b7ed80000(0000) knlGS:0000000000000000
[ 358.386120] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[ 358.386432] CR2: fffffffeffffffd8 CR3: 0000000016460003 CR4: 0000000000770ef0
[ 358.386824] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
[ 358.387203] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
[ 358.387587] PKRU: 55555554
[ 358.387739] Call Trace:
[ 358.387877]
[ 358.387998] ? __die+0x24/0x70
[ 358.388174] ? page_fault_oops+0x15b/0x450
[ 358.388403] ? exc_page_fault+0xf2/0x1d0
[ 358.388625] ? asm_exc_page_fault+0x26/0x30
[ 358.388860] ? rcu_core+0x3ed/0xeb0
[ 358.389057] ? rcu_core+0x3aa/0xeb0
[ 358.389249] ? rcu_core+0x3ef/0xeb0
[ 358.389443] ? __do_softirq+0xc8/0x37a
[ 358.389656] ? __pfx_smpboot_thread_fn+0x10/0x10
[ 358.389914] ? run_ksoftirqd+0x2e/0x40
[ 358.390121] ? smpboot_thread_fn+0xd9/0x1d0
[ 358.390361] ? kthread+0xda/0x110
[ 358.390554] ? __pfx_kthread+0x10/0x10
[ 358.390761] ? ret_from_fork+0x31/0x50
[ 358.390974] ? __pfx_kthread+0x10/0x10
[ 358.391180] ? ret_from_fork_asm+0x1b/0x30
[ 358.391407]
[ 358.391537] Modules linked in: act_gact cls_flower vxlan xt_mark sch_ingress act_mirred cls_basic sch_fq_codel sha1_generic xfrm_user xt_policy nft_compat nf_tables libcrc32c
[ 358.392364] CR2: ffffffff00000002
[ 358.392555] ---[ end trace 0000000000000000 ]---
[ 358.392806] RIP: 0010:__mutex_unlock_slowpath+0x1ac/0x2a0
[ 358.393102] Code: ff ff 4c 8d 65 08 4c 89 e7 e8 f0 78 00 00 48 89 ef e8 e8 bd 2d ff 48 8b 55 50 48 8d 45 50 48 39 c2 74 71 48 8b 75 50 48 89 ef <4c> 8b 6e 10 e8 9b ba 2d ff 48 89 e7 4c 89 ee 4d 89 ee e8 5d d9 2a
[ 358.394123] RSP: 0018:ffffae7d80263aa0 EFLAGS: 00010207
[ 358.394419] RAX: ffff8e7b426a3a50 RBX: ffff8e7b426a3f0e RCX: 0000000000000000
[ 358.394824] RDX: 00007ffc75f4afff RSI: 00007ffc75f4afff RDI: ffff8e7b426a3a00
[ 358.395217] RBP: ffff8e7b426a3a00 R08: 0000000000000000 R09: 0000000000000000
[ 358.395610] R10: 0000000000000000 R11: ffffae7d80263ac0 R12: ffff8e7b426a3a08
[ 358.396017] R13: 0000000000000001 R14: 0000000000000000 R15: ffff8e7b42660000
[ 358.396412] FS: 0000000000000000(0000) GS:ffff8e7b7ed80000(0000) knlGS:0000000000000000
[ 358.396853] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[ 358.397176] CR2: fffffffeffffffd8 CR3: 0000000016460003 CR4: 0000000000770ef0
[ 358.397578] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
[ 358.397971] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
[ 358.398360] PKRU: 55555554
[ 358.398539] Kernel panic - not syncing: Fatal exception in interrupt
[ 358.399039] Kernel Offset: 0x13200000 from 0xffffffff81000000 (relocation range: 0xffffffff80000000-0xffffffffbfffffff)
[ 358.399632] ---[ end Kernel panic - not syncing: Fatal exception in interrupt ]---
WAIT TIMEOUT stdout
Ctrl-C stdout
Ctrl-C stdout
WAIT TIMEOUT stdout