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 ] [ 1128.277503] 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 ] [ 1130.772259] tc (22406) used greatest stack depth: 11552 bytes left [ 1132.969130] ping (22549) used greatest stack depth: 11512 bytes left # TEST: mirred_egress_to_ingress (skip_hw) [ OK ] # [ 1137.318001] [ 1137.318134] ============================================ [ 1137.318435] WARNING: possible recursive locking detected [ 1137.318726] 6.8.0-rc1-virtme #1 Not tainted [ 1137.318963] -------------------------------------------- [ 1137.319264] ksoftirqd/2/27 is trying to acquire lock: [ 1137.319543] ffff8d6044008cb0 (slock-AF_INET/1){+.-.}-{2:2}, at: tcp_v4_rcv+0xdb5/0xef0 [ 1137.319970] [ 1137.319970] but task is already holding lock: [ 1137.320301] ffff8d60440080b0 (slock-AF_INET/1){+.-.}-{2:2}, at: tcp_v4_rcv+0xdb5/0xef0 [ 1137.320747] [ 1137.320747] other info that might help us debug this: [ 1137.321180] Possible unsafe locking scenario: [ 1137.321180] [ 1137.321624] CPU0 [ 1137.321768] ---- [ 1137.321915] lock(slock-AF_INET/1); [ 1137.322125] lock(slock-AF_INET/1); [ 1137.322329] [ 1137.322329] *** DEADLOCK *** [ 1137.322329] [ 1137.322653] May be due to missing lock nesting notation [ 1137.322653] [ 1137.323027] 8 locks held by ksoftirqd/2/27: [ 1137.323261] #0: ffffffffaab678c0 (rcu_read_lock){....}-{1:2}, at: process_backlog+0x6f/0x260 [ 1137.323718] #1: ffffffffaab678c0 (rcu_read_lock){....}-{1:2}, at: ip_local_deliver_finish+0x6f/0x180 [ 1137.324220] #2: ffff8d60440080b0 (slock-AF_INET/1){+.-.}-{2:2}, at: tcp_v4_rcv+0xdb5/0xef0 [ 1137.324669] #3: ffffffffaab678c0 (rcu_read_lock){....}-{1:2}, at: __ip_queue_xmit+0x3f/0x6f0 [ 1137.325119] #4: ffffffffaab678c0 (rcu_read_lock){....}-{1:2}, at: ip_finish_output2+0xc6/0xa20 [ 1137.325607] #5: ffffffffaab67880 (rcu_read_lock_bh){....}-{1:2}, at: __dev_queue_xmit+0x6e/0x1180 [ 1137.326080] #6: ffffffffaab678c0 (rcu_read_lock){....}-{1:2}, at: netif_receive_skb+0x58/0x2c0 [ 1137.326548] #7: ffffffffaab678c0 (rcu_read_lock){....}-{1:2}, at: ip_local_deliver_finish+0x6f/0x180 [ 1137.327046] [ 1137.327046] stack backtrace: [ 1137.327304] CPU: 2 PID: 27 Comm: ksoftirqd/2 Not tainted 6.8.0-rc1-virtme #1 [ 1137.327693] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.16.3-0-ga6ed6b701f0a-prebuilt.qemu.org 04/01/2014 [ 1137.328314] Call Trace: [ 1137.328451] [ 1137.328589] dump_stack_lvl+0x4b/0x80 [ 1137.328804] __lock_acquire+0x1215/0x1750 [ 1137.329037] ? sk_filter_trim_cap+0x53/0x360 [ 1137.329279] lock_acquire+0xc1/0x2b0 [ 1137.329479] ? tcp_v4_rcv+0xdb5/0xef0 [ 1137.329696] ? sk_filter_trim_cap+0x11a/0x360 [ 1137.329942] _raw_spin_lock_nested+0x2e/0x40 [ 1137.330179] ? tcp_v4_rcv+0xdb5/0xef0 [ 1137.330419] tcp_v4_rcv+0xdb5/0xef0 [ 1137.330625] ip_protocol_deliver_rcu+0x4b/0x1e0 [ 1137.330883] ip_local_deliver_finish+0xaf/0x180 [ 1137.331125] __netif_receive_skb_one_core+0x8b/0xa0 [ 1137.331427] netif_receive_skb+0x87/0x2c0 [ 1137.331646] tcf_mirred_to_dev+0x1f6/0x410 [act_mirred] [ 1137.331951] tcf_mirred_act+0xee/0x560 [act_mirred] [ 1137.332229] ? tcf_skbedit_act+0x1d6/0x410 [act_skbedit] [ 1137.332526] tcf_action_exec+0xaf/0x230 [ 1137.332749] fl_classify+0x20e/0x260 [cls_flower] [ 1137.333013] ? fl_mask_lookup+0x17e/0x5a0 [cls_flower] [ 1137.333309] ? __pfx_usage_match+0x10/0x10 [ 1137.333535] ? __bfs+0xf6/0x240 [ 1137.333715] ? check_irq_usage+0x19c/0xc40 [ 1137.333960] ? check_path.constprop.0+0x24/0x50 [ 1137.334218] ? check_noncircular+0x81/0x150 [ 1137.334457] ? __lock_acquire+0xa6e/0x1750 [ 1137.334680] tcf_classify+0x17d/0x540 [ 1137.334903] tc_run+0x9f/0x150 [ 1137.335078] __dev_queue_xmit+0x311/0x1180 [ 1137.335309] ? mark_held_locks+0x49/0x80 [ 1137.335539] ip_finish_output2+0x39f/0xa20 [ 1137.335772] ? __ip_queue_xmit+0x1d5/0x6f0 [ 1137.336009] __ip_queue_xmit+0x1d5/0x6f0 [ 1137.336221] __tcp_transmit_skb+0xb65/0xd30 [ 1137.336456] ? mark_held_locks+0x49/0x80 [ 1137.336695] tcp_write_xmit+0x492/0x1400 [ 1137.336923] ? tcp_current_mss+0x195/0x210 [ 1137.337154] __tcp_push_pending_frames+0x36/0xc0 [ 1137.337427] tcp_rcv_state_process+0x4d3/0x11f0 [ 1137.337686] ? tcp_v4_rcv+0xdb5/0xef0 [ 1137.337885] ? tcp_v4_do_rcv+0x64/0x360 [ 1137.338097] tcp_v4_do_rcv+0x64/0x360 [ 1137.338315] tcp_v4_rcv+0xe4f/0xef0 [ 1137.338520] ? process_backlog+0x6f/0x260 [ 1137.338743] ip_protocol_deliver_rcu+0x4b/0x1e0 [ 1137.339014] ip_local_deliver_finish+0xaf/0x180 [ 1137.339261] __netif_receive_skb_one_core+0x8b/0xa0 [ 1137.339533] process_backlog+0x7c/0x260 [ 1137.339757] __napi_poll.constprop.0+0x2a/0x1e0 [ 1137.340012] net_rx_action+0x2be/0x340 [ 1137.340227] __do_softirq+0xcb/0x37a [ 1137.340455] ? __pfx_smpboot_thread_fn+0x10/0x10 [ 1137.340713] run_ksoftirqd+0x2e/0x40 [ 1137.340924] smpboot_thread_fn+0xdc/0x1d0 [ 1137.341150] kthread+0xdd/0x110 [ 1137.341326] ? __pfx_kthread+0x10/0x10 [ 1137.341545] ret_from_fork+0x34/0x50 [ 1137.341750] ? __pfx_kthread+0x10/0x10 [ 1137.341967] ret_from_fork_asm+0x1b/0x30 [ 1137.342191] [ 1153.949079] ncat (22704) 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__->