make -C tools/testing/selftests TARGETS=net/forwarding TEST_PROGS=tc_actioons.sh TEST_GEN_PROGS="" run_tests make: Entering directory '/home/virtme/testing-2/tools/testing/selftests' make[1]: Entering directory '/home/virtme/testing-2/tools/testing/selftests/net/forwarding' make[1]: Nothing to be done for 'all'. make[1]: Leaving directory '/home/virtme/testing-2/tools/testing/selftests/net/forwarding' make[1]: Entering directory '/home/virtme/testing-2/tools/testing/selftests/net/forwarding' TAP version 13 1..1 # timeout set to 10800 # selftests: net/forwarding: tc_actions.sh [ 2.009461] ip (231) used greatest stack depth: 11624 bytes left [ 7.660385] GACT probability NOT on # TEST: gact drop and ok (skip_hw) [ OK ] [ 9.961472] 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 ] [ 14.590692] ping (1042) used greatest stack depth: 11512 bytes left # TEST: mirred_egress_to_ingress (skip_hw) [ OK ] # [ 16.089983] [ 16.090117] ============================================ [ 16.090428] WARNING: possible recursive locking detected [ 16.090738] 6.8.0-rc2-virtme #1 Not tainted [ 16.090970] -------------------------------------------- [ 16.091256] ksoftirqd/0/16 is trying to acquire lock: [ 16.091554] ffff8ad2c56a8cb0 (slock-AF_INET/1){+.-.}-{2:2}, at: tcp_v4_rcv+0xdb5/0xef0 [ 16.092004] [ 16.092004] but task is already holding lock: [ 16.092318] ffff8ad2c56a80b0 (slock-AF_INET/1){+.-.}-{2:2}, at: tcp_v4_rcv+0xdb5/0xef0 [ 16.092759] [ 16.092759] other info that might help us debug this: [ 16.093142] Possible unsafe locking scenario: [ 16.093142] [ 16.093464] CPU0 [ 16.093612] ---- [ 16.093776] lock(slock-AF_INET/1); [ 16.093978] lock(slock-AF_INET/1); [ 16.094178] [ 16.094178] *** DEADLOCK *** [ 16.094178] [ 16.094508] May be due to missing lock nesting notation [ 16.094508] [ 16.094894] 8 locks held by ksoftirqd/0/16: [ 16.095123] #0: ffffffff915678c0 (rcu_read_lock){....}-{1:2}, at: process_backlog+0x6f/0x260 [ 16.095602] #1: ffffffff915678c0 (rcu_read_lock){....}-{1:2}, at: ip_local_deliver_finish+0x6f/0x180 [ 16.096129] #2: ffff8ad2c56a80b0 (slock-AF_INET/1){+.-.}-{2:2}, at: tcp_v4_rcv+0xdb5/0xef0 [ 16.096575] #3: ffffffff915678c0 (rcu_read_lock){....}-{1:2}, at: __ip_queue_xmit+0x3f/0x6f0 [ 16.097043] #4: ffffffff915678c0 (rcu_read_lock){....}-{1:2}, at: ip_finish_output2+0xc6/0xa20 [ 16.097531] #5: ffffffff91567880 (rcu_read_lock_bh){....}-{1:2}, at: __dev_queue_xmit+0x6e/0x1180 [ 16.098025] #6: ffffffff915678c0 (rcu_read_lock){....}-{1:2}, at: netif_receive_skb+0x58/0x2c0 [ 16.098506] #7: ffffffff915678c0 (rcu_read_lock){....}-{1:2}, at: ip_local_deliver_finish+0x6f/0x180 [ 16.099020] [ 16.099020] stack backtrace: [ 16.099285] CPU: 0 PID: 16 Comm: ksoftirqd/0 Not tainted 6.8.0-rc2-virtme #1 [ 16.099679] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.16.3-0-ga6ed6b701f0a-prebuilt.qemu.org 04/01/2014 [ 16.100312] Call Trace: [ 16.100458] [ 16.100590] dump_stack_lvl+0x4b/0x80 [ 16.100813] __lock_acquire+0x1215/0x1750 [ 16.101052] ? sk_filter_trim_cap+0x53/0x360 [ 16.101310] lock_acquire+0xc1/0x2b0 [ 16.101519] ? tcp_v4_rcv+0xdb5/0xef0 [ 16.101752] ? sk_filter_trim_cap+0x11a/0x360 [ 16.101996] _raw_spin_lock_nested+0x2e/0x40 [ 16.102249] ? tcp_v4_rcv+0xdb5/0xef0 [ 16.102486] tcp_v4_rcv+0xdb5/0xef0 [ 16.102681] ip_protocol_deliver_rcu+0x4b/0x1e0 [ 16.102943] ip_local_deliver_finish+0xaf/0x180 [ 16.103216] __netif_receive_skb_one_core+0x8b/0xa0 [ 16.103486] netif_receive_skb+0x87/0x2c0 [ 16.103722] tcf_mirred_to_dev+0x1f6/0x410 [act_mirred] [ 16.104023] tcf_mirred_act+0xee/0x560 [act_mirred] [ 16.104291] ? tcf_skbedit_act+0x1d6/0x410 [act_skbedit] [ 16.104598] tcf_action_exec+0xaf/0x230 [ 16.104835] fl_classify+0x20e/0x260 [cls_flower] [ 16.105109] ? __pfx_usage_match+0x10/0x10 [ 16.105352] ? __bfs+0xf6/0x240 [ 16.105532] ? check_irq_usage+0x19c/0xc40 [ 16.105774] ? check_path.constprop.0+0x24/0x50 [ 16.106052] ? check_noncircular+0x81/0x150 [ 16.106281] ? find_held_lock+0x2b/0x80 [ 16.106508] ? __lock_acquire+0xa6e/0x1750 [ 16.106757] tcf_classify+0x17d/0x540 [ 16.106979] tc_run+0x9f/0x150 [ 16.107173] __dev_queue_xmit+0x311/0x1180 [ 16.107417] ? mark_held_locks+0x49/0x80 [ 16.107650] ? eth_header+0x2a/0xc0 [ 16.107849] ip_finish_output2+0x230/0xa20 [ 16.108089] ? __ip_queue_xmit+0x1d5/0x6f0 [ 16.108336] __ip_queue_xmit+0x1d5/0x6f0 [ 16.108552] __tcp_transmit_skb+0xb65/0xd30 [ 16.108798] ? mark_held_locks+0x49/0x80 [ 16.109033] tcp_write_xmit+0x492/0x1410 [ 16.109251] ? tcp_current_mss+0x195/0x210 [ 16.109499] __tcp_push_pending_frames+0x36/0xc0 [ 16.109767] tcp_rcv_state_process+0x4d3/0x11f0 [ 16.110019] ? tcp_v4_rcv+0xdb5/0xef0 [ 16.110239] ? tcp_v4_do_rcv+0x64/0x360 [ 16.110467] tcp_v4_do_rcv+0x64/0x360 [ 16.110669] tcp_v4_rcv+0xe4f/0xef0 [ 16.110876] ? process_backlog+0x6f/0x260 [ 16.111116] ip_protocol_deliver_rcu+0x4b/0x1e0 [ 16.111367] ip_local_deliver_finish+0xaf/0x180 [ 16.111633] __netif_receive_skb_one_core+0x8b/0xa0 [ 16.111926] process_backlog+0x7c/0x260 [ 16.112144] __napi_poll.constprop.0+0x2a/0x1e0 [ 16.112405] net_rx_action+0x2be/0x340 [ 16.112634] __do_softirq+0xcb/0x37a [ 16.112853] ? __pfx_smpboot_thread_fn+0x10/0x10 [ 16.113120] run_ksoftirqd+0x2e/0x40 [ 16.113324] smpboot_thread_fn+0xdc/0x1d0 [ 16.113555] kthread+0xdd/0x110 [ 16.113756] ? __pfx_kthread+0x10/0x10 [ 16.113966] ret_from_fork+0x34/0x50 [ 16.114184] ? __pfx_kthread+0x10/0x10 [ 16.114413] ret_from_fork_asm+0x1b/0x30 [ 16.114647] [ 50.620875] ncat (1202) used greatest stack depth: 10672 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-2/tools/testing/selftests/net/forwarding' make: Leaving directory '/home/virtme/testing-2/tools/testing/selftests' xx__-> echo $? 0 xx__->