Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

do IPsec test using final branch in openwrt 21.02 cause a kernel(5.4.179) crash #25

Open
mgkiller7 opened this issue Aug 2, 2022 · 0 comments

Comments

@mgkiller7
Copy link

mgkiller7 commented Aug 2, 2022

Hello, @vschagen
Your mtk-eip93 of final branch indeed improved the throughput of ipsec a lot, but it is easy to cause a kernel crash when using it.

Below is my IPsec connect topology: (IPsec mode is 3DES+SHA1; MT7530 switch work in DSA mode)
PC - 192.168.0.1 -|-172.16.13.200 ---- 172.16.13.100 -|- 192.168.2.1
===lan========wan=== ===wan========lan====
Xiaomi R3Gv2_____________________Another Router
PC run iperf3 client, another router run iperf3 -s service.
When iperf3 in PC side work as Tx, the throughput is 102Mbps; And when iperf3 in PC side work as Rx(iperf3 -R) the throughput is 160Mbps but it is easy to cause a kernel crash.

Types of Kernel Crash :

  1. BUG: Bad page state __do_softirq-> net_rx_action->__napi_poll->mtk_napi_rx->page_frag_alloc->...->get_page_from_freelist
  2. CPU 2 Unable to handle kernel paging request __do_softirq-> net_rx_action->__napi_poll->gro_cell_poll->napi_complete_done-> ... ->kmem_cache_alloc
  3. CPU 2 Unable to handle kernel paging request __do_softirq-> net_rx_action->__napi_poll->gro_cell_poll->napi_gro_receive-> ... ->__kmalloc
  4. CPU 2 Unable to handle kernel paging request __do_softirq-> net_rx_action->__napi_poll->gro_cell_poll->napi_complete_done-> ... ->__kmalloc
  5. CPU 2 Unable to handle kernel paging request mtk_irq_clear->mtk_aead_handle_result->mtk_unmap_dma
  6. CPU 0 Unable to handle kernel paging request gro_normal_list->gro_normal_one
  7. CPU 0 Unable to handle kernel paging request __do_softirq->net_rx_action->__napi_poll->mtk_napi_tx->gro_normal_one

The detial log of each kernal crash is attached
detail crash.txt

(it seams related to ethernet net_rx_action() and memory alloc action. I already tried other band MT7621 router but got the same result)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant