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 # TEST: gact drop and ok (skip_hw) [ OK ] [ 450.519474][ T2558] 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 ] [ 458.738540][ T2697] ping (2697) used greatest stack depth: 23352 bytes left # TEST: mirred_egress_to_ingress (skip_hw) [ OK ] # [ 466.309777][ C3] [ 466.309957][ C3] ============================================ [ 466.310298][ C3] WARNING: possible recursive locking detected [ 466.310637][ C3] 6.8.0-rc2-virtme #1 Not tainted [ 466.310928][ C3] -------------------------------------------- [ 466.311265][ C3] ksoftirqd/3/32 is trying to acquire lock: [ 466.311591][ C3] ffff8880091b9b70 (slock-AF_INET/1){+.-.}-{2:2}, at: tcp_v4_rcv+0x2159/0x29b0 [ 466.312092][ C3] [ 466.312092][ C3] but task is already holding lock: [ 466.312489][ C3] ffff8880091b8e30 (slock-AF_INET/1){+.-.}-{2:2}, at: tcp_v4_rcv+0x2159/0x29b0 [ 466.313017][ C3] [ 466.313017][ C3] other info that might help us debug this: [ 466.313456][ C3] Possible unsafe locking scenario: [ 466.313456][ C3] [ 466.313861][ C3] CPU0 [ 466.314062][ C3] ---- [ 466.314251][ C3] lock(slock-AF_INET/1); [ 466.314501][ C3] lock(slock-AF_INET/1); [ 466.314766][ C3] [ 466.314766][ C3] *** DEADLOCK *** [ 466.314766][ C3] [ 466.315211][ C3] May be due to missing lock nesting notation [ 466.315211][ C3] [ 466.315659][ C3] 8 locks held by ksoftirqd/3/32: [ 466.315952][ C3] #0: ffffffffa4d447e0 (rcu_read_lock){....}-{1:2}, at: process_backlog+0x1ed/0x5e0 [ 466.316475][ C3] #1: ffffffffa4d447e0 (rcu_read_lock){....}-{1:2}, at: ip_local_deliver_finish+0x1f5/0x450 [ 466.317060][ C3] #2: ffff8880091b8e30 (slock-AF_INET/1){+.-.}-{2:2}, at: tcp_v4_rcv+0x2159/0x29b0 [ 466.317560][ C3] #3: ffffffffa4d447e0 (rcu_read_lock){....}-{1:2}, at: __ip_queue_xmit+0x65/0x1910 [ 466.318087][ C3] #4: ffffffffa4d447e0 (rcu_read_lock){....}-{1:2}, at: ip_finish_output2+0x262/0x18e0 [ 466.318613][ C3] #5: ffffffffa4d44780 (rcu_read_lock_bh){....}-{1:2}, at: __dev_queue_xmit+0x1c1/0x1ca0 [ 466.319148][ C3] #6: ffffffffa4d447e0 (rcu_read_lock){....}-{1:2}, at: netif_receive_skb_internal+0x84/0x300 [ 466.319714][ C3] #7: ffffffffa4d447e0 (rcu_read_lock){....}-{1:2}, at: ip_local_deliver_finish+0x1f5/0x450 [ 466.320278][ C3] [ 466.320278][ C3] stack backtrace: [ 466.320597][ C3] CPU: 3 PID: 32 Comm: ksoftirqd/3 Not tainted 6.8.0-rc2-virtme #1 [ 466.321050][ C3] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.16.3-0-ga6ed6b701f0a-prebuilt.qemu.org 04/01/2014 [ 466.321714][ C3] Call Trace: [ 466.321898][ C3] [ 466.322066][ C3] dump_stack_lvl+0x64/0xb0 [ 466.322336][ C3] validate_chain+0x525/0xa00 [ 466.322595][ C3] ? __pfx_validate_chain+0x10/0x10 [ 466.322875][ C3] ? hlock_class+0x4e/0x130 [ 466.323149][ C3] ? mark_lock+0x38/0x3e0 [ 466.323388][ C3] __lock_acquire+0xb67/0x1610 [ 466.323653][ C3] ? lock_downgrade+0xa0/0x110 [ 466.323933][ C3] ? mark_lock+0x38/0x3e0 [ 466.324167][ C3] lock_acquire.part.0+0xe5/0x330 [ 466.324437][ C3] ? tcp_v4_rcv+0x2159/0x29b0 [ 466.324728][ C3] ? __pfx_lock_acquire.part.0+0x10/0x10 [ 466.325040][ C3] ? __pfx_sk_filter_trim_cap+0x10/0x10 [ 466.325375][ C3] ? lock_acquire+0x1c1/0x220 [ 466.325623][ C3] ? tcp_v4_rcv+0x2159/0x29b0 [ 466.325880][ C3] _raw_spin_lock_nested+0x33/0x80 [ 466.326158][ C3] ? tcp_v4_rcv+0x2159/0x29b0 [ 466.326437][ C3] tcp_v4_rcv+0x2159/0x29b0 [ 466.326692][ C3] ? __pfx_tcp_v4_rcv+0x10/0x10 [ 466.326956][ C3] ? __pfx_raw_v4_input+0x10/0x10 [ 466.327254][ C3] ? __pfx_lock_acquire.part.0+0x10/0x10 [ 466.327560][ C3] ip_protocol_deliver_rcu+0x93/0x360 [ 466.327860][ C3] ip_local_deliver_finish+0x2ae/0x450 [ 466.328172][ C3] ip_local_deliver+0x19d/0x480 [ 466.328440][ C3] ? __pfx_ip_local_deliver+0x10/0x10 [ 466.328759][ C3] ? ip_rcv_finish_core.constprop.0+0x522/0x1300 [ 466.329110][ C3] ip_rcv+0x564/0x740 [ 466.329343][ C3] ? __pfx_ip_rcv+0x10/0x10 [ 466.329606][ C3] ? lock_acquire.part.0+0xe5/0x330 [ 466.329885][ C3] ? netif_receive_skb_internal+0x84/0x300 [ 466.330204][ C3] ? __pfx_ip_rcv+0x10/0x10 [ 466.330475][ C3] __netif_receive_skb_one_core+0x166/0x1b0 [ 466.330790][ C3] ? __pfx___netif_receive_skb_one_core+0x10/0x10 [ 466.331137][ C3] ? mark_held_locks+0xa5/0xf0 [ 466.331404][ C3] ? lock_acquire+0x1c1/0x220 [ 466.331672][ C3] ? netif_receive_skb_internal+0x84/0x300 [ 466.331989][ C3] netif_receive_skb_internal+0xb0/0x300 [ 466.332307][ C3] ? __pfx_netif_receive_skb_internal+0x10/0x10 [ 466.332685][ C3] ? __copy_skb_header+0xaf/0x490 [ 466.332968][ C3] ? __skb_clone+0x57a/0x760 [ 466.333227][ C3] netif_receive_skb+0x55/0x280 [ 466.333512][ C3] tcf_mirred_to_dev+0x444/0xd70 [act_mirred] [ 466.333854][ C3] ? __pfx_tcf_skbedit_act+0x10/0x10 [act_skbedit] [ 466.334234][ C3] tcf_mirred_act+0x338/0x780 [act_mirred] [ 466.334551][ C3] tcf_action_exec.part.0+0x115/0x3d0 [ 466.334861][ C3] fl_classify+0x4dc/0x650 [cls_flower] [ 466.335182][ C3] ? __pfx_fl_classify+0x10/0x10 [cls_flower] [ 466.335529][ C3] ? __pfx_usage_match+0x10/0x10 [ 466.335810][ C3] ? check_irq_usage+0x27e/0x850 [ 466.336097][ C3] ? hlock_class+0x4e/0x130 [ 466.336346][ C3] ? __pfx_check_irq_usage+0x10/0x10 [ 466.336647][ C3] ? __bfs+0x24a/0x650 [ 466.336894][ C3] ? __pfx_hlock_conflict+0x10/0x10 [ 466.337176][ C3] ? __bfs+0x24a/0x650 [ 466.337407][ C3] ? __pfx_usage_match+0x10/0x10 [ 466.337693][ C3] ? check_path.constprop.0+0x24/0x50 [ 466.337986][ C3] ? check_noncircular+0x14e/0x3e0 [ 466.338272][ C3] ? __pfx_check_noncircular+0x10/0x10 [ 466.338582][ C3] __tcf_classify+0x32c/0x7d0 [ 466.338844][ C3] tcf_classify+0x283/0x930 [ 466.339092][ C3] ? __pfx_tcf_classify+0x10/0x10 [ 466.339380][ C3] ? lock_acquire.part.0+0xe5/0x330 [ 466.339657][ C3] ? __dev_queue_xmit+0x1c1/0x1ca0 [ 466.339944][ C3] tc_run+0x2e4/0x5d0 [ 466.340202][ C3] ? __pfx_tc_run+0x10/0x10 [ 466.340451][ C3] ? lock_acquire+0x1c1/0x220 [ 466.340742][ C3] ? __dev_queue_xmit+0x1c1/0x1ca0 [ 466.341038][ C3] __dev_queue_xmit+0x8eb/0x1ca0 [ 466.341310][ C3] ? hlock_class+0x4e/0x130 [ 466.341558][ C3] ? mark_lock+0x38/0x3e0 [ 466.341818][ C3] ? __pfx___dev_queue_xmit+0x10/0x10 [ 466.342116][ C3] ? lockdep_hardirqs_on_prepare.part.0+0x151/0x370 [ 466.342474][ C3] ? neigh_hh_output+0x348/0x590 [ 466.342766][ C3] ip_finish_output2+0x786/0x18e0 [ 466.343036][ C3] ? __pfx_ip_finish_output2+0x10/0x10 [ 466.343329][ C3] ? __ip_finish_output+0x3dd/0x770 [ 466.343624][ C3] ip_output+0x16b/0x4f0 [ 466.343871][ C3] ? __pfx_ip_output+0x10/0x10 [ 466.344131][ C3] ? __pfx_lock_acquire.part.0+0x10/0x10 [ 466.344444][ C3] ? ip_local_out+0x114/0x3b0 [ 466.344747][ C3] __ip_queue_xmit+0x672/0x1910 [ 466.345026][ C3] ? __skb_clone+0x57a/0x760 [ 466.345287][ C3] __tcp_transmit_skb+0x22b1/0x2d20 [ 466.345591][ C3] ? __pfx___tcp_transmit_skb+0x10/0x10 [ 466.345892][ C3] ? tcp_small_queue_check.isra.0+0xe9/0x380 [ 466.346229][ C3] tcp_write_xmit+0xe42/0x24c0 [ 466.346531][ C3] ? ipv4_mtu+0x37/0x360 [ 466.346787][ C3] ? __pfx_tcp_write_xmit+0x10/0x10 [ 466.347108][ C3] ? __pfx_tcp_current_mss+0x10/0x10 [ 466.347399][ C3] __tcp_push_pending_frames+0x96/0x320 [ 466.347699][ C3] tcp_rcv_state_process+0x81e/0x1fd0 [ 466.348008][ C3] ? tcp_v4_rcv+0x2159/0x29b0 [ 466.348265][ C3] ? hlock_class+0x4e/0x130 [ 466.348518][ C3] ? __lock_acquired+0x18a/0x6b0 [ 466.348828][ C3] ? __pfx_tcp_rcv_state_process+0x10/0x10 [ 466.349139][ C3] ? __pfx___lock_acquired+0x10/0x10 [ 466.349431][ C3] ? __pfx_do_raw_spin_trylock+0x10/0x10 [ 466.349750][ C3] tcp_v4_do_rcv+0x154/0x850 [ 466.350009][ C3] tcp_v4_rcv+0x235a/0x29b0 [ 466.350258][ C3] ? __pfx_tcp_v4_rcv+0x10/0x10 [ 466.350536][ C3] ? __pfx_raw_v4_input+0x10/0x10 [ 466.350803][ C3] ? __pfx_lock_acquire.part.0+0x10/0x10 [ 466.351106][ C3] ip_protocol_deliver_rcu+0x93/0x360 [ 466.351411][ C3] ip_local_deliver_finish+0x2ae/0x450 [ 466.351726][ C3] ip_local_deliver+0x19d/0x480 [ 466.351995][ C3] ? __pfx_ip_local_deliver+0x10/0x10 [ 466.352293][ C3] ? ip_rcv_finish_core.constprop.0+0x522/0x1300 [ 466.352668][ C3] ip_rcv+0x564/0x740 [ 466.352898][ C3] ? __pfx_ip_rcv+0x10/0x10 [ 466.353168][ C3] ? lock_acquire.part.0+0xe5/0x330 [ 466.353453][ C3] ? process_backlog+0x1ed/0x5e0 [ 466.353730][ C3] ? __pfx_ip_rcv+0x10/0x10 [ 466.353993][ C3] __netif_receive_skb_one_core+0x166/0x1b0 [ 466.354316][ C3] ? __pfx___netif_receive_skb_one_core+0x10/0x10 [ 466.354667][ C3] ? __pfx_do_raw_spin_trylock+0x10/0x10 [ 466.354994][ C3] ? lock_acquire+0x1c1/0x220 [ 466.355246][ C3] ? process_backlog+0x1ed/0x5e0 [ 466.355520][ C3] process_backlog+0xd3/0x5e0 [ 466.355803][ C3] __napi_poll.constprop.0+0xa5/0x450 [ 466.356090][ C3] net_rx_action+0x440/0xb40 [ 466.356352][ C3] ? __pfx_net_rx_action+0x10/0x10 [ 466.356659][ C3] ? __pfx___schedule+0x10/0x10 [ 466.356932][ C3] ? __pfx___lock_release+0x10/0x10 [ 466.357217][ C3] __do_softirq+0x1bc/0x7ff [ 466.357472][ C3] ? __pfx_run_ksoftirqd+0x10/0x10 [ 466.357762][ C3] run_ksoftirqd+0x2e/0x60 [ 466.358005][ C3] smpboot_thread_fn+0x30e/0x840 [ 466.358276][ C3] ? __pfx_smpboot_thread_fn+0x10/0x10 [ 466.358587][ C3] ? __pfx_smpboot_thread_fn+0x10/0x10 [ 466.358877][ C3] kthread+0x292/0x360 [ 466.359105][ C3] ? __pfx_kthread+0x10/0x10 [ 466.359361][ C3] ret_from_fork+0x34/0x70 [ 466.359623][ C3] ? __pfx_kthread+0x10/0x10 [ 466.359885][ C3] ret_from_fork_asm+0x1b/0x30 [ 466.360154][ C3] [ 485.870822][ T2751] ncat (2751) used greatest stack depth: 21168 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__->