make -C tools/testing/selftests TARGETS=net/forwarding TEST_PROGS=tc_actioons.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: tc_actions.sh # TEST: gact drop and ok (skip_hw) [ OK ] [ 1141.080423] Mirror/redirect action on # TEST: mirred egress flower redirect (skip_hw) [ OK ] # TEST: mirred egress flower mirror (skip_hw) [ OK ] # TEST: mirred egress matchall mirror (skip_hw) [ OK ] [ 1145.944609] ping (5478) used greatest stack depth: 11512 bytes left # TEST: mirred_egress_to_ingress (skip_hw) [ OK ] # [ 1151.978777] [ 1151.978903] ============================================ [ 1151.979188] WARNING: possible recursive locking detected [ 1151.979487] 6.8.0-rc2-virtme #1 Not tainted [ 1151.979727] -------------------------------------------- [ 1151.979997] ksoftirqd/3/32 is trying to acquire lock: [ 1151.980270] ffff93fe02bb8cb0 (slock-AF_INET/1){+.-.}-{2:2}, at: tcp_v4_rcv+0xdb5/0xef0 [ 1151.980687] [ 1151.980687] but task is already holding lock: [ 1151.980995] ffff93fe02bb80b0 (slock-AF_INET/1){+.-.}-{2:2}, at: tcp_v4_rcv+0xdb5/0xef0 [ 1151.981414] [ 1151.981414] other info that might help us debug this: [ 1151.981744] Possible unsafe locking scenario: [ 1151.981744] [ 1151.982048] CPU0 [ 1151.982189] ---- [ 1151.982344] lock(slock-AF_INET/1); [ 1151.982532] lock(slock-AF_INET/1); [ 1151.982732] [ 1151.982732] *** DEADLOCK *** [ 1151.982732] [ 1151.983041] May be due to missing lock nesting notation [ 1151.983041] [ 1151.983389] 8 locks held by ksoftirqd/3/32: [ 1151.983627] #0: ffffffffac5678c0 (rcu_read_lock){....}-{1:2}, at: process_backlog+0x6f/0x260 [ 1151.984067] #1: ffffffffac5678c0 (rcu_read_lock){....}-{1:2}, at: ip_local_deliver_finish+0x6f/0x180 [ 1151.984560] #2: ffff93fe02bb80b0 (slock-AF_INET/1){+.-.}-{2:2}, at: tcp_v4_rcv+0xdb5/0xef0 [ 1151.984991] #3: ffffffffac5678c0 (rcu_read_lock){....}-{1:2}, at: __ip_queue_xmit+0x3f/0x6f0 [ 1151.985441] #4: ffffffffac5678c0 (rcu_read_lock){....}-{1:2}, at: ip_finish_output2+0xc6/0xa20 [ 1151.985888] #5: ffffffffac567880 (rcu_read_lock_bh){....}-{1:2}, at: __dev_queue_xmit+0x6e/0x1180 [ 1151.986356] #6: ffffffffac5678c0 (rcu_read_lock){....}-{1:2}, at: netif_receive_skb+0x58/0x2c0 [ 1151.986803] #7: ffffffffac5678c0 (rcu_read_lock){....}-{1:2}, at: ip_local_deliver_finish+0x6f/0x180 [ 1151.987283] [ 1151.987283] stack backtrace: [ 1151.987510] CPU: 3 PID: 32 Comm: ksoftirqd/3 Not tainted 6.8.0-rc2-virtme #1 [ 1151.987873] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.16.3-0-ga6ed6b701f0a-prebuilt.qemu.org 04/01/2014 [ 1151.988464] Call Trace: [ 1151.988615] [ 1151.988749] dump_stack_lvl+0x4b/0x80 [ 1151.988952] __lock_acquire+0x1215/0x1750 [ 1151.989182] ? sk_filter_trim_cap+0x53/0x360 [ 1151.989412] lock_acquire+0xc1/0x2b0 [ 1151.989616] ? tcp_v4_rcv+0xdb5/0xef0 [ 1151.989824] ? sk_filter_trim_cap+0x11a/0x360 [ 1151.990072] _raw_spin_lock_nested+0x2e/0x40 [ 1151.990311] ? tcp_v4_rcv+0xdb5/0xef0 [ 1151.990522] tcp_v4_rcv+0xdb5/0xef0 [ 1151.990716] ip_protocol_deliver_rcu+0x4b/0x1e0 [ 1151.990967] ip_local_deliver_finish+0xaf/0x180 [ 1151.991217] __netif_receive_skb_one_core+0x8b/0xa0 [ 1151.991489] netif_receive_skb+0x87/0x2c0 [ 1151.991710] tcf_mirred_to_dev+0x1f6/0x410 [act_mirred] [ 1151.991996] tcf_mirred_act+0xee/0x560 [act_mirred] [ 1151.992256] ? tcf_skbedit_act+0x1d6/0x410 [act_skbedit] [ 1151.992549] tcf_action_exec+0xac/0x230 [ 1151.992761] fl_classify+0x20e/0x260 [cls_flower] [ 1151.993021] ? fl_mask_lookup+0x17e/0x5a0 [cls_flower] [ 1151.993299] ? __bfs+0xf3/0x240 [ 1151.993487] ? check_irq_usage+0x19c/0xc40 [ 1151.993708] ? lock_release+0xbe/0x270 [ 1151.993925] ? check_path.constprop.0+0x24/0x50 [ 1151.994166] ? check_noncircular+0x81/0x150 [ 1151.994414] ? lock_release+0xbe/0x270 [ 1151.994620] ? __lock_acquire+0xa6e/0x1750 [ 1151.994851] tcf_classify+0x17a/0x540 [ 1151.995044] tc_run+0x9f/0x150 [ 1151.995222] __dev_queue_xmit+0x311/0x1180 [ 1151.995451] ? mark_held_locks+0x49/0x80 [ 1151.995672] ip_finish_output2+0x39f/0xa20 [ 1151.995905] ? __ip_queue_xmit+0x1d5/0x6f0 [ 1151.996117] __ip_queue_xmit+0x1d5/0x6f0 [ 1151.996351] __tcp_transmit_skb+0xb65/0xd30 [ 1151.996587] ? mark_held_locks+0x49/0x80 [ 1151.996801] tcp_write_xmit+0x492/0x1400 [ 1151.997028] __tcp_push_pending_frames+0x36/0xc0 [ 1151.997281] tcp_rcv_state_process+0x4d3/0x11f0 [ 1151.997531] ? tcp_v4_rcv+0xdb5/0xef0 [ 1151.997746] ? tcp_v4_do_rcv+0x64/0x360 [ 1151.997946] tcp_v4_do_rcv+0x64/0x360 [ 1151.998153] tcp_v4_rcv+0xe4f/0xef0 [ 1151.998353] ? process_backlog+0x6f/0x260 [ 1151.998577] ip_protocol_deliver_rcu+0x4b/0x1e0 [ 1151.998831] ip_local_deliver_finish+0xaf/0x180 [ 1151.999065] __netif_receive_skb_one_core+0x8b/0xa0 [ 1151.999326] process_backlog+0x7c/0x260 [ 1151.999543] __napi_poll.constprop.0+0x27/0x1e0 [ 1151.999789] net_rx_action+0x2be/0x340 [ 1152.000010] __do_softirq+0xc8/0x37a [ 1152.000208] ? __pfx_smpboot_thread_fn+0x10/0x10 [ 1152.000464] run_ksoftirqd+0x2e/0x40 [ 1152.000667] smpboot_thread_fn+0xd9/0x1d0 [ 1152.000881] kthread+0xda/0x110 [ 1152.001066] ? __pfx_kthread+0x10/0x10 [ 1152.001270] ret_from_fork+0x31/0x50 [ 1152.001476] ? __pfx_kthread+0x10/0x10 [ 1152.001671] ret_from_fork_asm+0x1b/0x30 [ 1152.001893] [ 1185.014509] ncat (5598) used greatest stack depth: 10680 bytes left TEST: mirred_egress_to_ingress_tcp (skip_hw) [ OK ] # INFO: Could not test offloaded functionality ok 1 selftests: net/forwarding: tc_actions.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__->