mirror of
https://github.com/hwdsl2/docker-ipsec-vpn-server.git
synced 2026-04-26 01:55:53 +03:00
[GH-ISSUE #221] BUG: scheduling while atomic #206
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @quentingllmt on GitHub (Jan 10, 2021).
Original GitHub issue: https://github.com/hwdsl2/docker-ipsec-vpn-server/issues/221
Hi,
First of all, thanks for your work, this image is exactly what I was looking for !
Describe the issue
I'm able to successfully start the VPN server container on a device running BalenaOS 2.56 (Linux 4.9.140-l4t-r32) and connect my ubuntu client.
However, at some point, the board running the VPN server will reboot when playing with docker on my CLIENT. I've manage to get the logs just before the reboot from dmesg (on the host running the VPN server) (BUG: scheduling while atomic ...):
Click to expand logs
[ 686.884237] BUG: scheduling while atomic: irq/67-host_syn/70/0x00000101
[ 686.884450] Modules linked in: authenc esp4 nf_conntrack_ipv6 nf_defrag_ipv6 ip6t_REJECT nf_reject_ipv6 ip6table_filter xt_state ipt_REJECT nf_reject_ipv4 xt_multiport xt_policy ip6_tables dummy ipt_MASQUERADE nf_nat_masquerade_ipv4 nf_conntrack_netlink nfnetlink br_netfilter xt_owner bnep joydev mousedev input_leds hid_logitech_hidpp mttcan can_dev hid_logitech_dj rtl8822ce rtk_btusb uvcvideo spidev btusb btrtl btbcm btintel cfg80211 nvgpu
[ 686.885901] CPU: 0 PID: 70 Comm: irq/67-host_syn Not tainted 4.9.140-l4t-r32.4 #1
[ 686.886081] Hardware name: NVIDIA Jetson Xavier NX Developer Kit (DT)
[ 686.886237] Call trace:
[ 686.886325] [] dump_backtrace+0x0/0x1b0
[ 686.886458] [] show_stack+0x24/0x30
[ 686.886590] [] dump_stack+0x98/0xc0
[ 686.886721] [] __schedule_bug+0x70/0x80
[ 686.886858] [] __schedule+0x5c8/0x738
[ 686.887181] [] schedule+0x40/0xa8
[ 686.888679] [] schedule_preempt_disabled+0x28/0x40
[ 686.894299] [] __mutex_lock_slowpath+0xf8/0x1a8
[ 686.900063] [] mutex_lock+0x4c/0x50
[ 686.907301] [] tegra_se_aes_queue_req+0x2c/0x98
[ 686.913227] [] tegra_se_aes_cbc_decrypt+0x34/0x40
[ 686.919429] [] skcipher_decrypt_ablkcipher+0x64/0x70
[ 686.925738] [] crypto_authenc_decrypt_tail.isra.1+0xf0/0x118 [authenc]
[ 686.934069] [] crypto_authenc_decrypt+0x94/0xa8 [authenc]
[ 686.940542] [] echainiv_decrypt+0xac/0xc0
[ 686.946482] [] esp_input+0x16c/0x288 [esp4]
[ 686.951983] [] xfrm_input+0x544/0x5b8
[ 686.957408] [] xfrm4_rcv_encap+0xc0/0xf0
[ 686.962466] [] xfrm4_udp_encap_rcv+0x138/0x1d0
[ 686.968572] [] udp_queue_rcv_skb+0x234/0x548
[ 686.974169] [] udp_unicast_rcv_skb.isra.10+0x60/0xb8
[ 686.980546] [] __udp4_lib_rcv+0x6d0/0xa90
[ 686.986579] [] udp_rcv+0x30/0x40
[ 686.991537] [] ip_local_deliver_finish+0x104/0x248
[ 686.997863] [] ip_local_deliver+0x68/0x118
[ 687.003896] [] ip_rcv_finish+0x1f4/0x390
[ 687.009310] [] ip_rcv+0x1f8/0x3e0
[ 687.013852] [] __netif_receive_skb_core+0x500/0xb00
[ 687.020669] [] __netif_receive_skb+0x28/0x80
[ 687.026449] [] process_backlog+0xa4/0x160
[ 687.032229] [] net_rx_action+0x10c/0x388
[ 687.037716] [] __do_softirq+0x148/0x398
[ 687.043309] [] irq_exit+0xd4/0x110
[ 687.048284] [] __handle_domain_irq+0x70/0xc0
[ 687.053890] [] gic_handle_irq+0x54/0xa8
[ 687.059465] [] el1_irq+0xe8/0x194
[ 687.064288] [] host1x_readl+0x58/0xa0
[ 687.069512] [] syncpt_thresh_cascade_isr+0xb4/0x2a8
[ 687.075977] [] irq_thread_fn+0x30/0x80
[ 687.081381] [] irq_thread+0x150/0x1b8
[ 687.086356] [] kthread+0x100/0x108
[ 687.091494] [] ret_from_fork+0x10/0x30
[ 687.097688] softirq: huh, entered softirq 3 NET_RX ffffff8008d75f08 with preempt_count 00000100, exited with 00000000?
[ 687.409075] BUG: scheduling while atomic: ksoftirqd/0/3/0x00000101
[ 687.411333] Modules linked in: authenc esp4 nf_conntrack_ipv6 nf_defrag_ipv6 ip6t_REJECT nf_reject_ipv6 ip6table_filter xt_state ipt_REJECT nf_reject_ipv4 xt_multiport xt_policy ip6_tables dummy ipt_MASQUERADE nf_nat_masquerade_ipv4 nf_conntrack_netlink nfnetlink br_netfilter xt_owner bnep joydev mousedev input_leds hid_logitech_hidpp mttcan can_dev hid_logitech_dj rtl8822ce rtk_btusb uvcvideo spidev btusb btrtl btbcm btintel cfg80211 nvgpu
[ 687.417402] CPU: 0 PID: 3 Comm: ksoftirqd/0 Tainted: G W 4.9.140-l4t-r32.4 #1
[ 687.419779] Hardware name: NVIDIA Jetson Xavier NX Developer Kit (DT)
[ 687.422140] Call trace:
[ 687.424432] [] dump_backtrace+0x0/0x1b0
[ 687.426767] [] show_stack+0x24/0x30
[ 687.429080] [] dump_stack+0x98/0xc0
[ 687.431402] [] __schedule_bug+0x70/0x80
[ 687.433705] [] __schedule+0x5c8/0x738
[ 687.435986] [] schedule+0x40/0xa8
[ 687.438256] [] schedule_preempt_disabled+0x28/0x40
[ 687.440571] [] mutex_optimistic_spin+0x8c/0x1e8
[ 687.442848] [] __mutex_lock_slowpath+0x54/0x1a8
[ 687.445108] [] mutex_lock+0x4c/0x50
[ 687.447378] [] tegra_se_aes_queue_req+0x2c/0x98
[ 687.449660] [] tegra_se_aes_cbc_decrypt+0x34/0x40
[ 687.451928] [] skcipher_decrypt_ablkcipher+0x64/0x70
[ 687.457018] [] crypto_authenc_decrypt_tail.isra.1+0xf0/0x118 [authenc]
[ 687.464474] [] crypto_authenc_decrypt+0x94/0xa8 [authenc]
[ 687.471647] [] echainiv_decrypt+0xac/0xc0
[ 687.477151] [] esp_input+0x16c/0x288 [esp4]
[ 687.482821] [] xfrm_input+0x544/0x5b8
[ 687.487886] [] xfrm4_rcv_encap+0xc0/0xf0
[ 687.493484] [] xfrm4_udp_encap_rcv+0x138/0x1d0
[ 687.499101] [] udp_queue_rcv_skb+0x234/0x548
[ 687.505222] [] udp_unicast_rcv_skb.isra.10+0x60/0xb8
[ 687.511623] [] __udp4_lib_rcv+0x6d0/0xa90
[ 687.517136] [] udp_rcv+0x30/0x40
[ 687.522135] [] ip_local_deliver_finish+0x104/0x248
[ 687.528955] [] ip_local_deliver+0x68/0x118
[ 687.534721] [] ip_rcv_finish+0x1f4/0x390
[ 687.539885] [] ip_rcv+0x1f8/0x3e0
[ 687.544698] [] __netif_receive_skb_core+0x500/0xb00
[ 687.551517] [] __netif_receive_skb+0x28/0x80
[ 687.557535] [] process_backlog+0xa4/0x160
[ 687.563304] [] net_rx_action+0x10c/0x388
[ 687.568805] [] __do_softirq+0x148/0x398
[ 687.573885] [] run_ksoftirqd+0x48/0x58
[ 687.579654] [] smpboot_thread_fn+0x13c/0x278
[ 687.585262] [] kthread+0x100/0x108
[ 687.590326] [] ret_from_fork+0x10/0x30
[ 687.602394] softirq: huh, entered softirq 3 NET_RX ffffff8008d75f08 with preempt_count 00000100, exited with 00000000?
[ 687.679483] BUG: scheduling while atomic: swapper/0/0/0x00000102
[ 687.681721] Modules linked in: authenc esp4 nf_conntrack_ipv6 nf_defrag_ipv6 ip6t_REJECT nf_reject_ipv6 ip6table_filter xt_state ipt_REJECT nf_reject_ipv4 xt_multiport xt_policy ip6_tables dummy ipt_MASQUERADE nf_nat_masquerade_ipv4 nf_conntrack_netlink nfnetlink br_netfilter xt_owner bnep joydev mousedev input_leds hid_logitech_hidpp mttcan can_dev hid_logitech_dj rtl8822ce rtk_btusb uvcvideo spidev btusb btrtl btbcm btintel cfg80211 nvgpu
[ 687.687454] CPU: 0 PID: 0 Comm: swapper/0 Tainted: G W 4.9.140-l4t-r32.4 #1
[ 687.689847] Hardware name: NVIDIA Jetson Xavier NX Developer Kit (DT)
[ 687.692213] Call trace:
[ 687.694490] [] dump_backtrace+0x0/0x1b0
[ 687.696814] [] show_stack+0x24/0x30
[ 687.699140] [] dump_stack+0x98/0xc0
[ 687.701437] [] __schedule_bug+0x70/0x80
[ 687.703771] [] __schedule+0x5c8/0x738
[ 687.706067] [] schedule+0x40/0xa8
[ 687.708368] [] schedule_preempt_disabled+0x28/0x40
[ 687.710706] [] mutex_optimistic_spin+0x8c/0x1e8
[ 687.713021] [] __mutex_lock_slowpath+0x54/0x1a8
[ 687.718874] [] mutex_lock+0x4c/0x50
[ 687.724116] [] tegra_se_aes_queue_req+0x2c/0x98
[ 687.730422] [] tegra_se_aes_cbc_decrypt+0x34/0x40
[ 687.736457] [] skcipher_decrypt_ablkcipher+0x64/0x70
[ 687.742944] [] crypto_authenc_decrypt_tail.isra.1+0xf0/0x118 [authenc]
[ 687.751016] [] crypto_authenc_decrypt+0x94/0xa8 [authenc]
[ 687.757750] [] echainiv_decrypt+0xac/0xc0
[ 687.763752] [] esp_input+0x16c/0x288 [esp4]
[ 687.769149] [] xfrm_input+0x544/0x5b8
[ 687.774394] [] xfrm4_rcv_encap+0xc0/0xf0
[ 687.779634] [] xfrm4_udp_encap_rcv+0x138/0x1d0
[ 687.785165] [] udp_queue_rcv_skb+0x234/0x548
[ 687.791261] [] udp_unicast_rcv_skb.isra.10+0x60/0xb8
[ 687.797379] [] __udp4_lib_rcv+0x6d0/0xa90
[ 687.803148] [] udp_rcv+0x30/0x40
[ 687.808142] [] ip_local_deliver_finish+0x104/0x248
[ 687.814716] [] ip_local_deliver+0x68/0x118
[ 687.820491] [] ip_rcv_finish+0x1f4/0x390
[ 687.826173] [] ip_rcv+0x1f8/0x3e0
[ 687.830984] [] __netif_receive_skb_core+0x500/0xb00
[ 687.837554] [] __netif_receive_skb+0x28/0x80
[ 687.843596] [] process_backlog+0xa4/0x160
[ 687.849367] [] net_rx_action+0x10c/0x388
[ 687.854611] [] __do_softirq+0x148/0x398
[ 687.859947] [] irq_exit+0xd4/0x110
[ 687.864932] [] __handle_domain_irq+0x70/0xc0
[ 687.871045] [] gic_handle_irq+0x54/0xa8
[ 687.876111] [] el1_irq+0xe8/0x194
[ 687.881101] [] cpuidle_enter_state+0xb8/0x380
[ 687.887135] [] cpuidle_enter+0x34/0x48
[ 687.892635] [] call_cpuidle+0x44/0x68
[ 687.897532] [] cpu_startup_entry+0x18c/0x210
[ 687.903576] [] rest_init+0x84/0x90
[ 687.908735] [] start_kernel+0x3a8/0x3d4
[ 687.916602] [] __primary_switched+0x80/0x94packet_write_wait: Connection to 192.168.1.38 port 22222: Broken pipe
Steps to reproduce the behavior:
docker pull ubuntuon your connected clientExpected behavior
No reboot 😎
Server (please complete the following information)
Client (please complete the following information)
@quentingllmt commented on GitHub (Jan 10, 2021):
Probably not related to this docker image, however maybe one of you has already experienced this behavior ?