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 ] [ 1226.543779] 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 ] [ 1231.411166] ping (4785) used greatest stack depth: 11512 bytes left # TEST: mirred_egress_to_ingress (skip_hw) [ OK ] # [ 1236.450964] [ 1236.451142] ============================================ [ 1236.451582] WARNING: possible recursive locking detected [ 1236.452028] 6.8.0-rc4-virtme #1 Not tainted [ 1236.452353] -------------------------------------------- [ 1236.452795] ksoftirqd/2/27 is trying to acquire lock: [ 1236.453213] ffff8ac985e70dd8 (slock-AF_INET/1){+.-.}-{2:2}, at: tcp_v4_rcv+0xdc9/0xf00 [ 1236.453840] [ 1236.453840] but task is already holding lock: [ 1236.454290] ffff8ac985e701d8 (slock-AF_INET/1){+.-.}-{2:2}, at: tcp_v4_rcv+0xdc9/0xf00 [ 1236.454919] [ 1236.454919] other info that might help us debug this: [ 1236.455411] Possible unsafe locking scenario: [ 1236.455411] [ 1236.455900] CPU0 [ 1236.456097] ---- [ 1236.456326] lock(slock-AF_INET/1); [ 1236.456628] lock(slock-AF_INET/1); [ 1236.456917] [ 1236.456917] *** DEADLOCK *** [ 1236.456917] [ 1236.457378] May be due to missing lock nesting notation [ 1236.457378] [ 1236.457909] 8 locks held by ksoftirqd/2/27: [ 1236.458238] #0: ffffffffa1d678c0 (rcu_read_lock){....}-{1:2}, at: process_backlog+0x76/0x260 [ 1236.458912] #1: ffffffffa1d678c0 (rcu_read_lock){....}-{1:2}, at: ip_local_deliver_finish+0x6f/0x180 [ 1236.459644] #2: ffff8ac985e701d8 (slock-AF_INET/1){+.-.}-{2:2}, at: tcp_v4_rcv+0xdc9/0xf00 [ 1236.460297] #3: ffffffffa1d678c0 (rcu_read_lock){....}-{1:2}, at: __ip_queue_xmit+0x3f/0x6f0 [ 1236.460967] #4: ffffffffa1d678c0 (rcu_read_lock){....}-{1:2}, at: ip_finish_output2+0xc6/0xa20 [ 1236.461635] #5: ffffffffa1d67880 (rcu_read_lock_bh){....}-{1:2}, at: __dev_queue_xmit+0x6e/0x1180 [ 1236.462328] #6: ffffffffa1d678c0 (rcu_read_lock){....}-{1:2}, at: netif_receive_skb+0x58/0x2c0 [ 1236.463000] #7: ffffffffa1d678c0 (rcu_read_lock){....}-{1:2}, at: ip_local_deliver_finish+0x6f/0x180 [ 1236.463734] [ 1236.463734] stack backtrace: [ 1236.464109] CPU: 2 PID: 27 Comm: ksoftirqd/2 Not tainted 6.8.0-rc4-virtme #1 [ 1236.464664] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.16.3-0-ga6ed6b701f0a-prebuilt.qemu.org 04/01/2014 [ 1236.465306] Call Trace: [ 123 DETECTED CRASH, lowering timeout 6.465445] [ 1236.465605] dump_stack_lvl+0x4b/0x80 [ 1236.465819] __lock_acquire+0x1215/0x1750 [ 1236.466033] ? sk_filter_trim_cap+0x53/0x360 [ 1236.466274] lock_acquire+0xc1/0x2b0 [ 1236.466468] ? tcp_v4_rcv+0xdc9/0xf00 [ 1236.466691] ? sk_filter_trim_cap+0x11a/0x360 [ 1236.466922] _raw_spin_lock_nested+0x2e/0x40 [ 1236.467163] ? tcp_v4_rcv+0xdc9/0xf00 [ 1236.467360] tcp_v4_rcv+0xdc9/0xf00 [ 1236.467562] ip_protocol_deliver_rcu+0x4b/0x1e0 [ 1236.467875] ip_local_deliver_finish+0xaf/0x180 [ 1236.468247] __netif_receive_skb_one_core+0x8b/0xa0 [ 1236.468631] netif_receive_skb+0x87/0x2c0 [ 1236.468970] tcf_mirred_to_dev+0x1f6/0x410 [act_mirred] [ 1236.469402] tcf_mirred_act+0xee/0x560 [act_mirred] [ 1236.469812] ? tcf_skbedit_act+0x1d6/0x410 [act_skbedit] [ 1236.470229] ? mce_wrmsrl+0x3c/0x50 [ 1236.470528] tcf_action_exec+0xac/0x230 [ 1236.470851] fl_classify+0x20e/0x260 [cls_flower] [ 1236.471244] ? fl_mask_lookup+0x17e/0x5a0 [cls_flower] [ 1236.471678] ? __bfs+0xf3/0x240 [ 1236.471962] ? check_irq_usage+0x19c/0xc40 [ 1236.472292] ? check_path.constprop.0+0x24/0x50 [ 1236.472648] ? check_noncircular+0x81/0x150 [ 1236.473005] ? __lock_acquire+0xa6e/0x1750 [ 1236.473332] tcf_classify+0x17a/0x540 [ 1236.473630] tc_run+0x9f/0x150 [ 1236.473849] __dev_queue_xmit+0x311/0x1180 [ 1236.474088] ? mark_held_locks+0x49/0x80 [ 1236.474312] ip_finish_output2+0x39f/0xa20 [ 1236.474551] ? __ip_queue_xmit+0x1d5/0x6f0 [ 1236.474797] __ip_queue_xmit+0x1d5/0x6f0 [ 1236.475030] __tcp_transmit_skb+0xb66/0xd30 [ 1236.475256] tcp_write_xmit+0x492/0x1410 [ 1236.475481] __tcp_push_pending_frames+0x36/0xc0 [ 1236.475746] tcp_rcv_state_process+0x4d1/0x11f0 [ 1236.475986] ? tcp_v4_rcv+0xdc9/0xf00 [ 1236.476179] ? tcp_v4_do_rcv+0x65/0x370 [ 1236.476399] tcp_v4_do_rcv+0x65/0x370 [ 1236.476685] tcp_v4_rcv+0xe63/0xf00 [ 1236.476986] ? process_backlog+0x76/0x260 [ 1236.477324] ip_protocol_deliver_rcu+0x4b/0x1e0 [ 1236.477699] ip_local_deliver_finish+0xaf/0x180 [ 1236.478076] __netif_receive_skb_one_core+0x8b/0xa0 [ 1236.478465] process_backlog+0x83/0x260 [ 1236.478783] __napi_poll.constprop.0+0x27/0x1e0 [ 1236.479169] net_rx_action+0x2c8/0x350 [ 1236.479473] __do_softirq+0xc8/0x37a [ 1236.479782] ? __pfx_smpboot_thread_fn+0x10/0x10 [ 1236.480172] run_ksoftirqd+0x2e/0x40 [ 1236.480459] smpboot_thread_fn+0xd9/0x1d0 [ 1236.480799] kthread+0xda/0x110 [ 1236.481072] ? __pfx_kthread+0x10/0x10 [ 1236.481375] ret_from_fork+0x31/0x50 [ 1236.481676] ? __pfx_kthread+0x10/0x10 [ 1236.481984] ret_from_fork_asm+0x1b/0x30 [ 1236.482320] [ 1263.239145] ncat (4909) 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__->