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 # TEST: gact drop and ok (skip_hw) [ OK ] [ 1073.437711] 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 ] [ 1078.246111] ping (18378) used greatest stack depth: 11512 bytes left # TEST: mirred_egress_to_ingress (skip_hw) [ OK ] # [ 1082.944334] [ 1082.944453] ============================================ [ 1082.944765] WARNING: possible recursive locking detected [ 1082.945060] 6.8.0-rc2-virtme #1 Not tainted [ 1082.945288] -------------------------------------------- [ 1082.945599] ksoftirqd/3/32 is trying to acquire lock: [ 1082.945885] ffff978c029b0cb0 (slock-AF_INET/1){+.-.}-{2:2}, at: tcp_v4_rcv+0xdb5/0xef0 [ 1082.946336] [ 1082.946336] but task is already holding lock: [ 1082.946652] ffff978c029b00b0 (slock-AF_INET/1){+.-.}-{2:2}, at: tcp_v4_rcv+0xdb5/0xef0 [ 1082.947074] [ 1082.947074] other info that might help us debug this: [ 1082.947429] Possible unsafe locking scenario: [ 1082.947429] [ 1082.947759] CPU0 [ 1082.947906] ---- [ 1082.948056] lock(slock-AF_INET/1); [ 1082.948269] lock(slock-AF_INET/1); [ 1082.948471] [ 1082.948471] *** DEADLOCK *** [ 1082.948471] [ 1082.948798] May be due to missing lock nesting notation [ 1082.948798] [ 1082.949180] 8 locks held by ksoftirqd/3/32: [ 1082.949415] #0: ffffffffa81678c0 (rcu_read_lock){....}-{1:2}, at: process_backlog+0x6f/0x260 [ 1082.949887] #1: ffffffffa81678c0 (rcu_read_lock){....}-{1:2}, at: ip_local_deliver_finish+0x6f/0x180 [ 1082.950377] #2: ffff978c029b00b0 (slock-AF_INET/1){+.-.}-{2:2}, at: tcp_v4_rcv+0xdb5/0xef0 [ 1082.950820] #3: ffffffffa81678c0 (rcu_read_lock){....}-{1:2}, at: __ip_queue_xmit+0x3f/0x6f0 [ 1082.951292] #4: ffffffffa81678c0 (rcu_read_lock){....}-{1:2}, at: ip_finish_output2+0xc6/0xa20 [ 1082.951767] #5: ffffffffa8167880 (rcu_read_lock_bh){....}-{1:2}, at: __dev_queue_xmit+0x6e/0x1180 [ 1082.952255] #6: ffffffffa81678c0 (rcu_read_lock){....}-{1:2}, at: netif_receive_skb+0x58/0x2c0 [ 1082.952722] #7: ffffffffa81678c0 (rcu_read_lock){....}-{1:2}, at: ip_local_deliver_finish+0x6f/0x180 [ 1082.953213] [ 1082.953213] stack backtrace: [ 1082.953461] CPU: 3 PID: 32 Comm: ksoftirqd/3 Not tainted 6.8.0-rc2-virtme #1 [ 1082.953849] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.16.3-0-ga6ed6b701f0a-prebuilt.qemu.org 04/01/2014 [ 1082.954469] Call Trace: [ 1082.954612] [ 1082.954741] dump_stack_lvl+0x4b/0x80 [ 1082.954976] __lock_acquire+0x1215/0x1750 [ 1082.955202] ? sk_filter_trim_cap+0x53/0x360 [ 1082.955455] lock_acquire+0xc1/0x2b0 [ 1082.955655] ? tcp_v4_rcv+0xdb5/0xef0 [ 1082.955862] ? sk_filter_trim_cap+0x11a/0x360 [ 1082.956114] _raw_spin_lock_nested+0x2e/0x40 [ 1082.956363] ? tcp_v4_rcv+0xdb5/0xef0 [ 1082.956567] tcp_v4_rcv+0xdb5/0xef0 [ 1082.956772] ip_protocol_deliver_rcu+0x4b/0x1e0 [ 1082.957034] ip_local_deliver_finish+0xaf/0x180 [ 1082.957287] __netif_receive_skb_one_core+0x8b/0xa0 [ 1082.957562] netif_receive_skb+0x87/0x2c0 [ 1082.957812] tcf_mirred_to_dev+0x1f6/0x410 [act_mirred] [ 1082.958107] tcf_mirred_act+0xee/0x560 [act_mirred] [ 1082.958381] ? tcf_skbedit_act+0x1d6/0x410 [act_skbedit] [ 1082.958670] tcf_action_exec+0xaf/0x230 [ 1082.958905] fl_classify+0x20e/0x260 [cls_flower] [ 1082.959179] ? fl_mask_lookup+0x17e/0x5a0 [cls_flower] [ 1082.959480] ? __pfx_usage_match+0x10/0x10 [ 1082.959702] ? __bfs+0xf6/0x240 [ 1082.959883] ? check_irq_usage+0x19c/0xc40 [ 1082.960114] ? check_path.constprop.0+0x24/0x50 [ 1082.960383] ? check_noncircular+0x81/0x150 [ 1082.960609] ? __lock_acquire+0xa6e/0x1750 [ 1082.960840] tcf_classify+0x17d/0x540 [ 1082.961052] tc_run+0x9f/0x150 [ 1082.961262] __dev_queue_xmit+0x311/0x1180 [ 1082.961499] ? mark_held_locks+0x49/0x80 [ 1082.961728] ip_finish_output2+0x39f/0xa20 [ 1082.961956] ? __ip_queue_xmit+0x1d5/0x6f0 [ 1082.962203] __ip_queue_xmit+0x1d5/0x6f0 [ 1082.962457] __tcp_transmit_skb+0xb65/0xd30 [ 1082.962701] tcp_write_xmit+0x492/0x1410 [ 1082.962920] __tcp_push_pending_frames+0x36/0xc0 [ 1082.963175] tcp_rcv_state_process+0x4d3/0x11f0 [ 1082.963437] ? tcp_v4_rcv+0xdb5/0xef0 [ 1082.963637] ? tcp_v4_do_rcv+0x64/0x360 [ 1082.963850] tcp_v4_do_rcv+0x64/0x360 [ 1082.964055] tcp_v4_rcv+0xe4f/0xef0 [ 1082.964274] ? process_backlog+0x6f/0x260 [ 1082.964501] ip_protocol_deliver_rcu+0x4b/0x1e0 [ 1082.964748] ip_local_deliver_finish+0xaf/0x180 [ 1082.965000] __netif_receive_skb_one_core+0x8b/0xa0 [ 1082.965263] process_backlog+0x7c/0x260 [ 1082.965499] __napi_poll.constprop.0+0x2a/0x1e0 [ 1082.965751] net_rx_action+0x2be/0x340 [ 1082.965975] __do_softirq+0xcb/0x37a [ 1082.966178] ? __pfx_smpboot_thread_fn+0x10/0x10 [ 1082.966449] run_ksoftirqd+0x2e/0x40 [ 1082.966663] smpboot_thread_fn+0xdc/0x1d0 [ 1082.966886] kthread+0xdd/0x110 [ 1082.967069] ? __pfx_kthread+0x10/0x10 [ 1082.967299] ret_from_fork+0x34/0x50 [ 1082.967516] ? __pfx_kthread+0x10/0x10 [ 1082.967737] ret_from_fork_asm+0x1b/0x30 [ 1082.967962] [ 1103.241083] ncat (18522) 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__->