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 [ 1057.598719] GACT probability NOT on [ 1057.600708] tc (24861) used greatest stack depth: 11920 bytes left # TEST: gact drop and ok (skip_hw) [ OK ] [ 1059.864900] Mirror/redirect action on [ 1059.866840] tc (25130) used greatest stack depth: 11904 bytes left # TEST: mirred egress flower redirect (skip_hw) [ OK ] [ 1061.044014] tc (25268) used greatest stack depth: 11680 bytes left # TEST: mirred egress flower mirror (skip_hw) [ OK ] # TEST: mirred egress matchall mirror (skip_hw) [ OK ] [ 1064.533936] ping (25553) used greatest stack depth: 11512 bytes left # TEST: mirred_egress_to_ingress (skip_hw) [ OK ] # [ 1069.446841] [ 1069.446959] ============================================ [ 1069.447263] WARNING: possible recursive locking detected [ 1069.447573] 6.8.0-rc1-virtme #1 Not tainted [ 1069.447823] -------------------------------------------- [ 1069.448125] ksoftirqd/2/27 is trying to acquire lock: [ 1069.448406] ffff97e605c38cb0 (slock-AF_INET/1){+.-.}-{2:2}, at: tcp_v4_rcv+0xdb5/0xef0 [ 1069.448850] [ 1069.448850] but task is already holding lock: [ 1069.449165] ffff97e605c380b0 (slock-AF_INET/1){+.-.}-{2:2}, at: tcp_v4_rcv+0xdb5/0xef0 [ 1069.449588] [ 1069.449588] other info that might help us debug this: [ 1069.449935] Possible unsafe locking scenario: [ 1069.449935] [ 1069.450270] CPU0 [ 1069.450415] ---- [ 1069.450556] lock(slock-AF_INET/1); [ 1069.450774] lock(slock-AF_INET/1); [ 1069.450968] [ 1069.450968] *** DEADLOCK *** [ 1069.450968] [ 1069.451293] May be due to missing lock nesting notation [ 1069.451293] [ 1069.451668] 8 locks held by ksoftirqd/2/27: [ 1069.451922] #0: ffffffff8d3678c0 (rcu_read_lock){....}-{1:2}, at: process_backlog+0x6f/0x260 [ 1069.452388] #1: ffffffff8d3678c0 (rcu_read_lock){....}-{1:2}, at: ip_local_deliver_finish+0x6f/0x180 [ 1069.452879] #2: ffff97e605c380b0 (slock-AF_INET/1){+.-.}-{2:2}, at: tcp_v4_rcv+0xdb5/0xef0 [ 1069.453320] #3: ffffffff8d3678c0 (rcu_read_lock){....}-{1:2}, at: __ip_queue_xmit+0x3f/0x6f0 [ 1069.453793] #4: ffffffff8d3678c0 (rcu_read_lock){....}-{1:2}, at: ip_finish_output2+0xc6/0xa20 [ 1069.454280] #5: ffffffff8d367880 (rcu_read_lock_bh){....}-{1:2}, at: __dev_queue_xmit+0x6e/0x1180 [ 1069.454768] #6: ffffffff8d3678c0 (rcu_read_lock){....}-{1:2}, at: netif_receive_skb+0x58/0x2c0 [ 1069.455237] #7: ffffffff8d3678c0 (rcu_read_lock){....}-{1:2}, at: ip_local_deliver_finish+0x6f/0x180 [ 1069.455725] [ 1069.455725] stack backtrace: [ 1069.456009] CPU: 2 PID: 27 Comm: ksoftirqd/2 Not tainted 6.8.0-rc1-virtme #1 [ 1069.456406] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.16.3-0-ga6ed6b701f0a-prebuilt.qemu.org 04/01/2014 [ 1069.457025] Call Trace: [ 1069.457176] [ 1069.457311] dump_stack_lvl+0x4b/0x80 [ 1069.457517] __lock_acquire+0x1215/0x1750 [ 1069.457777] ? sk_filter_trim_cap+0x53/0x360 [ 1069.458027] lock_acquire+0xc1/0x2b0 [ 1069.458231] ? tcp_v4_rcv+0xdb5/0xef0 [ 1069.458440] ? sk_filter_trim_cap+0x11a/0x360 [ 1069.458700] _raw_spin_lock_nested+0x2e/0x40 [ 1069.458942] ? tcp_v4_rcv+0xdb5/0xef0 [ 1069.459144] tcp_v4_rcv+0xdb5/0xef0 [ 1069.459365] ip_protocol_deliver_rcu+0x4b/0x1e0 [ 1069.459637] ip_local_deliver_finish+0xaf/0x180 [ 1069.459898] __netif_receive_skb_one_core+0x8b/0xa0 [ 1069.460168] netif_receive_skb+0x87/0x2c0 [ 1069.460392] tcf_mirred_to_dev+0x1f6/0x410 [act_mirred] [ 1069.460694] tcf_mirred_act+0xee/0x560 [act_mirred] [ 1069.460968] ? tcf_skbedit_act+0x1d6/0x410 [act_skbedit] [ 1069.461259] tcf_action_exec+0xaf/0x230 [ 1069.461501] fl_classify+0x20e/0x260 [cls_flower] [ 1069.461768] ? fl_mask_lookup+0x17e/0x5a0 [cls_flower] [ 1069.462089] ? __pfx_usage_match+0x10/0x10 [ 1069.462330] ? __bfs+0xf6/0x240 [ 1069.462514] ? check_irq_usage+0x19c/0xc40 [ 1069.462741] ? ret_from_fork_asm+0x1b/0x30 [ 1069.462997] ? unwind_next_frame+0x67/0x850 [ 1069.463231] ? check_path.constprop.0+0x24/0x50 [ 1069.463480] ? check_noncircular+0x81/0x150 [ 1069.463736] ? __lock_acquire+0xa6e/0x1750 [ 1069.463967] tcf_classify+0x17d/0x540 [ 1069.464177] tc_run+0x9f/0x150 [ 1069.464372] __dev_queue_xmit+0x311/0x1180 [ 1069.464629] ? mark_held_locks+0x49/0x80 [ 1069.464876] ip_finish_output2+0x39f/0xa20 [ 1069.465117] ? __ip_queue_xmit+0x1d5/0x6f0 [ 1069.465354] __ip_queue_xmit+0x1d5/0x6f0 [ 1069.465574] __tcp_transmit_skb+0xb65/0xd30 [ 1069.465825] tcp_write_xmit+0x492/0x1410 [ 1069.466053] __tcp_push_pending_frames+0x36/0xc0 [ 1069.466306] tcp_rcv_state_process+0x4d3/0x11f0 [ 1069.466583] ? tcp_v4_rcv+0xdb5/0xef0 [ 1069.466795] ? tcp_v4_do_rcv+0x64/0x360 [ 1069.467010] tcp_v4_do_rcv+0x64/0x360 [ 1069.467233] tcp_v4_rcv+0xe4f/0xef0 [ 1069.467456] ? process_backlog+0x6f/0x260 [ 1069.467698] ip_protocol_deliver_rcu+0x4b/0x1e0 [ 1069.467960] ip_local_deliver_finish+0xaf/0x180 [ 1069.468212] __netif_receive_skb_one_core+0x8b/0xa0 [ 1069.468482] process_backlog+0x7c/0x260 [ 1069.468713] __napi_poll.constprop.0+0x2a/0x1e0 [ 1069.468969] net_rx_action+0x2be/0x340 [ 1069.469178] __do_softirq+0xcb/0x37a [ 1069.469380] ? __pfx_smpboot_thread_fn+0x10/0x10 [ 1069.469663] run_ksoftirqd+0x2e/0x40 [ 1069.469868] smpboot_thread_fn+0xdc/0x1d0 [ 1069.470095] kthread+0xdd/0x110 [ 1069.470305] ? __pfx_kthread+0x10/0x10 [ 1069.470529] ret_from_fork+0x34/0x50 [ 1069.470736] ? __pfx_kthread+0x10/0x10 [ 1069.470947] ret_from_fork_asm+0x1b/0x30 [ 1069.471197] [ 1101.316804] ncat (25703) 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__->