[WireGuard] mips32 crash
k at vodka.home.kg
k at vodka.home.kg
Mon Nov 7 11:02:56 CET 2016
> Not a lot of participation from the LEDE package maintainer, so I just
> ordered a TL-WR841N for €10, which should arrive on Tuesday, and then
> I'll try to reproduce on actual hardware, and in general keep things
> rolling well on this platform.
So , guys, I found where shit lies !
Crash happens only when l2tp is involved.
I reproduced crash in the following scenario :
Windows ETH -> ETH Dlink ETH L2TP WG -> WG L2TP ETH Ubuntu
I setup xl2tpd interface on dlink and l2tp server on ubuntu. They
connected. On top of l2tp i created wg tunnel. Then I started copying
files from windows thru SMB CIFS to /dev/null. And after hour it
crashed. Crash looks absolutely identical to the crashes that happened
on real MIPS<>ARM link.
Now i'm not sure problem is MIPS related. Probably its l2tp related.
<7>[ 3707.725497] wireguard: Sending handshake initiation to peer 3 (192.168.11.1:51820)
<7>[ 3707.867389] wireguard: Receiving handshake response from peer 3 (192.168.11.1:51820)
<7>[ 3707.875227] wireguard: Keypair 32 created for peer 3
<7>[ 3707.883725] wireguard: Sending keepalive packet to peer 3 (192.168.11.1:51820)
<7>[ 3707.917393] wireguard: Keypair 30 destroyed for peer 3
<7>[ 3827.891019] wireguard: Sending handshake initiation to peer 3 (192.168.11.1:51820)
<7>[ 3828.033812] wireguard: Receiving handshake response from peer 3 (192.168.11.1:51820)
<7>[ 3828.041650] wireguard: Keypair 33 created for peer 3
<7>[ 3828.046879] wireguard: Sending keepalive packet to peer 3 (192.168.11.1:51820)
<7>[ 3828.094491] wireguard: Keypair 31 destroyed for peer 3
<7>[ 3948.047679] wireguard: Sending handshake initiation to peer 3 (192.168.11.1:51820)
<1>[ 3948.151546] CPU 0 Unable to handle kernel paging request at virtual address 000000d8, epc == 800a6a40, ra == 800c0470
<4>[ 3948.162149] Oops[#1]:
<4>[ 3948.164425] CPU: 0 PID: 0 Comm: Not tainted 4.4.30 #0
<4>[ 3948.169549] task: 830e6c00 ti: 830e6000 task.ti: (null)
<4>[ 3948.174930] $ 0 : 00000000 00000001 00000000 00000003
<4>[ 3948.180176] $ 4 : 830e6c00 00010000 00000000 00000001
<4>[ 3948.185424] $ 8 : 830e6c00 00466f92 00000002 00000001
<4>[ 3948.190671] $12 : 003d08ff c0a80b01 00000000 00000000
<4>[ 3948.195918] $16 : 00000001 830e6c00 00000002 8049f4f0
<4>[ 3948.201166] $20 : 3cdc49e0 00000397 804a01e0 830e7fb8
<4>[ 3948.206413] $24 : 00000000 800817ac
<4>[ 3948.211660] $28 : 830e6000 830e7db0 003d0900 800c0470
<4>[ 3948.216908] Hi : 00000397
<4>[ 3948.219783] Lo : 37233800
<4>[ 3948.222681] epc : 800a6a40 account_system_time+0x158/0x1e0
<4>[ 3948.228327] ra : 800c0470 update_process_times+0x24/0x70
<4>[ 3948.233878] Status: 10007c02 KERNEL EXL
<4>[ 3948.237811] Cause : 00800008 (ExcCode 02)
<4>[ 3948.241810] BadVA : 000000d8
<4>[ 3948.244686] PrId : 00019374 (MIPS 24Kc)
<4>[ 3948.248598] Modules linked in: ath9k ath9k_common pppoe ppp_async l2tp_ppp iptable_nat ath9k_hw ath pptp pppox ppp_mppe ppp_generic nf_nat_pptp nf_nat_ipv4 nf_nat_amanda nf_conntrack_pptp nf_conntrack_ipv6 nf_conntrack_ipv4 nf_conntrack_amanda mac80211 ipt_REJECT ipt_MASQUERADE cfg80211 xt_u32 xt_time xt_tcpudp xt_tcpmss xt_string xt_statistic xt_state xt_recent xt_quota xt_pkttype xt_physdev xt_owner xt_nat xt_multiport xt_mark xt_mac xt_limit xt_length xt_id xt_hl xt_helper xt_hashlimit xt_ecn xt_dscp xt_conntrack xt_connmark xt_connlimit xt_connbytes xt_comment xt_addrtype xt_TCPMSS xt_REDIRECT xt_NFQUEUE xt_NFLOG xt_NETMAP xt_LOG xt_IPMARK xt_HL xt_DSCP xt_CT xt_CLASSIFY ts_kmp ts_fsm ts_bm slhc nfnetlink_queue nfnetlink_log nf_reject_ipv4 nf_nat_tftp nf_nat_snmp_basic nf_nat_sip nf_nat_redirect nf_nat_proto_gre nf_nat_masquerade_ipv4 nf_nat_irc nf_nat_h323 nf_nat_ftp nf_nat nf_log_ipv4 nf_defrag_ipv6 nf_defrag_ipv4 nf_conntrack_tftp nf_conntrack_snmp nf_conntrack_sip nf_conntrack_rtcache nf_conntrack_proto_gre nf_conntrack_netlink nf_conntrack_irc nf_conntrack_h323 nf_conntrack_ftp nf_conntrack_broadcast iptable_raw iptable_mangle iptable_filter ipt_ECN ip_tables crc_ccitt compat_xtables compat br_netfilter em_cmp sch_teql em_nbyte sch_dsmark sch_pie act_ipt sch_codel sch_gred sch_htb cls_basic sch_prio em_text em_meta act_police sch_red sch_tbf sch_sfq sch_fq act_connmark nf_conntrack act_skbedit act_mirred em_u32 cls_u32 cls_tcindex cls_flow cls_route cls_fw sch_hfsc sch_ingress sg ledtrig_usbport xt_set ip_set_list_set ip_set_hash_netiface ip_set_hash_netport ip_set_hash_netnet ip_set_hash_net ip_set_hash_netportnet ip_set_hash_mac ip_set_hash_ipportnet ip_set_hash_ipportip ip_set_hash_ipport ip_set_hash_ipmark ip_set_hash_ip ip_set_bitmap_port ip_set_bitmap_ipmac ip_set_bitmap_ip ip_set nfnetlink ip6t_REJECT nf_reject_ipv6 nf_log_ipv6 nf_log_common ip6table_raw ip6table_mangle ip6table_filter ip6_tables ip_gre gre ifb wireguard x_tables l2tp_ip6 l2tp_ip sit l2tp_netlink l2tp_core udp_tunnel ip6_udp_tunnel tunnel4 ip_tunnel tun nls_utf8 sha1_generic ecb usb_storage ehci_platform ehci_hcd sd_mod scsi_mod rndis_host cdc_ether usbnet gpio_button_hotplug ext4 jbd2 mbcache usbcore nls_base usb_common crc16 mii cryptomgr aead crypto_null crc32c_generic crypto_hash
<4>[ 3948.450467] Process (pid: 0, threadinfo=830e6000, task=830e6c00, tls=00000000)
<4>[ 3948.457752] Stack : 00000000 00000000 00000000 00000000 00000000 830e6c00 00000000 80530000
<4>[ 3948.457752] 80530000 800c0470 80530000 80530000 3cdc49e0 00000397 804a01e0 80530000
<4>[ 3948.457752] 00000000 800cef5c 00000000 00000000 00000000 00000000 804a0080 804a0040
<4>[ 3948.457752] 00000397 3cdc49e0 804a0080 804a0000 804a01e0 804a0040 00000001 00000397
<4>[ 3948.457752] 3cdc33f4 3cdc33f4 804a0000 800c1300 00000000 00000000 00000000 00000000
<4>[ 3948.457752] ...
<4>[ 3948.493496] Call Trace:
<4>[ 3948.495949] [<800a6a40>] account_system_time+0x158/0x1e0
<4>[ 3948.501245]
<4>[ 3948.502726]
<4>[ 3948.502726] Code: 8e22022c 00473821 ae27022c <90c200d8> 304200ff 10400005 001210c0 8e2202c0 14400010
<4>[ 3948.512703] ---[ end trace c97c3d3ad4123a9a ]---
--
С уважением,
K mailto:k at vodka.home.kg
More information about the WireGuard
mailing list