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 ] [ 1105.157294] 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 ] [ 1109.808043] ping (7015) used greatest stack depth: 11512 bytes left # TEST: mirred_egress_to_ingress (skip_hw) [ OK ] # [ 1112.374024] [ 1112.374154] ============================================ [ 1112.374455] WARNING: possible recursive locking detected [ 1112.374771] 6.8.0-rc2-virtme #1 Not tainted [ 1112.375004] -------------------------------------------- [ 1112.375305] ksoftirqd/2/27 is trying to acquire lock: [ 1112.375591] ffff9f3fc3248cb0 (slock-AF_INET/1){+.-.}-{2:2}, at: tcp_v4_rcv+0xdb5/0xef0 [ 1112.376033] [ 1112.376033] but task is already holding lock: [ 1112.376339] ffff9f3fc32480b0 (slock-AF_INET/1){+.-.}-{2:2}, at: tcp_v4_rcv+0xdb5/0xef0 [ 1112.376774] [ 1112.376774] other info that might help us debug this: [ 1112.377140] Possible unsafe locking scenario: [ 1112.377140] [ 1112.377461] CPU0 [ 1112.377614] ---- [ 1112.377770] lock(slock-AF_INET/1); [ 1112.377963] lock(slock-AF_INET/1); [ 1112.378158] [ 1112.378158] *** DEADLOCK *** [ 1112.378158] [ 1112.378488] May be due to missing lock nesting notation [ 1112.378488] [ 1112.378873] 8 locks held by ksoftirqd/2/27: [ 1112.379100] #0: ffffffffbd7678c0 (rcu_read_lock){....}-{1:2}, at: process_backlog+0x6f/0x260 [ 1112.379562] #1: ffffffffbd7678c0 (rcu_read_lock){....}-{1:2}, at: ip_local_deliver_finish+0x6f/0x180 [ 1112.380077] #2: ffff9f3fc32480b0 (slock-AF_INET/1){+.-.}-{2:2}, at: tcp_v4_rcv+0xdb5/0xef0 [ 1112.380512] #3: ffffffffbd7678c0 (rcu_read_lock){....}-{1:2}, at: __ip_queue_xmit+0x3f/0x6f0 [ 1112.380968] #4: ffffffffbd7678c0 (rcu_read_lock){....}-{1:2}, at: ip_finish_output2+0xc6/0xa20 [ 1112.381441] #5: ffffffffbd767880 (rcu_read_lock_bh){....}-{1:2}, at: __dev_queue_xmit+0x6e/0x1180 [ 1112.381924] #6: ffffffffbd7678c0 (rcu_read_lock){....}-{1:2}, at: netif_receive_skb+0x58/0x2c0 [ 1112.382401] #7: ffffffffbd7678c0 (rcu_read_lock){....}-{1:2}, at: ip_local_deliver_finish+0x6f/0x180 [ 1112.382900] [ 1112.382900] stack backtrace: [ 1112.383156] CPU: 2 PID: 27 Comm: ksoftirqd/2 Not tainted 6.8.0-rc2-virtme #1 [ 1112.383537] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.16.3-0-ga6ed6b701f0a-prebuilt.qemu.org 04/01/2014 [ 1112.384153] Call Trace: [ 1112.384293] [ 1112.384419] dump_stack_lvl+0x4b/0x80 [ 1112.384650] __lock_acquire+0x1215/0x1750 [ 1112.384866] ? sk_filter_trim_cap+0x53/0x360 [ 1112.385100] lock_acquire+0xc1/0x2b0 [ 1112.385314] ? tcp_v4_rcv+0xdb5/0xef0 [ 1112.385512] ? sk_filter_trim_cap+0x11a/0x360 [ 1112.385754] _raw_spin_lock_nested+0x2e/0x40 [ 1112.386007] ? tcp_v4_rcv+0xdb5/0xef0 [ 1112.386205] tcp_v4_rcv+0xdb5/0xef0 [ 1112.386402] ip_protocol_deliver_rcu+0x4b/0x1e0 [ 1112.386666] ip_local_deliver_finish+0xaf/0x180 [ 1112.386913] __netif_receive_skb_one_core+0x8b/0xa0 [ 1112.387182] netif_receive_skb+0x87/0x2c0 [ 1112.387422] tcf_mirred_to_dev+0x1f6/0x410 [act_mirred] [ 1112.387711] tcf_mirred_act+0xee/0x560 [act_mirred] [ 1112.387990] ? tcf_skbedit_act+0x1d6/0x410 [act_skbedit] [ 1112.388285] ? print_shortest_lock_dependencies_backwards+0x9c/0xd0 [ 1112.388637] tcf_action_exec+0xaf/0x230 [ 1112.388865] fl_classify+0x20e/0x260 [cls_flower] [ 1112.389130] ? __pfx_usage_match+0x10/0x10 [ 1112.389366] ? __bfs+0xf6/0x240 [ 1112.389539] ? check_irq_usage+0x19c/0xc40 [ 1112.389766] ? check_path.constprop.0+0x24/0x50 [ 1112.390030] ? check_noncircular+0x81/0x150 [ 1112.390254] ? __lock_acquire+0xa6e/0x1750 [ 1112.390498] tcf_classify+0x17d/0x540 [ 1112.390791] tc_run+0x9f/0x150 [ 1112.391057] __dev_queue_xmit+0x311/0x1180 [ 1112.391309] ? mark_held_locks+0x49/0x80 [ 1112.391538] ? eth_header+0x2a/0xc0 [ 1112.391749] ip_finish_output2+0x230/0xa20 [ 1112.391979] ? __ip_queue_xmit+0x1d5/0x6f0 [ 1112.392218] __ip_queue_xmit+0x1d5/0x6f0 [ 1112.392432] __tcp_transmit_skb+0xb65/0xd30 [ 1112.392677] tcp_write_xmit+0x492/0x1400 [ 1112.392907] __tcp_push_pending_frames+0x36/0xc0 [ 1112.393167] tcp_rcv_state_process+0x4d3/0x11f0 [ 1112.393434] ? tcp_v4_rcv+0xdb5/0xef0 [ 1112.393654] ? tcp_v4_do_rcv+0x64/0x360 [ 1112.393878] tcp_v4_do_rcv+0x64/0x360 [ 1112.394078] tcp_v4_rcv+0xe4f/0xef0 [ 1112.394269] ? process_backlog+0x6f/0x260 [ 1112.394489] ip_protocol_deliver_rcu+0x4b/0x1e0 [ 1112.394755] ip_local_deliver_finish+0xaf/0x180 [ 1112.395007] __netif_receive_skb_one_core+0x8b/0xa0 [ 1112.395285] process_backlog+0x7c/0x260 [ 1112.395501] __napi_poll.constprop.0+0x2a/0x1e0 [ 1112.395770] net_rx_action+0x2be/0x340 [ 1112.395982] __do_softirq+0xcb/0x37a [ 1112.396193] ? __pfx_smpboot_thread_fn+0x10/0x10 [ 1112.396450] run_ksoftirqd+0x2e/0x40 [ 1112.396672] smpboot_thread_fn+0xdc/0x1d0 [ 1112.396902] kthread+0xdd/0x110 [ 1112.397094] ? __pfx_kthread+0x10/0x10 [ 1112.397301] ret_from_fork+0x34/0x50 [ 1112.397503] ? __pfx_kthread+0x10/0x10 [ 1112.397761] ret_from_fork_asm+0x1b/0x30 [ 1112.397986] [ 1129.817568] ncat (7164) 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__->