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 ] # TEST: mirred egress flower redirect (skip_hw) [ OK ] # TEST: mirred egress flower mirror (skip_hw) [ OK ] # TEST: mirred egress matchall mirror (skip_hw) [ OK ] [ 2469.755001][ T5777] ping (5777) used greatest stack depth: 23352 bytes left # TEST: mirred_egress_to_ingress (skip_hw) [ OK ] # [ 2479.226914][ C2] [ 2479.227087][ C2] ============================================ [ 2479.227421][ C2] WARNING: possible recursive locking detected [ 2479.227729][ C2] 6.8.0-rc2-virtme #1 Not tainted [ 2479.228016][ C2] -------------------------------------------- [ 2479.228337][ C2] ksoftirqd/2/27 is trying to acquire lock: [ 2479.228658][ C2] ffff888006fa9b70 (slock-AF_INET/1){+.-.}-{2:2}, at: tcp_v4_rcv+0x2161/0x29c0 [ 2479.229152][ C2] [ 2479.229152][ C2] but task is already holding lock: [ 2479.229522][ C2] ffff888006fa8e30 (slock-AF_INET/1){+.-.}-{2:2}, at: tcp_v4_rcv+0x2161/0x29c0 [ 2479.229989][ C2] [ 2479.229989][ C2] other info that might help us debug this: [ 2479.230397][ C2] Possible unsafe locking scenario: [ 2479.230397][ C2] [ 2479.230776][ C2] CPU0 [ 2479.230977][ C2] ---- [ 2479.231146][ C2] lock(slock-AF_INET/1); [ 2479.231397][ C2] lock(slock-AF_INET/1); [ 2479.231649][ C2] [ 2479.231649][ C2] *** DEADLOCK *** [ 2479.231649][ C2] [ 2479.232047][ C2] May be due to missing lock nesting notation [ 2479.232047][ C2] [ 2479.232469][ C2] 8 locks held by ksoftirqd/2/27: [ 2479.232737][ C2] #0: ffffffffa51447e0 (rcu_read_lock){....}-{1:2}, at: process_backlog+0x1ed/0x5e0 [ 2479.233237][ C2] #1: ffffffffa51447e0 (rcu_read_lock){....}-{1:2}, at: ip_local_deliver_finish+0x1f5/0x450 [ 2479.233783][ C2] #2: ffff888006fa8e30 (slock-AF_INET/1){+.-.}-{2:2}, at: tcp_v4_rcv+0x2161/0x29c0 [ 2479.234284][ C2] #3: ffffffffa51447e0 (rcu_read_lock){....}-{1:2}, at: __ip_queue_xmit+0x65/0x1910 [ 2479.234780][ C2] #4: ffffffffa51447e0 (rcu_read_lock){....}-{1:2}, at: ip_finish_output2+0x262/0x18e0 [ 2479.235274][ C2] #5: ffffffffa5144780 (rcu_read_lock_bh){....}-{1:2}, at: __dev_queue_xmit+0x1c1/0x1ca0 [ 2479.235761][ C2] #6: ffffffffa51447e0 (rcu_read_lock){....}-{1:2}, at: netif_receive_skb_internal+0x84/0x300 [ 2479.236287][ C2] #7: ffffffffa51447e0 (rcu_read_lock){....}-{1:2}, at: ip_local_deliver_finish+0x1f5/0x450 [ 2479.236787][ C2] [ 2479.236787][ C2] stack backtrace: [ 2479.237110][ C2] CPU: 2 PID: 27 Comm: ksoftirqd/2 Not tainted 6.8.0-rc2-virtme #1 [ 2479.237499][ C2] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.16.3-0-ga6ed6b701f0a-prebuilt.qemu.org 04/01/2014 [ 2479.238122][ C2] Call Trace: [ 2479.238291][ C2] [ 2479.238442][ C2] dump_stack_lvl+0x64/0xb0 [ 2479.238692][ C2] validate_chain+0x525/0xa00 [ 2479.238931][ C2] ? __pfx_validate_chain+0x10/0x10 [ 2479.239214][ C2] ? hlock_class+0x4e/0x130 [ 2479.239443][ C2] ? mark_lock+0x38/0x3e0 [ 2479.239681][ C2] __lock_acquire+0xb67/0x1610 [ 2479.239922][ C2] ? lock_downgrade+0xa0/0x110 [ 2479.240190][ C2] ? mark_lock+0x38/0x3e0 [ 2479.240410][ C2] lock_acquire.part.0+0xe5/0x330 [ 2479.240685][ C2] ? tcp_v4_rcv+0x2161/0x29c0 [ 2479.240957][ C2] ? __pfx_lock_acquire.part.0+0x10/0x10 [ 2479.241256][ C2] ? __pfx_sk_filter_trim_cap+0x10/0x10 [ 2479.241577][ C2] ? lock_acquire+0x1c1/0x220 [ 2479.241817][ C2] ? tcp_v4_rcv+0x2161/0x29c0 [ 2479.242088][ C2] _raw_spin_lock_nested+0x33/0x80 [ 2479.242362][ C2] ? tcp_v4_rcv+0x2161/0x29c0 [ 2479.242604][ C2] tcp_v4_rcv+0x2161/0x29c0 [ 2479.242874][ C2] ? __pfx_tcp_v4_rcv+0x10/0x10 [ 2479.243143][ C2] ? __pfx_raw_v4_input+0x10/0x10 [ 2479.243410][ C2] ? __pfx_lock_acquire.part.0+0x10/0x10 [ 2479.243719][ C2] ip_protocol_deliver_rcu+0x93/0x360 [ 2479.244029][ C2] ip_local_deliver_finish+0x2ae/0x450 [ 2479.244345][ C2] ip_local_deliver+0x19d/0x480 [ 2479.244600][ C2] ? __pfx_ip_local_deliver+0x10/0x10 [ 2479.244906][ C2] ? ip_rcv_finish_core.constprop.0+0x522/0x1300 [ 2479.245237][ C2] ip_rcv+0x564/0x740 [ 2479.245463][ C2] ? __pfx_ip_rcv+0x10/0x10 [ 2479.245708][ C2] ? lock_acquire.part.0+0xe5/0x330 [ 2479.246010][ C2] ? netif_receive_skb_internal+0x84/0x300 [ 2479.246305][ C2] ? __pfx_ip_rcv+0x10/0x10 [ 2479.246532][ C2] __netif_receive_skb_one_core+0x166/0x1b0 [ 2479.246870][ C2] ? __pfx___netif_receive_skb_one_core+0x10/0x10 [ 2479.247223][ C2] ? mark_held_locks+0xa5/0xf0 [ 2479.247475][ C2] ? lock_acquire+0x1c1/0x220 [ 2479.247709][ C2] ? netif_receive_skb_internal+0x84/0x300 [ 2479.248035][ C2] netif_receive_skb_internal+0xb0/0x300 [ 2479.248339][ C2] ? __pfx_netif_receive_skb_internal+0x10/0x10 [ 2479.248677][ C2] ? __copy_skb_header+0xaf/0x490 [ 2479.248930][ C2] ? __skb_clone+0x57a/0x760 [ 2479.249183][ C2] netif_receive_skb+0x55/0x280 [ 2479.249432][ C2] tcf_mirred_to_dev+0x444/0xd70 [act_mirred] [ 2479.249775][ C2] ? __pfx_tcf_skbedit_act+0x10/0x10 [act_skbedit] [ 2479.250144][ C2] tcf_mirred_act+0x338/0x780 [act_mirred] [ 2479.250434][ C2] tcf_action_exec.part.0+0x112/0x3d0 [ 2479.250730][ C2] fl_classify+0x4dc/0x650 [cls_flower] [ 2479.251033][ C2] ? __pfx_fl_classify+0x10/0x10 [cls_flower] [ 2479.251369][ C2] ? __pfx_usage_match+0x10/0x10 [ 2479.251620][ C2] ? check_irq_usage+0x27e/0x850 [ 2479.251903][ C2] ? validate_chain+0x50d/0xa00 [ 2479.252178][ C2] ? __pfx_check_irq_usage+0x10/0x10 [ 2479.252479][ C2] ? __bfs+0x247/0x650 [ 2479.252684][ C2] ? __pfx_hlock_conflict+0x10/0x10 [ 2479.252969][ C2] ? __pfx_validate_chain+0x10/0x10 [ 2479.253252][ C2] ? check_path.constprop.0+0x24/0x50 [ 2479.253547][ C2] ? check_noncircular+0x14e/0x3e0 [ 2479.253806][ C2] ? __pfx_check_noncircular+0x10/0x10 [ 2479.254103][ C2] __tcf_classify+0x329/0x7d0 [ 2479.254352][ C2] tcf_classify+0x283/0x930 [ 2479.254610][ C2] ? __pfx_tcf_classify+0x10/0x10 [ 2479.254880][ C2] ? lock_acquire.part.0+0xe5/0x330 [ 2479.255172][ C2] ? __dev_queue_xmit+0x1c1/0x1ca0 [ 2479.255431][ C2] tc_run+0x2e4/0x5d0 [ 2479.255651][ C2] ? __pfx_tc_run+0x10/0x10 [ 2479.255912][ C2] ? lock_acquire+0x1c1/0x220 [ 2479.256158][ C2] ? __dev_queue_xmit+0x1c1/0x1ca0 [ 2479.256466][ C2] __dev_queue_xmit+0x8eb/0x1ca0 [ 2479.256729][ C2] ? hlock_class+0x4e/0x130 [ 2479.256999][ C2] ? mark_lock+0x38/0x3e0 [ 2479.257238][ C2] ? __pfx___dev_queue_xmit+0x10/0x10 [ 2479.257516][ C2] ? lockdep_hardirqs_on_prepare.part.0+0x151/0x370 [ 2479.257874][ C2] ? neigh_hh_output+0x348/0x590 [ 2479.258125][ C2] ip_finish_output2+0x786/0x18e0 [ 2479.258401][ C2] ? __pfx_ip_finish_output2+0x10/0x10 [ 2479.258675][ C2] ? __ip_finish_output+0x3dd/0x770 [ 2479.258962][ C2] ip_output+0x16b/0x4f0 [ 2479.259176][ C2] ? __pfx_ip_output+0x10/0x10 [ 2479.259413][ C2] ? __pfx_lock_acquire.part.0+0x10/0x10 [ 2479.259718][ C2] ? ip_local_out+0x114/0x3b0 [ 2479.259952][ C2] __ip_queue_xmit+0x672/0x1910 [ 2479.260215][ C2] ? __skb_clone+0x57a/0x760 [ 2479.260448][ C2] __tcp_transmit_skb+0x22b1/0x2d20 [ 2479.260733][ C2] ? __pfx___tcp_transmit_skb+0x10/0x10 [ 2479.261009][ C2] ? tcp_small_queue_check.isra.0+0xe9/0x380 [ 2479.261326][ C2] tcp_write_xmit+0xe42/0x24c0 [ 2479.261572][ C2] ? ipv4_mtu+0x37/0x360 [ 2479.261804][ C2] ? __pfx_tcp_write_xmit+0x10/0x10 [ 2479.262064][ C2] ? __pfx_tcp_current_mss+0x10/0x10 [ 2479.262357][ C2] __tcp_push_pending_frames+0x96/0x320 [ 2479.262631][ C2] tcp_rcv_state_process+0x862/0x21c0 [ 2479.262920][ C2] ? __pfx_tcp_rcv_state_process+0x10/0x10 [ 2479.263212][ C2] ? find_held_lock+0x33/0x120 [ 2479.263450][ C2] ? tcp_v4_rcv+0x2161/0x29c0 [ 2479.263705][ C2] ? hlock_class+0x4e/0x130 [ 2479.263933][ C2] tcp_v4_do_rcv+0x1ac/0x8e0 [ 2479.264213][ C2] ? __pfx_tcp_v4_do_rcv+0x10/0x10 [ 2479.264470][ C2] tcp_v4_rcv+0x2362/0x29c0 [ 2479.264723][ C2] ? __pfx_tcp_v4_rcv+0x10/0x10 [ 2479.264990][ C2] ? __pfx_raw_v4_input+0x10/0x10 [ 2479.265256][ C2] ? __pfx_lock_acquire.part.0+0x10/0x10 [ 2479.265583][ C2] ip_protocol_deliver_rcu+0x93/0x360 [ 2479.265865][ C2] ip_local_deliver_finish+0x2ae/0x450 [ 2479.266161][ C2] ip_local_deliver+0x19d/0x480 [ 2479.266418][ C2] ? __pfx_ip_local_deliver+0x10/0x10 [ 2479.266725][ C2] ? ip_rcv_finish_core.constprop.0+0x522/0x1300 [ 2479.267091][ C2] ip_rcv+0x564/0x740 [ 2479.267292][ C2] ? __pfx_ip_rcv+0x10/0x10 [ 2479.267547][ C2] ? lock_acquire.part.0+0xe5/0x330 [ 2479.267814][ C2] ? process_backlog+0x1ed/0x5e0 [ 2479.268080][ C2] ? __pfx_ip_rcv+0x10/0x10 [ 2479.268319][ C2] __netif_receive_skb_one_core+0x166/0x1b0 [ 2479.268632][ C2] ? __pfx___netif_receive_skb_one_core+0x10/0x10 [ 2479.268970][ C2] ? __pfx_do_raw_spin_trylock+0x10/0x10 [ 2479.269252][ C2] ? lock_acquire+0x1c1/0x220 [ 2479.269515][ C2] ? process_backlog+0x1ed/0x5e0 [ 2479.269770][ C2] process_backlog+0xd3/0x5e0 [ 2479.270039][ C2] __napi_poll.constprop.0+0xa2/0x450 [ 2479.270320][ C2] net_rx_action+0x440/0xb40 [ 2479.270583][ C2] ? __pfx_net_rx_action+0x10/0x10 [ 2479.270864][ C2] ? __pfx___schedule+0x10/0x10 [ 2479.271133][ C2] ? __pfx___lock_release+0x10/0x10 [ 2479.271407][ C2] __do_softirq+0x1b9/0x7ff [ 2479.271683][ C2] ? __pfx_run_ksoftirqd+0x10/0x10 [ 2479.271974][ C2] run_ksoftirqd+0x2e/0x60 [ 2479.272230][ C2] smpboot_thread_fn+0x30b/0x840 [ 2479.272481][ C2] ? __pfx_smpboot_thread_fn+0x10/0x10 [ 2479.272785][ C2] ? __pfx_smpboot_thread_fn+0x10/0x10 [ 2479.273090][ C2] kthread+0x28f/0x360 [ 2479.273318][ C2] ? __pfx_kthread+0x10/0x10 [ 2479.273575][ C2] ret_from_fork+0x31/0x70 [ 2479.273818][ C2] ? __pfx_kthread+0x10/0x10 [ 2479.274051][ C2] ret_from_fork_asm+0x1b/0x30 [ 2479.274320][ C2] [ 2503.918288][ T5821] ncat (5821) used greatest stack depth: 20528 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__->