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 ] [ 1142.921699] 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 ] [ 1147.799959] ping (5488) used greatest stack depth: 11512 bytes left # TEST: mirred_egress_to_ingress (skip_hw) [ OK ] # [ 1149.401980] [ 1149.402143] ============================================ [ 1149.402590] WARNING: possible recursive locking detected [ 1149.403043] 6.8.0-rc2-virtme #1 Not tainted [ 1149.403360] -------------------------------------------- [ 1149.403802] ksoftirqd/0/16 is trying to acquire lock: [ 1149.404242] ffff8d2d02bb0cb0 (slock-AF_INET/1){+.-.}-{2:2}, at: tcp_v4_rcv+0xdb5/0xef0 [ 1149.404870] [ 1149.404870] but task is already holding lock: [ 1149.405320] ffff8d2d02bb00b0 (slock-AF_INET/1){+.-.}-{2:2}, at: tcp_v4_rcv+0xdb5/0xef0 [ 1149.405958] [ 1149.405958] other info that might help us debug this: [ 1149.406457] Possible unsafe locking scenario: [ 1149.406457] [ 1149.406960] CPU0 [ 1149.407168] ---- [ 1149.407407] lock(slock-AF_INET/1); [ 1149.407698] lock(slock-AF_INET/1); [ 1149.408018] [ 1149.408018] *** DEADLOCK *** [ 1149.408018] [ 1149.408457] May be due to missing lock nesting notation [ 1149.408457] [ 1149.409002] 8 locks held by ksoftirqd/0/16: [ 1149.409317] #0: ffffffff96f678c0 (rcu_read_lock){....}-{1:2}, at: process_backlog+0x6f/0x260 [ 1149.410000] #1: ffffffff96f678c0 (rcu_read_lock){....}-{1:2}, at: ip_local_deliver_finish+0x6f/0x180 [ 1149.410693] #2: ffff8d2d02bb00b0 (slock-AF_INET/1){+.-.}-{2:2}, at: tcp_v4_rcv+0xdb5/0xef0 [ 1149.411332] #3: ffffffff96f678c0 (rcu_read_lock){....}-{1:2}, at: __ip_queue_xmit+0x3f/0x6f0 [ 1149.411967] #4: ffffffff96f678c0 (rcu_read_lock){....}-{1:2}, at: ip_finish_output2+0xc6/0xa20 [ 1149.412614] #5: ffffffff96f67880 (rcu_read_lock_bh){....}-{1:2}, at: __dev_queue_xmit+0x6e/0x1180 [ 1149.413288] #6: ffffffff96f678c0 (rcu_read_lock){....}-{1:2}, at: netif_receive_skb+0x58/0x2c0 [ 1149.413910] #7: ffffffff96f678c0 (rcu_read_lock){....}-{1:2}, at: ip_local_deliver_finish+0x6f/0x180 [ 1149.414627] [ 1149.414627] stack backtrace: [ 1149.415016] CPU: 0 PID: 16 Comm: ksoftirqd/0 Not tainted 6.8.0-rc2-virtme #1 [ 1149.415582] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.16.3-0-ga6ed6b701f0a-prebuilt.qemu.org 04/01/2014 [ 1149.416463] Call Trace: [ 1149.416650] [ 1149.416849] dump_stack_lvl+0x4b/0x80 [ 1149.417141] __lock_acquire+0x1215/0x1750 [ 1149.417491] ? sk_filter_trim_cap+0x53/0x360 [ 1149.417866] lock_acquire+0xc1/0x2b0 [ 1149.418143] ? tcp_v4_rcv+0xdb5/0xef0 [ 1149.418472] ? sk_filter_trim_cap+0x11a/0x360 [ 1149.418844] _raw_spin_lock_nested+0x2e/0x40 [ 1149.419160] ? tcp_v4_rcv+0xdb5/0xef0 [ 1149.419478] tcp_v4_rcv+0xdb5/0xef0 [ 1149.419798] ip_protocol_deliver_rcu+0x4b/0x1e0 [ 1149.420192] ip_local_deliver_finish+0xaf/0x180 [ 1149.420551] __netif_receive_skb_one_core+0x8b/0xa0 [ 1149.420955] netif_receive_skb+0x87/0x2c0 [ 1149.421251] tcf_mirred_to_dev+0x1f6/0x410 [act_mirred] [ 1149.421669] tcf_mirred_act+0xee/0x560 [act_mirred] [ 1149.422064] ? tcf_skbedit_act+0x1d6/0x410 [act_skbedit] [ 1149.422499] tcf_action_exec+0xac/0x230 [ 1149.422855] fl_classify+0x20e/0x260 [cls_flower] [ 1149.423239] ? __bfs+0xf3/0x240 [ 1149.423553] ? check_irq_usage+0x19c/0xc40 [ 1149.423926] ? check_path.constprop.0+0x24/0x50 [ 1149.424300] ? check_noncircular+0x81/0x150 [ 1149.424662] ? find_held_lock+0x2b/0x80 [ 1149.424979] ? __lock_acquire+0xa6e/0x1750 [ 1149.425323] tcf_classify+0x17a/0x540 [ 1149.425604] tc_run+0x9f/0x150 [ 1149.425874] __dev_queue_xmit+0x311/0x1180 [ 1149.426191] ? mark_held_locks+0x49/0x80 [ 1149.426542] ? eth_header+0x2a/0xc0 [ 1149.426855] ip_finish_output2+0x22d/0xa20 [ 1149.427166] ? __ip_queue_xmit+0x1d5/0x6f0 [ 1149.427523] __ip_queue_xmit+0x1d5/0x6f0 [ 1149.427859] __tcp_transmit_skb+0xb65/0xd30 [ 1149.428190] ? mark_held_locks+0x49/0x80 [ 1149.428521] tcp_write_xmit+0x492/0x1400 [ 1149.428859] ? tcp_current_mss+0x195/0x210 [ 1149.429181] __tcp_push_pending_frames+0x36/0xc0 [ 1149.429570] tcp_rcv_state_process+0x4d3/0x11f0 [ 1149.429956] ? tcp_v4_rcv+0xdb5/0xef0 [ 1149.430248] ? tcp_v4_do_rcv+0x64/0x360 [ 1149.430575] tcp_v4_do_rcv+0x64/0x360 [ 1149.430865] tcp_v4_rcv+0xe4f/0xef0 [ 1149.431172] ? process_backlog+0x6f/0x260 [ 1149.431494] ip_protocol_deliver_rcu+0x4b/0x1e0 [ 1149.431847] ip_local_deliver_finish+0xaf/0x180 [ 1149.432214] __netif_receive_skb_one_core+0x8b/0xa0 [ 1149.432590] process_backlog+0x7c/0x260 [ 1149.432920] __napi_poll.constprop.0+0x27/0x1e0 [ 1149.433278] net_rx_action+0x2be/0x340 [ 1149.433604] __do_softirq+0xc8/0x37a [ 1149.433913] ? __pfx_smpboot_thread_fn+0x10/0x10 [ 1149.434289] run_ksoftirqd+0x2e/0x40 [ 1149.434601] smpboot_thread_fn+0xd9/0x1d0 [ 1149.434947] kthread+0xda/0x110 [ 1149.435202] ? __pfx_kthread+0x10/0x10 [ 1149.435520] ret_from_fork+0x31/0x50 [ 1149.435801] ? __pfx_kthread+0x10/0x10 [ 1149.436127] ret_from_fork_asm+0x1b/0x30 [ 1149.436438] [ 1184.739971] ncat (5613) used greatest stack depth: 10680 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__->