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.065975] ip (232) used greatest stack depth: 12072 bytes left [ 2.110716] ip (240) used greatest stack depth: 12056 bytes left [ 7.813010] GACT probability NOT on [ 7.815574] tc (316) used greatest stack depth: 11920 bytes left # TEST: gact drop and ok (skip_hw) [ OK ] [ 10.126537] Mirror/redirect action on [ 10.128385] tc (594) used greatest stack depth: 11904 bytes left # TEST: mirred egress flower redirect (skip_hw) [ OK ] # TEST: mirred egress flower mirror (skip_hw) [ OK ] # TEST: mirred egress matchall mirror (skip_hw) [ OK ] [ 12.590762] tc (880) used greatest stack depth: 11720 bytes left [ 14.741700] ping (1028) used greatest stack depth: 11512 bytes left # TEST: mirred_egress_to_ingress (skip_hw) [ OK ] # [ 20.393436] [ 20.393565] ============================================ [ 20.393885] WARNING: possible recursive locking detected [ 20.394188] 6.8.0-rc2-virtme #1 Not tainted [ 20.394443] -------------------------------------------- [ 20.394732] ksoftirqd/0/16 is trying to acquire lock: [ 20.395035] ffff940fc2900cb0 (slock-AF_INET/1){+.-.}-{2:2}, at: tcp_v4_rcv+0xdb5/0xef0 [ 20.395485] [ 20.395485] but task is already holding lock: [ 20.395813] ffff940fc29000b0 (slock-AF_INET/1){+.-.}-{2:2}, at: tcp_v4_rcv+0xdb5/0xef0 [ 20.396255] [ 20.396255] other info that might help us debug this: [ 20.396612] Possible unsafe locking scenario: [ 20.396612] [ 20.396926] CPU0 [ 20.397086] ---- [ 20.397251] lock(slock-AF_INET/1); [ 20.397453] lock(slock-AF_INET/1); [ 20.397650] [ 20.397650] *** DEADLOCK *** [ 20.397650] [ 20.397994] May be due to missing lock nesting notation [ 20.397994] [ 20.398382] 8 locks held by ksoftirqd/0/16: [ 20.398612] #0: ffffffff8bd678c0 (rcu_read_lock){....}-{1:2}, at: process_backlog+0x6f/0x260 [ 20.399098] #1: ffffffff8bd678c0 (rcu_read_lock){....}-{1:2}, at: ip_local_deliver_finish+0x6f/0x180 [ 20.399597] #2: ffff940fc29000b0 (slock-AF_INET/1){+.-.}-{2:2}, at: tcp_v4_rcv+0xdb5/0xef0 [ 20.400069] #3: ffffffff8bd678c0 (rcu_read_lock){....}-{1:2}, at: __ip_queue_xmit+0x3f/0x6f0 [ 20.400536] #4: ffffffff8bd678c0 (rcu_read_lock){....}-{1:2}, at: ip_finish_output2+0xc6/0xa20 [ 20.401001] #5: ffffffff8bd67880 (rcu_read_lock_bh){....}-{1:2}, at: __dev_queue_xmit+0x6e/0x1180 [ 20.401504] #6: ffffffff8bd678c0 (rcu_read_lock){....}-{1:2}, at: netif_receive_skb+0x58/0x2c0 [ 20.401990] #7: ffffffff8bd678c0 (rcu_read_lock){....}-{1:2}, at: ip_local_deliver_finish+0x6f/0x180 [ 20.402489] [ 20.402489] stack backtrace: [ 20.402730] CPU: 0 PID: 16 Comm: ksoftirqd/0 Not tainted 6.8.0-rc2-virtme #1 [ 20.403136] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.16.3-0-ga6ed6b701f0a-prebuilt.qemu.org 04/01/2014 [ 20.403772] Call Trace: [ 20.403916] [ 20.404058] dump_stack_lvl+0x4b/0x80 [ 20.404283] __lock_acquire+0x1215/0x1750 [ 20.404536] ? sk_filter_trim_cap+0x53/0x360 [ 20.404798] lock_acquire+0xc1/0x2b0 [ 20.405016] ? tcp_v4_rcv+0xdb5/0xef0 [ 20.405244] ? sk_filter_trim_cap+0x11a/0x360 [ 20.405485] _raw_spin_lock_nested+0x2e/0x40 [ 20.405757] ? tcp_v4_rcv+0xdb5/0xef0 [ 20.405986] tcp_v4_rcv+0xdb5/0xef0 [ 20.406190] ip_protocol_deliver_rcu+0x4b/0x1e0 [ 20.406492] ip_local_deliver_finish+0xaf/0x180 [ 20.406748] __netif_receive_skb_one_core+0x8b/0xa0 [ 20.407035] netif_receive_skb+0x87/0x2c0 [ 20.407286] tcf_mirred_to_dev+0x1f6/0x410 [act_mirred] [ 20.407595] tcf_mirred_act+0xee/0x560 [act_mirred] [ 20.407871] ? tcf_skbedit_act+0x1d6/0x410 [act_skbedit] [ 20.408180] tcf_action_exec+0xaf/0x230 [ 20.408398] fl_classify+0x20e/0x260 [cls_flower] [ 20.408678] ? fl_mask_lookup+0x17e/0x5a0 [cls_flower] [ 20.408963] ? __pfx_usage_match+0x10/0x10 [ 20.409213] ? __bfs+0xf6/0x240 [ 20.409390] ? check_irq_usage+0x19c/0xc40 [ 20.409614] ? check_path.constprop.0+0x24/0x50 [ 20.409891] ? check_noncircular+0x81/0x150 [ 20.410145] ? lock_release+0xbe/0x270 [ 20.410352] ? __lock_acquire+0xa6e/0x1750 [ 20.410601] tcf_classify+0x17d/0x540 [ 20.410810] tc_run+0x9f/0x150 [ 20.411002] __dev_queue_xmit+0x311/0x1180 [ 20.411231] ? mark_held_locks+0x49/0x80 [ 20.411474] ip_finish_output2+0x39f/0xa20 [ 20.411700] ? __ip_queue_xmit+0x1d5/0x6f0 [ 20.411941] __ip_queue_xmit+0x1d5/0x6f0 [ 20.412183] __tcp_transmit_skb+0xb65/0xd30 [ 20.412422] tcp_write_xmit+0x492/0x1410 [ 20.412667] __tcp_push_pending_frames+0x36/0xc0 [ 20.412945] tcp_rcv_state_process+0x4d3/0x11f0 [ 20.413214] ? tcp_v4_rcv+0xdb5/0xef0 [ 20.413436] ? tcp_v4_do_rcv+0x64/0x360 [ 20.413649] tcp_v4_do_rcv+0x64/0x360 [ 20.413853] tcp_v4_rcv+0xe4f/0xef0 [ 20.414076] ? process_backlog+0x6f/0x260 [ 20.414317] ip_protocol_deliver_rcu+0x4b/0x1e0 [ 20.414576] ip_local_deliver_finish+0xaf/0x180 [ 20.414829] __netif_receive_skb_one_core+0x8b/0xa0 [ 20.415115] process_backlog+0x7c/0x260 [ 20.415357] __napi_poll.constprop.0+0x2a/0x1e0 [ 20.415618] net_rx_action+0x2be/0x340 [ 20.415835] __do_softirq+0xcb/0x37a [ 20.416058] ? __pfx_smpboot_thread_fn+0x10/0x10 [ 20.416327] run_ksoftirqd+0x2e/0x40 [ 20.416530] smpboot_thread_fn+0xdc/0x1d0 [ 20.416780] kthread+0xdd/0x110 [ 20.416974] ? __pfx_kthread+0x10/0x10 [ 20.417182] ret_from_fork+0x34/0x50 [ 20.417402] ? __pfx_kthread+0x10/0x10 [ 20.417613] ret_from_fork_asm+0x1b/0x30 [ 20.417854] [ 40.572097] ncat (1177) 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__->