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 ] # TEST: mirred_egress_to_ingress (skip_hw) [ OK ] # [ 1043.450904] [ 1043.451035] ============================================ [ 1043.451332] WARNING: possible recursive locking detected [ 1043.451621] 6.8.0-rc1-virtme #1 Not tainted [ 1043.451848] -------------------------------------------- [ 1043.452146] ksoftirqd/3/32 is trying to acquire lock: [ 1043.452424] ffffa0e685498cb0 (slock-AF_INET/1){+.-.}-{2:2}, at: tcp_v4_rcv+0xdb5/0xef0 [ 1043.452867] [ 1043.452867] but task is already holding lock: [ 1043.453200] ffffa0e6854980b0 (slock-AF_INET/1){+.-.}-{2:2}, at: tcp_v4_rcv+0xdb5/0xef0 [ 1043.453616] [ 1043.453616] other info that might help us debug this: [ 1043.454103] Possible unsafe locking scenario: [ 1043.454103] [ 1043.454529] CPU0 [ 1043.454734] ---- [ 1043.454935] lock(slock-AF_INET/1); [ 1043.455234] lock(slock-AF_INET/1); [ 1043.455534] [ 1043.455534] *** DEADLOCK *** [ 1043.455534] [ 1043.456004] May be due to missing lock nesting notation [ 1043.456004] [ 1043.456535] 8 locks held by ksoftirqd/3/32: [ 1043.456862] #0: ffffffff9e7678c0 (rcu_read_lock){....}-{1:2}, at: process_backlog+0x6f/0x260 [ 1043.457524] #1: ffffffff9e7678c0 (rcu_read_lock){....}-{1:2}, at: ip_local_deliver_finish+0x6f/0x180 [ 1043.458247] #2: ffffa0e6854980b0 (slock-AF_INET/1){+.-.}-{2:2}, at: tcp_v4_rcv+0xdb5/0xef0 [ 1043.458895] #3: ffffffff9e7678c0 (rcu_read_lock){....}-{1:2}, at: __ip_queue_xmit+0x3f/0x6f0 [ 1043.459552] #4: ffffffff9e7678c0 (rcu_read_lock){....}-{1:2}, at: ip_finish_output2+0xc6/0xa20 [ 1043.460231] #5: ffffffff9e767880 (rcu_read_lock_bh){....}-{1:2}, at: __dev_queue_xmit+0x6e/0x1180 [ 1043.460919] #6: ffffffff9e7678c0 (rcu_read_lock){....}-{1:2}, at: netif_receive_skb+0x58/0x2c0 [ 1043.461587] #7: ffffffff9e7678c0 (rcu_read_lock){....}-{1:2}, at: ip_local_deliver_finish+0x6f/0x180 [ 1043.462300] [ 1043.462300] stack backtrace: [ 1043.462651] CPU: 3 PID: 32 Comm: ksoftirqd/3 Not tainted 6.8.0-rc1-virtme #1 [ 1043.463210] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.16.3-0-ga6ed6b701f0a-prebuilt.qemu.org 04/01/2014 [ 1043.464102] Call Trace: [ 1043.464308] [ 1043.464455] dump_stack_lvl+0x4b/0x80 [ 1043.464694] __lock_acquire+0x1215/0x1750 [ 1043.464925] ? sk_filter_trim_cap+0x53/0x360 [ 1043.465166] lock_acquire+0xc1/0x2b0 [ 1043.465374] ? tcp_v4_rcv+0xdb5/0xef0 [ 1043.465574] ? sk_filter_trim_cap+0x11a/0x360 [ 1043.465837] _raw_spin_lock_nested+0x2e/0x40 [ 1043.466075] ? tcp_v4_rcv+0xdb5/0xef0 [ 1043.466285] tcp_v4_rcv+0xdb5/0xef0 [ 1043.466486] ip_protocol_deliver_rcu+0x4b/0x1e0 [ 1043.466758] ip_local_deliver_finish+0xaf/0x180 [ 1043.467003] __netif_receive_skb_one_core+0x8b/0xa0 [ 1043.467295] netif_receive_skb+0x87/0x2c0 [ 1043.467531] tcf_mirred_to_dev+0x1f6/0x410 [act_mirred] [ 1043.467815] tcf_mirred_act+0xee/0x560 [act_mirred] [ 1043.468086] ? tcf_skbedit_act+0x1d6/0x410 [act_skbedit] [ 1043.468396] tcf_action_exec+0xaf/0x230 [ 1043.468611] fl_classify+0x20e/0x260 [cls_flower] [ 1043.468885] ? fl_mask_lookup+0x17e/0x5a0 [cls_flower] [ 1043.469165] ? __pfx_usage_match+0x10/0x10 [ 1043.469397] ? __bfs+0xf6/0x240 [ 1043.469590] ? check_irq_usage+0x19c/0xc40 [ 1043.469823] ? check_path.constprop.0+0x24/0x50 [ 1043.470067] ? check_noncircular+0x81/0x150 [ 1043.470303] ? lock_release+0xbe/0x270 [ 1043.470510] ? __lock_acquire+0xa6e/0x1750 [ 1043.470742] tcf_classify+0x17d/0x540 [ 1043.470944] tc_run+0x9f/0x150 [ 1043.471116] __dev_queue_xmit+0x311/0x1180 [ 1043.471404] ? mark_held_locks+0x49/0x80 [ 1043.471657] ip_finish_output2+0x39f/0xa20 [ 1043.471966] ? __ip_queue_xmit+0x1d5/0x6f0 [ 1043.472288] __ip_queue_xmit+0x1d5/0x6f0 [ 1043.472615] __tcp_transmit_skb+0xb65/0xd30 [ 1043.472946] tcp_write_xmit+0x492/0x1410 [ 1043.473265] __tcp_push_pending_frames+0x36/0xc0 [ 1043.473632] tcp_rcv_state_process+0x4d3/0x11f0 [ 1043.474004] ? tcp_v4_rcv+0xdb5/0xef0 [ 1043.474304] ? tcp_v4_do_rcv+0x64/0x360 [ 1043.474615] tcp_v4_do_rcv+0x64/0x360 [ 1043.474907] tcp_v4_rcv+0xe4f/0xef0 [ 1043.475195] ? process_backlog+0x6f/0x260 [ 1043.475524] ip_protocol_deliver_rcu+0x4b/0x1e0 [ 1043.475900] ip_local_deliver_finish+0xaf/0x180 [ 1043.476272] __netif_receive_skb_one_core+0x8b/0xa0 [ 1043.476669] process_backlog+0x7c/0x260 [ 1043.476981] __napi_poll.constprop.0+0x2a/0x1e0 [ 1043.477345] net_rx_action+0x2be/0x340 [ 1043.477662] __do_softirq+0xcb/0x37a [ 1043.477960] ? __pfx_smpboot_thread_fn+0x10/0x10 [ 1043.478339] run_ksoftirqd+0x2e/0x40 [ 1043.478640] smpboot_thread_fn+0xdc/0x1d0 [ 1043.478960] kthread+0xdd/0x110 [ 1043.479235] ? __pfx_kthread+0x10/0x10 [ 1043.479554] ret_from_fork+0x34/0x50 [ 1043.479857] ? __pfx_kthread+0x10/0x10 [ 1043.480153] ret_from_fork_asm+0x1b/0x30 [ 1043.480468] [ 1062.414484] ncat (4415) 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__->