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 ] # TEST: mirred egress flower redirect (skip_hw) [ OK ] # TEST: mirred egress flower mirror (skip_hw) [ OK ] # TEST: mirred egress matchall mirror (skip_hw) [ OK ] [ 1120.333641] ping (9838) used greatest stack depth: 11512 bytes left # TEST: mirred_egress_to_ingress (skip_hw) [ OK ] # [ 1121.664592] [ 1121.664711] ============================================ [ 1121.665030] WARNING: possible recursive locking detected [ 1121.665346] 6.8.0-rc1-virtme #1 Not tainted [ 1121.665577] -------------------------------------------- [ 1121.665887] swapper/1/0 is trying to acquire lock: [ 1121.666155] ffff98f5049700b0 (slock-AF_INET/1){+.-.}-{2:2}, at: tcp_v4_rcv+0xdb5/0xef0 [ 1121.666612] [ 1121.666612] but task is already holding lock: [ 1121.666930] ffff98f504970cb0 (slock-AF_INET/1){+.-.}-{2:2}, at: tcp_v4_rcv+0xdb5/0xef0 [ 1121.667391] [ 1121.667391] other info that might help us debug this: [ 1121.667744] Possible unsafe locking scenario: [ 1121.667744] [ 1121.668090] CPU0 [ 1121.668250] ---- [ 1121.668414] lock(slock-AF_INET/1); [ 1121.668619] lock(slock-AF_INET/1); [ 1121.668838] [ 1121.668838] *** DEADLOCK *** [ 1121.668838] [ 1121.669167] May be due to missing lock nesting notation [ 1121.669167] [ 1121.669560] 8 locks held by swapper/1/0: [ 1121.669780] #0: ffffffff9ed678c0 (rcu_read_lock){....}-{1:2}, at: process_backlog+0x6f/0x260 [ 1121.670260] #1: ffffffff9ed678c0 (rcu_read_lock){....}-{1:2}, at: ip_local_deliver_finish+0x6f/0x180 [ 1121.670756] #2: ffff98f504970cb0 (slock-AF_INET/1){+.-.}-{2:2}, at: tcp_v4_rcv+0xdb5/0xef0 [ 1121.671223] #3: ffffffff9ed678c0 (rcu_read_lock){....}-{1:2}, at: __ip_queue_xmit+0x3f/0x6f0 [ 1121.671688] #4: ffffffff9ed678c0 (rcu_read_lock){....}-{1:2}, at: ip_finish_output2+0xc6/0xa20 [ 1121.672174] #5: ffffffff9ed67880 (rcu_read_lock_bh){....}-{1:2}, at: __dev_queue_xmit+0x6e/0x1180 [ 1121.672661] #6: ffffffff9ed678c0 (rcu_read_lock){....}-{1:2}, at: netif_receive_skb+0x58/0x2c0 [ 1121.673154] #7: ffffffff9ed678c0 (rcu_read_lock){....}-{1:2}, at: ip_local_deliver_finish+0x6f/0x180 [ 1121.673654] [ 1121.673654] stack backtrace: [ 1121.673901] CPU: 1 PID: 0 Comm: swapper/1 Not tainted 6.8.0-rc1-virtme #1 [ 1121.674285] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.16.3-0-ga6ed6b701f0a-prebuilt.qemu.org 04/01/2014 [ 1121.674907] Call Trace: [ 1121.675084] [ 1121.675207] dump_stack_lvl+0x4b/0x80 [ 1121.675439] __lock_acquire+0x1215/0x1750 [ 1121.675666] lock_acquire+0xc1/0x2b0 [ 1121.675899] ? tcp_v4_rcv+0xdb5/0xef0 [ 1121.676109] ? sk_filter_trim_cap+0x11a/0x360 [ 1121.676402] _raw_spin_lock_nested+0x2e/0x40 [ 1121.676647] ? tcp_v4_rcv+0xdb5/0xef0 [ 1121.676886] tcp_v4_rcv+0xdb5/0xef0 [ 1121.677089] ip_protocol_deliver_rcu+0x4b/0x1e0 [ 1121.677372] ip_local_deliver_finish+0xaf/0x180 [ 1121.677629] __netif_receive_skb_one_core+0x8b/0xa0 [ 1121.677944] netif_receive_skb+0x87/0x2c0 [ 1121.678171] tcf_mirred_to_dev+0x1f6/0x410 [act_mirred] [ 1121.678486] tcf_mirred_act+0xee/0x560 [act_mirred] [ 1121.678764] ? tcf_skbedit_act+0x1d6/0x410 [act_skbedit] [ 1121.679088] tcf_action_exec+0xaf/0x230 [ 1121.679305] fl_classify+0x20e/0x260 [cls_flower] [ 1121.679595] ? __lock_acquire+0xa6e/0x1750 [ 1121.679826] ? __lock_acquire+0xa6e/0x1750 [ 1121.680083] ? print_irq_inversion_bug.part.0+0x1a8/0x280 [ 1121.680381] ? find_held_lock+0x2b/0x80 [ 1121.680595] ? lock_acquire+0xc1/0x2b0 [ 1121.680835] ? handle_irq_event+0x51/0x80 [ 1121.681066] ? __lock_acquire+0xa6e/0x1750 [ 1121.681322] ? handle_irq_event+0x51/0x80 [ 1121.681547] tcf_classify+0x17d/0x540 [ 1121.681784] tc_run+0x9f/0x150 [ 1121.681960] __dev_queue_xmit+0x311/0x1180 [ 1121.682220] ? eth_header+0x2a/0xc0 [ 1121.682419] ip_finish_output2+0x230/0xa20 [ 1121.682648] ? ip_skb_dst_mtu+0x51/0x1c0 [ 1121.682896] ? __ip_queue_xmit+0x1d5/0x6f0 [ 1121.683124] __ip_queue_xmit+0x1d5/0x6f0 [ 1121.683377] __tcp_transmit_skb+0xb65/0xd30 [ 1121.683612] ? __alloc_skb+0xdc/0x1a0 [ 1121.683851] tcp_rcv_state_process+0x4f3/0x11f0 [ 1121.684103] ? tcp_v4_rcv+0xdb5/0xef0 [ 1121.684342] ? tcp_v4_do_rcv+0x64/0x360 [ 1121.684557] tcp_v4_do_rcv+0x64/0x360 [ 1121.684786] tcp_v4_rcv+0xe4f/0xef0 [ 1121.684983] ? process_backlog+0x6f/0x260 [ 1121.685223] ip_protocol_deliver_rcu+0x4b/0x1e0 [ 1121.685478] ip_local_deliver_finish+0xaf/0x180 [ 1121.685731] __netif_receive_skb_one_core+0x8b/0xa0 [ 1121.686023] process_backlog+0x7c/0x260 [ 1121.686238] __napi_poll.constprop.0+0x2a/0x1e0 [ 1121.686517] net_rx_action+0x2be/0x340 [ 1121.686731] __do_softirq+0xcb/0x37a [ 1121.686952] irq_exit_rcu+0x7f/0xa0 [ 1121.687176] common_interrupt+0x86/0xa0 [ 1121.687396] [ 1121.687522] [ 1121.687668] asm_common_interrupt+0x26/0x40 [ 1121.687909] RIP: 0010:default_idle+0xf/0x20 [ 1121.688163] Code: 4c 01 c7 4c 29 c2 e9 72 ff ff ff 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 f3 0f 1e fa eb 07 0f 00 2d d3 2d 40 00 fb f4 c3 cc cc cc cc 66 66 2e 0f 1f 84 00 00 00 00 00 90 90 90 90 90 [ 1121.689166] RSP: 0018:ffffb47bc00a3ee8 EFLAGS: 00000202 [ 1121.689479] RAX: 0000000000aa6e5b RBX: ffff98f501373480 RCX: 4000000000000000 [ 1121.689878] RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffffffff9d3a8a13 [ 1121.690293] RBP: 0000000000000001 R08: 0000000000000001 R09: 0000000000000001 [ 1121.690684] R10: 0000000000000000 R11: 0000000000000001 R12: 0000000000000000 [ 1121.691097] R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 [ 1121.691494] ? do_idle+0x1e3/0x220 [ 1121.691714] default_idle_call+0x83/0x180 [ 1121.691937] do_idle+0x1e3/0x220 [ 1121.692141] ? do_idle+0x177/0x220 [ 1121.692339] cpu_startup_entry+0x2a/0x30 [ 1121.692557] start_secondary+0xfc/0x100 [ 1121.692795] secondary_startup_64_no_verify+0x16d/0x17b [ 1121.693093] [ 1153.509193] ncat (9992) 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__->