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 [ 17.505548][ T232] ip (232) used greatest stack depth: 23392 bytes left [ 28.567294][ T328] GACT probability NOT on # TEST: gact drop and ok (skip_hw) [ OK ] [ 32.254821][ T412] 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 ] [ 40.113777][ T557] ping (557) used greatest stack depth: 23352 bytes left # TEST: mirred_egress_to_ingress (skip_hw) [ OK ] # [ 46.610489][ C3] [ 46.610652][ C3] ============================================ [ 46.610990][ C3] WARNING: possible recursive locking detected [ 46.611329][ C3] 6.8.0-rc2-virtme #1 Not tainted [ 46.611602][ C3] -------------------------------------------- [ 46.611940][ C3] ncat/610 is trying to acquire lock: [ 46.612221][ C3] ffff8880069a1b70 (slock-AF_INET/1){+.-.}-{2:2}, at: tcp_v4_rcv+0x2159/0x29b0 [ 46.612717][ C3] [ 46.612717][ C3] but task is already holding lock: [ 46.613121][ C3] ffff8880069a0e30 (slock-AF_INET/1){+.-.}-{2:2}, at: tcp_v4_rcv+0x2159/0x29b0 [ 46.613601][ C3] [ 46.613601][ C3] other info that might help us debug this: [ 46.614028][ C3] Possible unsafe locking scenario: [ 46.614028][ C3] [ 46.614435][ C3] CPU0 [ 46.614618][ C3] ---- [ 46.614799][ C3] lock(slock-AF_INET/1); [ 46.615061][ C3] lock(slock-AF_INET/1); [ 46.615308][ C3] [ 46.615308][ C3] *** DEADLOCK *** [ 46.615308][ C3] [ 46.615740][ C3] May be due to missing lock nesting notation [ 46.615740][ C3] [ 46.616192][ C3] 9 locks held by ncat/610: [ 46.616440][ C3] #0: ffffffffa94115c0 (sched_map-wait-type-override){+.+.}-{2:2}, at: schedule+0x163/0x280 [ 46.617034][ C3] #1: ffffffffa95447e0 (rcu_read_lock){....}-{1:2}, at: process_backlog+0x1ed/0x5e0 [ 46.617549][ C3] #2: ffffffffa95447e0 (rcu_read_lock){....}-{1:2}, at: ip_local_deliver_finish+0x1f5/0x450 [ 46.618088][ C3] #3: ffff8880069a0e30 (slock-AF_INET/1){+.-.}-{2:2}, at: tcp_v4_rcv+0x2159/0x29b0 [ 46.618587][ C3] #4: ffffffffa95447e0 (rcu_read_lock){....}-{1:2}, at: __ip_queue_xmit+0x65/0x1910 [ 46.619085][ C3] #5: ffffffffa95447e0 (rcu_read_lock){....}-{1:2}, at: ip_finish_output2+0x262/0x18e0 [ 46.619606][ C3] #6: ffffffffa9544780 (rcu_read_lock_bh){....}-{1:2}, at: __dev_queue_xmit+0x1c1/0x1ca0 [ 46.620141][ C3] #7: ffffffffa95447e0 (rcu_read_lock){....}-{1:2}, at: netif_receive_skb_internal+0x84/0x300 [ 46.620683][ C3] #8: ffffffffa95447e0 (rcu_read_lock){....}-{1:2}, at: ip_local_deliver_finish+0x1f5/0x450 [ 46.621227][ C3] [ 46.621227][ C3] stack backtrace: [ 46.621540][ C3] CPU: 3 PID: 610 Comm: ncat Not tainted 6.8.0-rc2-virtme #1 [ 46.621934][ C3] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.16.3-0-ga6ed6b701f0a-prebuilt.qemu.org 04/01/2014 [ 46.622597][ C3] Call Trace: [ 46.622790][ C3] [ 46.622957][ C3] dump_stack_lvl+0x64/0xb0 [ 46.623207][ C3] validate_chain+0x525/0xa00 [ 46.623470][ C3] ? __pfx_validate_chain+0x10/0x10 [ 46.623749][ C3] ? hlock_class+0x4e/0x130 [ 46.624005][ C3] ? mark_lock+0x38/0x3e0 [ 46.624256][ C3] __lock_acquire+0xb67/0x1610 [ 46.624518][ C3] ? lock_downgrade+0xa0/0x110 [ 46.624781][ C3] ? mark_lock+0x38/0x3e0 [ 46.625026][ C3] lock_acquire.part.0+0xe5/0x330 [ 46.625302][ C3] ? tcp_v4_rcv+0x2159/0x29b0 [ 46.625565][ C3] ? __pfx_lock_acquire.part.0+0x10/0x10 [ 46.625877][ C3] ? __pfx_sk_filter_trim_cap+0x10/0x10 [ 46.626182][ C3] ? lock_acquire+0x1c1/0x220 [ 46.626441][ C3] ? tcp_v4_rcv+0x2159/0x29b0 [ 46.626704][ C3] _raw_spin_lock_nested+0x33/0x80 [ 46.626992][ C3] ? tcp_v4_rcv+0x2159/0x29b0 [ 46.627247][ C3] tcp_v4_rcv+0x2159/0x29b0 [ 46.627502][ C3] ? __pfx_tcp_v4_rcv+0x10/0x10 [ 46.627758][ C3] ? __pfx_raw_v4_input+0x10/0x10 [ 46.628035][ C3] ? __pfx_lock_acquire.part.0+0x10/0x10 [ 46.628340][ C3] ip_protocol_deliver_rcu+0x93/0x360 [ 46.628645][ C3] ip_local_deliver_finish+0x2ae/0x450 [ 46.628942][ C3] ip_local_deliver+0x19d/0x480 [ 46.629221][ C3] ? __pfx_ip_local_deliver+0x10/0x10 [ 46.629516][ C3] ? ip_rcv_finish_core.constprop.0+0x522/0x1300 [ 46.629856][ C3] ip_rcv+0x564/0x740 [ 46.630085][ C3] ? __pfx_ip_rcv+0x10/0x10 [ 46.630341][ C3] ? lock_acquire.part.0+0xe5/0x330 [ 46.630620][ C3] ? netif_receive_skb_internal+0x84/0x300 [ 46.630949][ C3] ? __pfx_ip_rcv+0x10/0x10 [ 46.631203][ C3] __netif_receive_skb_one_core+0x166/0x1b0 [ 46.631518][ C3] ? __pfx___netif_receive_skb_one_core+0x10/0x10 [ 46.631866][ C3] ? mark_held_locks+0xa5/0xf0 [ 46.632128][ C3] ? lock_acquire+0x1c1/0x220 [ 46.632398][ C3] ? netif_receive_skb_internal+0x84/0x300 [ 46.632709][ C3] netif_receive_skb_internal+0xb0/0x300 [ 46.633016][ C3] ? __pfx_netif_receive_skb_internal+0x10/0x10 [ 46.633353][ C3] ? __copy_skb_header+0xaf/0x490 [ 46.633639][ C3] ? __skb_clone+0x57a/0x760 [ 46.633891][ C3] netif_receive_skb+0x55/0x280 [ 46.634170][ C3] tcf_mirred_to_dev+0x444/0xd70 [act_mirred] [ 46.634519][ C3] ? __pfx_tcf_skbedit_act+0x10/0x10 [act_skbedit] [ 46.634868][ C3] tcf_mirred_act+0x338/0x780 [act_mirred] [ 46.635192][ C3] tcf_action_exec.part.0+0x115/0x3d0 [ 46.635487][ C3] fl_classify+0x4dc/0x650 [cls_flower] [ 46.635795][ C3] ? __pfx_fl_classify+0x10/0x10 [cls_flower] [ 46.636142][ C3] ? __pfx_usage_match+0x10/0x10 [ 46.636412][ C3] ? check_irq_usage+0x27e/0x850 [ 46.636687][ C3] ? __pfx_check_irq_usage+0x10/0x10 [ 46.636974][ C3] ? __bfs+0x24a/0x650 [ 46.637204][ C3] ? __pfx_hlock_conflict+0x10/0x10 [ 46.637494][ C3] ? hlock_class+0x4e/0x130 [ 46.637748][ C3] ? check_path.constprop.0+0x24/0x50 [ 46.638040][ C3] ? check_noncircular+0x14e/0x3e0 [ 46.638323][ C3] ? __pfx_check_noncircular+0x10/0x10 [ 46.638610][ C3] __tcf_classify+0x32c/0x7d0 [ 46.638862][ C3] tcf_classify+0x283/0x930 [ 46.639119][ C3] ? __pfx_tcf_classify+0x10/0x10 [ 46.639394][ C3] ? lock_acquire.part.0+0xe5/0x330 [ 46.639680][ C3] ? __dev_queue_xmit+0x1c1/0x1ca0 [ 46.639961][ C3] tc_run+0x2e4/0x5d0 [ 46.640182][ C3] ? __pfx_tc_run+0x10/0x10 [ 46.640423][ C3] ? lock_acquire+0x1c1/0x220 [ 46.640672][ C3] ? __dev_queue_xmit+0x1c1/0x1ca0 [ 46.640942][ C3] ? __dev_queue_xmit+0x1c1/0x1ca0 [ 46.641233][ C3] __dev_queue_xmit+0x8eb/0x1ca0 [ 46.641505][ C3] ? mark_lock+0x38/0x3e0 [ 46.641750][ C3] ? mark_held_locks+0xa5/0xf0 [ 46.642015][ C3] ? __pfx___dev_queue_xmit+0x10/0x10 [ 46.642302][ C3] ? neigh_hh_output+0x348/0x590 [ 46.642573][ C3] ? vrf_ip_local_out+0x781/0x860 [vrf] [ 46.642896][ C3] ip_finish_output2+0x786/0x18e0 [ 46.643172][ C3] ? __pfx_ip_finish_output2+0x10/0x10 [ 46.643472][ C3] ? __ip_finish_output+0x3dd/0x770 [ 46.643750][ C3] ip_output+0x16b/0x4f0 [ 46.643985][ C3] ? hlock_class+0x4e/0x130 [ 46.644230][ C3] ? __pfx_ip_output+0x10/0x10 [ 46.644494][ C3] ? __pfx_lock_acquire.part.0+0x10/0x10 [ 46.644801][ C3] ? ip_local_out+0x114/0x3b0 [ 46.645057][ C3] __ip_queue_xmit+0x672/0x1910 [ 46.645314][ C3] ? __skb_clone+0x57a/0x760 [ 46.645562][ C3] __tcp_transmit_skb+0x22b1/0x2d20 [ 46.645852][ C3] ? __pfx___tcp_transmit_skb+0x10/0x10 [ 46.646149][ C3] ? tcp_small_queue_check.isra.0+0xe9/0x380 [ 46.646478][ C3] tcp_write_xmit+0xe42/0x24c0 [ 46.646746][ C3] ? ipv4_mtu+0x37/0x360 [ 46.646988][ C3] ? __pfx_tcp_write_xmit+0x10/0x10 [ 46.647281][ C3] ? __pfx_tcp_current_mss+0x10/0x10 [ 46.647575][ C3] __tcp_push_pending_frames+0x96/0x320 [ 46.647867][ C3] tcp_rcv_state_process+0x81e/0x1fd0 [ 46.648160][ C3] ? tcp_v4_rcv+0x2159/0x29b0 [ 46.648418][ C3] ? hlock_class+0x4e/0x130 [ 46.648661][ C3] ? __lock_acquired+0x18a/0x6b0 [ 46.648943][ C3] ? __pfx_tcp_rcv_state_process+0x10/0x10 [ 46.649267][ C3] ? __pfx___lock_acquired+0x10/0x10 [ 46.649560][ C3] ? __pfx_do_raw_spin_trylock+0x10/0x10 [ 46.649862][ C3] tcp_v4_do_rcv+0x154/0x850 [ 46.650119][ C3] tcp_v4_rcv+0x235a/0x29b0 [ 46.650370][ C3] ? __pfx_tcp_v4_rcv+0x10/0x10 [ 46.650630][ C3] ? __pfx_raw_v4_input+0x10/0x10 [ 46.650903][ C3] ? __pfx_lock_acquire.part.0+0x10/0x10 [ 46.651211][ C3] ip_protocol_deliver_rcu+0x93/0x360 [ 46.651506][ C3] ip_local_deliver_finish+0x2ae/0x450 [ 46.651814][ C3] ip_local_deliver+0x19d/0x480 [ 46.652087][ C3] ? __pfx_ip_local_deliver+0x10/0x10 [ 46.652379][ C3] ? ip_rcv_finish_core.constprop.0+0x522/0x1300 [ 46.652736][ C3] ip_rcv+0x564/0x740 [ 46.652955][ C3] ? __pfx_ip_rcv+0x10/0x10 [ 46.653207][ C3] ? lock_acquire.part.0+0xe5/0x330 [ 46.653488][ C3] ? process_backlog+0x1ed/0x5e0 [ 46.653755][ C3] ? __pfx_ip_rcv+0x10/0x10 [ 46.654006][ C3] __netif_receive_skb_one_core+0x166/0x1b0 [ 46.654323][ C3] ? __pfx___netif_receive_skb_one_core+0x10/0x10 [ 46.654663][ C3] ? lock_acquire+0x1c1/0x220 [ 46.654926][ C3] ? process_backlog+0x1ed/0x5e0 [ 46.655198][ C3] process_backlog+0xd3/0x5e0 [ 46.655460][ C3] __napi_poll.constprop.0+0xa5/0x450 [ 46.655745][ C3] net_rx_action+0x440/0xb40 [ 46.656014][ C3] ? __pfx_net_rx_action+0x10/0x10 [ 46.656292][ C3] ? lockdep_unlock+0x220/0x230 [ 46.656552][ C3] ? mark_held_locks+0xa5/0xf0 [ 46.656815][ C3] __do_softirq+0x1bc/0x7ff [ 46.657099][ C3] irq_exit_rcu+0x98/0xc0 [ 46.657331][ C3] sysvec_apic_timer_interrupt+0x75/0x80 [ 46.657640][ C3] [ 46.657800][ C3] [ 46.657961][ C3] asm_sysvec_apic_timer_interrupt+0x1a/0x20 [ 46.658284][ C3] RIP: 0010:lock_acquire.part.0+0x113/0x330 [ 46.658603][ C3] Code: ff 48 83 c4 28 65 0f c1 05 4a 4b 50 5a 83 f8 01 0f 85 b5 01 00 00 9c 58 f6 c4 02 0f 85 be 01 00 00 48 85 ed 0f 85 9b 01 00 00 <48> b8 00 00 00 00 00 fc ff df 48 01 c3 c7 03 00 00 00 00 48 c7 43 [ 46.659636][ C3] RSP: 0018:ffffc9000057fae0 EFLAGS: 00000206 [ 46.659966][ C3] RAX: 0000000000000046 RBX: 1ffff920000aff5f RCX: 0000000000000001 [ 46.660394][ C3] RDX: 1ffff11000d17d07 RSI: ffff8880068be840 RDI: ffff8880068be872 [ 46.660813][ C3] RBP: 0000000000000200 R08: 0000000000000000 R09: ffff8880068be840 [ 46.661237][ C3] R10: 1ffff920000aff31 R11: ffff888035ffc348 R12: ffffffffa94115c0 [ 46.661663][ C3] R13: dffffc0000000000 R14: ffff88800697b800 R15: ffffc9000057fc98 [ 46.662083][ C3] ? __pfx_lock_acquire.part.0+0x10/0x10 [ 46.662398][ C3] ? lock_acquire+0x1c1/0x220 [ 46.662654][ C3] ? schedule+0x163/0x280 [ 46.662894][ C3] schedule+0x182/0x280 [ 46.663118][ C3] ? schedule+0x163/0x280 [ 46.663351][ C3] pipe_write+0xb3b/0x1840 [ 46.663602][ C3] ? hlock_class+0x4e/0x130 [ 46.663850][ C3] ? __pfx_pipe_write+0x10/0x10 [ 46.664116][ C3] ? __mark_inode_dirty+0x6f5/0x900 [ 46.664396][ C3] ? __pfx_autoremove_wake_function+0x10/0x10 [ 46.664727][ C3] ? __up_write+0x190/0x520 [ 46.664972][ C3] vfs_write+0xac4/0x10a0 [ 46.665202][ C3] ? __pfx_vfs_write+0x10/0x10 [ 46.665481][ C3] ? __fget_light+0x54/0x1e0 [ 46.665735][ C3] ksys_write+0x17a/0x1e0 [ 46.665969][ C3] ? __pfx_ksys_write+0x10/0x10 [ 46.666240][ C3] do_syscall_64+0xcc/0x1e0 [ 46.666483][ C3] entry_SYSCALL_64_after_hwframe+0x6f/0x77 [ 46.666807][ C3] RIP: 0033:0x7f22c6537957 [ 46.667062][ 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 [ 46.668065][ C3] RSP: 002b:00007ffe6d576b78 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 [ 46.668523][ C3] RAX: ffffffffffffffda RBX: 000055bd0ec6ca20 RCX: 00007f22c6537957 [ 46.668945][ C3] RDX: 0000000000002000 RSI: 00007ffe6d576b90 RDI: 0000000000000001 [ 46.669354][ C3] RBP: 0000000000000008 R08: 0000000000000000 R09: 0000000000000000 [ 46.669775][ C3] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000002000 [ 46.670192][ C3] R13: 00007ffe6d576b90 R14: 0000000000000000 R15: 00007ffe6d576b8c [ 46.670629][ C3] [ 62.188064][ T611] ncat (611) used greatest stack depth: 21168 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__->