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 ] [ 1142.811735] 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 ] [ 1145.436258] tc (5361) used greatest stack depth: 11664 bytes left [ 1147.661022] ping (5479) used greatest stack depth: 11512 bytes left # TEST: mirred_egress_to_ingress (skip_hw) [ OK ] # [ 1149.098895] [ 1149.099010] ============================================ [ 1149.099313] WARNING: possible recursive locking detected [ 1149.099596] 6.8.0-rc2-virtme #1 Not tainted [ 1149.099838] -------------------------------------------- [ 1149.100147] swapper/1/0 is trying to acquire lock: [ 1149.100422] ffffa092c24b80b0 (slock-AF_INET/1){+.-.}-{2:2}, at: tcp_v4_rcv+0xdb5/0xef0 [ 1149.100860] [ 1149.100860] but task is already holding lock: [ 1149.101190] ffffa092c24b8cb0 (slock-AF_INET/1){+.-.}-{2:2}, at: tcp_v4_rcv+0xdb5/0xef0 [ 1149.101662] [ 1149.101662] other info that might help us debug this: [ 1149.102034] Possible unsafe locking scenario: [ 1149.102034] [ 1149.102359] CPU0 [ 1149.102495] ---- [ 1149.102646] lock(slock-AF_INET/1); [ 1149.102857] lock(slock-AF_INET/1); [ 1149.103074] [ 1149.103074] *** DEADLOCK *** [ 1149.103074] [ 1149.103399] May be due to missing lock nesting notation [ 1149.103399] [ 1149.103755] 8 locks held by swapper/1/0: [ 1149.103993] #0: ffffffffa33678c0 (rcu_read_lock){....}-{1:2}, at: process_backlog+0x6f/0x260 [ 1149.104449] #1: ffffffffa33678c0 (rcu_read_lock){....}-{1:2}, at: ip_local_deliver_finish+0x6f/0x180 [ 1149.104931] #2: ffffa092c24b8cb0 (slock-AF_INET/1){+.-.}-{2:2}, at: tcp_v4_rcv+0xdb5/0xef0 [ 1149.105423] #3: ffffffffa33678c0 (rcu_read_lock){....}-{1:2}, at: __ip_queue_xmit+0x3f/0x6f0 [ 1149.105879] #4: ffffffffa33678c0 (rcu_read_lock){....}-{1:2}, at: ip_finish_output2+0xc6/0xa20 [ 1149.106355] #5: ffffffffa3367880 (rcu_read_lock_bh){....}-{1:2}, at: __dev_queue_xmit+0x6e/0x1180 [ 1149.106823] #6: ffffffffa33678c0 (rcu_read_lock){....}-{1:2}, at: netif_receive_skb+0x58/0x2c0 [ 1149.107311] #7: ffffffffa33678c0 (rcu_read_lock){....}-{1:2}, at: ip_local_deliver_finish+0x6f/0x180 [ 1149.107797] [ 1149.107797] stack backtrace: [ 1149.108068] CPU: 1 PID: 0 Comm: swapper/1 Not tainted 6.8.0-rc2-virtme #1 [ 1149.108455] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.16.3-0-ga6ed6b701f0a-prebuilt.qemu.org 04/01/2014 [ 1149.109064] Call Trace: [ 1149.109217] [ 1149.109357] dump_stack_lvl+0x4b/0x80 [ 1149.109572] __lock_acquire+0x1215/0x1750 [ 1149.109804] ? mark_held_locks+0x49/0x80 [ 1149.110040] lock_acquire+0xc1/0x2b0 [ 1149.110254] ? tcp_v4_rcv+0xdb5/0xef0 [ 1149.110473] _raw_spin_lock_nested+0x2e/0x40 [ 1149.110723] ? tcp_v4_rcv+0xdb5/0xef0 [ 1149.110937] tcp_v4_rcv+0xdb5/0xef0 [ 1149.111145] ip_protocol_deliver_rcu+0x4b/0x1e0 [ 1149.111401] ip_local_deliver_finish+0xaf/0x180 [ 1149.111648] __netif_receive_skb_one_core+0x8b/0xa0 [ 1149.111927] netif_receive_skb+0x87/0x2c0 [ 1149.112165] tcf_mirred_to_dev+0x1f6/0x410 [act_mirred] [ 1149.112470] tcf_mirred_act+0xee/0x560 [act_mirred] [ 1149.112748] ? tcf_mirred_act+0xd/0x560 [act_mirred] [ 1149.113040] tcf_action_exec+0xac/0x230 [ 1149.113270] fl_classify+0x20e/0x260 [cls_flower] [ 1149.113578] ? __lock_acquire+0xa6e/0x1750 [ 1149.113811] ? __lock_acquire+0xa6e/0x1750 [ 1149.114063] ? print_shortest_lock_dependencies_backwards+0xc6/0xd0 [ 1149.114423] ? find_held_lock+0x2b/0x80 [ 1149.114632] ? lock_acquire+0xc1/0x2b0 [ 1149.114853] ? handle_irq_event+0x51/0x80 [ 1149.115093] ? __lock_acquire+0xa6e/0x1750 [ 1149.115327] ? handle_irq_event+0x51/0x80 [ 1149.115545] tcf_classify+0x17a/0x540 [ 1149.115761] tc_run+0x9f/0x150 [ 1149.115948] __dev_queue_xmit+0x311/0x1180 [ 1149.116183] ? eth_header+0x2a/0xc0 [ 1149.116393] ip_finish_output2+0x22d/0xa20 [ 1149.116615] ? ip_skb_dst_mtu+0x51/0x1c0 [ 1149.116842] ? __ip_queue_xmit+0x1d5/0x6f0 [ 1149.117100] __ip_queue_xmit+0x1d5/0x6f0 [ 1149.117319] __tcp_transmit_skb+0xb65/0xd30 [ 1149.117585] ? __alloc_skb+0xdc/0x1a0 [ 1149.117797] tcp_rcv_state_process+0x4f3/0x11f0 [ 1149.118066] ? tcp_v4_do_rcv+0x64/0x360 [ 1149.118292] tcp_v4_do_rcv+0x64/0x360 [ 1149.118492] tcp_v4_rcv+0xe4f/0xef0 [ 1149.118700] ? process_backlog+0x6f/0x260 [ 1149.118932] ip_protocol_deliver_rcu+0x4b/0x1e0 [ 1149.119193] ip_local_deliver_finish+0xaf/0x180 [ 1149.119454] __netif_receive_skb_one_core+0x8b/0xa0 [ 1149.119717] process_backlog+0x7c/0x260 [ 1149.119944] __napi_poll.constprop.0+0x27/0x1e0 [ 1149.120205] net_rx_action+0x2be/0x340 [ 1149.120409] __do_softirq+0xc8/0x37a [ 1149.120617] irq_exit_rcu+0x7f/0xa0 [ 1149.120822] common_interrupt+0x86/0xa0 [ 1149.121054] [ 1149.121186] [ 1149.121310] asm_common_interrupt+0x26/0x40 [ 1149.121575] RIP: 0010:default_idle+0xf/0x20 [ 1149.121810] 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 66 90 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 [ 1149.122794] RSP: 0018:ffffb49b400a3ee8 EFLAGS: 00000242 [ 1149.123103] RAX: 00000000003bd88f RBX: ffffa092c1338000 RCX: 4000000000000000 [ 1149.123482] RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffffffffa19a8863 [ 1149.123856] RBP: 0000000000000001 R08: 0000000000000001 R09: 0000000000000001 [ 1149.124252] R10: 0000000000000000 R11: 0000000000000001 R12: 0000000000000000 [ 1149.124626] R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 [ 1149.125029] ? do_idle+0x1e3/0x220 [ 1149.125232] default_idle_call+0x83/0x180 [ 1149.125501] do_idle+0x1e3/0x220 [ 1149.125695] ? finish_task_switch.isra.0+0xf7/0x330 [ 1149.125979] cpu_startup_entry+0x2a/0x30 [ 1149.126207] start_secondary+0xfc/0x100 [ 1149.126420] secondary_startup_64_no_verify+0x16d/0x17b [ 1149.126717] [ 1176.950763] ncat (5603) used greatest stack depth: 10680 bytes left [ 1217.657071] irq 4: nobody cared (try booting with the "irqpoll" option) [ 1217.657425] CPU: 1 PID: 4828 Comm: perl Not tainted 6.8.0-rc2-virtme #1 [ 1217.657761] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.16.3-0-ga6ed6b701f0a-prebuilt.qemu.org 04/01/2014 [ 1217.658333] Call Trace: [ 1217.658468] [ 1217.658581] dump_stack_lvl+0x4b/0x80 [ 1217.658778] __report_bad_irq+0x2b/0xc0 [ 1217.658982] note_interrupt+0x2a7/0x2f0 [ 1217.659182] handle_irq_event+0x72/0x80 [ 1217.659383] handle_edge_irq+0x8b/0x230 [ 1217.659583] __common_interrupt+0x4b/0x100 [ 1217.659799] common_interrupt+0x81/0xa0 [ 1217.660000] [ 1217.660114] [ 1217.660227] asm_common_interrupt+0x26/0x40 [ 1217.660446] RIP: 0010:_raw_spin_unlock_irqrestore+0x39/0x50 [ 1217.660731] Code: c7 18 53 48 89 f3 48 8b 74 24 10 e8 81 3c 39 ff 48 89 ef e8 39 6d 39 ff 80 e7 02 74 06 e8 4f 96 46 ff fb 65 ff 0d cf e8 9f 5d <74> 07 5b 5d c3 cc cc cc cc 0f 1f 44 00 00 5b 5d c3 cc cc cc cc 66 [ 1217.661662] RSP: 0018:ffffb49b426dfd18 EFLAGS: 00000286 [ 1217.661929] RAX: 0000000000000001 RBX: 0000000000000282 RCX: 0000000000000017 [ 1217.662290] RDX: ffffffffa21c7da2 RSI: ffffffffa2630671 RDI: ffffffffa2630671 [ 1217.662651] RBP: ffffffffa47fff40 R08: 0000000000000000 R09: 0000000000000000 [ 1217.663011] R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000001 [ 1217.663370] R13: 0000000000000000 R14: ffffa092c26c0001 R15: ffffa092c2230000 [ 1217.663732] ? rpm_suspend+0x232/0x700 [ 1217.663929] ? _raw_spin_unlock_irqrestore+0x31/0x50 [ 1217.664184] ? _raw_spin_unlock_irqrestore+0x31/0x50 [ 1217.664441] ? _raw_spin_unlock_irqrestore+0x31/0x50 [ 1217.664695] uart_write+0x103/0x1d0 [ 1217.664882] n_tty_write+0x1a6/0x530 [ 1217.665070] ? __pfx_woken_wake_function+0x10/0x10 [ 1217.665320] file_tty_write.constprop.0+0x164/0x340 [ 1217.665573] vfs_write+0x38d/0x550 [ 1217.665756] ksys_write+0x69/0xf0 [ 1217.665932] do_syscall_64+0xc9/0x1e0 [ 1217.666124] entry_SYSCALL_64_after_hwframe+0x6f/0x77 [ 1217.666387] RIP: 0033:0x7fcd62c93957 [ 1217.666576] Code: 0b 00 f7 d8 64 89 02 48 c7 c0 ff ff ff ff eb b7 0f 1f 00 f3 0f 1e fa 64 8b 04 25 18 00 00 00 85 c0 75 10 b8 01 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 51 c3 48 83 ec 28 48 89 54 24 18 48 89 74 24 [ 1217.667507] RSP: 002b:00007ffe08aa2d18 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 [ 1217.667888] RAX: ffffffffffffffda RBX: 000055a2e1dccec0 RCX: 00007fcd62c93957 [ 1217.668247] RDX: 0000000000000001 RSI: 000055a2e1dccec0 RDI: 0000000000000001 [ 1217.668605] RBP: 0000000000000001 R08: 0000000000000000 R09: 0000000000002000 [ 1217.668966] R10: 0000000000000001 R11: 0000000000000246 R12: 000055a2e1db9500 [ 1217.669325] R13: 000055a2e1d9a2a0 R14: 0000000000000001 R15: 000055a2e1db9500 [ 1217.669686] [ 1217.669804] handlers: [ 1217.669926] [<000000003554fdce>] serial8250_interrupt [ 1217.670194] Disabling IRQ #4 TEST: mirred_egress_to_ingress_tcp (skip_hw) [ OK ] # INFO: Could not test offloaded functionality ok 1 selftests: WAIT TIMEOUT stdout Ctrl-C stdout Ctrl-C stdout WAIT TIMEOUT stdout