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 0 # 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 ] [ 2043.064944][T18902] tc (18902) used greatest stack depth: 23208 bytes left # TEST: mirred_egress_to_ingress (skip_hw) [ OK ] # [ 2053.278899][ C3] [ 2053.279056][ C3] ============================================ [ 2053.279378][ C3] WARNING: possible recursive locking detected [ 2053.279707][ C3] 6.8.0-rc1-virtme #1 Not tainted [ 2053.279974][ C3] -------------------------------------------- [ 2053.280295][ C3] perl/18663 is trying to acquire lock: [ 2053.280592][ C3] ffff888006b81b70 (slock-AF_INET/1){+.-.}-{2:2}, at: tcp_v4_rcv+0x2159/0x29b0 [ 2053.281083][ C3] [ 2053.281083][ C3] but task is already holding lock: [ 2053.281467][ C3] ffff888006b80e30 (slock-AF_INET/1){+.-.}-{2:2}, at: tcp_v4_rcv+0x2159/0x29b0 [ 2053.281945][ C3] [ 2053.281945][ C3] other info that might help us debug this: [ 2053.282368][ C3] Possible unsafe locking scenario: [ 2053.282368][ C3] [ 2053.282760][ C3] CPU0 [ 2053.282942][ C3] ---- [ 2053.283119][ C3] lock(slock-AF_INET/1); [ 2053.283359][ C3] lock(slock-AF_INET/1); [ 2053.283594][ C3] [ 2053.283594][ C3] *** DEADLOCK *** [ 2053.283594][ C3] [ 2053.284027][ C3] May be due to missing lock nesting notation [ 2053.284027][ C3] [ 2053.284461][ C3] 12 locks held by perl/18663: [ 2053.284717][ C3] #0: ffff8880063d50a8 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x28/0x80 [ 2053.285231][ C3] #1: ffff8880063d5148 (&tty->atomic_write_lock){+.+.}-{3:3}, at: iterate_tty_write+0x95/0x540 [ 2053.285776][ C3] #2: ffff8880063d5330 (&tty->termios_rwsem){++++}-{3:3}, at: n_tty_write+0x18f/0x7a0 [ 2053.286294][ C3] #3: ffffc90000053398 (&ldata->output_lock){+.+.}-{3:3}, at: process_output_block+0x5e/0x790 [ 2053.286839][ C3] #4: ffffffff92b447e0 (rcu_read_lock){....}-{1:2}, at: process_backlog+0x1ed/0x5e0 [ 2053.287343][ C3] #5: ffffffff92b447e0 (rcu_read_lock){....}-{1:2}, at: ip_local_deliver_finish+0x1f5/0x450 [ 2053.287880][ C3] #6: ffff888006b80e30 (slock-AF_INET/1){+.-.}-{2:2}, at: tcp_v4_rcv+0x2159/0x29b0 [ 2053.288382][ C3] #7: ffffffff92b447e0 (rcu_read_lock){....}-{1:2}, at: __ip_queue_xmit+0x65/0x1910 [ 2053.288886][ C3] #8: ffffffff92b447e0 (rcu_read_lock){....}-{1:2}, at: ip_finish_output2+0x262/0x18e0 [ 2053.289400][ C3] #9: ffffffff92b44780 (rcu_read_lock_bh){....}-{1:2}, at: __dev_queue_xmit+0x1c1/0x1ca0 [ 2053.289920][ C3] #10: ffffffff92b447e0 (rcu_read_lock){....}-{1:2}, at: netif_receive_skb_internal+0x84/0x300 [ 2053.290466][ C3] #11: ffffffff92b447e0 (rcu_read_lock){....}-{1:2}, at: ip_local_deliver_finish+0x1f5/0x450 [ 2053.291001][ C3] [ 2053.291001][ C3] stack backtrace: [ 2053.291312][ C3] CPU: 3 PID: 18663 Comm: perl Not tainted 6.8.0-rc1-virtme #1 [ 2053.291709][ C3] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.16.3-0-ga6ed6b701f0a-prebuilt.qemu.org 04/01/2014 [ 2053.292348][ C3] Call Trace: [ 2053.292527][ C3] [ 2053.292685][ C3] dump_stack_lvl+0x64/0xb0 [ 2053.292929][ C3] validate_chain+0x525/0xa00 [ 2053.293185][ C3] ? __pfx_validate_chain+0x10/0x10 [ 2053.293463][ C3] ? hlock_class+0x4e/0x130 [ 2053.293703][ C3] ? mark_lock+0x38/0x3e0 [ 2053.293933][ C3] __lock_acquire+0xb67/0x1610 [ 2053.294184][ C3] ? lock_downgrade+0x90/0x110 [ 2053.294439][ C3] ? mark_lock+0x38/0x3e0 [ 2053.294668][ C3] lock_acquire.part.0+0xe5/0x330 [ 2053.294934][ C3] ? tcp_v4_rcv+0x2159/0x29b0 [ 2053.295184][ C3] ? __pfx_lock_acquire.part.0+0x10/0x10 [ 2053.295482][ C3] ? __pfx_sk_filter_trim_cap+0x10/0x10 [ 2053.295778][ C3] ? lock_acquire+0x1c1/0x220 [ 2053.296038][ C3] ? tcp_v4_rcv+0x2159/0x29b0 [ 2053.296288][ C3] _raw_spin_lock_nested+0x33/0x80 [ 2053.296560][ C3] ? tcp_v4_rcv+0x2159/0x29b0 [ 2053.296813][ C3] tcp_v4_rcv+0x2159/0x29b0 [ 2053.297063][ C3] ? __pfx_tcp_v4_rcv+0x10/0x10 [ 2053.297328][ C3] ? __pfx_raw_v4_input+0x10/0x10 [ 2053.297598][ C3] ? __pfx_lock_acquire.part.0+0x10/0x10 [ 2053.297900][ C3] ip_protocol_deliver_rcu+0x93/0x360 [ 2053.298189][ C3] ip_local_deliver_finish+0x2ae/0x450 [ 2053.298479][ C3] ip_local_deliver+0x19d/0x480 [ 2053.298742][ C3] ? __pfx_ip_local_deliver+0x10/0x10 [ 2053.299030][ C3] ? ip_rcv_finish_core.constprop.0+0x522/0x1300 [ 2053.299372][ C3] ip_rcv+0x564/0x740 [ 2053.299582][ C3] ? __pfx_ip_rcv+0x10/0x10 [ 2053.299822][ C3] ? lock_acquire.part.0+0xe5/0x330 [ 2053.300095][ C3] ? netif_receive_skb_internal+0x84/0x300 [ 2053.300404][ C3] ? __pfx_ip_rcv+0x10/0x10 [ 2053.300647][ C3] __netif_receive_skb_one_core+0x166/0x1b0 [ 2053.300962][ C3] ? __pfx___netif_receive_skb_one_core+0x10/0x10 [ 2053.301304][ C3] ? mark_held_locks+0xa5/0xf0 [ 2053.301561][ C3] ? lock_acquire+0x1c1/0x220 [ 2053.301810][ C3] ? netif_receive_skb_internal+0x84/0x300 [ 2053.302115][ C3] netif_receive_skb_internal+0xb0/0x300 [ 2053.302414][ C3] ? __pfx_netif_receive_skb_internal+0x10/0x10 [ 2053.302744][ C3] ? __copy_skb_header+0xaf/0x490 [ 2053.303012][ C3] ? __skb_clone+0x57a/0x760 [ 2053.303255][ C3] netif_receive_skb+0x55/0x280 [ 2053.303548][ C3] tcf_mirred_to_dev+0x444/0xd70 [act_mirred] [ 2053.303879][ C3] ? __pfx_tcf_skbedit_act+0x10/0x10 [act_skbedit] [ 2053.304227][ C3] tcf_mirred_act+0x338/0x780 [act_mirred] [ 2053.304541][ C3] tcf_action_exec.part.0+0x115/0x3d0 [ 2053.304833][ C3] fl_classify+0x4dc/0x650 [cls_flower] [ 2053.305146][ C3] ? __pfx_fl_classify+0x10/0x10 [cls_flower] [ 2053.305473][ C3] ? __pfx_usage_match+0x10/0x10 [ 2053.305741][ C3] ? check_irq_usage+0x27e/0x850 [ 2053.306011][ C3] ? __pfx_check_irq_usage+0x10/0x10 [ 2053.306289][ C3] ? __bfs+0x24a/0x650 [ 2053.306505][ C3] ? __pfx_hlock_conflict+0x10/0x10 [ 2053.306779][ C3] ? mark_lock+0x38/0x3e0 [ 2053.307009][ C3] ? check_path.constprop.0+0x24/0x50 [ 2053.307293][ C3] ? check_noncircular+0x14e/0x3e0 [ 2053.307563][ C3] ? hlock_class+0x4e/0x130 [ 2053.307807][ C3] ? __pfx_check_noncircular+0x10/0x10 [ 2053.308098][ C3] ? validate_chain+0x130/0xa00 [ 2053.308357][ C3] __tcf_classify+0x32c/0x7d0 [ 2053.308607][ C3] tcf_classify+0x283/0x930 [ 2053.308847][ C3] ? __pfx_tcf_classify+0x10/0x10 [ 2053.309112][ C3] ? lock_acquire.part.0+0xe5/0x330 [ 2053.309387][ C3] ? __dev_queue_xmit+0x1c1/0x1ca0 [ 2053.309658][ C3] tc_run+0x2e4/0x5d0 [ 2053.309875][ C3] ? __pfx_tc_run+0x10/0x10 [ 2053.310119][ C3] ? lock_acquire+0x1c1/0x220 [ 2053.310369][ C3] ? __dev_queue_xmit+0x1c1/0x1ca0 [ 2053.310643][ C3] ? __dev_queue_xmit+0x1c1/0x1ca0 [ 2053.310920][ C3] __dev_queue_xmit+0x8eb/0x1ca0 [ 2053.311188][ C3] ? mark_lock+0x38/0x3e0 [ 2053.311417][ C3] ? mark_held_locks+0xa5/0xf0 [ 2053.311671][ C3] ? __pfx___dev_queue_xmit+0x10/0x10 [ 2053.311963][ C3] ? neigh_hh_output+0x348/0x590 [ 2053.312229][ C3] ? vrf_ip_local_out+0x781/0x860 [vrf] [ 2053.312533][ C3] ip_finish_output2+0x786/0x18e0 [ 2053.312801][ C3] ? __pfx_ip_finish_output2+0x10/0x10 [ 2053.313092][ C3] ? __ip_finish_output+0x3dd/0x770 [ 2053.313371][ C3] ip_output+0x16b/0x4f0 [ 2053.313601][ C3] ? __pfx_ip_output+0x10/0x10 [ 2053.313853][ C3] ? __pfx_lock_acquire.part.0+0x10/0x10 [ 2053.314154][ C3] ? ip_local_out+0x114/0x3b0 [ 2053.314404][ C3] __ip_queue_xmit+0x672/0x1910 [ 2053.314663][ C3] ? __skb_clone+0x57a/0x760 [ 2053.314910][ C3] __tcp_transmit_skb+0x22b1/0x2d20 [ 2053.315193][ C3] ? __pfx___tcp_transmit_skb+0x10/0x10 [ 2053.315492][ C3] ? tcp_small_queue_check.isra.0+0xe9/0x380 [ 2053.315810][ C3] tcp_write_xmit+0xe42/0x24c0 [ 2053.316068][ C3] ? ipv4_mtu+0x37/0x360 [ 2053.316295][ C3] ? __pfx_tcp_write_xmit+0x10/0x10 [ 2053.316573][ C3] ? __pfx_tcp_current_mss+0x10/0x10 [ 2053.316858][ C3] __tcp_push_pending_frames+0x96/0x320 [ 2053.317152][ C3] tcp_rcv_state_process+0x81e/0x1fd0 [ 2053.317436][ C3] ? tcp_v4_rcv+0x2159/0x29b0 [ 2053.317686][ C3] ? hlock_class+0x4e/0x130 [ 2053.317927][ C3] ? __lock_acquired+0x18a/0x6b0 [ 2053.318188][ C3] ? __pfx_tcp_rcv_state_process+0x10/0x10 [ 2053.318498][ C3] ? __pfx___lock_acquired+0x10/0x10 [ 2053.318775][ C3] ? __pfx_do_raw_spin_trylock+0x10/0x10 [ 2053.319077][ C3] tcp_v4_do_rcv+0x154/0x850 [ 2053.319321][ C3] tcp_v4_rcv+0x235a/0x29b0 [ 2053.319569][ C3] ? __pfx_tcp_v4_rcv+0x10/0x10 [ 2053.319828][ C3] ? __pfx_raw_v4_input+0x10/0x10 [ 2053.320099][ C3] ? __pfx_lock_acquire.part.0+0x10/0x10 [ 2053.320399][ C3] ip_protocol_deliver_rcu+0x93/0x360 [ 2053.320682][ C3] ip_local_deliver_finish+0x2ae/0x450 [ 2053.320970][ C3] ip_local_deliver+0x19d/0x480 [ 2053.321233][ C3] ? __pfx_ip_local_deliver+0x10/0x10 [ 2053.321522][ C3] ? ip_rcv_finish_core.constprop.0+0x522/0x1300 [ 2053.321858][ C3] ip_rcv+0x564/0x740 [ 2053.322072][ C3] ? __pfx_ip_rcv+0x10/0x10 [ 2053.322314][ C3] ? lock_acquire.part.0+0xe5/0x330 [ 2053.322588][ C3] ? process_backlog+0x1ed/0x5e0 [ 2053.322850][ C3] ? __pfx_ip_rcv+0x10/0x10 [ 2053.323098][ C3] __netif_receive_skb_one_core+0x166/0x1b0 [ 2053.323412][ C3] ? __pfx___netif_receive_skb_one_core+0x10/0x10 [ 2053.323754][ C3] ? lock_acquire+0x1c1/0x220 [ 2053.324007][ C3] ? process_backlog+0x1ed/0x5e0 [ 2053.324273][ C3] process_backlog+0xd3/0x5e0 [ 2053.324527][ C3] __napi_poll.constprop.0+0xa5/0x450 [ 2053.324812][ C3] net_rx_action+0x440/0xb40 [ 2053.325060][ C3] ? __pfx_net_rx_action+0x10/0x10 [ 2053.325332][ C3] ? lockdep_unlock+0x210/0x230 [ 2053.325590][ C3] ? mark_held_locks+0xa5/0xf0 [ 2053.325847][ C3] __do_softirq+0x1bc/0x7ff [ 2053.326097][ C3] irq_exit_rcu+0x98/0xc0 [ 2053.326327][ C3] sysvec_apic_timer_interrupt+0x75/0x80 [ 2053.326624][ C3] [ 2053.326787][ C3] [ 2053.326947][ C3] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 2053.327270][ C3] RIP: 0010:_raw_spin_unlock_irqrestore+0x43/0x70 [ 2053.327608][ C3] Code: 10 e8 b1 bc a6 fd 48 89 ef e8 c9 44 a7 fd 81 e3 00 02 00 00 75 1d 9c 58 f6 c4 02 75 29 48 85 db 74 01 fb 65 ff 0d 35 38 98 6e <74> 0e 5b 5d c3 cc cc cc cc e8 cf 4b c9 fd eb dc 0f 1f 44 00 00 5b [ 2053.328618][ C3] RSP: 0018:ffffc900011bfab8 EFLAGS: 00000286 [ 2053.328937][ C3] RAX: 0000000000000006 RBX: 0000000000000200 RCX: 1ffffffff2991173 [ 2053.329352][ C3] RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffffffff91877ea1 [ 2053.329766][ C3] RBP: ffffffff95623940 R08: 0000000000000001 R09: fffffbfff298ac84 [ 2053.330180][ C3] R10: ffffffff94c56427 R11: ffffffff91eae048 R12: 00000000ffffffff [ 2053.330601][ C3] R13: ffffffff95623a50 R14: ffffc90000053328 R15: ffff8880063d5000 [ 2053.331018][ C3] ? _raw_spin_unlock_irqrestore+0x51/0x70 [ 2053.331327][ C3] uart_write_room+0x14d/0x2f0 [ 2053.331585][ C3] process_output_block+0x66/0x790 [ 2053.331858][ C3] ? lockdep_hardirqs_on_prepare.part.0+0x1b1/0x370 [ 2053.332211][ C3] n_tty_write+0x414/0x7a0 [ 2053.332453][ C3] ? __pfx_n_tty_write+0x10/0x10 [ 2053.332715][ C3] ? __pfx_woken_wake_function+0x10/0x10 [ 2053.333016][ C3] ? lock_acquire+0x1c1/0x220 [ 2053.333261][ C3] ? iterate_tty_write+0x95/0x540 [ 2053.333527][ C3] iterate_tty_write+0x22c/0x540 [ 2053.333801][ C3] file_tty_write.constprop.0+0x1db/0x370 [ 2053.334111][ C3] vfs_write+0x9ec/0x10a0 [ 2053.334344][ C3] ? __pfx___lock_release+0x10/0x10 [ 2053.334622][ C3] ? __pfx_lock_acquire.part.0+0x10/0x10 [ 2053.334922][ C3] ? __pfx_vfs_write+0x10/0x10 [ 2053.335177][ C3] ? clockevents_program_event+0xf6/0x300 [ 2053.335487][ C3] ? kvm_clock_get_cycles+0x18/0x30 [ 2053.335767][ C3] ? __fget_light+0x54/0x1e0 [ 2053.336024][ C3] ? __pfx_lapic_next_deadline+0x10/0x10 [ 2053.336327][ C3] ksys_write+0xf5/0x1e0 [ 2053.336554][ C3] ? __pfx_ksys_write+0x10/0x10 [ 2053.336816][ C3] do_syscall_64+0xcc/0x1e0 [ 2053.337063][ C3] entry_SYSCALL_64_after_hwframe+0x6f/0x77 [ 2053.337377][ C3] RIP: 0033:0x7efe2297b957 [ 2053.337618][ C3] Code: 0b 00 f7 d8 64 89 02 48 c7 c0 ff ff ff ff eb b7 0f 1f 00 f3 0f 1e fa 64 8b 04 25 18 00 00 00 85 c0 75 10 b8 01 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 51 c3 48 83 ec 28 48 89 54 24 18 48 89 74 24 [ 2053.338627][ C3] RSP: 002b:00007ffcf9b26b28 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 [ 2053.339068][ C3] RAX: ffffffffffffffda RBX: 0000562ac0737ea0 RCX: 00007efe2297b957 [ 2053.339488][ C3] RDX: 0000000000000001 RSI: 0000562ac0737ea0 RDI: 0000000000000001 [ 2053.339906][ C3] RBP: 0000000000000001 R08: 0000000000000000 R09: 0000000000002000 [ 2053.340326][ C3] R10: 0000000000000001 R11: 0000000000000246 R12: 0000562ac0724510 [ 2053.340747][ C3] R13: 0000562ac07052a0 R14: 0000000000000001 R15: 0000562ac0724510 [ 2053.341168][ C3] [ 2076.941797][T18994] ncat (18994) used greatest stack depth: 20976 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__->