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.491817] 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.312381] ping (5489) used greatest stack depth: 11512 bytes left # TEST: mirred_egress_to_ingress (skip_hw) [ OK ] # [ 1151.887848] [ 1151.887968] ============================================ [ 1151.888263] WARNING: possible recursive locking detected [ 1151.888564] 6.8.0-rc4-virtme #1 Not tainted [ 1151.888807] -------------------------------------------- [ 1151.889098] ksoftirqd/3/32 is trying to acquire lock: [ 1151.889371] ffff9068850781d8 (slock-AF_INET/1){+.-.}-{2:2}, at: tcp_v4_rcv+0xdb5/0xef0 [ 1151.889828] [ 1151.889828] but task is already holding lock: [ 1151.890141] ffff9068829101d8 (slock-AF_INET/1){+.-.}-{2:2}, at: tcp_v4_rcv+0xdb5/0xef0 [ 1151.890554] [ 1151.890554] other info that might help us debug this: [ 1151.890912] Possible unsafe locking scenario: [ 1151.890912] [ 1151.891230] CPU0 [ 1151.891365] ---- [ 1151.891509] lock(slock-AF_INET/1); [ 1151.891720] lock(slock-AF_INET/1); [ 1151.891922] [ 1151.891922] *** DEADLOCK *** [ 1151.891922] [ 1151.892250] May be due to missing lock nesting notation [ 1151.892250] [ 1151.892601] 8 locks held by ksoftirqd/3/32: [ 1151.892829] #0: ffffffffb51678c0 (rcu_read_lock){....}-{1:2}, at: process_backlog+0x76/0x260 [ 1151.893294] #1: ffffffffb51678c0 (rcu_read_lock){....}-{1:2}, at: ip_local_deliver_finish+0x6f/0x180 [ 1151.893786] #2: ffff9068829101d8 (slock-AF_INET/1){+.-.}-{2:2}, at: tcp_v4_rcv+0xdb5/0xef0 [ 1151.894220] #3: ffffffffb51678c0 (rcu_read_lock){....}-{1:2}, at: __ip_queue_xmit+0x3f/0x6f0 [ 1151.894663] #4: ffffffffb51678c0 (rcu_read_lock){....}-{1:2}, at: ip_finish_output2+0xc6/0xa20 [ 1151.895136] #5: ffffffffb5167880 (rcu_read_lock_bh){....}-{1:2}, at: __dev_queue_xmit+0x6e/0x1180 [ 1151.895596] #6: ffffffffb51678c0 (rcu_read_lock){....}-{1:2}, at: netif_receive_skb+0x58/0x2c0 [ 1151.896050] #7: ffffffffb51678c0 (rcu_read_lock){....}-{1:2}, at: ip_local_deliver_finish+0x6f/0x180 [ 1151.896529] [ 1151.896529] stack backtrace: [ 1151.896795] CPU: 3 PID: 32 Comm: ksoftirqd/3 Not tainted 6.8.0-rc4-virtme #1 [ 1151.897179] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.16.3-0-ga6ed6b701f0a-prebuilt.qemu.org 04/01/2014 [ 1151.897774] Call Trace: [ 1151.897917] [ 1151.898062] dump_stack_lvl+0x4b/0x80 [ 1151.898268] __lock_acquire+0x1215/0x1750 [ 1151.898497] ? sk_filter_trim_cap+0x53/0x360 [ 1151.898729] lock_acquire+0xc1/0x2b0 [ 1151.898921] ? tcp_v4_rcv+0xdb5/0xef0 [ 1151.899143] ? sk_filter_trim_cap+0x11a/0x360 [ 1151.899385] _raw_spin_lock_nested+0x2e/0x40 [ 1151.899636] ? tcp_v4_rcv+0xdb5/0xef0 [ 1151.899845] tcp_v4_rcv+0xdb5/0xef0 [ 1151.900034] ip_protocol_deliver_rcu+0x4b/0x1e0 [ 1151.900277] ip_local_deliver_finish+0xaf/0x180 [ 1151.900518] __netif_receive DETECTED CRASH, lowering timeout _skb_one_core+0x8b/0xa0 [ 1151.900789] netif_receive_skb+0x87/0x2c0 [ 1151.901011] tcf_mirred_to_dev+0x1f6/0x410 [act_mirred] [ 1151.901304] tcf_mirred_act+0xee/0x560 [act_mirred] [ 1151.901569] ? tcf_skbedit_act+0x1d6/0x410 [act_skbedit] [ 1151.901866] tcf_action_exec+0xac/0x230 [ 1151.902099] fl_classify+0x20e/0x260 [cls_flower] [ 1151.902360] ? fl_mask_lookup+0x17e/0x5a0 [cls_flower] [ 1151.902645] ? __bfs+0xf3/0x240 [ 1151.902822] ? check_irq_usage+0x19c/0xc40 [ 1151.903044] ? check_path.constprop.0+0x24/0x50 [ 1151.903291] ? check_noncircular+0x81/0x150 [ 1151.903547] ? lock_release+0xbe/0x270 [ 1151.903757] ? __lock_acquire+0xa6e/0x1750 [ 1151.903997] tcf_classify+0x17a/0x540 [ 1151.904218] tc_run+0x9f/0x150 [ 1151.904397] __dev_queue_xmit+0x311/0x1180 [ 1151.904623] ? mark_held_locks+0x49/0x80 [ 1151.904846] ip_finish_output2+0x39f/0xa20 [ 1151.905064] ? __ip_queue_xmit+0x1d5/0x6f0 [ 1151.905283] __ip_queue_xmit+0x1d5/0x6f0 [ 1151.905500] __tcp_transmit_skb+0xb66/0xd30 [ 1151.905743] tcp_write_xmit+0x492/0x1410 [ 1151.905954] __tcp_push_pending_frames+0x36/0xc0 [ 1151.906200] tcp_rcv_state_process+0x4c9/0x11f0 [ 1151.906452] ? tcp_v4_rcv+0xdb5/0xef0 [ 1151.906653] ? tcp_v4_do_rcv+0x64/0x360 [ 1151.906858] tcp_v4_do_rcv+0x64/0x360 [ 1151.907085] tcp_v4_rcv+0xe4f/0xef0 [ 1151.907292] ? process_backlog+0x76/0x260 [ 1151.907509] ip_protocol_deliver_rcu+0x4b/0x1e0 [ 1151.907764] ip_local_deliver_finish+0xaf/0x180 [ 1151.908010] __netif_receive_skb_one_core+0x8b/0xa0 [ 1151.908282] process_backlog+0x83/0x260 [ 1151.908494] __napi_poll.constprop.0+0x27/0x1e0 [ 1151.908746] net_rx_action+0x2c8/0x350 [ 1151.908954] __do_softirq+0xc8/0x37a [ 1151.909159] ? __pfx_smpboot_thread_fn+0x10/0x10 [ 1151.909406] run_ksoftirqd+0x2e/0x40 [ 1151.909600] smpboot_thread_fn+0xd9/0x1d0 [ 1151.909849] kthread+0xda/0x110 [ 1151.910030] ? __pfx_kthread+0x10/0x10 [ 1151.910236] ret_from_fork+0x31/0x50 [ 1151.910430] ? __pfx_kthread+0x10/0x10 [ 1151.910664] ret_from_fork_asm+0x1b/0x30 [ 1151.910887] [ 1166.041192] ncat (5624) 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__->