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 ] [ 4005.831008][T13592] ping (13592) used greatest stack depth: 23352 bytes left # TEST: mirred_egress_to_ingress (skip_hw) [ OK ] [ 4009.748784][ C1] [ 4009.748942][ C1] ============================================ [ 4009.749246][ C1] WARNING: possible recursive locking detected [ 4009.749552][ C1] 6.8.0-rc2-virtme #1 Not tainted [ 4009.749801][ C1] -------------------------------------------- [ 4009.750104][ C1] ncat/13635 is trying to acquire lock: [ 4009.750375][ C1] ffff888008f08e30 (slock-AF_INET/1){+.-.}-{2:2}, at: tcp_v4_rcv+0x2161/0x29c0 [ 4009.750834][ C1] [ 4009.750834][ C1] but task is already holding lock: [ 4009.751204][ C1] ffff888008f09b70 (slock-AF_INET/1){+.-.}-{2:2}, at: tcp_v4_rcv+0x2161/0x29c0 [ 4009.751656][ C1] [ 4009.751656][ C1] other info that might help us debug this: [ 4009.752053][ C1] Possible unsafe locking scenario: [ 4009.752053][ C1] [ 4009.752421][ C1] CPU0 [ 4009.752589][ C1] ---- [ 4009.752757][ C1] lock(slock-AF_INET/1); [ 4009.752981][ C1] lock(slock-AF_INET/1); [ 4009.753207][ C1] [ 4009.753207][ C1] *** DEADLOCK *** [ 4009.753207][ C1] [ 4009.753614][ C1] May be due to missing lock nesting notation [ 4009.753614][ C1] [ 4009.754024][ C1] 8 locks held by ncat/13635: [ 4009.754259][ C1] #0: ffffffff8b1447e0 (rcu_read_lock){....}-{1:2}, at: process_backlog+0x1ed/0x5e0 [ 4009.754735][ C1] #1: ffffffff8b1447e0 (rcu_read_lock){....}-{1:2}, at: ip_local_deliver_finish+0x1f5/0x450 [ 4009.755245][ C1] #2: ffff888008f09b70 (slock-AF_INET/1){+.-.}-{2:2}, at: tcp_v4_rcv+0x2161/0x29c0 [ 4009.755714][ C1] #3: ffffffff8b1447e0 (rcu_read_lock){....}-{1:2}, at: __ip_queue_xmit+0x65/0x1910 [ 4009.756188][ C1] #4: ffffffff8b1447e0 (rcu_read_lock){....}-{1:2}, at: ip_finish_output2+0x262/0x18e0 [ 4009.756672][ C1] #5: ffffffff8b144780 (rcu_read_lock_bh){....}-{1:2}, at: __dev_queue_xmit+0x1c1/0x1ca0 [ 4009.757169][ C1] #6: ffffffff8b1447e0 (rcu_read_lock){....}-{1:2}, at: netif_receive_skb_internal+0x84/0x300 [ 4009.757684][ C1] #7: ffffffff8b1447e0 (rcu_read_lock){....}-{1:2}, at: ip_local_deliver_finish+0x1f5/0x450 [ 4009.758191][ C1] [ 4009.758191][ C1] stack backtrace: [ 4009.758486][ C1] CPU: 1 PID: 13635 Comm: ncat Not tainted 6.8.0-rc2-virtme #1 [ 4009.758862][ C1] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.16.3-0-ga6ed6b701f0a-prebuilt.qemu.org 04/01/2014 [ 4009.759469][ C1] Call Trace: [ 4009.759636][ C1] [ 4009.759781][ C1] dump_stack_lvl+0x64/0xb0 [ 4009.760014][ C1] validate_chain+0x525/0xa00 [ 4009.760255][ C1] ? __pfx_validate_chain+0x10/0x10 [ 4009.760516][ C1] ? hlock_class+0x4e/0x130 [ 4009.760745][ C1] ? mark_lock+0x38/0x3e0 [ 4009.760975][ C1] __lock_acquire+0xb67/0x1610 [ 4009.761216][ C1] ? lock_downgrade+0xa0/0x110 [ 4009.761455][ C1] ? mark_lock+0x38/0x3e0 [ 4009.761675][ C1] lock_acquire.part.0+0xe5/0x330 [ 4009.761928][ C1] ? tcp_v4_rcv+0x2161/0x29c0 [ 4009.762164][ C1] ? __pfx_lock_acquire.part.0+0x10/0x10 [ 4009.762445][ C1] ? __pfx_sk_filter_trim_cap+0x10/0x10 [ 4009.762724][ C1] ? lock_acquire+0x1c1/0x220 [ 4009.762960][ C1] ? tcp_v4_rcv+0x2161/0x29c0 [ 4009.763199][ C1] _raw_spin_lock_nested+0x33/0x80 [ 4009.763459][ C1] ? tcp_v4_rcv+0x2161/0x29c0 [ 4009.763695][ C1] tcp_v4_rcv+0x2161/0x29c0 [ 4009.763924][ C1] ? __pfx_tcp_v4_rcv+0x10/0x10 [ 4009.764168][ C1] ? __pfx_raw_v4_input+0x10/0x10 [ 4009.764420][ C1] ? __pfx_lock_acquire.part.0+0x10/0x10 [ 4009.764702][ C1] ip_protocol_deliver_rcu+0x93/0x360 [ 4009.764972][ C1] ip_local_deliver_finish+0x2ae/0x450 [ 4009.765242][ C1] ip_local_deliver+0x19d/0x480 [ 4009.765486][ C1] ? __pfx_ip_local_deliver+0x10/0x10 [ 4009.765755][ C1] ? ip_rcv_finish_core.constprop.0+0x522/0x1300 [ 4009.766072][ C1] ip_rcv+0x564/0x740 [ 4009.766276][ C1] ? __pfx_ip_rcv+0x10/0x10 [ 4009.766504][ C1] ? lock_acquire.part.0+0xe5/0x330 [ 4009.766763][ C1] ? netif_receive_skb_internal+0x84/0x300 [ 4009.767054][ C1] ? __pfx_ip_rcv+0x10/0x10 [ 4009.767281][ C1] __netif_receive_skb_one_core+0x166/0x1b0 [ 4009.767575][ C1] ? __pfx___netif_receive_skb_one_core+0x10/0x10 [ 4009.767893][ C1] ? mark_held_locks+0xa5/0xf0 [ 4009.768132][ C1] ? lock_acquire+0x1c1/0x220 [ 4009.768368][ C1] ? netif_receive_skb_internal+0x84/0x300 [ 4009.768658][ C1] netif_receive_skb_internal+0xb0/0x300 [ 4009.768938][ C1] ? __pfx_netif_receive_skb_internal+0x10/0x10 [ 4009.769249][ C1] ? __copy_skb_header+0xaf/0x490 [ 4009.769505][ C1] ? __skb_clone+0x57a/0x760 [ 4009.769735][ C1] netif_receive_skb+0x55/0x280 [ 4009.769978][ C1] tcf_mirred_to_dev+0x444/0xd70 [act_mirred] [ 4009.770287][ C1] ? __pfx_tcf_skbedit_act+0x10/0x10 [act_skbedit] [ 4009.770615][ C1] tcf_mirred_act+0x338/0x780 [act_mirred] [ 4009.770909][ C1] tcf_action_exec.part.0+0x112/0x3d0 [ 4009.771190][ C1] fl_classify+0x4dc/0x650 [cls_flower] [ 4009.771480][ C1] ? __pfx_fl_classify+0x10/0x10 [cls_flower] [ 4009.771788][ C1] ? __pfx_usage_match+0x10/0x10 [ 4009.772038][ C1] ? check_irq_usage+0x27e/0x850 [ 4009.772286][ C1] ? __pfx_check_irq_usage+0x10/0x10 [ 4009.772550][ C1] ? __bfs+0x247/0x650 [ 4009.772754][ C1] ? __pfx_hlock_conflict+0x10/0x10 [ 4009.773014][ C1] ? hlock_class+0x4e/0x130 [ 4009.773244][ C1] ? check_path.constprop.0+0x24/0x50 [ 4009.773517][ C1] ? check_noncircular+0x14e/0x3e0 [ 4009.773774][ C1] ? __pfx_check_noncircular+0x10/0x10 [ 4009.774049][ C1] __tcf_classify+0x329/0x7d0 [ 4009.774287][ C1] tcf_classify+0x283/0x930 [ 4009.774517][ C1] ? __pfx_tcf_classify+0x10/0x10 [ 4009.774781][ C1] ? lock_acquire.part.0+0xe5/0x330 [ 4009.775039][ C1] ? __dev_queue_xmit+0x1c1/0x1ca0 [ 4009.775299][ C1] tc_run+0x2e4/0x5d0 [ 4009.775503][ C1] ? __pfx_tc_run+0x10/0x10 [ 4009.775734][ C1] ? lock_acquire+0x1c1/0x220 [ 4009.775968][ C1] ? __dev_queue_xmit+0x1c1/0x1ca0 [ 4009.776226][ C1] __dev_queue_xmit+0x8eb/0x1ca0 [ 4009.776476][ C1] ? hlock_class+0x4e/0x130 [ 4009.776704][ C1] ? mark_lock+0x38/0x3e0 [ 4009.776923][ C1] ? __pfx___dev_queue_xmit+0x10/0x10 [ 4009.777195][ C1] ? lockdep_hardirqs_on_prepare.part.0+0x151/0x370 [ 4009.777523][ C1] ? neigh_hh_output+0x348/0x590 [ 4009.777781][ C1] ip_finish_output2+0x786/0x18e0 [ 4009.778038][ C1] ? __pfx_ip_finish_output2+0x10/0x10 [ 4009.778311][ C1] ? __ip_finish_output+0x10f/0x770 [ 4009.778572][ C1] ip_output+0x16b/0x4f0 [ 4009.778787][ C1] ? __pfx_ip_output+0x10/0x10 [ 4009.779028][ C1] ? __pfx_lock_acquire.part.0+0x10/0x10 [ 4009.779311][ C1] ? ip_local_out+0x114/0x3b0 [ 4009.779550][ C1] __ip_queue_xmit+0x672/0x1910 [ 4009.779796][ C1] ? __create_object+0x5e/0xb0 [ 4009.780040][ C1] __tcp_transmit_skb+0x22b1/0x2d20 [ 4009.780310][ C1] ? __pfx___tcp_transmit_skb+0x10/0x10 [ 4009.780589][ C1] ? __tcp_send_ack.part.0+0x66/0x6e0 [ 4009.780858][ C1] tcp_rcv_state_process+0x8a7/0x21c0 [ 4009.781132][ C1] ? __pfx_tcp_rcv_state_process+0x10/0x10 [ 4009.781423][ C1] ? find_held_lock+0x33/0x120 [ 4009.781667][ C1] ? tcp_v4_rcv+0x2161/0x29c0 [ 4009.781903][ C1] ? hlock_class+0x4e/0x130 [ 4009.782131][ C1] tcp_v4_do_rcv+0x1ac/0x8e0 [ 4009.782364][ C1] ? __pfx_tcp_v4_do_rcv+0x10/0x10 [ 4009.782623][ C1] tcp_v4_rcv+0x2362/0x29c0 [ 4009.782855][ C1] ? __pfx_tcp_v4_rcv+0x10/0x10 [ 4009.783099][ C1] ? __pfx_raw_v4_input+0x10/0x10 [ 4009.783351][ C1] ? __pfx_lock_acquire.part.0+0x10/0x10 [ 4009.783635][ C1] ip_protocol_deliver_rcu+0x93/0x360 [ 4009.783905][ C1] ip_local_deliver_finish+0x2ae/0x450 [ 4009.784179][ C1] ip_local_deliver+0x19d/0x480 [ 4009.784422][ C1] ? __pfx_ip_local_deliver+0x10/0x10 [ 4009.784693][ C1] ? ip_rcv_finish_core.constprop.0+0x522/0x1300 [ 4009.785011][ C1] ip_rcv+0x564/0x740 [ 4009.785213][ C1] ? __pfx_ip_rcv+0x10/0x10 [ 4009.785441][ C1] ? lock_acquire.part.0+0xe5/0x330 [ 4009.785703][ C1] ? process_backlog+0x1ed/0x5e0 [ 4009.785951][ C1] ? __pfx_ip_rcv+0x10/0x10 [ 4009.786179][ C1] __netif_receive_skb_one_core+0x166/0x1b0 [ 4009.786475][ C1] ? __pfx___netif_receive_skb_one_core+0x10/0x10 [ 4009.786795][ C1] ? __pfx_do_raw_spin_trylock+0x10/0x10 [ 4009.787077][ C1] ? lock_acquire+0x1c1/0x220 [ 4009.787314][ C1] ? process_backlog+0x1ed/0x5e0 [ 4009.787563][ C1] process_backlog+0xd3/0x5e0 [ 4009.787801][ C1] __napi_poll.constprop.0+0xa2/0x450 [ 4009.788070][ C1] net_rx_action+0x440/0xb40 [ 4009.788305][ C1] ? __pfx_net_rx_action+0x10/0x10 [ 4009.788561][ C1] ? kvm_clock_get_cycles+0x18/0x30 [ 4009.788824][ C1] ? ktime_get+0xb3/0x190 [ 4009.789043][ C1] ? hrtimer_interrupt+0x30e/0x770 [ 4009.789303][ C1] __do_softirq+0x1b9/0x7ff [ 4009.789533][ C1] ? inet_shutdown+0x1a0/0x390 [ 4009.789777][ C1] do_softirq+0x4d/0xa0 [ 4009.789989][ C1] [ 4009.790137][ C1] [ 4009.790286][ C1] __local_bh_enable_ip+0xf6/0x120 [ 4009.790547][ C1] inet_shutdown+0x1a0/0x390 [ 4009.790779][ C1] __sys_shutdown+0xcb/0x160 [ 4009.791017][ C1] ? __pfx___sys_shutdown+0x10/0x10 [ 4009.791276][ C1] ? ksys_read+0xf5/0x1e0 [ 4009.791497][ C1] ? __pfx_ksys_read+0x10/0x10 [ 4009.791739][ C1] __x64_sys_shutdown+0x53/0x80 [ 4009.791983][ C1] do_syscall_64+0xc9/0x1e0 [ 4009.792214][ C1] entry_SYSCALL_64_after_hwframe+0x6f/0x77 [ 4009.792512][ C1] RIP: 0033:0x7efd3db2fbeb [ 4009.792734][ C1] Code: 73 01 c3 48 8b 0d 15 92 1b 00 f7 d8 64 89 01 48 83 c8 ff c3 66 2e 0f 1f 84 00 00 00 00 00 90 f3 0f 1e fa b8 30 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 8b 0d e5 91 1b 00 f7 d8 64 89 01 48 [ 4009.793691][ C1] RSP: 002b:00007ffd36791c68 EFLAGS: 00000246 ORIG_RAX: 0000000000000030 [ 4009.794107][ C1] RAX: ffffffffffffffda RBX: 0000000000000008 RCX: 00007efd3db2fbeb [ 4009.794499][ C1] RDX: 0000556b53255420 RSI: 0000000000000001 RDI: 0000000000000008 [ 4009.794894][ C1] RBP: 0000000000000008 R08: 0000000000000000 R09: 0000000000000000 [ 4009.795288][ C1] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000008 [ 4009.795681][ C1] R13: 0000000000000000 R14: 0000000000000001 R15: 0000000000000000 [ 4009.796076][ C1] # [ 4033.326293][T13636] ncat (13636) used greatest stack depth: 21248 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-4/tools/testing/selftests/net/forwarding' make: Leaving directory '/home/virtme/testing-4/tools/testing/selftests' xx__-> echo $? 0 xx__->