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 ] [ 1130.886158] 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 ] [ 1133.413355] tc (18447) used greatest stack depth: 11688 bytes left [ 1135.628337] ping (18580) used greatest stack depth: 11512 bytes left # TEST: mirred_egress_to_ingress (skip_hw) [ OK ] [ 1136.832298] tc (18708) used greatest stack depth: 11432 bytes left # [ 1139.661870] [ 1139.661999] ============================================ [ 1139.662291] WARNING: possible recursive locking detected [ 1139.662568] 6.8.0-rc2-virtme #1 Not tainted [ 1139.662794] -------------------------------------------- [ 1139.663083] ksoftirqd/3/32 is trying to acquire lock: [ 1139.663347] ffff9d83438e0cb0 (slock-AF_INET/1){+.-.}-{2:2}, at: tcp_v4_rcv+0xdb5/0xef0 [ 1139.663778] [ 1139.663778] but task is already holding lock: [ 1139.664081] ffff9d83438e00b0 (slock-AF_INET/1){+.-.}-{2:2}, at: tcp_v4_rcv+0xdb5/0xef0 [ 1139.664503] [ 1139.664503] other info that might help us debug this: [ 1139.664862] Possible unsafe locking scenario: [ 1139.664862] [ 1139.665174] CPU0 [ 1139.665314] ---- [ 1139.665464] lock(slock-AF_INET/1); [ 1139.665664] lock(slock-AF_INET/1); [ 1139.665869] [ 1139.665869] *** DEADLOCK *** [ 1139.665869] [ 1139.666179] May be due to missing lock nesting notation [ 1139.666179] [ 1139.666534] 8 locks held by ksoftirqd/3/32: [ 1139.666773] #0: ffffffffba9678c0 (rcu_read_lock){....}-{1:2}, at: process_backlog+0x6f/0x260 [ 1139.667218] #1: ffffffffba9678c0 (rcu_read_lock){....}-{1:2}, at: ip_local_deliver_finish+0x6f/0x180 [ 1139.667700] #2: ffff9d83438e00b0 (slock-AF_INET/1){+.-.}-{2:2}, at: tcp_v4_rcv+0xdb5/0xef0 [ 1139.668139] #3: ffffffffba9678c0 (rcu_read_lock){....}-{1:2}, at: __ip_queue_xmit+0x3f/0x6f0 [ 1139.668580] #4: ffffffffba9678c0 (rcu_read_lock){....}-{1:2}, at: ip_finish_output2+0xc6/0xa20 [ 1139.669030] #5: ffffffffba967880 (rcu_read_lock_bh){....}-{1:2}, at: __dev_queue_xmit+0x6e/0x1180 [ 1139.669502] #6: ffffffffba9678c0 (rcu_read_lock){....}-{1:2}, at: netif_receive_skb+0x58/0x2c0 [ 1139.669969] #7: ffffffffba9678c0 (rcu_read_lock){....}-{1:2}, at: ip_local_deliver_finish+0x6f/0x180 [ 1139.670461] [ 1139.670461] stack backtrace: [ 1139.670701] CPU: 3 PID: 32 Comm: ksoftirqd/3 Not tainted 6.8.0-rc2-virtme #1 [ 1139.671075] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.16.3-0-ga6ed6b701f0a-prebuilt.qemu.org 04/01/2014 [ 1139.671680] Call Trace: [ 1139.671822] [ 1139.671955] dump_stack_lvl+0x4b/0x80 [ 1139.672157] __lock_acquire+0x1215/0x1750 [ 1139.672387] ? sk_filter_trim_cap+0x53/0x360 [ 1139.672624] lock_acquire+0xc1/0x2b0 [ 1139.672832] ? tcp_v4_rcv+0xdb5/0xef0 [ 1139.673029] ? sk_filter_trim_cap+0x11a/0x360 [ 1139.673266] _raw_spin_lock_nested+0x2e/0x40 [ 1139.673506] ? tcp_v4_rcv+0xdb5/0xef0 [ 1139.673708] tcp_v4_rcv+0xdb5/0xef0 [ 1139.673910] ip_protocol_deliver_rcu+0x4b/0x1e0 [ 1139.674152] ip_local_deliver_finish+0xaf/0x180 [ 1139.674396] __netif_receive_skb_one_core+0x8b/0xa0 [ 1139.674671] netif_receive_skb+0x87/0x2c0 [ 1139.674891] tcf_mirred_to_dev+0x1f6/0x410 [act_mirred] [ 1139.675174] tcf_mirred_act+0xee/0x560 [act_mirred] [ 1139.675438] ? tcf_skbedit_act+0x1d6/0x410 [act_skbedit] [ 1139.675728] tcf_action_exec+0xac/0x230 [ 1139.675940] fl_classify+0x20e/0x260 [cls_flower] [ 1139.676200] ? fl_mask_lookup+0x17e/0x5a0 [cls_flower] [ 1139.676473] ? __bfs+0xf3/0x240 [ 1139.676658] ? check_irq_usage+0x19c/0xc40 [ 1139.676881] ? check_path.constprop.0+0x24/0x50 [ 1139.677133] ? check_noncircular+0x81/0x150 [ 1139.677360] ? __lock_acquire+0xa6e/0x1750 [ 1139.677590] tcf_classify+0x17a/0x540 [ 1139.677792] tc_run+0x9f/0x150 [ 1139.677971] __dev_queue_xmit+0x311/0x1180 [ 1139.678195] ? mark_held_locks+0x49/0x80 [ 1139.678417] ip_finish_output2+0x39f/0xa20 [ 1139.678643] ? __ip_queue_xmit+0x1d5/0x6f0 [ 1139.678874] __ip_queue_xmit+0x1d5/0x6f0 [ 1139.679082] __tcp_transmit_skb+0xb65/0xd30 [ 1139.679305] ? mark_held_locks+0x49/0x80 [ 1139.679528] tcp_write_xmit+0x492/0x1400 [ 1139.679750] __tcp_push_pending_frames+0x36/0xc0 [ 1139.680006] tcp_rcv_state_process+0x4d3/0x11f0 [ 1139.680250] ? tcp_v4_rcv+0xdb5/0xef0 [ 1139.680457] ? tcp_v4_do_rcv+0x64/0x360 [ 1139.680678] tcp_v4_do_rcv+0x64/0x360 [ 1139.680891] tcp_v4_rcv+0xe4f/0xef0 [ 1139.681079] ? process_backlog+0x6f/0x260 [ 1139.681295] ip_protocol_deliver_rcu+0x4b/0x1e0 [ 1139.681551] ip_local_deliver_finish+0xaf/0x180 [ 1139.681794] __netif_receive_skb_one_core+0x8b/0xa0 [ 1139.682061] process_backlog+0x7c/0x260 [ 1139.682278] __napi_poll.constprop.0+0x27/0x1e0 [ 1139.682532] net_rx_action+0x2be/0x340 [ 1139.682738] __do_softirq+0xc8/0x37a [ 1139.682942] ? __pfx_smpboot_thread_fn+0x10/0x10 [ 1139.683195] run_ksoftirqd+0x2e/0x40 [ 1139.683399] smpboot_thread_fn+0xd9/0x1d0 [ 1139.683618] kthread+0xda/0x110 [ 1139.683799] ? __pfx_kthread+0x10/0x10 [ 1139.683998] ret_from_fork+0x31/0x50 [ 1139.684194] ? __pfx_kthread+0x10/0x10 [ 1139.684407] ret_from_fork_asm+0x1b/0x30 [ 1139.684624] [ 1176.069680] ncat (18714) used greatest stack depth: 10680 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__->