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 ] [ 1143.999270] 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 ] [ 1148.834736] ping (5502) used greatest stack depth: 11512 bytes left # TEST: mirred_egress_to_ingress (skip_hw) [ OK ] # [ 1153.557279] [ 1153.557405] ============================================ [ 1153.557690] WARNING: possible recursive locking detected [ 1153.557970] 6.8.0-rc4-virtme #1 Not tainted [ 1153.558214] -------------------------------------------- [ 1153.558560] ksoftirqd/3/32 is trying to acquire lock: [ 1153.558845] ffff9d6ac5f70dd8 (slock-AF_INET/1){+.-.}-{2:2}, at: tcp_v4_rcv+0xdc9/0xf00 [ 1153.559270] [ 1153.559270] but task is already holding lock: [ 1153.559667] ffff9d6ac5f701d8 (slock-AF_INET/1){+.-.}-{2:2}, at: tcp_v4_rcv+0xdc9/0xf00 [ 1153.560101] [ 1153.560101] other info that might help us debug this: [ 1153.560448] Possible unsafe locking scenario: [ 1153.560448] [ 1153.560753] CPU0 [ 1153.560891] ---- [ 1153.561032] lock(slock-AF_INET/1); [ 1153.561253] lock(slock-AF_INET/1); [ 1153.561456] [ 1153.561456] *** DEADLOCK *** [ 1153.561456] [ 1153.561773] May be due to missing lock nesting notation [ 1153.561773] [ 1153.562161] 8 locks held by ksoftirqd/3/32: [ 1153.562399] #0: ffffffffbc9678c0 (rcu_read_lock){....}-{1:2}, at: process_backlog+0x76/0x260 [ 1153.562850] #1: ffffffffbc9678c0 (rcu_read_lock){....}-{1:2}, at: ip_local_deliver_finish+0x6f/0x180 [ 1153.563324] #2: ffff9d6ac5f701d8 (slock-AF_INET/1){+.-.}-{2:2}, at: tcp_v4_rcv+0xdc9/0xf00 [ 1153.563790] #3: ffffffffbc9678c0 (rcu_read_lock){....}-{1:2}, at: __ip_queue_xmit+0x3f/0x6f0 [ 1153.564251] #4: ffffffffbc9678c0 (rcu_read_lock){....}-{1:2}, at: ip_finish_output2+0xc6/0xa20 [ 1153.564706] #5: ffffffffbc967880 (rcu_read_lock_bh){....}-{1:2}, at: __dev_queue_xmit+0x6e/0x1180 [ 1153.565181] #6: ffffffffbc9678c0 (rcu_read_lock){....}-{1:2}, at: netif_receive_skb+0x58/0x2c0 [ 1153.565663] #7: ffffffffbc9678c0 (rcu_read_lock){....}-{1:2}, at: ip_local_deliver_finish+0x6f/0x180 [ 1153.566153] [ 1153.566153] stack backtrace: [ 1153.566397] CPU: 3 PID: 32 Comm: ksoftirqd/3 Not tainted 6.8.0-rc4-virtme #1 [ 1153.566763] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.16.3-0-ga6ed6b701f0a-prebuilt.qemu.org 04/01/2014 [ 1153.567378] Call Trace: [ 1153.567531] [ 1153.567656] dump_stack_lvl+0x4b/0x80 [ 1153.567890] __lock_acquire+0x1215/0x1750 [ 1153.568109] ? sk_filter_trim_cap+0x53/0x360 [ 1153.568348] lock_acquire+0xc1/0x2b0 [ 1153.568575] ? tcp_v4_rcv+0xdc9/0xf00 [ 1153.568786] ? sk_filter_trim_cap+0x11a/0x360 [ 1153.569023] _raw_spin_lock_nested+0x2e/0x40 [ 1153.569253] ? tcp_v4_rcv+0xdc9/0xf00 [ 1153.569499] tcp_v4_rcv+0xdc9/0xf00 [ 1153.569703] ip_protocol_deliver_rcu+0x4b/0x1e0 [ 1153.569948] ip_local_deliver_finish+0xaf/0x180 [ 1153.570192] __netif_receive_skb_one_core+0x8b/0xa0 [ 1153.570493] netif_receive_skb+0x87/0x2c0 [ 1153.57072 DETECTED CRASH, lowering timeout 5] tcf_mirred_to_dev+0x1f6/0x410 [act_mirred] [ 1153.571003] tcf_mirred_act+0xee/0x560 [act_mirred] [ 1153.571281] ? tcf_skbedit_act+0x1d6/0x410 [act_skbedit] [ 1153.571619] tcf_action_exec+0xac/0x230 [ 1153.571842] fl_classify+0x20e/0x260 [cls_flower] [ 1153.572098] ? fl_mask_lookup+0x17e/0x5a0 [cls_flower] [ 1153.572375] ? __bfs+0xf3/0x240 [ 1153.572589] ? check_irq_usage+0x19c/0xc40 [ 1153.572813] ? check_path.constprop.0+0x24/0x50 [ 1153.573052] ? check_noncircular+0x81/0x150 [ 1153.573300] ? __lock_acquire+0xa6e/0x1750 [ 1153.573527] tcf_classify+0x17a/0x540 [ 1153.573724] tc_run+0x9f/0x150 [ 1153.573944] __dev_queue_xmit+0x311/0x1180 [ 1153.574174] ? mark_held_locks+0x49/0x80 [ 1153.574389] ip_finish_output2+0x39f/0xa20 [ 1153.574613] ? __ip_queue_xmit+0x1d5/0x6f0 [ 1153.574848] __ip_queue_xmit+0x1d5/0x6f0 [ 1153.575076] __tcp_transmit_skb+0xb66/0xd30 [ 1153.575308] ? mark_held_locks+0x49/0x80 [ 1153.575546] tcp_write_xmit+0x492/0x1410 [ 1153.575767] __tcp_push_pending_frames+0x36/0xc0 [ 1153.576021] tcp_rcv_state_process+0x4d1/0x11f0 [ 1153.576267] ? tcp_v4_rcv+0xdc9/0xf00 [ 1153.576496] ? tcp_v4_do_rcv+0x65/0x370 [ 1153.576715] tcp_v4_do_rcv+0x65/0x370 [ 1153.576922] tcp_v4_rcv+0xe63/0xf00 [ 1153.577115] ? process_backlog+0x76/0x260 [ 1153.577366] ip_protocol_deliver_rcu+0x4b/0x1e0 [ 1153.577622] ip_local_deliver_finish+0xaf/0x180 [ 1153.577868] __netif_receive_skb_one_core+0x8b/0xa0 [ 1153.578128] process_backlog+0x83/0x260 [ 1153.578362] __napi_poll.constprop.0+0x27/0x1e0 [ 1153.578627] net_rx_action+0x2c8/0x350 [ 1153.578837] __do_softirq+0xc8/0x37a [ 1153.579031] ? __pfx_smpboot_thread_fn+0x10/0x10 [ 1153.579314] run_ksoftirqd+0x2e/0x40 [ 1153.579523] smpboot_thread_fn+0xd9/0x1d0 [ 1153.579743] kthread+0xda/0x110 [ 1153.579920] ? __pfx_kthread+0x10/0x10 [ 1153.580155] ret_from_fork+0x31/0x50 [ 1153.580364] ? __pfx_kthread+0x10/0x10 [ 1153.580570] ret_from_fork_asm+0x1b/0x30 [ 1153.580782] [ 1170.985960] ncat (5632) 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__->