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 0 # selftests: net/forwarding: tc_actions.sh # TEST: gact drop and ok (skip_hw) [ OK ] # TEST: mirred egress flower redirect (skip_hw) [ OK ] # TEST: mirred egress flower mirror (skip_hw) [ OK ] [ 1935.526539][ T4965] tc (4965) used greatest stack depth: 23000 bytes left # TEST: mirred egress matchall mirror (skip_hw) [ OK ] # TEST: mirred_egress_to_ingress (skip_hw) [ OK ] # [ 1945.764848][ C0] [ 1945.765017][ C0] ============================================ [ 1945.765353][ C0] WARNING: possible recursive locking detected [ 1945.765699][ C0] 6.8.0-rc1-virtme #1 Not tainted [ 1945.765962][ C0] -------------------------------------------- [ 1945.766299][ C0] ksoftirqd/0/16 is trying to acquire lock: [ 1945.766614][ C0] ffff88800a629b70 (slock-AF_INET/1){+.-.}-{2:2}, at: tcp_v4_rcv+0x2159/0x29b0 [ 1945.767103][ C0] [ 1945.767103][ C0] but task is already holding lock: [ 1945.767490][ C0] ffff88800a628e30 (slock-AF_INET/1){+.-.}-{2:2}, at: tcp_v4_rcv+0x2159/0x29b0 [ 1945.767968][ C0] [ 1945.767968][ C0] other info that might help us debug this: [ 1945.768401][ C0] Possible unsafe locking scenario: [ 1945.768401][ C0] [ 1945.768783][ C0] CPU0 [ 1945.768965][ C0] ---- [ 1945.769153][ C0] lock(slock-AF_INET/1); [ 1945.769395][ C0] lock(slock-AF_INET/1); [ 1945.769648][ C0] [ 1945.769648][ C0] *** DEADLOCK *** [ 1945.769648][ C0] [ 1945.770072][ C0] May be due to missing lock nesting notation [ 1945.770072][ C0] [ 1945.770507][ C0] 8 locks held by ksoftirqd/0/16: [ 1945.770789][ C0] #0: ffffffff921447e0 (rcu_read_lock){....}-{1:2}, at: process_backlog+0x1ed/0x5e0 [ 1945.771289][ C0] #1: ffffffff921447e0 (rcu_read_lock){....}-{1:2}, at: ip_local_deliver_finish+0x1f5/0x450 [ 1945.771825][ C0] #2: ffff88800a628e30 (slock-AF_INET/1){+.-.}-{2:2}, at: tcp_v4_rcv+0x2159/0x29b0 [ 1945.772321][ C0] #3: ffffffff921447e0 (rcu_read_lock){....}-{1:2}, at: __ip_queue_xmit+0x65/0x1910 [ 1945.772828][ C0] #4: ffffffff921447e0 (rcu_read_lock){....}-{1:2}, at: ip_finish_output2+0x262/0x18e0 [ 1945.773340][ C0] #5: ffffffff92144780 (rcu_read_lock_bh){....}-{1:2}, at: __dev_queue_xmit+0x1c1/0x1ca0 [ 1945.773873][ C0] #6: ffffffff921447e0 (rcu_read_lock){....}-{1:2}, at: netif_receive_skb_internal+0x84/0x300 [ 1945.774417][ C0] #7: ffffffff921447e0 (rcu_read_lock){....}-{1:2}, at: ip_local_deliver_finish+0x1f5/0x450 [ 1945.774963][ C0] [ 1945.774963][ C0] stack backtrace: [ 1945.775283][ C0] CPU: 0 PID: 16 Comm: ksoftirqd/0 Not tainted 6.8.0-rc1-virtme #1 [ 1945.775707][ C0] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.16.3-0-ga6ed6b701f0a-prebuilt.qemu.org 04/01/2014 [ 1945.776338][ C0] Call Trace: [ 1945.776530][ C0] [ 1945.776690][ C0] dump_stack_lvl+0x64/0xb0 [ 1945.776948][ C0] validate_chain+0x525/0xa00 [ 1945.777208][ C0] ? __pfx_validate_chain+0x10/0x10 [ 1945.777488][ C0] ? hlock_class+0x4e/0x130 [ 1945.777737][ C0] ? mark_lock+0x38/0x3e0 [ 1945.777970][ C0] __lock_acquire+0xb67/0x1610 [ 1945.778232][ C0] ? lock_downgrade+0x90/0x110 [ 1945.778499][ C0] ? mark_lock+0x38/0x3e0 [ 1945.778740][ C0] lock_acquire.part.0+0xe5/0x330 [ 1945.779005][ C0] ? tcp_v4_rcv+0x2159/0x29b0 [ 1945.779251][ C0] ? __pfx_lock_acquire.part.0+0x10/0x10 [ 1945.779562][ C0] ? __pfx_sk_filter_trim_cap+0x10/0x10 [ 1945.779863][ C0] ? lock_acquire+0x1c1/0x220 [ 1945.780110][ C0] ? tcp_v4_rcv+0x2159/0x29b0 [ 1945.780379][ C0] _raw_spin_lock_nested+0x33/0x80 [ 1945.780656][ C0] ? tcp_v4_rcv+0x2159/0x29b0 [ 1945.780907][ C0] tcp_v4_rcv+0x2159/0x29b0 [ 1945.781152][ C0] ? __pfx_tcp_v4_rcv+0x10/0x10 [ 1945.781426][ C0] ? __pfx_raw_v4_input+0x10/0x10 [ 1945.781702][ C0] ? __pfx_lock_acquire.part.0+0x10/0x10 [ 1945.782007][ C0] ip_protocol_deliver_rcu+0x93/0x360 [ 1945.782304][ C0] ip_local_deliver_finish+0x2ae/0x450 [ 1945.782596][ C0] ip_local_deliver+0x19d/0x480 [ 1945.782864][ C0] ? __pfx_ip_local_deliver+0x10/0x10 [ 1945.783152][ C0] ? ip_rcv_finish_core.constprop.0+0x522/0x1300 [ 1945.783496][ C0] ip_rcv+0x564/0x740 [ 1945.783705][ C0] ? __pfx_ip_rcv+0x10/0x10 [ 1945.783956][ C0] ? lock_acquire.part.0+0xe5/0x330 [ 1945.784238][ C0] ? netif_receive_skb_internal+0x84/0x300 [ 1945.784542][ C0] ? __pfx_ip_rcv+0x10/0x10 [ 1945.784784][ C0] __netif_receive_skb_one_core+0x166/0x1b0 [ 1945.785095][ C0] ? __pfx___netif_receive_skb_one_core+0x10/0x10 [ 1945.785446][ C0] ? mark_held_locks+0xa5/0xf0 [ 1945.785702][ C0] ? lock_acquire+0x1c1/0x220 [ 1945.785954][ C0] ? netif_receive_skb_internal+0x84/0x300 [ 1945.786266][ C0] netif_receive_skb_internal+0xb0/0x300 [ 1945.786582][ C0] ? __pfx_netif_receive_skb_internal+0x10/0x10 [ 1945.786918][ C0] ? __copy_skb_header+0xaf/0x490 [ 1945.787187][ C0] ? __skb_clone+0x57a/0x760 [ 1945.787455][ C0] netif_receive_skb+0x55/0x280 [ 1945.787720][ C0] tcf_mirred_to_dev+0x444/0xd70 [act_mirred] [ 1945.788056][ C0] ? __pfx_tcf_skbedit_act+0x10/0x10 [act_skbedit] [ 1945.788406][ C0] tcf_mirred_act+0x338/0x780 [act_mirred] [ 1945.788725][ C0] tcf_action_exec.part.0+0x115/0x3d0 [ 1945.789018][ C0] fl_classify+0x4dc/0x650 [cls_flower] [ 1945.789332][ C0] ? __pfx_fl_classify+0x10/0x10 [cls_flower] [ 1945.789653][ C0] ? __pfx_usage_match+0x10/0x10 [ 1945.789928][ C0] ? check_irq_usage+0x27e/0x850 [ 1945.790191][ C0] ? __lock_release+0x40f/0x880 [ 1945.790471][ C0] ? __pfx_check_irq_usage+0x10/0x10 [ 1945.790761][ C0] ? __bfs+0x24a/0x650 [ 1945.790976][ C0] ? __pfx_hlock_conflict+0x10/0x10 [ 1945.791255][ C0] ? __bfs+0x24a/0x650 [ 1945.791480][ C0] ? __pfx_usage_match+0x10/0x10 [ 1945.791748][ C0] ? check_path.constprop.0+0x24/0x50 [ 1945.792042][ C0] ? check_noncircular+0x14e/0x3e0 [ 1945.792322][ C0] ? __pfx_check_noncircular+0x10/0x10 [ 1945.792627][ C0] __tcf_classify+0x32c/0x7d0 [ 1945.792881][ C0] tcf_classify+0x283/0x930 [ 1945.793142][ C0] ? __pfx_tcf_classify+0x10/0x10 [ 1945.793410][ C0] ? lock_acquire.part.0+0xe5/0x330 [ 1945.793706][ C0] ? __dev_queue_xmit+0x1c1/0x1ca0 [ 1945.793988][ C0] tc_run+0x2e4/0x5d0 [ 1945.794207][ C0] ? __pfx_tc_run+0x10/0x10 [ 1945.794472][ C0] ? lock_acquire+0x1c1/0x220 [ 1945.794725][ C0] ? __dev_queue_xmit+0x1c1/0x1ca0 [ 1945.795010][ C0] __dev_queue_xmit+0x8eb/0x1ca0 [ 1945.795276][ C0] ? hlock_class+0x4e/0x130 [ 1945.795534][ C0] ? mark_lock+0x38/0x3e0 [ 1945.795763][ C0] ? __pfx___dev_queue_xmit+0x10/0x10 [ 1945.796057][ C0] ? lockdep_hardirqs_on_prepare.part.0+0x151/0x370 [ 1945.796417][ C0] ? neigh_hh_output+0x348/0x590 [ 1945.796682][ C0] ip_finish_output2+0x786/0x18e0 [ 1945.796958][ C0] ? __pfx_ip_finish_output2+0x10/0x10 [ 1945.797249][ C0] ? __ip_finish_output+0x3dd/0x770 [ 1945.797522][ C0] ip_output+0x16b/0x4f0 [ 1945.797760][ C0] ? __pfx_ip_output+0x10/0x10 [ 1945.798018][ C0] ? __pfx_lock_acquire.part.0+0x10/0x10 [ 1945.798328][ C0] ? ip_local_out+0x114/0x3b0 [ 1945.798576][ C0] __ip_queue_xmit+0x672/0x1910 [ 1945.798839][ C0] ? __skb_clone+0x57a/0x760 [ 1945.799088][ C0] __tcp_transmit_skb+0x22b1/0x2d20 [ 1945.799390][ C0] ? __pfx___tcp_transmit_skb+0x10/0x10 [ 1945.799689][ C0] ? tcp_small_queue_check.isra.0+0xe9/0x380 [ 1945.800025][ C0] tcp_write_xmit+0xe42/0x24c0 [ 1945.800294][ C0] ? ipv4_mtu+0x37/0x360 [ 1945.800529][ C0] ? __pfx_tcp_write_xmit+0x10/0x10 [ 1945.800812][ C0] ? __pfx_tcp_current_mss+0x10/0x10 [ 1945.801095][ C0] __tcp_push_pending_frames+0x96/0x320 [ 1945.801401][ C0] tcp_rcv_state_process+0x81e/0x1fd0 [ 1945.801691][ C0] ? tcp_v4_rcv+0x2159/0x29b0 [ 1945.801941][ C0] ? hlock_class+0x4e/0x130 [ 1945.802197][ C0] ? __lock_acquired+0x18a/0x6b0 [ 1945.802463][ C0] ? __pfx_tcp_rcv_state_process+0x10/0x10 [ 1945.802767][ C0] ? __pfx___lock_acquired+0x10/0x10 [ 1945.803066][ C0] ? __pfx_do_raw_spin_trylock+0x10/0x10 [ 1945.803374][ C0] tcp_v4_do_rcv+0x154/0x850 [ 1945.803624][ C0] tcp_v4_rcv+0x235a/0x29b0 [ 1945.803883][ C0] ? __pfx_tcp_v4_rcv+0x10/0x10 [ 1945.804158][ C0] ? __pfx_raw_v4_input+0x10/0x10 [ 1945.804434][ C0] ? __pfx_lock_acquire.part.0+0x10/0x10 [ 1945.804735][ C0] ip_protocol_deliver_rcu+0x93/0x360 [ 1945.805036][ C0] ip_local_deliver_finish+0x2ae/0x450 [ 1945.805326][ C0] ip_local_deliver+0x19d/0x480 [ 1945.805594][ C0] ? __pfx_ip_local_deliver+0x10/0x10 [ 1945.805882][ C0] ? ip_rcv_finish_core.constprop.0+0x522/0x1300 [ 1945.806226][ C0] ip_rcv+0x564/0x740 [ 1945.806451][ C0] ? __pfx_ip_rcv+0x10/0x10 [ 1945.806695][ C0] ? lock_acquire.part.0+0x113/0x330 [ 1945.806992][ C0] ? __pfx_ip_rcv+0x10/0x10 [ 1945.807233][ C0] __netif_receive_skb_one_core+0x166/0x1b0 [ 1945.807544][ C0] ? __pfx___netif_receive_skb_one_core+0x10/0x10 [ 1945.807889][ C0] ? __pfx_do_raw_spin_trylock+0x10/0x10 [ 1945.808188][ C0] ? lock_acquire+0x1c1/0x220 [ 1945.808435][ C0] ? process_backlog+0x1ed/0x5e0 [ 1945.808714][ C0] process_backlog+0xd3/0x5e0 [ 1945.808971][ C0] __napi_poll.constprop.0+0xa5/0x450 [ 1945.809273][ C0] net_rx_action+0x440/0xb40 [ 1945.809521][ C0] ? __pfx_net_rx_action+0x10/0x10 [ 1945.809812][ C0] ? __pfx___schedule+0x10/0x10 [ 1945.810075][ C0] ? __pfx___lock_release+0x10/0x10 [ 1945.810363][ C0] __do_softirq+0x1bc/0x7ff [ 1945.810610][ C0] ? __pfx_run_ksoftirqd+0x10/0x10 [ 1945.810893][ C0] run_ksoftirqd+0x2e/0x60 [ 1945.811135][ C0] smpboot_thread_fn+0x30e/0x840 [ 1945.811395][ C0] ? __pfx_smpboot_thread_fn+0x10/0x10 [ 1945.811697][ C0] ? __pfx_smpboot_thread_fn+0x10/0x10 [ 1945.811980][ C0] kthread+0x292/0x360 [ 1945.812202][ C0] ? __pfx_kthread+0x10/0x10 [ 1945.812448][ C0] ret_from_fork+0x34/0x70 [ 1945.812698][ C0] ? __pfx_kthread+0x10/0x10 [ 1945.812949][ C0] ret_from_fork_asm+0x1b/0x30 [ 1945.813225][ C0] [ 1971.775381][ T5068] ncat (5068) used greatest stack depth: 21168 bytes left [ 2002.111386][ T5067] ncat (5067) used greatest stack depth: 20352 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__->