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 0 # 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 ] [ 1112.495828] ping (4673) used greatest stack depth: 11512 bytes left # TEST: mirred_egress_to_ingress (skip_hw) [ OK ] # [ 1115.490862] [ 1115.491020] ============================================ [ 1115.491407] WARNING: possible recursive locking detected [ 1115.491747] 6.8.0-rc1-virtme #1 Not tainted [ 1115.491986] -------------------------------------------- [ 1115.492362] ksoftirqd/3/32 is trying to acquire lock: [ 1115.492695] ffff8e92c5700cb0 (slock-AF_INET/1){+.-.}-{2:2}, at: tcp_v4_rcv+0xdb5/0xef0 [ 1115.493144] [ 1115.493144] but task is already holding lock: [ 1115.493516] ffff8e92c57000b0 (slock-AF_INET/1){+.-.}-{2:2}, at: tcp_v4_rcv+0xdb5/0xef0 [ 1115.493985] [ 1115.493985] other info that might help us debug this: [ 1115.494357] Possible unsafe locking scenario: [ 1115.494357] [ 1115.494756] CPU0 [ 1115.494924] ---- [ 1115.495073] lock(slock-AF_INET/1); [ 1115.495303] lock(slock-AF_INET/1); [ 1115.495570] [ 1115.495570] *** DEADLOCK *** [ 1115.495570] [ 1115.495989] May be due to missing lock nesting notation [ 1115.495989] [ 1115.496468] 8 locks held by ksoftirqd/3/32: [ 1115.496720] #0: ffffffff959678c0 (rcu_read_lock){....}-{1:2}, at: process_backlog+0x6f/0x260 [ 1115.497354] #1: ffffffff959678c0 (rcu_read_lock){....}-{1:2}, at: ip_local_deliver_finish+0x6f/0x180 [ 1115.498048] #2: ffff8e92c57000b0 (slock-AF_INET/1){+.-.}-{2:2}, at: tcp_v4_rcv+0xdb5/0xef0 [ 1115.498660] #3: ffffffff959678c0 (rcu_read_lock){....}-{1:2}, at: __ip_queue_xmit+0x3f/0x6f0 [ 1115.499302] #4: ffffffff959678c0 (rcu_read_lock){....}-{1:2}, at: ip_finish_output2+0xc6/0xa20 [ 1115.499958] #5: ffffffff95967880 (rcu_read_lock_bh){....}-{1:2}, at: __dev_queue_xmit+0x6e/0x1180 [ 1115.500599] #6: ffffffff959678c0 (rcu_read_lock){....}-{1:2}, at: netif_receive_skb+0x58/0x2c0 [ 1115.501217] #7: ffffffff959678c0 (rcu_read_lock){....}-{1:2}, at: ip_local_deliver_finish+0x6f/0x180 [ 1115.501734] [ 1115.501734] stack backtrace: [ 1115.501988] CPU: 3 PID: 32 Comm: ksoftirqd/3 Not tainted 6.8.0-rc1-virtme #1 [ 1115.502379] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.16.3-0-ga6ed6b701f0a-prebuilt.qemu.org 04/01/2014 [ 1115.503038] Call Trace: [ 1115.503243] [ 1115.503381] dump_stack_lvl+0x4b/0x80 [ 1115.503594] __lock_acquire+0x1215/0x1750 [ 1115.503817] ? sk_filter_trim_cap+0x53/0x360 [ 1115.504068] lock_acquire+0xc1/0x2b0 [ 1115.504314] ? tcp_v4_rcv+0xdb5/0xef0 [ 1115.504588] ? sk_filter_trim_cap+0x11a/0x360 [ 1115.504921] _raw_spin_lock_nested+0x2e/0x40 [ 1115.505163] ? tcp_v4_rcv+0xdb5/0xef0 [ 1115.505416] tcp_v4_rcv+0xdb5/0xef0 [ 1115.505616] ip_protocol_deliver_rcu+0x4b/0x1e0 [ 1115.505943] ip_local_deliver_finish+0xaf/0x180 [ 1115.506307] __netif_receive_skb_one_core+0x8b/0xa0 [ 1115.506687] netif_receive_skb+0x87/0x2c0 [ 1115.507023] tcf_mirred_to_dev+0x1f6/0x410 [act_mirred] [ 1115.507429] tcf_mirred_act+0xee/0x560 [act_mirred] [ 1115.507804] ? tcf_skbedit_act+0x1d6/0x410 [act_skbedit] [ 1115.508211] tcf_action_exec+0xaf/0x230 [ 1115.508510] fl_classify+0x20e/0x260 [cls_flower] [ 1115.508906] ? __pfx_usage_match+0x10/0x10 [ 1115.509194] ? __bfs+0xf6/0x240 [ 1115.509466] ? check_irq_usage+0x19c/0xc40 [ 1115.509778] ? check_path.constprop.0+0x24/0x50 [ 1115.510107] ? check_noncircular+0x81/0x150 [ 1115.510354] ? find_held_lock+0x2b/0x80 [ 1115.510582] ? __lock_acquire+0xa6e/0x1750 [ 1115.510828] tcf_classify+0x17d/0x540 [ 1115.511052] tc_run+0x9f/0x150 [ 1115.511238] __dev_queue_xmit+0x311/0x1180 [ 1115.511483] ? mark_held_locks+0x49/0x80 [ 1115.511712] ? eth_header+0x2a/0xc0 [ 1115.511917] ip_finish_output2+0x230/0xa20 [ 1115.512245] ? __ip_queue_xmit+0x1d5/0x6f0 [ 1115.512486] __ip_queue_xmit+0x1d5/0x6f0 [ 1115.512714] __tcp_transmit_skb+0xb65/0xd30 [ 1115.512961] tcp_write_xmit+0x492/0x1400 [ 1115.513185] __tcp_push_pending_frames+0x36/0xc0 [ 1115.513527] tcp_rcv_state_process+0x4d3/0x11f0 [ 1115.513886] ? tcp_v4_rcv+0xdb5/0xef0 [ 1115.514093] ? tcp_v4_do_rcv+0x64/0x360 [ 1115.514367] tcp_v4_do_rcv+0x64/0x360 [ 1115.514581] tcp_v4_rcv+0xe4f/0xef0 [ 1115.514829] ? process_backlog+0x6f/0x260 [ 1115.515134] ip_protocol_deliver_rcu+0x4b/0x1e0 [ 1115.515502] ip_local_deliver_finish+0xaf/0x180 [ 1115.515853] __netif_receive_skb_one_core+0x8b/0xa0 [ 1115.516229] process_backlog+0x7c/0x260 [ 1115.516527] __napi_poll.constprop.0+0x2a/0x1e0 [ 1115.516902] net_rx_action+0x2be/0x340 [ 1115.517190] __do_softirq+0xcb/0x37a [ 1115.517468] ? __pfx_smpboot_thread_fn+0x10/0x10 [ 1115.517856] run_ksoftirqd+0x2e/0x40 [ 1115.518114] smpboot_thread_fn+0xdc/0x1d0 [ 1115.518428] kthread+0xdd/0x110 [ 1115.518657] ? __pfx_kthread+0x10/0x10 [ 1115.518956] ret_from_fork+0x34/0x50 [ 1115.519171] ? __pfx_kthread+0x10/0x10 [ 1115.519388] ret_from_fork_asm+0x1b/0x30 [ 1115.519613] [ 1149.299030] ncat (4817) 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__->