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 ] # TEST: mirred egress flower redirect (skip_hw) [ OK ] # TEST: mirred egress flower mirror (skip_hw) [ OK ] # TEST: mirred egress matchall mirror (skip_hw) [ OK ] [ 1189.009730] ping (12206) used greatest stack depth: 11512 bytes left # TEST: mirred_egress_to_ingress (skip_hw) [ OK ] # [ 1192.710922] [ 1192.711037] ============================================ [ 1192.711331] WARNING: possible recursive locking detected [ 1192.711619] 6.8.0-rc2-virtme #1 Not tainted [ 1192.711854] -------------------------------------------- [ 1192.712155] ksoftirqd/2/27 is trying to acquire lock: [ 1192.712425] ffffa0e1c4848cb0 (slock-AF_INET/1){+.-.}-{2:2}, at: tcp_v4_rcv+0xdba/0xf00 [ 1192.712867] [ 1192.712867] but task is already holding lock: [ 1192.713171] ffffa0e1c48480b0 (slock-AF_INET/1){+.-.}-{2:2}, at: tcp_v4_rcv+0xdba/0xf00 [ 1192.713581] [ 1192.713581] other info that might help us debug this: [ 1192.713920] Possible unsafe locking scenario: [ 1192.713920] [ 1192.714250] CPU0 [ 1192.714403] ---- [ 1192.714555] lock(slock-AF_INET/1); [ 1192.714762] lock(slock-AF_INET/1); [ 1192.714960] [ 1192.714960] *** DEADLOCK *** [ 1192.714960] [ 1192.715274] May be due to missing lock nesting notation [ 1192.715274] [ 1192.715648] 8 locks held by ksoftirqd/2/27: [ 1192.715882] #0: ffffffffabb678c0 (rcu_read_lock){....}-{1:2}, at: process_backlog+0x6f/0x260 [ 1192.716340] #1: ffffffffabb678c0 (rcu_read_lock){....}-{1:2}, at: ip_local_deliver_finish+0x6f/0x180 [ 1192.716827] #2: ffffa0e1c48480b0 (slock-AF_INET/1){+.-.}-{2:2}, at: tcp_v4_rcv+0xdba/0xf00 [ 1192.717270] #3: ffffffffabb678c0 (rcu_read_lock){....}-{1:2}, at: __ip_queue_xmit+0x3f/0x6f0 [ 1192.717731] #4: ffffffffabb678c0 (rcu_read_lock){....}-{1:2}, at: ip_finish_output2+0xc6/0xa20 [ 1192.718202] #5: ffffffffabb67880 (rcu_read_lock_bh){....}-{1:2}, at: __dev_queue_xmit+0x6e/0x1180 [ 1192.718675] #6: ffffffffabb678c0 (rcu_read_lock){....}-{1:2}, at: netif_receive_skb+0x58/0x2c0 [ 1192.719139] #7: ffffffffabb678c0 (rcu_read_lock){....}-{1:2}, at: ip_local_deliver_finish+0x6f/0x180 [ 1192.719620] [ 1192.719620] stack backtrace: [ 1192.719861] CPU: 2 PID: 27 Comm: ksoftirqd/2 Not tainted 6.8.0-rc2-virtme #1 [ 1192.720236] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.16.3-0-ga6ed6b701f0a-prebuilt.qemu.org 04/01/2014 [ 1192.720820] Call Trace: [ 1192.720966] [ 1192.721105] dump_stack_lvl+0x4b/0x80 [ 1192.721314] __lock_acquire+0x1215/0x1750 [ 1192.721535] ? sk_filter_trim_cap+0x53/0x360 [ 1192.721785] lock_acquire+0xc1/0x2b0 [ 1192.721981] ? tcp_v4_rcv+0xdba/0xf00 [ 1192.722179] ? sk_filter_trim_cap+0x11a/0x360 [ 1192.722427] _raw_spin_lock_nested+0x2e/0x40 [ 1192.722667] ? tcp_v4_rcv+0xdba/0xf00 [ 1192.722871] tcp_v4_rcv+0xdba/0xf00 [ 1192.723072] ip_protocol_deliver_rcu+0x4b/0x1e0 [ 1192.723318] ip_local_deliver_finish+0xaf/0x180 [ 1192.723561] __netif_receive_skb_one_core+0x8b/0xa0 [ 1192.723838] netif_receive_skb+0x87/0x2c0 [ 1192.724055] tcf_mirred_to_dev+0x1f6/0x410 [act_mirred] [ 1192.724336] tcf_mirred_act+0xee/0x560 [act_mirred] [ 1192.724612] ? tcf_skbedit_act+0x1d6/0x410 [act_skbedit] [ 1192.724892] tcf_action_exec+0xac/0x230 [ 1192.725110] fl_classify+0x20e/0x260 [cls_flower] [ 1192.725364] ? fl_mask_lookup+0x17e/0x5a0 [cls_flower] [ 1192.725648] ? __bfs+0xf3/0x240 [ 1192.725826] ? check_irq_usage+0x19c/0xc40 [ 1192.726054] ? lock_release+0xbe/0x270 [ 1192.726255] ? check_path.constprop.0+0x24/0x50 [ 1192.726496] ? find_held_lock+0x2b/0x80 [ 1192.726701] ? check_noncircular+0x81/0x150 [ 1192.726945] ? __lock_acquire+0xa6e/0x1750 [ 1192.727162] tcf_classify+0x17a/0x540 [ 1192.727363] tc_run+0x9f/0x150 [ 1192.727531] __dev_queue_xmit+0x311/0x1180 [ 1192.727780] ? mark_held_locks+0x49/0x80 [ 1192.728001] ip_finish_output2+0x39f/0xa20 [ 1192.728231] ? __ip_queue_xmit+0x1d5/0x6f0 [ 1192.728460] __ip_queue_xmit+0x1d5/0x6f0 [ 1192.728685] __tcp_transmit_skb+0xb65/0xd30 [ 1192.728911] ? mark_held_locks+0x49/0x80 [ 1192.729127] tcp_write_xmit+0x492/0x1410 [ 1192.729368] __tcp_push_pending_frames+0x36/0xc0 [ 1192.729628] tcp_rcv_state_process+0x4db/0x1230 [ 1192.729878] ? lock_acquire+0xc1/0x2b0 [ 1192.730092] ? tcp_v4_rcv+0xdba/0xf00 [ 1192.730299] ? tcp_v4_do_rcv+0x85/0x3a0 [ 1192.730520] tcp_v4_do_rcv+0x85/0x3a0 [ 1192.730722] tcp_v4_rcv+0xe54/0xf00 [ 1192.730920] ? process_backlog+0x6f/0x260 [ 1192.731166] ip_protocol_deliver_rcu+0x4b/0x1e0 [ 1192.731408] ip_local_deliver_finish+0xaf/0x180 [ 1192.731656] __netif_receive_skb_one_core+0x8b/0xa0 [ 1192.731922] process_backlog+0x7c/0x260 [ 1192.732164] __napi_poll.constprop.0+0x27/0x1e0 [ 1192.732410] net_rx_action+0x2be/0x340 [ 1192.732619] __do_softirq+0xc8/0x37a [ 1192.732836] ? __pfx_smpboot_thread_fn+0x10/0x10 [ 1192.733088] run_ksoftirqd+0x2e/0x40 [ 1192.733284] smpboot_thread_fn+0xd9/0x1d0 [ 1192.733526] kthread+0xda/0x110 [ 1192.733706] ? __pfx_kthread+0x10/0x10 [ 1192.733920] ret_from_fork+0x31/0x50 [ 1192.734124] ? __pfx_kthread+0x10/0x10 [ 1192.734338] ret_from_fork_asm+0x1b/0x30 [ 1192.734558] [ 1209.890652] ncat (12340) used greatest stack depth: 10664 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__->