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 [ 1856.730547][T12580] veth1: left promiscuous mode # TEST: gact drop and ok (skip_hw) [ OK ] [ 1867.302908][T12685] 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 ] # [ 1883.600155][ C3] [ 1883.600404][ C3] ============================================ [ 1883.600882][ C3] WARNING: possible recursive locking detected [ 1883.601391][ C3] 6.8.0-rc2-virtme #1 Not tainted [ 1883.601778][ C3] -------------------------------------------- [ 1883.602274][ C3] ksoftirqd/3/32 is trying to acquire lock: [ 1883.602750][ C3] ffff88800a559b70 (slock-AF_INET/1){+.-.}-{2:2}, at: tcp_v4_rcv+0x2159/0x29b0 [ 1883.603458][ C3] [ 1883.603458][ C3] but task is already holding lock: [ 1883.604055][ C3] ffff88800a558e30 (slock-AF_INET/1){+.-.}-{2:2}, at: tcp_v4_rcv+0x2159/0x29b0 [ 1883.604770][ C3] [ 1883.604770][ C3] other info that might help us debug this: [ 1883.605403][ C3] Possible unsafe locking scenario: [ 1883.605403][ C3] [ 1883.605990][ C3] CPU0 [ 1883.606281][ C3] ---- [ 1883.606543][ C3] lock(slock-AF_INET/1); [ 1883.606919][ C3] lock(slock-AF_INET/1); [ 1883.607296][ C3] [ 1883.607296][ C3] *** DEADLOCK *** [ 1883.607296][ C3] [ 1883.607938][ C3] May be due to missing lock nesting notation [ 1883.607938][ C3] [ 1883.608617][ C3] 8 locks held by ksoftirqd/3/32: [ 1883.609008][ C3] #0: ffffffff941447e0 (rcu_read_lock){....}-{1:2}, at: process_backlog+0x1ed/0x5e0 [ 1883.609786][ C3] #1: ffffffff941447e0 (rcu_read_lock){....}-{1:2}, at: ip_local_deliver_finish+0x1f5/0x450 [ 1883.610607][ C3] #2: ffff88800a558e30 (slock-AF_INET/1){+.-.}-{2:2}, at: tcp_v4_rcv+0x2159/0x29b0 [ 1883.611367][ C3] #3: ffffffff941447e0 (rcu_read_lock){....}-{1:2}, at: __ip_queue_xmit+0x65/0x1910 [ 1883.612132][ C3] #4: ffffffff941447e0 (rcu_read_lock){....}-{1:2}, at: ip_finish_output2+0x262/0x18e0 [ 1883.612720][ C3] #5: ffffffff94144780 (rcu_read_lock_bh){....}-{1:2}, at: __dev_queue_xmit+0x1c1/0x1ca0 [ 1883.613263][ C3] #6: ffffffff941447e0 (rcu_read_lock){....}-{1:2}, at: netif_receive_skb_internal+0x84/0x300 [ 1883.613805][ C3] #7: ffffffff941447e0 (rcu_read_lock){....}-{1:2}, at: ip_local_deliver_finish+0x1f5/0x450 [ 1883.614368][ C3] [ 1883.614368][ C3] stack backtrace: [ 1883.614697][ C3] CPU: 3 PID: 32 Comm: ksoftirqd/3 Not tainted 6.8.0-rc2-virtme #1 [ 1883.615131][ C3] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.16.3-0-ga6ed6b701f0a-prebuilt.qemu.org 04/01/2014 [ 1883.615773][ C3] Call Trace: [ 1883.615952][ C3] [ 1883.616140][ C3] dump_stack_lvl+0x64/0xb0 [ 1883.616389][ C3] validate_chain+0x525/0xa00 [ 1883.616669][ C3] ? __pfx_validate_chain+0x10/0x10 [ 1883.616971][ C3] ? hlock_class+0x4e/0x130 [ 1883.617219][ C3] ? mark_lock+0x38/0x3e0 [ 1883.617448][ C3] __lock_acquire+0xb67/0x1610 [ 1883.617723][ C3] ? lock_downgrade+0xa0/0x110 [ 1883.618005][ C3] ? mark_lock+0x38/0x3e0 [ 1883.618242][ C3] lock_acquire.part.0+0xe5/0x330 [ 1883.618511][ C3] ? tcp_v4_rcv+0x2159/0x29b0 [ 1883.618788][ C3] ? __pfx_lock_acquire.part.0+0x10/0x10 [ 1883.619093][ C3] ? __pfx_sk_filter_trim_cap+0x10/0x10 [ 1883.619411][ C3] ? lock_acquire+0x1c1/0x220 [ 1883.619664][ C3] ? tcp_v4_rcv+0x2159/0x29b0 [ 1883.619938][ C3] _raw_spin_lock_nested+0x33/0x80 [ 1883.620213][ C3] ? tcp_v4_rcv+0x2159/0x29b0 [ 1883.620468][ C3] tcp_v4_rcv+0x2159/0x29b0 [ 1883.620738][ C3] ? __pfx_tcp_v4_rcv+0x10/0x10 [ 1883.621017][ C3] ? __pfx_raw_v4_input+0x10/0x10 [ 1883.621291][ C3] ? __pfx_lock_acquire.part.0+0x10/0x10 [ 1883.621588][ C3] ? mark_held_locks+0xa5/0xf0 [ 1883.621870][ C3] ip_protocol_deliver_rcu+0x93/0x360 [ 1883.622164][ C3] ip_local_deliver_finish+0x2ae/0x450 [ 1883.622493][ C3] ip_local_deliver+0x19d/0x480 [ 1883.622757][ C3] ? __pfx_ip_local_deliver+0x10/0x10 [ 1883.623064][ C3] ? ip_rcv_finish_core.constprop.0+0x522/0x1300 [ 1883.623422][ C3] ip_rcv+0x564/0x740 [ 1883.623643][ C3] ? __pfx_ip_rcv+0x10/0x10 [ 1883.623912][ C3] ? lock_acquire.part.0+0xe5/0x330 [ 1883.624194][ C3] ? netif_receive_skb_internal+0x84/0x300 [ 1883.624502][ C3] ? __pfx_ip_rcv+0x10/0x10 [ 1883.624766][ C3] __netif_receive_skb_one_core+0x166/0x1b0 [ 1883.625081][ C3] ? __pfx___netif_receive_skb_one_core+0x10/0x10 [ 1883.625455][ C3] ? mark_held_locks+0xa5/0xf0 [ 1883.625719][ C3] ? lock_acquire+0x1c1/0x220 [ 1883.625971][ C3] ? netif_receive_skb_internal+0x84/0x300 [ 1883.626310][ C3] netif_receive_skb_internal+0xb0/0x300 [ 1883.626608][ C3] ? __pfx_netif_receive_skb_internal+0x10/0x10 [ 1883.626965][ C3] ? __copy_skb_header+0xaf/0x490 [ 1883.627240][ C3] ? __skb_clone+0x57a/0x760 [ 1883.627521][ C3] netif_receive_skb+0x55/0x280 [ 1883.627784][ C3] tcf_mirred_to_dev+0x444/0xd70 [act_mirred] [ 1883.628128][ C3] ? __pfx_tcf_skbedit_act+0x10/0x10 [act_skbedit] [ 1883.628498][ C3] ? hlock_class+0x4e/0x130 [ 1883.628745][ C3] tcf_mirred_act+0x338/0x780 [act_mirred] [ 1883.629080][ C3] tcf_action_exec.part.0+0x115/0x3d0 [ 1883.629392][ C3] fl_classify+0x4dc/0x650 [cls_flower] [ 1883.629691][ C3] ? __pfx_fl_classify+0x10/0x10 [cls_flower] [ 1883.630029][ C3] ? __pfx_usage_match+0x10/0x10 [ 1883.630294][ C3] ? check_irq_usage+0x27e/0x850 [ 1883.630562][ C3] ? __pfx_check_irq_usage+0x10/0x10 [ 1883.630866][ C3] ? __bfs+0x24a/0x650 [ 1883.631087][ C3] ? __pfx_hlock_conflict+0x10/0x10 [ 1883.631396][ C3] ? __bfs+0x24a/0x650 [ 1883.631633][ C3] ? __pfx_usage_match+0x10/0x10 [ 1883.631926][ C3] ? check_path.constprop.0+0x24/0x50 [ 1883.632213][ C3] ? check_noncircular+0x14e/0x3e0 [ 1883.632533][ C3] ? __pfx_check_noncircular+0x10/0x10 [ 1883.632852][ C3] ? __pfx_validate_chain+0x10/0x10 [ 1883.633153][ C3] ? hlock_class+0x4e/0x130 [ 1883.633407][ C3] __tcf_classify+0x32c/0x7d0 [ 1883.633685][ C3] tcf_classify+0x283/0x930 [ 1883.633954][ C3] ? __pfx_tcf_classify+0x10/0x10 [ 1883.634226][ C3] ? lock_acquire.part.0+0xe5/0x330 [ 1883.634504][ C3] ? __dev_queue_xmit+0x1c1/0x1ca0 [ 1883.634801][ C3] tc_run+0x2e4/0x5d0 [ 1883.635027][ C3] ? __pfx_tc_run+0x10/0x10 [ 1883.635291][ C3] ? lock_acquire+0x1c1/0x220 [ 1883.635544][ C3] ? __dev_queue_xmit+0x1c1/0x1ca0 [ 1883.635821][ C3] __dev_queue_xmit+0x8eb/0x1ca0 [ 1883.636116][ C3] ? hlock_class+0x4e/0x130 [ 1883.636363][ C3] ? mark_lock+0x38/0x3e0 [ 1883.636597][ C3] ? __pfx___dev_queue_xmit+0x10/0x10 [ 1883.636905][ C3] ? lockdep_hardirqs_on_prepare.part.0+0x151/0x370 [ 1883.637257][ C3] ? neigh_hh_output+0x348/0x590 [ 1883.637521][ C3] ip_finish_output2+0x786/0x18e0 [ 1883.637812][ C3] ? __pfx_ip_finish_output2+0x10/0x10 [ 1883.638105][ C3] ? __ip_finish_output+0x3dd/0x770 [ 1883.638406][ C3] ip_output+0x16b/0x4f0 [ 1883.638637][ C3] ? __pfx_ip_output+0x10/0x10 [ 1883.638917][ C3] ? __pfx_lock_acquire.part.0+0x10/0x10 [ 1883.639216][ C3] ? ip_local_out+0x114/0x3b0 [ 1883.639468][ C3] __ip_queue_xmit+0x672/0x1910 [ 1883.639756][ C3] ? __skb_clone+0x57a/0x760 [ 1883.640014][ C3] __tcp_transmit_skb+0x22b1/0x2d20 [ 1883.640321][ C3] ? __pfx___tcp_transmit_skb+0x10/0x10 [ 1883.640616][ C3] ? tcp_small_queue_check.isra.0+0xe9/0x380 [ 1883.640953][ C3] tcp_write_xmit+0xe42/0x24c0 [ 1883.641215][ C3] ? ipv4_mtu+0x37/0x360 [ 1883.641473][ C3] ? __pfx_tcp_write_xmit+0x10/0x10 [ 1883.641749][ C3] ? __pfx_tcp_current_mss+0x10/0x10 [ 1883.642032][ C3] __tcp_push_pending_frames+0x96/0x320 [ 1883.642368][ C3] tcp_rcv_state_process+0x81e/0x1fd0 [ 1883.642654][ C3] ? tcp_v4_rcv+0x2159/0x29b0 [ 1883.642904][ C3] ? hlock_class+0x4e/0x130 [ 1883.643165][ C3] ? __lock_acquired+0x18a/0x6b0 [ 1883.643429][ C3] ? __pfx_tcp_rcv_state_process+0x10/0x10 [ 1883.643737][ C3] ? __pfx___lock_acquired+0x10/0x10 [ 1883.644040][ C3] ? __pfx_do_raw_spin_trylock+0x10/0x10 [ 1883.644343][ C3] tcp_v4_do_rcv+0x154/0x850 [ 1883.644619][ C3] tcp_v4_rcv+0x235a/0x29b0 [ 1883.644868][ C3] ? __pfx_tcp_v4_rcv+0x10/0x10 [ 1883.645144][ C3] ? __pfx_raw_v4_input+0x10/0x10 [ 1883.645414][ C3] ? __pfx_lock_acquire.part.0+0x10/0x10 [ 1883.645740][ C3] ip_protocol_deliver_rcu+0x93/0x360 [ 1883.646024][ C3] ip_local_deliver_finish+0x2ae/0x450 [ 1883.646331][ C3] ip_local_deliver+0x19d/0x480 [ 1883.646594][ C3] ? __pfx_ip_local_deliver+0x10/0x10 [ 1883.646882][ C3] ? ip_rcv_finish_core.constprop.0+0x522/0x1300 [ 1883.647240][ C3] ip_rcv+0x564/0x740 [ 1883.647464][ C3] ? __pfx_ip_rcv+0x10/0x10 [ 1883.647733][ C3] ? lock_acquire.part.0+0xe5/0x330 [ 1883.648012][ C3] ? process_backlog+0x1ed/0x5e0 [ 1883.648295][ C3] ? __pfx_ip_rcv+0x10/0x10 [ 1883.648543][ C3] __netif_receive_skb_one_core+0x166/0x1b0 [ 1883.648883][ C3] ? __pfx___netif_receive_skb_one_core+0x10/0x10 [ 1883.649232][ C3] ? __pfx_do_raw_spin_trylock+0x10/0x10 [ 1883.649565][ C3] ? lock_acquire+0x1c1/0x220 [ 1883.649816][ C3] ? process_backlog+0x1ed/0x5e0 [ 1883.650076][ C3] process_backlog+0xd3/0x5e0 [ 1883.650345][ C3] __napi_poll.constprop.0+0xa5/0x450 [ 1883.650631][ C3] net_rx_action+0x440/0xb40 [ 1883.650902][ C3] ? __pfx_net_rx_action+0x10/0x10 [ 1883.651174][ C3] ? __pfx___schedule+0x10/0x10 [ 1883.651453][ C3] ? __pfx___lock_release+0x10/0x10 [ 1883.651760][ C3] ? trace_rcu_grace_period+0x33/0x1a0 [ 1883.652056][ C3] __do_softirq+0x1bc/0x7ff [ 1883.652331][ C3] ? __pfx_run_ksoftirqd+0x10/0x10 [ 1883.652609][ C3] run_ksoftirqd+0x2e/0x60 [ 1883.652868][ C3] smpboot_thread_fn+0x30e/0x840 [ 1883.653138][ C3] ? __pfx_smpboot_thread_fn+0x10/0x10 [ 1883.653460][ C3] ? __pfx_smpboot_thread_fn+0x10/0x10 [ 1883.653751][ C3] kthread+0x292/0x360 [ 1883.653986][ C3] ? __pfx_kthread+0x10/0x10 [ 1883.654231][ C3] ret_from_fork+0x34/0x70 [ 1883.654470][ C3] ? __pfx_kthread+0x10/0x10 [ 1883.654740][ C3] ret_from_fork_asm+0x1b/0x30 [ 1883.655005][ C3] [ 1915.660031][T12878] ncat (12878) used greatest stack depth: 21168 bytes left TEST: mirred_egress_to_ingress_tcp (skip_hw) [ OK ] # INFO: Could not test offloaded functionality [ 1959.824618][T12520] perl (12520) used greatest stack depth: 20944 bytes left 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__->