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 ] [ 651.539630] Mirror/redirect action on [ 651.542290] tc (947) used greatest stack depth: 11904 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 ] [ 654.137413] tc (1178) used greatest stack depth: 11648 bytes left [ 656.354919] ping (1301) used greatest stack depth: 11512 bytes left # TEST: mirred_egress_to_ingress (skip_hw) [ OK ] # [ 657.850464] [ 657.850574] ============================================ [ 657.850887] WARNING: possible recursive locking detected [ 657.851165] 6.8.0-rc3-virtme #1 Not tainted [ 657.851412] -------------------------------------------- [ 657.851690] swapper/1/0 is trying to acquire lock: [ 657.851976] ffffa06c828980b0 (slock-AF_INET/1){+.-.}-{2:2}, at: tcp_v4_rcv+0xdb5/0xef0 [ 657.852395] [ 657.852395] but task is already holding lock: [ 657.852727] ffffa06c82898cb0 (slock-AF_INET/1){+.-.}-{2:2}, at: tcp_v4_rcv+0xdb5/0xef0 [ 657.853146] [ 657.853146] other info that might help us debug this: [ 657.853504] Possible unsafe locking scenario: [ 657.853504] [ 657.853839] CPU0 [ 657.853977] ---- [ 657.854114] lock(slock-AF_INET/1); [ 657.854329] lock(slock-AF_INET/1); [ 657.854520] [ 657.854520] *** DEADLOCK *** [ 657.854520] [ 657.854850] May be due to missing lock nesting notation [ 657.854850] [ 657.855202] 8 locks held by swapper/1/0: [ 657.855436] #0: ffffffffb2d678c0 (rcu_read_lock){....}-{1:2}, at: process_backlog+0x6f/0x260 [ 657.855879] #1: ffffffffb2d678c0 (rcu_read_lock){....}-{1:2}, at: ip_local_deliver_finish+0x6f/0x180 [ 657.856359] #2: ffffa06c82898cb0 (slock-AF_INET/1){+.-.}-{2:2}, at: tcp_v4_rcv+0xdb5/0xef0 [ 657.856816] #3: ffffffffb2d678c0 (rcu_read_lock){....}-{1:2}, at: __ip_queue_xmit+0x3f/0x6f0 [ 657.857260] #4: ffffffffb2d678c0 (rcu_read_lock){....}-{1:2}, at: ip_finish_output2+0xc6/0xa20 [ 657.857708] #5: ffffffffb2d67880 (rcu_read_lock_bh){....}-{1:2}, at: __dev_queue_xmit+0x6e/0x1180 [ 657.858195] #6: ffffffffb2d678c0 (rcu_read_lock){....}-{1:2}, at: netif_receive_skb+0x58/0x2c0 [ 657.858644] #7: ffffffffb2d678c0 (rcu_read_lock){....}-{1:2}, at: ip_local_deliver_finish+0x6f/0x180 [ 657.859141] [ 657.859141] stack backtrace: [ 657.859374] CPU: 1 PID: 0 Comm: swapper/1 Not tainted 6.8.0-rc3-virtme #1 [ 657.859744] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.16.3-0-ga6ed6b701f0a-prebuilt.qemu.org 04/01/2014 [ 657.860331] Call Trace: [ 657.860466] [ 657.860605] dump_stack_lvl+0x4b/0x80 [ 657.860804] __lock_acquire+0x1215/0x1750 [ 657.861045] ? sk_filter_trim_cap+0x53/0x360 [ 657.861275] lock_acquire+0xc1/0x2b0 [ 657.861491] ? tcp_v4_rcv+0xdb5/0xef0 [ 657.861693] ? sk_filter_trim_cap+0x11a/0x360 [ 657.861947] _raw_spin_lock_nested+0x2e/0x40 [ 657.862174] ? tcp_v4_rcv+0xdb5/0xef0 [ 657.862394] tcp_v4_rcv+0xdb5/0xef0 [ 657.862583] ip_protocol_deliver_rcu+0x4b/0x1e0 [ 657.862844] ip_local_deliver_finish+0xaf/0x180 [ 657.863089] __netif_receive_skb_one_core+0x8b/0xa0 [ 657.863365] netif_receive_skb+0x87 DETECTED CRASH, lowering timeout /0x2c0 [ 657.863602] tcf_mirred_to_dev+0x1f6/0x410 [act_mirred] [ 657.863879] tcf_mirred_act+0xee/0x560 [act_mirred] [ 657.864161] ? tcf_skbedit_act+0x1d6/0x410 [act_skbedit] [ 657.864444] tcf_action_exec+0xac/0x230 [ 657.864670] fl_classify+0x20e/0x260 [cls_flower] [ 657.864943] ? __lock_acquire+0xa6e/0x1750 [ 657.865161] ? __lock_acquire+0xa6e/0x1750 [ 657.865401] ? print_shortest_lock_dependencies_backwards+0xc6/0xd0 [ 657.865729] ? find_held_lock+0x2b/0x80 [ 657.865953] ? lock_acquire+0xc1/0x2b0 [ 657.866152] ? handle_irq_event+0x51/0x80 [ 657.866385] ? __lock_acquire+0xa6e/0x1750 [ 657.866603] ? handle_irq_event+0x51/0x80 [ 657.866836] tcf_classify+0x17a/0x540 [ 657.867034] tc_run+0x9f/0x150 [ 657.867204] __dev_queue_xmit+0x311/0x1180 [ 657.867441] ? eth_header+0x2a/0xc0 [ 657.867631] ip_finish_output2+0x22d/0xa20 [ 657.867867] ? ip_skb_dst_mtu+0x51/0x1c0 [ 657.868090] ? __ip_queue_xmit+0x1d5/0x6f0 [ 657.868342] __ip_queue_xmit+0x1d5/0x6f0 [ 657.868555] __tcp_transmit_skb+0xb65/0xd30 [ 657.868797] ? __alloc_skb+0xdc/0x1a0 [ 657.868994] tcp_rcv_state_process+0x4f3/0x11f0 [ 657.869235] ? tcp_v4_do_rcv+0x64/0x360 [ 657.869467] tcp_v4_do_rcv+0x64/0x360 [ 657.869669] tcp_v4_rcv+0xe4f/0xef0 [ 657.869879] ? process_backlog+0x6f/0x260 [ 657.870091] ip_protocol_deliver_rcu+0x4b/0x1e0 [ 657.870357] ip_local_deliver_finish+0xaf/0x180 [ 657.870595] __netif_receive_skb_one_core+0x8b/0xa0 [ 657.870886] process_backlog+0x7c/0x260 [ 657.871096] __napi_poll.constprop.0+0x27/0x1e0 [ 657.871356] net_rx_action+0x2be/0x340 [ 657.871557] __do_softirq+0xc8/0x37a [ 657.871772] irq_exit_rcu+0x7f/0xa0 [ 657.871960] common_interrupt+0x86/0xa0 [ 657.872168] [ 657.872316] [ 657.872433] asm_common_interrupt+0x26/0x40 [ 657.872679] RIP: 0010:tick_nohz_idle_exit+0x5d/0x100 [ 657.872947] Code: 00 75 4a 0f b6 5d 00 83 e3 fe 41 89 dc 88 5d 00 d0 eb 41 c0 ec 02 83 e3 01 41 83 e4 01 75 34 84 db 75 30 e8 15 55 06 00 fb 5b <5d> 41 5c 41 5d c3 cc cc cc cc e8 b4 55 06 00 f6 45 00 01 75 ba 90 [ 657.873910] RSP: 0018:ffffbdb6800a3ed8 EFLAGS: 00000202 [ 657.874245] RAX: 00000000003c66bf RBX: ffffa06c81338000 RCX: ffffa06cbec9c8e0 [ 657.874612] RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffffffffb14347ab [ 657.875003] RBP: ffffa06cbeca0840 R08: 0000000000000001 R09: 0000000000000001 [ 657.875371] R10: 0000000000000001 R11: 0000000000000001 R12: 0000000000000001 [ 657.875767] R13: 000000992a76596d R14: 0000000000000000 R15: 0000000000000000 [ 657.876135] ? tick_nohz_idle_exit+0x5b/0x100 [ 657.876369] do_idle+0x143/0x220 [ 657.876569] cpu_startup_entry+0x2a/0x30 [ 657.876777] start_secondary+0xfc/0x100 [ 657.877004] secondary_startup_64_no_verify+0x16d/0x17b [ 657.877280] [ 705.049081] ncat (1430) 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__->