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 ] [ 1037.176337] tc (4112) used greatest stack depth: 11648 bytes left [ 1039.333383] ping (4253) used greatest stack depth: 11512 bytes left # TEST: mirred_egress_to_ingress (skip_hw) [ OK ] # [ 1042.525860] [ 1042.525981] ============================================ [ 1042.526294] WARNING: possible recursive locking detected [ 1042.526581] 6.8.0-rc2-virtme #1 Not tainted [ 1042.526816] -------------------------------------------- [ 1042.527120] ksoftirqd/3/32 is trying to acquire lock: [ 1042.527384] ffff9ebb43f58cb0 (slock-AF_INET/1){+.-.}-{2:2}, at: tcp_v4_rcv+0xdb5/0xef0 [ 1042.527811] [ 1042.527811] but task is already holding lock: [ 1042.528154] ffff9ebb43f580b0 (slock-AF_INET/1){+.-.}-{2:2}, at: tcp_v4_rcv+0xdb5/0xef0 [ 1042.528575] [ 1042.528575] other info that might help us debug this: [ 1042.528927] Possible unsafe locking scenario: [ 1042.528927] [ 1042.529289] CPU0 [ 1042.529432] ---- [ 1042.529571] lock(slock-AF_INET/1); [ 1042.529771] lock(slock-AF_INET/1); [ 1042.529997] [ 1042.529997] *** DEADLOCK *** [ 1042.529997] [ 1042.530321] May be due to missing lock nesting notation [ 1042.530321] [ 1042.530677] 8 locks held by ksoftirqd/3/32: [ 1042.530910] #0: ffffffff8a5678c0 (rcu_read_lock){....}-{1:2}, at: process_backlog+0x6f/0x260 [ 1042.531382] #1: ffffffff8a5678c0 (rcu_read_lock){....}-{1:2}, at: ip_local_deliver_finish+0x6f/0x180 [ 1042.531869] #2: ffff9ebb43f580b0 (slock-AF_INET/1){+.-.}-{2:2}, at: tcp_v4_rcv+0xdb5/0xef0 [ 1042.532323] #3: ffffffff8a5678c0 (rcu_read_lock){....}-{1:2}, at: __ip_queue_xmit+0x3f/0x6f0 [ 1042.532805] #4: ffffffff8a5678c0 (rcu_read_lock){....}-{1:2}, at: ip_finish_output2+0xc6/0xa20 [ 1042.533301] #5: ffffffff8a567880 (rcu_read_lock_bh){....}-{1:2}, at: __dev_queue_xmit+0x6e/0x1180 [ 1042.533767] #6: ffffffff8a5678c0 (rcu_read_lock){....}-{1:2}, at: netif_receive_skb+0x58/0x2c0 [ 1042.534236] #7: ffffffff8a5678c0 (rcu_read_lock){....}-{1:2}, at: ip_local_deliver_finish+0x6f/0x180 [ 1042.534723] [ 1042.534723] stack backtrace: [ 1042.535000] CPU: 3 PID: 32 Comm: ksoftirqd/3 Not tainted 6.8.0-rc2-virtme #1 [ 1042.535391] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.16.3-0-ga6ed6b701f0a-prebuilt.qemu.org 04/01/2014 [ 1042.535991] Call Trace: [ 1042.536149] [ 1042.536315] dump_stack_lvl+0x4b/0x80 [ 1042.536528] __lock_acquire+0x1215/0x1750 [ 1042.536747] ? sk_filter_trim_cap+0x53/0x360 [ 1042.536983] lock_acquire+0xc1/0x2b0 [ 1042.537222] ? tcp_v4_rcv+0xdb5/0xef0 [ 1042.537423] ? sk_filter_trim_cap+0x11a/0x360 [ 1042.537665] _raw_spin_lock_nested+0x2e/0x40 [ 1042.537909] ? tcp_v4_rcv+0xdb5/0xef0 [ 1042.538109] tcp_v4_rcv+0xdb5/0xef0 [ 1042.538305] ip_protocol_deliver_rcu+0x4b/0x1e0 [ 1042.538567] ip_local_deliver_finish+0xaf/0x180 [ 1042.538821] __netif_receive_skb_one_core+0x8b/0xa0 [ 1042.539101] netif_receive_skb+0x87/0x2c0 [ 1042.539331] tcf_mirred_to_dev+0x1f6/0x410 [act_mirred] [ 1042.539618] tcf_mirred_act+0xee/0x560 [act_mirred] [ 1042.539897] ? tcf_skbedit_act+0x1d6/0x410 [act_skbedit] [ 1042.540195] tcf_action_exec+0xaf/0x230 [ 1042.540416] fl_classify+0x20e/0x260 [cls_flower] [ 1042.540676] ? fl_mask_lookup+0x17e/0x5a0 [cls_flower] [ 1042.540977] ? __pfx_usage_match+0x10/0x10 [ 1042.541206] ? __bfs+0xf6/0x240 [ 1042.541404] ? check_irq_usage+0x19c/0xc40 [ 1042.541649] ? check_path.constprop.0+0x24/0x50 [ 1042.541906] ? check_noncircular+0x81/0x150 [ 1042.542135] ? lock_release+0xbe/0x270 [ 1042.542342] ? __lock_acquire+0xa6e/0x1750 [ 1042.542578] tcf_classify+0x17d/0x540 [ 1042.542784] tc_run+0x9f/0x150 [ 1042.542973] __dev_queue_xmit+0x311/0x1180 [ 1042.543211] ? mark_held_locks+0x49/0x80 [ 1042.543441] ip_finish_output2+0x39f/0xa20 [ 1042.543674] ? __ip_queue_xmit+0x1d5/0x6f0 [ 1042.543903] __ip_queue_xmit+0x1d5/0x6f0 [ 1042.544156] __tcp_transmit_skb+0xb65/0xd30 [ 1042.544392] tcp_write_xmit+0x492/0x1400 [ 1042.544617] __tcp_push_pending_frames+0x36/0xc0 [ 1042.544867] tcp_rcv_state_process+0x4d3/0x11f0 [ 1042.545128] ? tcp_v4_rcv+0xdb5/0xef0 [ 1042.545345] ? tcp_v4_do_rcv+0x64/0x360 [ 1042.545562] tcp_v4_do_rcv+0x64/0x360 [ 1042.545782] tcp_v4_rcv+0xe4f/0xef0 [ 1042.545987] ? process_backlog+0x6f/0x260 [ 1042.546210] ip_protocol_deliver_rcu+0x4b/0x1e0 [ 1042.546477] ip_local_deliver_finish+0xaf/0x180 [ 1042.546732] __netif_receive_skb_one_core+0x8b/0xa0 [ 1042.547002] process_backlog+0x7c/0x260 [ 1042.547224] __napi_poll.constprop.0+0x2a/0x1e0 [ 1042.547472] net_rx_action+0x2be/0x340 [ 1042.547689] __do_softirq+0xcb/0x37a [ 1042.547889] ? __pfx_smpboot_thread_fn+0x10/0x10 [ 1042.548136] run_ksoftirqd+0x2e/0x40 [ 1042.548351] smpboot_thread_fn+0xdc/0x1d0 [ 1042.548571] kthread+0xdd/0x110 [ 1042.548778] ? __pfx_kthread+0x10/0x10 [ 1042.549045] ret_from_fork+0x34/0x50 [ 1042.549336] ? __pfx_kthread+0x10/0x10 [ 1042.549617] ret_from_fork_asm+0x1b/0x30 [ 1042.549849] [ 1072.554176] ncat (4403) 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__->