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 ] [ 1140.741966] ping (20118) used greatest stack depth: 11512 bytes left # TEST: mirred_egress_to_ingress (skip_hw) [ OK ] # [ 1145.108055] [ 1145.108187] ============================================ [ 1145.108478] WARNING: possible recursive locking detected [ 1145.108786] 6.8.0-rc2-virtme #1 Not tainted [ 1145.109022] -------------------------------------------- [ 1145.109328] ksoftirqd/3/32 is trying to acquire lock: [ 1145.109606] ffff8bdc01c48cb0 (slock-AF_INET/1){+.-.}-{2:2}, at: tcp_v4_rcv+0xdb5/0xef0 [ 1145.110099] [ 1145.110099] but task is already holding lock: [ 1145.110408] ffff8bdc01c480b0 (slock-AF_INET/1){+.-.}-{2:2}, at: tcp_v4_rcv+0xdb5/0xef0 [ 1145.110827] [ 1145.110827] other info that might help us debug this: [ 1145.111176] Possible unsafe locking scenario: [ 1145.111176] [ 1145.111525] CPU0 [ 1145.111662] ---- [ 1145.111813] lock(slock-AF_INET/1); [ 1145.112034] lock(slock-AF_INET/1); [ 1145.112229] [ 1145.112229] *** DEADLOCK *** [ 1145.112229] [ 1145.112554] May be due to missing lock nesting notation [ 1145.112554] [ 1145.112915] 8 locks held by ksoftirqd/3/32: [ 1145.113147] #0: ffffffffbdd678c0 (rcu_read_lock){....}-{1:2}, at: process_backlog+0x6f/0x260 [ 1145.113604] #1: ffffffffbdd678c0 (rcu_read_lock){....}-{1:2}, at: ip_local_deliver_finish+0x6f/0x180 [ 1145.114135] #2: ffff8bdc01c480b0 (slock-AF_INET/1){+.-.}-{2:2}, at: tcp_v4_rcv+0xdb5/0xef0 [ 1145.114588] #3: ffffffffbdd678c0 (rcu_read_lock){....}-{1:2}, at: __ip_queue_xmit+0x3f/0x6f0 [ 1145.115040] #4: ffffffffbdd678c0 (rcu_read_lock){....}-{1:2}, at: ip_finish_output2+0xc6/0xa20 [ 1145.115533] #5: ffffffffbdd67880 (rcu_read_lock_bh){....}-{1:2}, at: __dev_queue_xmit+0x6e/0x1180 [ 1145.116018] #6: ffffffffbdd678c0 (rcu_read_lock){....}-{1:2}, at: netif_receive_skb+0x58/0x2c0 [ 1145.116503] #7: ffffffffbdd678c0 (rcu_read_lock){....}-{1:2}, at: ip_local_deliver_finish+0x6f/0x180 [ 1145.117006] [ 1145.117006] stack backtrace: [ 1145.117270] CPU: 3 PID: 32 Comm: ksoftirqd/3 Not tainted 6.8.0-rc2-virtme #1 [ 1145.117651] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.16.3-0-ga6ed6b701f0a-prebuilt.qemu.org 04/01/2014 [ 1145.118243] Call Trace: [ 1145.118394] [ 1145.118539] dump_stack_lvl+0x4b/0x80 [ 1145.118748] __lock_acquire+0x1215/0x1750 [ 1145.118986] ? sk_filter_trim_cap+0x53/0x360 [ 1145.119235] lock_acquire+0xc1/0x2b0 [ 1145.119449] ? tcp_v4_rcv+0xdb5/0xef0 [ 1145.119659] ? sk_filter_trim_cap+0x11a/0x360 [ 1145.119904] _raw_spin_lock_nested+0x2e/0x40 [ 1145.120168] ? tcp_v4_rcv+0xdb5/0xef0 [ 1145.120371] tcp_v4_rcv+0xdb5/0xef0 [ 1145.120581] ip_protocol_deliver_rcu+0x4b/0x1e0 [ 1145.120856] ip_local_deliver_finish+0xaf/0x180 [ 1145.121115] __netif_receive_skb_one_core+0x8b/0xa0 [ 1145.121412] netif_receive_skb+0x87/0x2c0 [ 1145.121645] tcf_mirred_to_dev+0x1f6/0x410 [act_mirred] [ 1145.121941] tcf_mirred_act+0xee/0x560 [act_mirred] [ 1145.122217] ? tcf_skbedit_act+0x1d6/0x410 [act_skbedit] [ 1145.122518] tcf_action_exec+0xaf/0x230 [ 1145.122742] fl_classify+0x20e/0x260 [cls_flower] [ 1145.123018] ? fl_mask_lookup+0x17e/0x5a0 [cls_flower] [ 1145.123308] ? __pfx_usage_match+0x10/0x10 [ 1145.123551] ? __bfs+0xf6/0x240 [ 1145.123742] ? check_irq_usage+0x19c/0xc40 [ 1145.123985] ? lock_release+0xbe/0x270 [ 1145.124187] ? check_path.constprop.0+0x24/0x50 [ 1145.124447] ? check_noncircular+0x81/0x150 [ 1145.124689] ? lock_release+0xbe/0x270 [ 1145.124906] ? __lock_acquire+0xa6e/0x1750 [ 1145.125154] tcf_classify+0x17d/0x540 [ 1145.125372] tc_run+0x9f/0x150 [ 1145.125571] __dev_queue_xmit+0x311/0x1180 [ 1145.125807] ? mark_held_locks+0x49/0x80 [ 1145.126044] ip_finish_output2+0x39f/0xa20 [ 1145.126285] ? __ip_queue_xmit+0x1d5/0x6f0 [ 1145.126538] __ip_queue_xmit+0x1d5/0x6f0 [ 1145.126775] __tcp_transmit_skb+0xb65/0xd30 [ 1145.127011] tcp_write_xmit+0x492/0x1410 [ 1145.127248] __tcp_push_pending_frames+0x36/0xc0 [ 1145.127510] tcp_rcv_state_process+0x4d3/0x11f0 [ 1145.127773] ? tcp_v4_rcv+0xdb5/0xef0 [ 1145.127975] ? tcp_v4_do_rcv+0x64/0x360 [ 1145.128186] tcp_v4_do_rcv+0x64/0x360 [ 1145.128398] tcp_v4_rcv+0xe4f/0xef0 [ 1145.128609] ? process_backlog+0x6f/0x260 [ 1145.128837] ip_protocol_deliver_rcu+0x4b/0x1e0 [ 1145.129108] ip_local_deliver_finish+0xaf/0x180 [ 1145.129354] __netif_receive_skb_one_core+0x8b/0xa0 [ 1145.129632] process_backlog+0x7c/0x260 [ 1145.129858] __napi_poll.constprop.0+0x2a/0x1e0 [ 1145.130113] net_rx_action+0x2be/0x340 [ 1145.130327] __do_softirq+0xcb/0x37a [ 1145.130541] ? __pfx_smpboot_thread_fn+0x10/0x10 [ 1145.130805] run_ksoftirqd+0x2e/0x40 [ 1145.131022] smpboot_thread_fn+0xdc/0x1d0 [ 1145.131253] kthread+0xdd/0x110 [ 1145.131444] ? __pfx_kthread+0x10/0x10 [ 1145.131663] ret_from_fork+0x34/0x50 [ 1145.131878] ? __pfx_kthread+0x10/0x10 [ 1145.132094] ret_from_fork_asm+0x1b/0x30 [ 1145.132318] [ 1160.736918] ncat (20267) 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__->