make -C tools/testing/selftests TARGETS=net/forwarding TEST_PROGS=tc_actioons.sh TEST_GEN_PROGS="" run_tests make: Entering directory '/home/virtme/testing-4/tools/testing/selftests' make[1]: Entering directory '/home/virtme/testing-4/tools/testing/selftests/net/forwarding' make[1]: Nothing to be done for 'all'. make[1]: Leaving directory '/home/virtme/testing-4/tools/testing/selftests/net/forwarding' make[1]: Entering directory '/home/virtme/testing-4/tools/testing/selftests/net/forwarding' TAP version 13 1..1 # timeout set to 10800 # selftests: net/forwarding: tc_actions.sh [ 2233.654494][T11812] veth1: left promiscuous mode # TEST: gact drop and ok (skip_hw) [ OK ] [ 2245.978291][T11897] 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 ] # TEST: mirred_egress_to_ingress (skip_hw) [ OK ] # [ 2263.087039][ C0] [ 2263.087200][ C0] ============================================ [ 2263.087528][ C0] WARNING: possible recursive locking detected [ 2263.087841][ C0] 6.8.0-rc2-virtme #1 Not tainted [ 2263.088115][ C0] -------------------------------------------- [ 2263.088445][ C0] ksoftirqd/0/16 is trying to acquire lock: [ 2263.088766][ C0] ffff888008219b70 (slock-AF_INET/1){+.-.}-{2:2}, at: tcp_v4_rcv+0x221e/0x2ac0 [ 2263.089240][ C0] [ 2263.089240][ C0] but task is already holding lock: [ 2263.089624][ C0] ffff888008218e30 (slock-AF_INET/1){+.-.}-{2:2}, at: tcp_v4_rcv+0x221e/0x2ac0 [ 2263.090083][ C0] [ 2263.090083][ C0] other info that might help us debug this: [ 2263.090500][ C0] Possible unsafe locking scenario: [ 2263.090500][ C0] [ 2263.090875][ C0] CPU0 [ 2263.091049][ C0] ---- [ 2263.091220][ C0] lock(slock-AF_INET/1); [ 2263.091461][ C0] lock(slock-AF_INET/1); [ 2263.091691][ C0] [ 2263.091691][ C0] *** DEADLOCK *** [ 2263.091691][ C0] [ 2263.092105][ C0] May be due to missing lock nesting notation [ 2263.092105][ C0] [ 2263.092533][ C0] 8 locks held by ksoftirqd/0/16: [ 2263.092788][ C0] #0: ffffffff8cd447e0 (rcu_read_lock){....}-{1:2}, at: process_backlog+0x1ed/0x5e0 [ 2263.093275][ C0] #1: ffffffff8cd447e0 (rcu_read_lock){....}-{1:2}, at: ip_local_deliver_finish+0x1f5/0x480 [ 2263.093810][ C0] #2: ffff888008218e30 (slock-AF_INET/1){+.-.}-{2:2}, at: tcp_v4_rcv+0x221e/0x2ac0 [ 2263.094288][ C0] #3: ffffffff8cd447e0 (rcu_read_lock){....}-{1:2}, at: __ip_queue_xmit+0x65/0x1910 [ 2263.094777][ C0] #4: ffffffff8cd447e0 (rcu_read_lock){....}-{1:2}, at: ip_finish_output2+0x262/0x18e0 [ 2263.095271][ C0] #5: ffffffff8cd44780 (rcu_read_lock_bh){....}-{1:2}, at: __dev_queue_xmit+0x1da/0x17e0 [ 2263.095777][ C0] #6: ffffffff8cd447e0 (rcu_read_lock){....}-{1:2}, at: netif_receive_skb_internal+0x84/0x300 [ 2263.096303][ C0] #7: ffffffff8cd447e0 (rcu_read_lock){....}-{1:2}, at: ip_local_deliver_finish+0x1f5/0x480 [ 2263.096826][ C0] [ 2263.096826][ C0] stack backtrace: [ 2263.097138][ C0] CPU: 0 PID: 16 Comm: ksoftirqd/0 Not tainted 6.8.0-rc2-virtme #1 [ 2263.097539][ C0] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.16.3-0-ga6ed6b701f0a-prebuilt.qemu.org 04/01/2014 [ 2263.098165][ C0] Call Trace: [ 2263.098342][ C0] [ 2263.098495][ C0] dump_stack_lvl+0x64/0xb0 [ 2263.098741][ C0] validate_chain+0x525/0xa00 [ 2263.098989][ C0] ? __pfx_validate_chain+0x10/0x10 [ 2263.099264][ C0] ? hlock_class+0x4e/0x130 [ 2263.099496][ C0] ? mark_lock+0x38/0x3e0 [ 2263.099720][ C0] __lock_acquire+0xb67/0x1610 [ 2263.099974][ C0] ? lock_downgrade+0xa0/0x110 [ 2263.100223][ C0] ? mark_lock+0x38/0x3e0 [ 2263.100463][ C0] lock_acquire.part.0+0xe5/0x330 [ 2263.100726][ C0] ? tcp_v4_rcv+0x221e/0x2ac0 [ 2263.100967][ C0] ? __pfx_lock_acquire.part.0+0x10/0x10 [ 2263.101269][ C0] ? __pfx_sk_filter_trim_cap+0x10/0x10 [ 2263.101551][ C0] ? lock_acquire+0x1c1/0x220 [ 2263.101800][ C0] ? tcp_v4_rcv+0x221e/0x2ac0 [ 2263.102061][ C0] _raw_spin_lock_nested+0x33/0x80 [ 2263.102329][ C0] ? tcp_v4_rcv+0x221e/0x2ac0 [ 2263.102577][ C0] tcp_v4_rcv+0x221e/0x2ac0 [ 2263.102817][ C0] ? __pfx_tcp_v4_rcv+0x10/0x10 [ 2263.103076][ C0] ? __pfx_raw_v4_input+0x10/0x10 [ 2263.103337][ C0] ? __pfx_lock_acquire.part.0+0x10/0x10 [ 2263.103634][ C0] ip_protocol_deliver_rcu+0x93/0x360 [ 2263.103915][ C0] ip_local_deliver_finish+0x2ae/0x480 [ 2263.104197][ C0] ip_local_deliver+0x19d/0x480 [ 2263.104450][ C0] ? __pfx_ip_local_deliver+0x10/0x10 [ 2263.104729][ C0] ? tcp_v4_early_demux+0x59a/0x9d0 [ 2263.105010][ C0] ? ip_rcv_finish_core.constprop.0+0x522/0x1300 [ 2263.105340][ C0] ip_rcv+0x564/0x740 [ 2263.105546][ C0] ? __pfx_ip_rcv+0x10/0x10 [ 2263.105786][ C0] ? lock_acquire.part.0+0xe5/0x330 [ 2263.106062][ C0] ? netif_receive_skb_internal+0x84/0x300 [ 2263.106365][ C0] ? __pfx_ip_rcv+0x10/0x10 [ 2263.106606][ C0] __netif_receive_skb_one_core+0x166/0x1b0 [ 2263.106904][ C0] ? __pfx___netif_receive_skb_one_core+0x10/0x10 [ 2263.107234][ C0] ? mark_held_locks+0xa5/0xf0 [ 2263.107492][ C0] ? lock_acquire+0x1c1/0x220 [ 2263.107732][ C0] ? netif_receive_skb_internal+0x84/0x300 [ 2263.108037][ C0] netif_receive_skb_internal+0xb0/0x300 [ 2263.108325][ C0] ? __pfx_netif_receive_skb_internal+0x10/0x10 [ 2263.108657][ C0] ? __copy_skb_header+0xaf/0x490 [ 2263.108919][ C0] ? __skb_clone+0x57a/0x760 [ 2263.109161][ C0] netif_receive_skb+0x55/0x280 [ 2263.109428][ C0] tcf_mirred_to_dev+0x444/0xd70 [act_mirred] [ 2263.109749][ C0] ? __pfx_tcf_skbedit_act+0x10/0x10 [act_skbedit] [ 2263.110081][ C0] tcf_mirred_act+0x338/0x780 [act_mirred] [ 2263.110392][ C0] tcf_action_exec.part.0+0x112/0x3d0 [ 2263.110674][ C0] fl_classify+0x4dc/0x650 [cls_flower] [ 2263.110980][ C0] ? __pfx_fl_classify+0x10/0x10 [cls_flower] [ 2263.111296][ C0] ? hlock_class+0x4e/0x130 [ 2263.111548][ C0] ? __pfx_check_irq_usage+0x10/0x10 [ 2263.111825][ C0] ? __bfs+0x247/0x650 [ 2263.112046][ C0] ? __pfx_hlock_conflict+0x10/0x10 [ 2263.112326][ C0] ? check_path.constprop.0+0x24/0x50 [ 2263.112606][ C0] ? check_noncircular+0x14e/0x3e0 [ 2263.112877][ C0] ? hlock_class+0x4e/0x130 [ 2263.113115][ C0] ? __pfx_check_noncircular+0x10/0x10 [ 2263.113392][ C0] ? __pfx_hlock_conflict+0x10/0x10 [ 2263.113672][ C0] ? __pfx_validate_chain+0x10/0x10 [ 2263.113939][ C0] ? hlock_class+0x4e/0x130 [ 2263.114175][ C0] ? hlock_class+0x4e/0x130 [ 2263.114431][ C0] ? check_prev_add+0x773/0xce0 [ 2263.114691][ C0] __tcf_classify+0x329/0x7d0 [ 2263.114937][ C0] tcf_classify+0x283/0x930 [ 2263.115179][ C0] ? __pfx_tcf_classify+0x10/0x10 [ 2263.115438][ C0] ? __dev_queue_xmit+0x1da/0x17e0 [ 2263.115700][ C0] ? __dev_queue_xmit+0x1da/0x17e0 [ 2263.115979][ C0] tc_run+0x2e4/0x5d0 [ 2263.116188][ C0] ? __pfx_tc_run+0x10/0x10 [ 2263.116421][ C0] ? lock_acquire+0x1c1/0x220 [ 2263.116681][ C0] ? __dev_queue_xmit+0x1da/0x17e0 [ 2263.116942][ C0] __dev_queue_xmit+0x686/0x17e0 [ 2263.117197][ C0] ? mark_held_locks+0xa5/0xf0 [ 2263.117461][ C0] ? lockdep_hardirqs_on_prepare.part.0+0x151/0x370 [ 2263.117794][ C0] ? __pfx___dev_queue_xmit+0x10/0x10 [ 2263.118082][ C0] ? vrf_ip_local_out+0x7d1/0x860 [vrf] [ 2263.118379][ C0] ip_finish_output2+0x786/0x18e0 [ 2263.118643][ C0] ? __pfx_ip_finish_output2+0x10/0x10 [ 2263.118930][ C0] ? __ip_finish_output+0x3dd/0x770 [ 2263.119194][ C0] ip_output+0x16b/0x4f0 [ 2263.119419][ C0] ? __pfx_ip_output+0x10/0x10 [ 2263.119676][ C0] ? __pfx_lock_acquire.part.0+0x10/0x10 [ 2263.119959][ C0] ? lockdep_hardirqs_on_prepare.part.0+0x151/0x370 [ 2263.120304][ C0] ? ip_local_out+0x114/0x3b0 [ 2263.120553][ C0] __ip_queue_xmit+0x672/0x1910 [ 2263.120801][ C0] ? __skb_clone+0x57a/0x760 [ 2263.121044][ C0] __tcp_transmit_skb+0x22b1/0x2d20 [ 2263.121323][ C0] ? __pfx___tcp_transmit_skb+0x10/0x10 [ 2263.121607][ C0] ? tcp_small_queue_check.isra.0+0xe9/0x380 [ 2263.121919][ C0] tcp_write_xmit+0x94f/0x1cb0 [ 2263.122178][ C0] ? ipv4_mtu+0x37/0x360 [ 2263.122404][ C0] ? __pfx_tcp_write_xmit+0x10/0x10 [ 2263.122680][ C0] ? __pfx_tcp_current_mss+0x10/0x10 [ 2263.122964][ C0] __tcp_push_pending_frames+0x96/0x320 [ 2263.123255][ C0] tcp_rcv_state_process+0x786/0x1fe0 [ 2263.123538][ C0] ? tcp_v4_rcv+0x221e/0x2ac0 [ 2263.123778][ C0] ? hlock_class+0x4e/0x130 [ 2263.124017][ C0] ? __lock_acquired+0x18a/0x6b0 [ 2263.124282][ C0] ? __pfx_tcp_rcv_state_process+0x10/0x10 [ 2263.124582][ C0] ? __pfx___lock_acquired+0x10/0x10 [ 2263.124862][ C0] ? __pfx_do_raw_spin_trylock+0x10/0x10 [ 2263.125152][ C0] tcp_v4_do_rcv+0x154/0x860 [ 2263.125397][ C0] tcp_v4_rcv+0x2449/0x2ac0 [ 2263.125641][ C0] ? __pfx_tcp_v4_rcv+0x10/0x10 [ 2263.125899][ C0] ? __pfx_raw_v4_input+0x10/0x10 [ 2263.126163][ C0] ? __pfx_lock_acquire.part.0+0x10/0x10 [ 2263.126461][ C0] ip_protocol_deliver_rcu+0x93/0x360 [ 2263.126744][ C0] ip_local_deliver_finish+0x2ae/0x480 [ 2263.127032][ C0] ip_local_deliver+0x19d/0x480 [ 2263.127292][ C0] ? __pfx_ip_local_deliver+0x10/0x10 [ 2263.127577][ C0] ? tcp_v4_early_demux+0x59a/0x9d0 [ 2263.127852][ C0] ? ip_rcv_finish_core.constprop.0+0x522/0x1300 [ 2263.128192][ C0] ip_rcv+0x564/0x740 [ 2263.128403][ C0] ? __pfx_ip_rcv+0x10/0x10 [ 2263.128650][ C0] ? lock_acquire.part.0+0xe5/0x330 [ 2263.128920][ C0] ? process_backlog+0x1ed/0x5e0 [ 2263.129184][ C0] ? __pfx_ip_rcv+0x10/0x10 [ 2263.129424][ C0] __netif_receive_skb_one_core+0x166/0x1b0 [ 2263.129732][ C0] ? __pfx___netif_receive_skb_one_core+0x10/0x10 [ 2263.130057][ C0] ? __pfx_do_raw_spin_trylock+0x10/0x10 [ 2263.130350][ C0] ? lock_acquire+0x1c1/0x220 [ 2263.130606][ C0] ? process_backlog+0x1ed/0x5e0 [ 2263.130863][ C0] process_backlog+0xd3/0x5e0 [ 2263.131123][ C0] __napi_poll.constprop.0+0xa2/0x460 [ 2263.131404][ C0] net_rx_action+0x440/0xb40 [ 2263.131666][ C0] ? __pfx_net_rx_action+0x10/0x10 [ 2263.131934][ C0] ? __pfx___schedule+0x10/0x10 [ 2263.132196][ C0] ? __pfx___lock_release+0x10/0x10 [ 2263.132468][ C0] __do_softirq+0x1b9/0x7ff [ 2263.132710][ C0] ? __pfx_run_ksoftirqd+0x10/0x10 [ 2263.132973][ C0] run_ksoftirqd+0x2e/0x60 [ 2263.133209][ C0] smpboot_thread_fn+0x30b/0x840 [ 2263.133475][ C0] ? __pfx_smpboot_thread_fn+0x10/0x10 [ 2263.133754][ C0] ? __pfx_smpboot_thread_fn+0x10/0x10 [ 2263.134038][ C0] kthread+0x28f/0x360 [ 2263.134260][ C0] ? __pfx_kthread+0x10/0x10 [ 2263.134505][ C0] ret_from_fork+0x31/0x70 [ 2263.134743][ C0] ? __pfx_kthread+0x10/0x10 [ 2263.134977][ C0] ret_from_fork_asm+0x1b/0x30 [ 2263.135233][ C0] [ 2281.710883][T12055] ncat (12055) used greatest stack depth: 21120 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-4/tools/testing/selftests/net/forwarding' make: Leaving directory '/home/virtme/testing-4/tools/testing/selftests' xx__-> echo $? 0 xx__->