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 [ 2.007852] ip (232) used greatest stack depth: 12072 bytes left [ 2.059692] ip (241) used greatest stack depth: 12040 bytes left [ 7.914399] GACT probability NOT on [ 7.916886] tc (317) used greatest stack depth: 11920 bytes left # TEST: gact drop and ok (skip_hw) [ OK ] [ 10.277031] Mirror/redirect action on [ 10.279041] tc (565) used greatest stack depth: 11904 bytes left # TEST: mirred egress flower redirect (skip_hw) [ OK ] [ 10.391992] tc (575) used greatest stack depth: 11696 bytes left # TEST: mirred egress flower mirror (skip_hw) [ OK ] # TEST: mirred egress matchall mirror (skip_hw) [ OK ] [ 15.036744] ping (943) used greatest stack depth: 11512 bytes left # TEST: mirred_egress_to_ingress (skip_hw) [ OK ] # [ 19.894059] [ 19.894216] ============================================ [ 19.894660] WARNING: possible recursive locking detected [ 19.895078] 6.8.0-rc3-virtme #1 Not tainted [ 19.895410] -------------------------------------------- [ 19.895846] ksoftirqd/0/16 is trying to acquire lock: [ 19.896244] ffff9aedc3d08cb0 (slock-AF_INET/1){+.-.}-{2:2}, at: tcp_v4_rcv+0xdb5/0xef0 [ 19.896893] [ 19.896893] but task is already holding lock: [ 19.897387] ffff9aedc3d080b0 (slock-AF_INET/1){+.-.}-{2:2}, at: tcp_v4_rcv+0xdb5/0xef0 [ 19.898032] [ 19.898032] other info that might help us debug this: [ 19.898547] Possible unsafe locking scenario: [ 19.898547] [ 19.899034] CPU0 [ 19.899236] ---- [ 19.899407] lock(slock-AF_INET/1); [ 19.899635] lock(slock-AF_INET/1); [ 19.899865] [ 19.899865] *** DEADLOCK *** [ 19.899865] [ 19.900210] May be due to missing lock nesting notation [ 19.900210] [ 19.900571] 8 locks held by ksoftirqd/0/16: [ 19.900817] #0: ffffffff8d1678c0 (rcu_read_lock){....}-{1:2}, at: process_backlog+0x6f/0x260 [ 19.901298] #1: ffffffff8d1678c0 (rcu_read_lock){....}-{1:2}, at: ip_local_deliver_finish+0x6f/0x180 [ 19.901847] #2: ffff9aedc3d080b0 (slock-AF_INET/1){+.-.}-{2:2}, at: tcp_v4_rcv+0xdb5/0xef0 [ 19.902318] #3: ffffffff8d1678c0 (rcu_read_lock){....}-{1:2}, at: __ip_queue_xmit+0x3f/0x700 [ 19.902775] #4: ffffffff8d1678c0 (rcu_read_lock){....}-{1:2}, at: ip_finish_output2+0xc6/0xa20 [ 19.903275] #5: ffffffff8d167880 (rcu_read_lock_bh){....}-{1:2}, at: __dev_queue_xmit+0x6e/0x1180 [ 19.903755] #6: ffffffff8d1678c0 (rcu_read_lock){....}-{1:2}, at: netif_receive_skb+0x58/0x2c0 [ 19.904243] #7: ffffffff8d1678c0 (rcu_read_lock){....}-{1:2}, at: ip_local_deliver_finish+0x6f/0x180 [ 19.904730] [ 19.904730] stack backtrace: [ 19.905006] CPU: 0 PID: 16 Comm: ksoftirqd/0 Not tainted 6.8.0-rc3-virtme #1 [ 19.905404] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.16.3-0-ga6ed6b701f0a-prebuilt.qemu.org 04/01/2014 [ 19.906005] Call Trace: [ 19.906143] [ 19.906314] dump_stack_lvl+0x4b/0x80 [ 19.906548] __lock_acquire+0x1215/0x1750 [ 19.906800] ? sk_filter_trim_cap+0x53/0x360 [ 19.907061] lock_acquire+0xc1/0x2b0 [ 19.907254] DETECTED CRASH, lowering timeout ? tcp_v4_rcv+0xdb5/0xef0 [ 19.907485] ? sk_filter_trim_cap+0x11a/0x360 [ 19.907757] _raw_spin_lock_nested+0x2e/0x40 [ 19.908014] ? tcp_v4_rcv+0xdb5/0xef0 [ 19.908211] tcp_v4_rcv+0xdb5/0xef0 [ 19.908437] ip_protocol_deliver_rcu+0x4b/0x1e0 [ 19.908712] ip_local_deliver_finish+0xaf/0x180 [ 19.908979] __netif_receive_skb_one_core+0x8b/0xa0 [ 19.909241] netif_receive_skb+0x87/0x2c0 [ 19.909494] tcf_mirred_to_dev+0x1f6/0x410 [act_mirred] [ 19.909805] tcf_mirred_act+0xee/0x560 [act_mirred] [ 19.910094] ? tcf_skbedit_act+0x1d6/0x410 [act_skbedit] [ 19.910413] tcf_action_exec+0xac/0x230 [ 19.910656] fl_classify+0x20e/0x260 [cls_flower] [ 19.910942] ? fl_mask_lookup+0x17e/0x5a0 [cls_flower] [ 19.911217] ? __bfs+0xf3/0x240 [ 19.911412] ? check_irq_usage+0x19c/0xc40 [ 19.911679] ? check_path.constprop.0+0x24/0x50 [ 19.911971] ? check_noncircular+0x81/0x150 [ 19.912196] ? __lock_acquire+0xa6e/0x1750 [ 19.912443] tcf_classify+0x17a/0x540 [ 19.912697] tc_run+0x9f/0x150 [ 19.912906] __dev_queue_xmit+0x311/0x1180 [ 19.913171] ? mark_held_locks+0x49/0x80 [ 19.913404] ip_finish_output2+0x39f/0xa20 [ 19.913680] ? __ip_queue_xmit+0x1d5/0x700 [ 19.913938] __ip_queue_xmit+0x1d5/0x700 [ 19.914160] __tcp_transmit_skb+0xb65/0xd30 [ 19.914421] ? mark_held_locks+0x49/0x80 [ 19.914674] tcp_write_xmit+0x492/0x1400 [ 19.914910] __tcp_push_pending_frames+0x36/0xc0 [ 19.915159] tcp_rcv_state_process+0x4d3/0x11f0 [ 19.915433] ? tcp_v4_rcv+0xdb5/0xef0 [ 19.915688] ? tcp_v4_do_rcv+0x64/0x360 [ 19.915928] tcp_v4_do_rcv+0x64/0x360 [ 19.916127] tcp_v4_rcv+0xe4f/0xef0 [ 19.916342] ? process_backlog+0x6f/0x260 [ 19.916591] ip_protocol_deliver_rcu+0x4b/0x1e0 [ 19.916866] ip_local_deliver_finish+0xaf/0x180 [ 19.917133] __netif_receive_skb_one_core+0x8b/0xa0 [ 19.917398] process_backlog+0x7c/0x260 [ 19.917615] __napi_poll.constprop.0+0x27/0x1e0 [ 19.917915] net_rx_action+0x2be/0x340 [ 19.918117] __do_softirq+0xc8/0x37a [ 19.918340] ? __pfx_smpboot_thread_fn+0x10/0x10 [ 19.918635] run_ksoftirqd+0x2e/0x40 [ 19.918876] smpboot_thread_fn+0xd9/0x1d0 [ 19.919125] kthread+0xda/0x110 [ 19.919299] ? __pfx_kthread+0x10/0x10 [ 19.919561] ret_from_fork+0x31/0x50 [ 19.919796] ? __pfx_kthread+0x10/0x10 [ 19.920016] ret_from_fork_asm+0x1b/0x30 [ 19.920230] [ 56.085457] ncat (1067) 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__->