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 ] [ 1072.279904] 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 ] [ 1074.795522] tc (18264) used greatest stack depth: 11592 bytes left [ 1077.000526] ping (18392) used greatest stack depth: 11512 bytes left # TEST: mirred_egress_to_ingress (skip_hw) [ OK ] [ 1078.351547] [ 1078.351739] ============================================ [ 1078.352217] WARNING: possible recursive locking detected [ 1078.352691] 6.8.0-rc2-virtme #1 Not tainted [ 1078.353072] -------------------------------------------- [ 1078.353550] ncat/18526 is trying to acquire lock: [ 1078.353974] ffff9285450300b0 (slock-AF_INET/1){+.-.}-{2:2}, at: tcp_v4_rcv+0xdb5/0xef0 [ 1078.354689] [ 1078.354689] but task is already holding lock: [ 1078.355212] ffff928545030cb0 (slock-AF_INET/1){+.-.}-{2:2}, at: tcp_v4_rcv+0xdb5/0xef0 [ 1078.355902] [ 1078.355902] other info that might help us debug this: [ 1078.356267] Possible unsafe locking scenario: [ 1078.356267] [ 1078.356597] CPU0 [ 1078.356740] ---- [ 1078.356943] lock(slock-AF_INET/1); [ 1078.357221] lock(slock-AF_INET/1); [ 1078.357422] [ 1078.357422] *** DEADLOCK *** [ 1078.357422] [ 1078.357749] May be due to missing lock nesting notation [ 1078.357749] [ 1078.358120] 8 locks held by ncat/18526: [ 1078.358357] #0: ffffffffa93678c0 (rcu_read_lock){....}-{1:2}, at: process_backlog+0x6f/0x260 [ 1078.359046] #1: ffffffffa93678c0 (rcu_read_lock){....}-{1:2}, at: ip_local_deliver_finish+0x6f/0x180 [ 1078.359637] #2: ffff928545030cb0 (slock-AF_INET/1){+.-.}-{2:2}, at: tcp_v4_rcv+0xdb5/0xef0 [ 1078.360212] #3: ffffffffa93678c0 (rcu_read_lock){....}-{1:2}, at: __ip_queue_xmit+0x3f/0x6f0 [ 1078.360980] #4: ffffffffa93678c0 (rcu_read_lock){....}-{1:2}, at: ip_finish_output2+0xc6/0xa20 [ 1078.361748] #5: ffffffffa9367880 (rcu_read_lock_bh){....}-{1:2}, at: __dev_queue_xmit+0x6e/0x1180 [ 1078.362540] #6: ffffffffa93678c0 (rcu_read_lock){....}-{1:2}, at: netif_receive_skb+0x58/0x2c0 [ 1078.363313] #7: ffffffffa93678c0 (rcu_read_lock){....}-{1:2}, at: ip_local_deliver_finish+0x6f/0x180 [ 1078.364130] [ 1078.364130] stack backtrace: [ 1078.364534] CPU: 3 PID: 18526 Comm: ncat Not tainted 6.8.0-rc2-virtme #1 [ 1078.365130] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.16.3-0-ga6ed6b701f0a-prebuilt.qemu.org 04/01/2014 [ 1078.366134] Call Trace: [ 1078.366362] [ 1078.366560] dump_stack_lvl+0x4b/0x80 [ 1078.366898] __lock_acquire+0x1215/0x1750 [ 1078.367265] ? sk_filter_trim_cap+0x53/0x360 [ 1078.367658] lock_acquire+0xc1/0x2b0 [ 1078.367985] ? tcp_v4_rcv+0xdb5/0xef0 [ 1078.368325] ? sk_filter_trim_cap+0x11a/0x360 [ 1078.368729] _raw_spin_lock_nested+0x2e/0x40 [ 1078.369123] ? tcp_v4_rcv+0xdb5/0xef0 [ 1078.369336] tcp_v4_rcv+0xdb5/0xef0 [ 1078.369536] ip_protocol_deliver_rcu+0x4b/0x1e0 [ 1078.369799] ip_local_deliver_finish+0xaf/0x180 [ 1078.370051] __netif_receive_skb_one_core+0x8b/0xa0 [ 1078.370331] netif_receive_skb+0x87/0x2c0 [ 1078.370560] tcf_mirred_to_dev+0x1f6/0x410 [act_mirred] [ 1078.370855] tcf_mirred_act+0xee/0x560 [act_mirred] [ 1078.371144] ? tcf_skbedit_act+0x1d6/0x410 [act_skbedit] [ 1078.371446] tcf_action_exec+0xaf/0x230 [ 1078.371667] fl_classify+0x20e/0x260 [cls_flower] [ 1078.371934] ? __pfx_usage_match+0x10/0x10 [ 1078.372164] ? __bfs+0xf6/0x240 [ 1078.372345] ? check_irq_usage+0x19c/0xc40 [ 1078.372575] ? __skb_flow_dissect+0xc9/0x2d60 [ 1078.372821] ? check_path.constprop.0+0x24/0x50 [ 1078.373071] ? check_noncircular+0x81/0x150 [ 1078.373302] ? __skb_flow_dissect+0x2fb/0x2d60 [ 1078.373550] ? lock_is_held_type+0x9f/0x120 [ 1078.373786] ? __lock_acquire+0xa6e/0x1750 [ 1078.374016] tcf_classify+0x17d/0x540 [ 1078.374223] tc_run+0x9f/0x150 [ 1078.374400] __dev_queue_xmit+0x311/0x1180 [ 1078.374632] ? mark_held_locks+0x49/0x80 [ 1078.374852] ? eth_header+0x2a/0xc0 [ 1078.375054] ip_finish_output2+0x230/0xa20 [ 1078.375286] ? ip_skb_dst_mtu+0x51/0x1c0 [ 1078.375504] ? __ip_queue_xmit+0x1d5/0x6f0 [ 1078.375742] __ip_queue_xmit+0x1d5/0x6f0 [ 1078.375959] __tcp_transmit_skb+0xb65/0xd30 [ 1078.376198] ? __alloc_skb+0xdc/0x1a0 [ 1078.376407] tcp_rcv_state_process+0x4f3/0x11f0 [ 1078.376665] ? tcp_v4_rcv+0xdb5/0xef0 [ 1078.376873] ? tcp_v4_do_rcv+0x64/0x360 [ 1078.377087] tcp_v4_do_rcv+0x64/0x360 [ 1078.377295] tcp_v4_rcv+0xe4f/0xef0 [ 1078.377498] ? process_backlog+0x6f/0x260 [ 1078.377722] ip_protocol_deliver_rcu+0x4b/0x1e0 [ 1078.377978] ip_local_deliver_finish+0xaf/0x180 [ 1078.378234] __netif_receive_skb_one_core+0x8b/0xa0 [ 1078.378509] process_backlog+0x7c/0x260 [ 1078.378726] __napi_poll.constprop.0+0x2a/0x1e0 [ 1078.378980] net_rx_action+0x2be/0x340 [ 1078.379193] __do_softirq+0xcb/0x37a [ 1078.379394] ? tcp_recvmsg+0x80/0x200 [ 1078.379611] do_softirq+0x4d/0x90 [ 1078.379808] [ 1078.379932] [ 1078.380056] __local_bh_enable_ip+0xbf/0xe0 [ 1078.380291] tcp_recvmsg+0x80/0x200 [ 1078.380493] inet_recvmsg+0x70/0x260 [ 1078.380700] __sys_recvfrom+0x168/0x1a0 [ 1078.380916] ? find_held_lock+0x2b/0x80 [ 1078.381158] ? do_user_addr_fault+0x394/0x830 [ 1078.381407] ? lock_release+0xbe/0x270 [ 1078.381623] ? do_user_addr_fault+0x399/0x830 [ 1078.381865] __x64_sys_recvfrom+0x24/0x30 [ 1078.382089] do_syscall_64+0xcc/0x1e0 [ 1078.382299] entry_SYSCALL_64_after_hwframe+0x6f/0x77 [ 1078.382580] RIP: 0033:0x7f9eb450d4c0 [ 1078.382784] Code: 84 00 00 00 00 00 0f 1f 40 00 f3 0f 1e fa 41 89 ca 64 8b 04 25 18 00 00 00 85 c0 75 1d 45 31 c9 45 31 c0 b8 2d 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 68 c3 0f 1f 80 00 00 00 00 41 54 48 83 ec 20 [ 1078.383922] RSP: 002b:00007fff9449fb38 EFLAGS: 00000246 ORIG_RAX: 000000000000002d [ 1078.384588] RAX: ffffffffffffffda RBX: 000055e367233a20 RCX: 00007f9eb450d4c0 [ 1078.385039] RDX: 0000000000002000 RSI: 00007fff9449fbc0 RDI: 0000000000000008 [ 1078.385544] RBP: 00007fff9449fbc0 R08: 0000000000000000 R09: 0000000000000000 [ 1078.386080] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000008 [ 1078.386706] R13: 000055e367233a20 R14: 0000000000000000 R15: 00007fff9449fbbc [ 1078.387335] # [ 1078.690981] ncat (18527) used greatest stack depth: 10672 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__->