make -C tools/testing/selftests TARGETS=net/forwarding TEST_PROGS=tc_actioons.sh TEST_GEN_PROGS="" run_tests make: Entering directory '/home/virtme/testing-4/tools/testing/selftests' make[1]: Entering directory '/home/virtme/testing-4/tools/testing/selftests/net/forwarding' make[1]: Nothing to be done for 'all'. make[1]: Leaving directory '/home/virtme/testing-4/tools/testing/selftests/net/forwarding' make[1]: Entering directory '/home/virtme/testing-4/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 ] # TEST: mirred egress flower redirect (skip_hw) [ OK ] # TEST: mirred egress flower mirror (skip_hw) [ OK ] # TEST: mirred egress matchall mirror (skip_hw) [ OK ] [ 1684.901926][T11212] ping (11212) used greatest stack depth: 23352 bytes left # TEST: mirred_egress_to_ingress (skip_hw) [ OK ] # [ 1689.018137][ C2] [ 1689.018303][ C2] ============================================ [ 1689.018623][ C2] WARNING: possible recursive locking detected [ 1689.018958][ C2] 6.8.0-rc2-virtme #1 Not tainted [ 1689.019231][ C2] -------------------------------------------- [ 1689.019548][ C2] swapper/2/0 is trying to acquire lock: [ 1689.019844][ C2] ffff8880049f9b70 (slock-AF_INET/1){+.-.}-{2:2}, at: tcp_v4_rcv+0x2161/0x29c0 [ 1689.020326][ C2] [ 1689.020326][ C2] but task is already holding lock: [ 1689.020704][ C2] ffff8880049f8e30 (slock-AF_INET/1){+.-.}-{2:2}, at: tcp_v4_rcv+0x2161/0x29c0 [ 1689.021188][ C2] [ 1689.021188][ C2] other info that might help us debug this: [ 1689.021601][ C2] Possible unsafe locking scenario: [ 1689.021601][ C2] [ 1689.021996][ C2] CPU0 [ 1689.022191][ C2] ---- [ 1689.022366][ C2] lock(slock-AF_INET/1); [ 1689.022603][ C2] lock(slock-AF_INET/1); [ 1689.022848][ C2] [ 1689.022848][ C2] *** DEADLOCK *** [ 1689.022848][ C2] [ 1689.023266][ C2] May be due to missing lock nesting notation [ 1689.023266][ C2] [ 1689.023689][ C2] 8 locks held by swapper/2/0: [ 1689.023941][ C2] #0: ffffffffb4f447e0 (rcu_read_lock){....}-{1:2}, at: process_backlog+0x1ed/0x5e0 [ 1689.024437][ C2] #1: ffffffffb4f447e0 (rcu_read_lock){....}-{1:2}, at: ip_local_deliver_finish+0x1f5/0x450 [ 1689.024967][ C2] #2: ffff8880049f8e30 (slock-AF_INET/1){+.-.}-{2:2}, at: tcp_v4_rcv+0x2161/0x29c0 [ 1689.025456][ C2] #3: ffffffffb4f447e0 (rcu_read_lock){....}-{1:2}, at: __ip_queue_xmit+0x65/0x1910 [ 1689.025954][ C2] #4: ffffffffb4f447e0 (rcu_read_lock){....}-{1:2}, at: ip_finish_output2+0x262/0x18e0 [ 1689.026467][ C2] #5: ffffffffb4f44780 (rcu_read_lock_bh){....}-{1:2}, at: __dev_queue_xmit+0x1c1/0x1ca0 [ 1689.026982][ C2] #6: ffffffffb4f447e0 (rcu_read_lock){....}-{1:2}, at: netif_receive_skb_internal+0x84/0x300 [ 1689.027529][ C2] #7: ffffffffb4f447e0 (rcu_read_lock){....}-{1:2}, at: ip_local_deliver_finish+0x1f5/0x450 [ 1689.028060][ C2] [ 1689.028060][ C2] stack backtrace: [ 1689.028371][ C2] CPU: 2 PID: 0 Comm: swapper/2 Not tainted 6.8.0-rc2-virtme #1 [ 1689.028767][ C2] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.16.3-0-ga6ed6b701f0a-prebuilt.qemu.org 04/01/2014 [ 1689.029411][ C2] Call Trace: [ 1689.029587][ C2] [ 1689.029743][ C2] dump_stack_lvl+0x64/0xb0 [ 1689.029991][ C2] validate_chain+0x525/0xa00 [ 1689.030241][ C2] ? __pfx_validate_chain+0x10/0x10 [ 1689.030517][ C2] ? hlock_class+0x4e/0x130 [ 1689.030765][ C2] ? mark_lock+0x38/0x3e0 [ 1689.030993][ C2] __lock_acquire+0xb67/0x1610 [ 1689.031248][ C2] ? lock_downgrade+0xa0/0x110 [ 1689.031509][ C2] ? mark_lock+0x38/0x3e0 [ 1689.031735][ C2] lock_acquire.part.0+0xe5/0x330 [ 1689.032004][ C2] ? tcp_v4_rcv+0x2161/0x29c0 [ 1689.032269][ C2] ? __pfx_lock_acquire.part.0+0x10/0x10 [ 1689.032564][ C2] ? __pfx_sk_filter_trim_cap+0x10/0x10 [ 1689.032855][ C2] ? lock_acquire+0x1c1/0x220 [ 1689.033110][ C2] ? tcp_v4_rcv+0x2161/0x29c0 [ 1689.033357][ C2] _raw_spin_lock_nested+0x33/0x80 [ 1689.033630][ C2] ? tcp_v4_rcv+0x2161/0x29c0 [ 1689.033883][ C2] tcp_v4_rcv+0x2161/0x29c0 [ 1689.034126][ C2] ? __pfx_tcp_v4_rcv+0x10/0x10 [ 1689.034398][ C2] ? __pfx_raw_v4_input+0x10/0x10 [ 1689.034662][ C2] ? __pfx_lock_acquire.part.0+0x10/0x10 [ 1689.034956][ C2] ip_protocol_deliver_rcu+0x93/0x360 [ 1689.035258][ C2] ip_local_deliver_finish+0x2ae/0x450 [ 1689.035544][ C2] ip_local_deliver+0x19d/0x480 [ 1689.035801][ C2] ? __pfx_ip_local_deliver+0x10/0x10 [ 1689.036093][ C2] ? ip_rcv_finish_core.constprop.0+0x522/0x1300 [ 1689.036425][ C2] ip_rcv+0x564/0x740 [ 1689.036637][ C2] ? __pfx_ip_rcv+0x10/0x10 [ 1689.036883][ C2] ? lock_acquire.part.0+0xe5/0x330 [ 1689.037162][ C2] ? netif_receive_skb_internal+0x84/0x300 [ 1689.037467][ C2] ? __pfx_ip_rcv+0x10/0x10 [ 1689.037705][ C2] __netif_receive_skb_one_core+0x166/0x1b0 [ 1689.038022][ C2] ? __pfx___netif_receive_skb_one_core+0x10/0x10 [ 1689.038354][ C2] ? mark_held_locks+0xa5/0xf0 [ 1689.038605][ C2] ? lock_acquire+0x1c1/0x220 [ 1689.038853][ C2] ? netif_receive_skb_internal+0x84/0x300 [ 1689.039168][ C2] netif_receive_skb_internal+0xb0/0x300 [ 1689.039462][ C2] ? __pfx_netif_receive_skb_internal+0x10/0x10 [ 1689.039788][ C2] ? __copy_skb_header+0xaf/0x490 [ 1689.040062][ C2] ? __skb_clone+0x57a/0x760 [ 1689.040304][ C2] netif_receive_skb+0x55/0x280 [ 1689.040556][ C2] tcf_mirred_to_dev+0x444/0xd70 [act_mirred] [ 1689.040894][ C2] ? __pfx_tcf_skbedit_act+0x10/0x10 [act_skbedit] [ 1689.041240][ C2] tcf_mirred_act+0x338/0x780 [act_mirred] [ 1689.041554][ C2] tcf_action_exec.part.0+0x112/0x3d0 [ 1689.041842][ C2] fl_classify+0x4dc/0x650 [cls_flower] [ 1689.042157][ C2] ? __pfx_fl_classify+0x10/0x10 [cls_flower] [ 1689.042478][ C2] ? __pfx_usage_match+0x10/0x10 [ 1689.042739][ C2] ? check_irq_usage+0x27e/0x850 [ 1689.043007][ C2] ? get_stack_info+0x36/0xc0 [ 1689.043264][ C2] ? __pfx_check_irq_usage+0x10/0x10 [ 1689.043550][ C2] ? __bfs+0x247/0x650 [ 1689.043764][ C2] ? __pfx_hlock_conflict+0x10/0x10 [ 1689.044042][ C2] ? __bfs+0x247/0x650 [ 1689.044268][ C2] ? __pfx_usage_match+0x10/0x10 [ 1689.044529][ C2] ? check_path.constprop.0+0x24/0x50 [ 1689.044817][ C2] ? check_noncircular+0x14e/0x3e0 [ 1689.045094][ C2] ? __pfx_check_noncircular+0x10/0x10 [ 1689.045383][ C2] __tcf_classify+0x329/0x7d0 [ 1689.045634][ C2] tcf_classify+0x283/0x930 [ 1689.045881][ C2] ? __pfx_tcf_classify+0x10/0x10 [ 1689.046146][ C2] ? lock_acquire.part.0+0xe5/0x330 [ 1689.046418][ C2] ? __dev_queue_xmit+0x1c1/0x1ca0 [ 1689.046699][ C2] tc_run+0x2e4/0x5d0 [ 1689.046911][ C2] ? __pfx_tc_run+0x10/0x10 [ 1689.047150][ C2] ? lock_acquire+0x1c1/0x220 [ 1689.047405][ C2] ? __dev_queue_xmit+0x1c1/0x1ca0 [ 1689.047673][ C2] ? __dev_queue_xmit+0x1c1/0x1ca0 [ 1689.047944][ C2] __dev_queue_xmit+0x8eb/0x1ca0 [ 1689.048212][ C2] ? mark_lock+0x38/0x3e0 [ 1689.048442][ C2] ? mark_held_locks+0xa5/0xf0 [ 1689.048698][ C2] ? __pfx___dev_queue_xmit+0x10/0x10 [ 1689.048990][ C2] ? neigh_hh_output+0x348/0x590 [ 1689.049267][ C2] ? vrf_ip_local_out+0x781/0x860 [vrf] [ 1689.049567][ C2] ip_finish_output2+0x786/0x18e0 [ 1689.049835][ C2] ? __pfx_ip_finish_output2+0x10/0x10 [ 1689.050128][ C2] ? __ip_finish_output+0x3dd/0x770 [ 1689.050409][ C2] ip_output+0x16b/0x4f0 [ 1689.050632][ C2] ? hlock_class+0x4e/0x130 [ 1689.050872][ C2] ? __pfx_ip_output+0x10/0x10 [ 1689.051133][ C2] ? __pfx_lock_acquire.part.0+0x10/0x10 [ 1689.051431][ C2] ? ip_local_out+0x114/0x3b0 [ 1689.051677][ C2] __ip_queue_xmit+0x672/0x1910 [ 1689.051938][ C2] ? __skb_clone+0x57a/0x760 [ 1689.052193][ C2] __tcp_transmit_skb+0x22b1/0x2d20 [ 1689.052475][ C2] ? __pfx___tcp_transmit_skb+0x10/0x10 [ 1689.052767][ C2] ? tcp_small_queue_check.isra.0+0xe9/0x380 [ 1689.053087][ C2] tcp_write_xmit+0xe42/0x24c0 [ 1689.053339][ C2] ? ipv4_mtu+0x37/0x360 [ 1689.053569][ C2] ? __pfx_tcp_write_xmit+0x10/0x10 [ 1689.053841][ C2] ? __pfx_tcp_current_mss+0x10/0x10 [ 1689.054131][ C2] __tcp_push_pending_frames+0x96/0x320 [ 1689.054418][ C2] tcp_rcv_state_process+0x862/0x21c0 [ 1689.054711][ C2] ? __pfx_tcp_rcv_state_process+0x10/0x10 [ 1689.055021][ C2] ? find_held_lock+0x33/0x120 [ 1689.055273][ C2] ? tcp_v4_rcv+0x2161/0x29c0 [ 1689.055517][ C2] ? hlock_class+0x4e/0x130 [ 1689.055756][ C2] tcp_v4_do_rcv+0x1ac/0x8e0 [ 1689.056005][ C2] ? __pfx_tcp_v4_do_rcv+0x10/0x10 [ 1689.056273][ C2] tcp_v4_rcv+0x2362/0x29c0 [ 1689.056521][ C2] ? __pfx_tcp_v4_rcv+0x10/0x10 [ 1689.056781][ C2] ? __pfx_raw_v4_input+0x10/0x10 [ 1689.057045][ C2] ? __pfx_lock_acquire.part.0+0x10/0x10 [ 1689.057339][ C2] ip_protocol_deliver_rcu+0x93/0x360 [ 1689.057628][ C2] ip_local_deliver_finish+0x2ae/0x450 [ 1689.057916][ C2] ip_local_deliver+0x19d/0x480 [ 1689.058170][ C2] ? __pfx_ip_local_deliver+0x10/0x10 [ 1689.058460][ C2] ? ip_rcv_finish_core.constprop.0+0x522/0x1300 [ 1689.058792][ C2] ip_rcv+0x564/0x740 [ 1689.059002][ C2] ? __pfx_ip_rcv+0x10/0x10 [ 1689.059252][ C2] ? lock_acquire.part.0+0xe5/0x330 [ 1689.059525][ C2] ? process_backlog+0x1ed/0x5e0 [ 1689.059785][ C2] ? __pfx_ip_rcv+0x10/0x10 [ 1689.060032][ C2] __netif_receive_skb_one_core+0x166/0x1b0 [ 1689.060341][ C2] ? __pfx___netif_receive_skb_one_core+0x10/0x10 [ 1689.060672][ C2] ? __pfx_do_raw_spin_trylock+0x10/0x10 [ 1689.060966][ C2] ? lock_acquire+0x1c1/0x220 [ 1689.061219][ C2] ? process_backlog+0x1ed/0x5e0 [ 1689.061488][ C2] process_backlog+0xd3/0x5e0 [ 1689.061737][ C2] __napi_poll.constprop.0+0xa2/0x450 [ 1689.062027][ C2] net_rx_action+0x440/0xb40 [ 1689.062275][ C2] ? __pfx_net_rx_action+0x10/0x10 [ 1689.062546][ C2] ? ktime_get+0x30/0x190 [ 1689.062782][ C2] ? hrtimer_interrupt+0x230/0x770 [ 1689.063050][ C2] ? __pfx_rebalance_domains+0x10/0x10 [ 1689.063337][ C2] ? clockevents_program_event+0x1ea/0x300 [ 1689.063649][ C2] __do_softirq+0x1b9/0x7ff [ 1689.063891][ C2] irq_exit_rcu+0x98/0xc0 [ 1689.064118][ C2] sysvec_apic_timer_interrupt+0x75/0x80 [ 1689.064421][ C2] [ 1689.064576][ C2] [ 1689.064736][ C2] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 1689.065058][ C2] RIP: 0010:default_idle+0xf/0x20 [ 1689.065322][ C2] Code: 4c 01 c7 4c 29 c2 e9 72 ff ff ff 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 f3 0f 1e fa 66 90 0f 00 2d d3 71 41 00 fb f4 c3 cc cc cc cc 66 66 2e 0f 1f 84 00 00 00 00 00 90 90 90 90 90 [ 1689.066316][ C2] RSP: 0018:ffffc9000014fdf8 EFLAGS: 00000242 [ 1689.066632][ C2] RAX: 000000000142623d RBX: 1ffff92000029fc1 RCX: ffffffffb3c499e2 [ 1689.067043][ C2] RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffffffffb16968b6 [ 1689.067467][ C2] RBP: 0000000000000000 R08: 0000000000000001 R09: ffffed1006b7eea4 [ 1689.067875][ C2] R10: ffff888035bf7523 R11: ffff888035bfc348 R12: 0000000000000000 [ 1689.068283][ C2] R13: ffff888001d1a640 R14: dffffc0000000000 R15: 0000000000000000 [ 1689.068706][ C2] ? ct_kernel_exit.constprop.0+0xc2/0xe0 [ 1689.069002][ C2] ? cpuidle_idle_call+0x1f6/0x280 [ 1689.069271][ C2] default_idle_call+0x69/0xa0 [ 1689.069530][ C2] cpuidle_idle_call+0x1f6/0x280 [ 1689.069788][ C2] ? __pfx_cpuidle_idle_call+0x10/0x10 [ 1689.070077][ C2] ? tsc_verify_tsc_adjust+0x65/0x2b0 [ 1689.070367][ C2] do_idle+0xfb/0x160 [ 1689.070579][ C2] cpu_startup_entry+0x55/0x60 [ 1689.070828][ C2] start_secondary+0x21c/0x2b0 [ 1689.071085][ C2] ? __pfx_start_secondary+0x10/0x10 [ 1689.071362][ C2] secondary_startup_64_no_verify+0x16d/0x17b [ 1689.071682][ C2] [ 1712.541095][T11256] ncat (11256) used greatest stack depth: 21056 bytes left [ 1726.202000][ C1] clocksource: Long readout interval, skipping watchdog check: cs_nsec: 1338840629 wd_nsec: 1338840026 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-4/tools/testing/selftests/net/forwarding' make: Leaving directory '/home/virtme/testing-4/tools/testing/selftests' xx__-> echo $? 0 xx__->