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 ] [ 1145.387644] Mirror/redirect action on [ 1145.390119] tc (4216) 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 ] [ 1148.048729] tc (4452) used greatest stack depth: 11552 bytes left [ 1150.277693] ping (4571) used greatest stack depth: 11512 bytes left # TEST: mirred_egress_to_ingress (skip_hw) [ OK ] # [ 1154.282314] [ 1154.282420] ============================================ [ 1154.282714] WARNING: possible recursive locking detected [ 1154.282993] 6.8.0-rc2-virtme #1 Not tainted [ 1154.283209] -------------------------------------------- [ 1154.283501] swapper/1/0 is trying to acquire lock: [ 1154.283748] ffff9b6c82730cb0 (slock-AF_INET/1){+.-.}-{2:2}, at: tcp_v4_rcv+0xdba/0xf00 [ 1154.284162] [ 1154.284162] but task is already holding lock: [ 1154.284460] ffff9b6c827300b0 (slock-AF_INET/1){+.-.}-{2:2}, at: tcp_v4_rcv+0xdba/0xf00 [ 1154.284872] [ 1154.284872] other info that might help us debug this: [ 1154.285200] Possible unsafe locking scenario: [ 1154.285200] [ 1154.285518] CPU0 [ 1154.285649] ---- [ 1154.285796] lock(slock-AF_INET/1); [ 1154.285982] lock(slock-AF_INET/1); [ 1154.286182] [ 1154.286182] *** DEADLOCK *** [ 1154.286182] [ 1154.286482] May be due to missing lock nesting notation [ 1154.286482] [ 1154.286839] 8 locks held by swapper/1/0: [ 1154.287042] #0: ffffffff891678c0 (rcu_read_lock){....}-{1:2}, at: process_backlog+0x6f/0x260 [ 1154.287486] #1: ffffffff891678c0 (rcu_read_lock){....}-{1:2}, at: ip_local_deliver_finish+0x6f/0x180 [ 1154.287981] #2: ffff9b6c827300b0 (slock-AF_INET/1){+.-.}-{2:2}, at: tcp_v4_rcv+0xdba/0xf00 [ 1154.288485] #3: ffffffff891678c0 (rcu_read_lock){....}-{1:2}, at: __ip_queue_xmit+0x3f/0x6f0 [ 1154.289134] #4: ffffffff891678c0 (rcu_read_lock){....}-{1:2}, at: ip_finish_output2+0xc6/0xa20 [ 1154.289782] #5: ffffffff89167880 (rcu_read_lock_bh){....}-{1:2}, at: __dev_queue_xmit+0x6e/0x1180 [ 1154.290464] #6: ffffffff891678c0 (rcu_read_lock){....}-{1:2}, at: netif_receive_skb+0x58/0x2c0 [ 1154.291126] #7: ffffffff891678c0 (rcu_read_lock){....}-{1:2}, at: ip_local_deliver_finish+0x6f/0x180 [ 1154.291852] [ 1154.291852] stack backtrace: [ 1154.292196] CPU: 1 PID: 0 Comm: swapper/1 Not tainted 6.8.0-rc2-virtme #1 [ 1154.292695] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.16.3-0-ga6ed6b701f0a-prebuilt.qemu.org 04/01/2014 [ 1154.293535] Call Trace: [ 1154.293723] [ 1154.293899] dump_stack_lvl+0x4b/0x80 [ 1154.294187] __lock_acquire+0x1215/0x1750 [ 1154.294496] lock_acquire+0xc1/0x2b0 [ 1154.294771] ? tcp_v4_rcv+0xdba/0xf00 [ 1154.295060] ? sk_filter_trim_cap+0x11a/0x360 [ 1154.295395] _raw_spin_lock_nested+0x2e/0x40 [ 1154.295730] ? tcp_v4_rcv+0xdba/0xf00 [ 1154.296026] tcp_v4_rcv+0xdba/0xf00 [ 1154.296286] ip_protocol_deliver_rcu+0x4b/0x1e0 [ 1154.296628] ip_local_deliver_finish+0xaf/0x180 [ 1154.296975] __netif_receive_skb_one_core+0x8b/0xa0 [ 1154.297336] netif_receive_skb+0x87/0x2c0 [ 1154.297651] tcf_mirred_to_dev+0x1f6/0x410 [act_mirred] [ 1154.298063] tcf_mirred_act+0xee/0x560 [act_mirred] [ 1154.298396] ? tcf_skbedit_act+0x1d6/0x410 [act_skbedit] [ 1154.298683] tcf_action_exec+0xac/0x230 [ 1154.298902] fl_classify+0x20e/0x260 [cls_flower] [ 1154.299163] ? __lock_acquire+0xa6e/0x1750 [ 1154.299405] ? __lock_acquire+0xa6e/0x1750 [ 1154.299635] ? print_shortest_lock_dependencies_backwards+0xc6/0xd0 [ 1154.299970] ? find_held_lock+0x2b/0x80 [ 1154.300170] ? __lock_acquire+0xa6e/0x1750 [ 1154.300402] ? listening_get_next+0x6e/0xd0 [ 1154.300632] tcf_classify+0x17a/0x540 [ 1154.300839] tc_run+0x9f/0x150 [ 1154.301022] __dev_queue_xmit+0x311/0x1180 [ 1154.301259] ? __ip_queue_xmit+0x1d5/0x6f0 [ 1154.301486] ip_finish_output2+0x39f/0xa20 [ 1154.301718] ? __ip_queue_xmit+0x1d5/0x6f0 [ 1154.301944] __ip_queue_xmit+0x1d5/0x6f0 [ 1154.302147] __tcp_transmit_skb+0xb65/0xd30 [ 1154.302388] tcp_write_xmit+0x492/0x1400 [ 1154.302608] __tcp_push_pending_frames+0x36/0xc0 [ 1154.302865] tcp_rcv_state_process+0x4db/0x1230 [ 1154.303103] ? lock_acquire+0xe6/0x2b0 [ 1154.303340] ? tcp_v4_do_rcv+0x85/0x3a0 [ 1154.303556] ? lock_is_held_type+0x9f/0x120 [ 1154.303788] tcp_v4_do_rcv+0x85/0x3a0 [ 1154.303982] tcp_v4_rcv+0xe54/0xf00 [ 1154.304182] ? process_backlog+0x6f/0x260 [ 1154.304407] ip_protocol_deliver_rcu+0x4b/0x1e0 [ 1154.304660] ip_local_deliver_finish+0xaf/0x180 [ 1154.304909] __netif_receive_skb_one_core+0x8b/0xa0 [ 1154.305161] process_backlog+0x7c/0x260 [ 1154.305376] __napi_poll.constprop.0+0x27/0x1e0 [ 1154.305635] net_rx_action+0x2be/0x340 [ 1154.305853] __do_softirq+0xc8/0x37a [ 1154.306043] irq_exit_rcu+0x7f/0xa0 [ 1154.306241] common_interrupt+0x86/0xa0 [ 1154.306457] [ 1154.306572] [ 1154.306704] asm_common_interrupt+0x26/0x40 [ 1154.306937] RIP: 0010:finish_task_switch.isra.0+0x101/0x330 [ 1154.307223] Code: 89 ff 48 c7 02 00 00 00 00 ff d0 0f 1f 00 48 85 db 75 e2 4c 89 ff e8 7e 50 ca 00 e8 f9 e7 10 00 fb 65 48 8b 04 25 40 ef 02 00 <66> 90 4d 85 ed 74 21 65 48 8b 04 25 40 ef 02 00 4c 3b a8 e8 04 00 [ 1154.308178] RSP: 0018:ffffa97c800a3e28 EFLAGS: 00000206 [ 1154.308449] RAX: ffff9b6c81338000 RBX: 0000000000000000 RCX: 0000000000000000 [ 1154.308828] RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffffffff8778b4c7 [ 1154.309189] RBP: ffffa97c800a3e58 R08: 0000000000000001 R09: 0000000000000001 [ 1154.309568] R10: 0000000000000000 R11: 0000000000000001 R12: ffff9b6c81c90000 [ 1154.309931] R13: 0000000000000000 R14: ffff9b6cbecaf998 R15: ffff9b6cbecaf980 [ 1154.310294] ? finish_task_switch.isra.0+0xf7/0x330 [ 1154.310563] ? finish_task_switch.isra.0+0xf7/0x330 [ 1154.310832] __schedule+0x346/0xc70 [ 1154.311019] schedule_idle+0x2a/0x40 [ 1154.311226] do_idle+0x15b/0x220 [ 1154.311413] ? finish_task_switch.isra.0+0xf7/0x330 [ 1154.311684] cpu_startup_entry+0x2a/0x30 [ 1154.311905] start_secondary+0xfc/0x100 [ 1154.312108] secondary_startup_64_no_verify+0x16d/0x17b [ 1154.312394] [ 1200.083065] ncat (4700) used greatest stack depth: 10664 bytes left [ 1216.798577] ncat (4699) used greatest stack depth: 10040 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__->