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 [ 1178.268351] GACT probability NOT on [ 1178.270416] tc (17920) used greatest stack depth: 11920 bytes left # 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 ] [ 1183.257001] tc (18371) used greatest stack depth: 11416 bytes left # TEST: mirred_egress_to_ingress (skip_hw) [ OK ] # [ 1191.524381] [ 1191.524515] ============================================ [ 1191.524798] WARNING: possible recursive locking detected [ 1191.525137] 6.8.0-rc2-virtme #1 Not tainted [ 1191.525429] -------------------------------------------- [ 1191.525717] ksoftirqd/3/32 is trying to acquire lock: [ 1191.525976] ffff8de302ad8cb0 (slock-AF_INET/1){+.-.}-{2:2}, at: tcp_v4_rcv+0xdba/0xf00 [ 1191.526432] [ 1191.526432] but task is already holding lock: [ 1191.526810] ffff8de302ad80b0 (slock-AF_INET/1){+.-.}-{2:2}, at: tcp_v4_rcv+0xdba/0xf00 [ 1191.527268] [ 1191.527268] other info that might help us debug this: [ 1191.527597] Possible unsafe locking scenario: [ 1191.527597] [ 1191.528004] CPU0 [ 1191.528155] ---- [ 1191.528299] lock(slock-AF_INET/1); [ 1191.528506] lock(slock-AF_INET/1); [ 1191.528710] [ 1191.528710] *** DEADLOCK *** [ 1191.528710] [ 1191.529013] May be due to missing lock nesting notation [ 1191.529013] [ 1191.529473] 8 locks held by ksoftirqd/3/32: [ 1191.529704] #0: ffffffffbcd678c0 (rcu_read_lock){....}-{1:2}, at: process_backlog+0x6f/0x260 [ 1191.530144] #1: ffffffffbcd678c0 (rcu_read_lock){....}-{1:2}, at: ip_local_deliver_finish+0x6f/0x180 [ 1191.530728] #2: ffff8de302ad80b0 (slock-AF_INET/1){+.-.}-{2:2}, at: tcp_v4_rcv+0xdba/0xf00 [ 1191.531215] #3: ffffffffbcd678c0 (rcu_read_lock){....}-{1:2}, at: __ip_queue_xmit+0x3f/0x6f0 [ 1191.531668] #4: ffffffffbcd678c0 (rcu_read_lock){....}-{1:2}, at: ip_finish_output2+0xc6/0xa20 [ 1191.532227] #5: ffffffffbcd67880 (rcu_read_lock_bh){....}-{1:2}, at: __dev_queue_xmit+0x6e/0x1180 [ 1191.532694] #6: ffffffffbcd678c0 (rcu_read_lock){....}-{1:2}, at: netif_receive_skb+0x58/0x2c0 [ 1191.533217] #7: ffffffffbcd678c0 (rcu_read_lock){....}-{1:2}, at: ip_local_deliver_finish+0x6f/0x180 [ 1191.533712] [ 1191.533712] stack backtrace: [ 1191.533943] CPU: 3 PID: 32 Comm: ksoftirqd/3 Not tainted 6.8.0-rc2-virtme #1 [ 1191.534339] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.16.3-0-ga6ed6b701f0a-prebuilt.qemu.org 04/01/2014 [ 1191.535001] Call Trace: [ 1191.535141] [ 1191.535294] dump_stack_lvl+0x4b/0x80 [ 1191.535513] __lock_acquire+0x1215/0x1750 [ 1191.535798] ? sk_filter_trim_cap+0x53/0x360 [ 1191.536076] lock_acquire+0xc1/0x2b0 [ 1191.536284] ? tcp_v4_rcv+0xdba/0xf00 [ 1191.536494] ? sk_filter_trim_cap+0x11a/0x360 [ 1191.536730] _raw_spin_lock_nested+0x2e/0x40 [ 1191.536990] ? tcp_v4_rcv+0xdba/0xf00 [ 1191.537277] tcp_v4_rcv+0xdba/0xf00 [ 1191.537478] ip_protocol_deliver_rcu+0x4b/0x1e0 [ 1191.537720] ip_local_deliver_finish+0xaf/0x180 [ 1191.537973] __netif_receive_skb_one_core+0x8b/0xa0 [ 1191.538245] netif_receive_skb+0x87/0x2c0 [ 1191.538567] tcf_mirred_to_dev+0x1f6/0x410 [act_mirred] [ 1191.538844] tcf_mirred_act+0xee/0x560 [act_mirred] [ 1191.539116] ? tcf_skbedit_act+0x1d6/0x410 [act_skbedit] [ 1191.539421] tcf_action_exec+0xac/0x230 [ 1191.539672] fl_classify+0x20e/0x260 [cls_flower] [ 1191.539985] ? fl_mask_lookup+0x17e/0x5a0 [cls_flower] [ 1191.540274] ? __bfs+0xf3/0x240 [ 1191.540444] ? check_irq_usage+0x19c/0xc40 [ 1191.540666] ? check_path.constprop.0+0x24/0x50 [ 1191.540936] ? find_held_lock+0x2b/0x80 [ 1191.541231] ? check_noncircular+0x81/0x150 [ 1191.541470] ? __lock_acquire+0xa6e/0x1750 [ 1191.541689] ? check_noncircular+0x81/0x150 [ 1191.541924] tcf_classify+0x17a/0x540 [ 1191.542126] tc_run+0x9f/0x150 [ 1191.542400] __dev_queue_xmit+0x311/0x1180 [ 1191.542642] ? mark_held_locks+0x49/0x80 [ 1191.542863] ip_finish_output2+0x39f/0xa20 [ 1191.543084] ? __ip_queue_xmit+0x1d5/0x6f0 [ 1191.543334] __ip_queue_xmit+0x1d5/0x6f0 [ 1191.543572] __tcp_transmit_skb+0xb65/0xd30 [ 1191.543854] ? mark_held_locks+0x49/0x80 [ 1191.544075] tcp_write_xmit+0x492/0x1400 [ 1191.544301] __tcp_push_pending_frames+0x36/0xc0 [ 1191.544557] tcp_rcv_state_process+0x4db/0x1230 [ 1191.544811] ? lock_acquire+0xc1/0x2b0 [ 1191.545101] ? tcp_v4_rcv+0xdba/0xf00 [ 1191.545317] ? tcp_v4_do_rcv+0x85/0x3a0 [ 1191.545535] tcp_v4_do_rcv+0x85/0x3a0 [ 1191.545727] tcp_v4_rcv+0xe54/0xf00 [ 1191.545919] ? process_backlog+0x6f/0x260 [ 1191.546171] ip_protocol_deliver_rcu+0x4b/0x1e0 [ 1191.546487] ip_local_deliver_finish+0xaf/0x180 [ 1191.546741] __netif_receive_skb_one_core+0x8b/0xa0 [ 1191.547003] process_backlog+0x7c/0x260 [ 1191.547240] __napi_poll.constprop.0+0x27/0x1e0 [ 1191.547501] net_rx_action+0x2be/0x340 [ 1191.547775] __do_softirq+0xc8/0x37a [ 1191.547979] ? __pfx_smpboot_thread_fn+0x10/0x10 [ 1191.548238] run_ksoftirqd+0x2e/0x40 [ 1191.548443] smpboot_thread_fn+0xd9/0x1d0 [ 1191.548662] kthread+0xda/0x110 [ 1191.548903] ? __pfx_kthread+0x10/0x10 [ 1191.549145] ret_from_fork+0x31/0x50 [ 1191.549362] ? __pfx_kthread+0x10/0x10 [ 1191.549558] ret_from_fork_asm+0x1b/0x30 [ 1191.549771] [ 1212.068509] ncat (18626) used greatest stack depth: 10664 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__->