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 ] [ 1221.144817] tc (3265) used greatest stack depth: 11696 bytes left # TEST: mirred egress flower redirect (skip_hw) [ OK ] # TEST: mirred egress flower mirror (skip_hw) [ OK ] # TEST: mirred egress matchall mirror (skip_hw) [ OK ] [ 1224.867015] tc (3601) used greatest stack depth: 11648 bytes left [ 1227.070998] ping (3721) used greatest stack depth: 11512 bytes left # TEST: mirred_egress_to_ingress (skip_hw) [ OK ] # [ 1228.742337] [ 1228.742470] ============================================ [ 1228.742767] WARNING: possible recursive locking detected [ 1228.743046] 6.8.0-rc4-virtme #1 Not tainted [ 1228.743289] -------------------------------------------- [ 1228.743563] ncat/3844 is trying to acquire lock: [ 1228.743835] ffff9d7dc2af81d8 (slock-AF_INET/1){+.-.}-{2:2}, at: tcp_v4_rcv+0xdb5/0xef0 [ 1228.744277] [ 1228.744277] but task is already holding lock: [ 1228.744584] ffff9d7dc2af8dd8 (slock-AF_INET/1){+.-.}-{2:2}, at: tcp_v4_rcv+0xdb5/0xef0 [ 1228.745026] [ 1228.745026] other info that might help us debug this: [ 1228.745356] Possible unsafe locking scenario: [ 1228.745356] [ 1228.745698] CPU0 [ 1228.745833] ---- [ 1228.745964] lock(slock-AF_INET/1); [ 1228.746180] lock(slock-AF_INET/1); [ 1228.746380] [ 1228.746380] *** DEADLOCK *** [ 1228.746380] [ 1228.746718] May be due to missing lock nesting notation [ 1228.746718] [ 1228.747076] 8 locks held by ncat/3844: [ 1228.747309] #0: ffffffffa07678c0 (rcu_read_lock){....}-{1:2}, at: process_backlog+0x76/0x260 [ 1228.747782] #1: ffffffffa07678c0 (rcu_read_lock){....}-{1:2}, at: ip_local_deliver_finish+0x6f/0x180 [ 1228.748262] #2: ffff9d7dc2af8dd8 (slock-AF_INET/1){+.-.}-{2:2}, at: tcp_v4_rcv+0xdb5/0xef0 [ 1228.748724] #3: ffffffffa07678c0 (rcu_read_lock){....}-{1:2}, at: __ip_queue_xmit+0x3f/0x6f0 [ 1228.749174] #4: ffffffffa07678c0 (rcu_read_lock){....}-{1:2}, at: ip_finish_output2+0xc6/0xa20 [ 1228.749663] #5: ffffffffa0767880 (rcu_read_lock_bh){....}-{1:2}, at: __dev_queue_xmit+0x6e/0x1180 [ 1228.750133] #6: ffffffffa07678c0 (rcu_read_lock){....}-{1:2}, at: netif_receive_skb+0x58/0x2c0 [ 1228.750601] #7: ffffffffa07678c0 (rcu_read_lock){....}-{1:2}, at: ip_local_deliver_finish+0x6f/0x180 [ 1228.751120] [ 1228.751120] stack backtrace: [ 1228.751359] CPU: 2 PID: 3844 Comm: ncat Not tainted 6.8.0-rc4-virtme #1 [ 1228.751736] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.16.3-0-ga6ed6b701f0a-prebuilt.qemu.org 04/01/2014 [ 1228.752335] Call Trace: [ 1228.752502] [ 1228.752642] dump_stack_lvl+0x4b/0x80 [ 1228.752871] __lock_acquire+0x1215/0x1750 [ 1228.753091] ? sk_filter_trim_cap+0x53/0x360 [ 1228.753348] lock_acquire+0xc1/0x2b0 [ 1228.753572] ? tcp_v4_rcv+0xdb5/0xef0 [ 1228.753796] ? sk_filter_trim_cap+0x11a/0x360 [ 1228.754031] _raw_spin_lock_nested+0x2e/0x40 [ 1228.754276] ? tcp_v4_rcv+0xdb5/0xef0 [ 1228.754478] tcp_v4_rcv+0xdb5/0xef0 [ 1228.754670] ip_protocol_deliver_rcu+0x4b/0x1e0 [ 1228.754922] ip_local_deliver_finish+0xaf/0x180 [ 1228.755165] __netif_receive_skb_one_core+0x8b/0xa0 [ 1228.755463] netif_receive_skb+0x87/0x2c0 [ 1228.755699] tcf_mirred_to_dev+0x1f6/0x410 [act_mirred] [ 1228.755996] tcf_mirred_act+ DETECTED CRASH, lowering timeout 0xee/0x560 [act_mirred] [ 1228.756260] ? tcf_skbedit_act+0x1d6/0x410 [act_skbedit] [ 1228.756560] tcf_action_exec+0xac/0x230 [ 1228.756765] fl_classify+0x20e/0x260 [cls_flower] [ 1228.757044] ? __bfs+0xf3/0x240 [ 1228.757234] ? check_irq_usage+0x19c/0xc40 [ 1228.757474] ? __skb_flow_dissect+0xc9/0x2d60 [ 1228.757709] ? check_path.constprop.0+0x24/0x50 [ 1228.757979] ? check_noncircular+0x81/0x150 [ 1228.758220] ? __skb_flow_dissect+0x2fb/0x2d60 [ 1228.758484] ? __lock_acquire+0xa6e/0x1750 [ 1228.758720] tcf_classify+0x17a/0x540 [ 1228.758921] tc_run+0x9f/0x150 [ 1228.759092] __dev_queue_xmit+0x311/0x1180 [ 1228.759328] ? mark_held_locks+0x49/0x80 [ 1228.759533] ? eth_header+0x2a/0xc0 [ 1228.759740] ip_finish_output2+0x22d/0xa20 [ 1228.759956] ? ip_skb_dst_mtu+0x51/0x1c0 [ 1228.760195] ? __ip_queue_xmit+0x1d5/0x6f0 [ 1228.760427] __ip_queue_xmit+0x1d5/0x6f0 [ 1228.760658] __tcp_transmit_skb+0xb66/0xd30 [ 1228.760902] ? __alloc_skb+0xdc/0x1a0 [ 1228.761103] tcp_rcv_state_process+0x4e9/0x11f0 [ 1228.761343] ? tcp_v4_rcv+0xdb5/0xef0 [ 1228.761565] ? tcp_v4_do_rcv+0x64/0x360 [ 1228.761793] tcp_v4_do_rcv+0x64/0x360 [ 1228.761988] tcp_v4_rcv+0xe4f/0xef0 [ 1228.762192] ? process_backlog+0x76/0x260 [ 1228.762402] ip_protocol_deliver_rcu+0x4b/0x1e0 [ 1228.762659] ip_local_deliver_finish+0xaf/0x180 [ 1228.762927] __netif_receive_skb_one_core+0x8b/0xa0 [ 1228.763182] process_backlog+0x83/0x260 [ 1228.763407] __napi_poll.constprop.0+0x27/0x1e0 [ 1228.763658] net_rx_action+0x2c8/0x350 [ 1228.763874] __do_softirq+0xc8/0x37a [ 1228.764062] ? tcp_recvmsg+0x80/0x200 [ 1228.764273] do_softirq+0x4d/0x90 [ 1228.764480] [ 1228.764606] [ 1228.764759] __local_bh_enable_ip+0xbf/0xe0 [ 1228.764983] tcp_recvmsg+0x80/0x200 [ 1228.765206] inet_recvmsg+0x70/0x260 [ 1228.765443] __sys_recvfrom+0x168/0x1a0 [ 1228.765651] ? do_pselect.constprop.0+0xde/0x170 [ 1228.765921] ? task_mm_cid_work+0x18b/0x3c0 [ 1228.766145] ? restore_fpregs_from_fpstate+0x47/0xd0 [ 1228.766429] __x64_sys_recvfrom+0x24/0x30 [ 1228.766649] do_syscall_64+0xc9/0x1e0 [ 1228.766873] entry_SYSCALL_64_after_hwframe+0x6f/0x77 [ 1228.767144] RIP: 0033:0x7f6133a4d4c0 [ 1228.767367] 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 [ 1228.768334] RSP: 002b:00007fff279a4db8 EFLAGS: 00000246 ORIG_RAX: 000000000000002d [ 1228.768736] RAX: ffffffffffffffda RBX: 0000564f8a32aa20 RCX: 00007f6133a4d4c0 [ 1228.769137] RDX: 0000000000002000 RSI: 00007fff279a4e40 RDI: 0000000000000008 [ 1228.769514] RBP: 00007fff279a4e40 R08: 0000000000000000 R09: 0000000000000000 [ 1228.769880] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000008 [ 1228.770253] R13: 0000564f8a32aa20 R14: 0000000000000000 R15: 00007fff279a4e3c [ 1228.770658] [ 1256.331983] ncat (3845) used greatest stack depth: 10680 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__->