MIME-Version: 1.0 References: <63cfcb94-6060-9d45-66f8-6dbfd69d7dd9@...2181...> In-Reply-To: <63cfcb94-6060-9d45-66f8-6dbfd69d7dd9@...2181...> From: Tony He Date: Thu, 4 Mar 2021 17:10:19 +0800 Message-ID: Content-Type: multipart/alternative; boundary="000000000000d2712505bcb2565f" Subject: Re: [Openvpn-devel] Segmentation fault in OpenVPN 2.6_git [git:dco/fcc852a9b2ea832c] List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Antonio Quartulli Cc: Arne Schwabe , openvpn-devel --000000000000d2712505bcb2565f Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Antonio Quartulli =E4=BA=8E2021=E5=B9=B43=E6=9C=884=E6=97=A5= =E5=91=A8=E5=9B=9B =E4=B8=8B=E5=8D=883:48=E5=86=99=E9=81=93=EF=BC=9A > Hi Tony, > > On 04/03/2021 03:10, Tony He wrote: > > > > Arne Schwabe > =E4=BA=8E2021= =E5=B9=B43=E6=9C=883=E6=97=A5 > > =E5=91=A8=E4=B8=89 =E4=B8=8B=E5=8D=887:56=E5=86=99=E9=81=93=EF=BC=9A > > > > Am 03.03.21 um 08:46 schrieb Tony He: > > > Hi Arne, > > > > > > I encountered segmentation fault in your dco branch. Master branch > is > > > OK. I reverted the commit "Linux data-channel offload support", > but it > > > still happens. > > > Anything wrong? Can you reproduce? > > > > OpenVPN without any encryption or TLS is not something I tested. > > Consider this obscure mode broken as part of being a preview releas= e. > > > > > > So can you reproduce this issue at your side? Did you just test static > > key? Can you paste your commands or configurations=EF=BC=9F > > What Arne meant is that, given the following message in your log, > > ******* WARNING *******: All encryption and authentication features > disabled -- All data will be tunnelled as clear text and will not be > protected against man-in-the-middle changes. PLEASE DO RECONSIDER THIS > CONFIGURATION! > > it appears that you are testing *without* any form of encryption. > This special case is untested at the moment. > I used static key and saw same error. % sudo /project/openvpn/schwabe/openvpn.git/src/openvpn/openvpn --ifconfig 10.200.0.1 10.200.0.2 --dev tun --secret static.key [sudo] password for tony: 2021-03-04 16:20:33 OpenVPN 2.6_git [git:dco/8be9bbd16b2c5e1b] x86_64-pc-linux-gnu [SSL (OpenSSL)] [LZO] [LZ4] [EPOLL] [MH/PKTINFO] [AEAD] [DCO] built on Mar 4 2021 2021-03-04 16:20:33 library versions: OpenSSL 1.1.1 11 Sep 2018, LZO 2.08 2021-03-04 16:20:33 WARNING: INSECURE cipher (BF-CBC) with block size less than 128 bit (64 bit). This allows attacks like SWEET32. Mitigate by using a --cipher with a larger block size (e.g. AES-256-CBC). Support for these insecure ciphers will be removed in OpenVPN 2.6. 2021-03-04 16:20:33 WARNING: INSECURE cipher (BF-CBC) with block size less than 128 bit (64 bit). This allows attacks like SWEET32. Mitigate by using a --cipher with a larger block size (e.g. AES-256-CBC). Support for these insecure ciphers will be removed in OpenVPN 2.6. 2021-03-04 16:20:33 WARNING: INSECURE cipher (BF-CBC) with block size less than 128 bit (64 bit). This allows attacks like SWEET32. Mitigate by using a --cipher with a larger block size (e.g. AES-256-CBC). Support for these insecure ciphers will be removed in OpenVPN 2.6. 2021-03-04 16:20:33 sitnl_send: rtnl: generic error (-17): File exists 2021-03-04 16:20:33 net_iface_mtu_set: mtu 1500 for ovpn-dco1 2021-03-04 16:20:33 net_iface_up: set ovpn-dco1 up 2021-03-04 16:20:33 net_addr_ptp_v4_add: 10.200.0.1 peer 10.200.0.2 dev ovpn-dco1 2021-03-04 16:20:33 Could not determine IPv4/IPv6 protocol. Using AF_INET 2021-03-04 16:20:33 UDPv4 link local (bound): [AF_INET][undef]:1194 2021-03-04 16:20:33 UDPv4 link remote: [AF_UNSPEC] zsh: segmentation fault sudo /project/openvpn/schwabe/openvpn.git/src/openvpn/openvpn --ifconfig > > A classic configuration with CA/certs/keys should work. > Have you tried that? > > Yes. I also tried this for a while and did not saw this error. However, the dco was not enabled by default. So I asked Arne's commands or configurations. But I just played with my configurations again and adjust verb to "5". Below log tells that I must set "topology subnet=E2=80=9C explicitly. Now it finally works. Note: NOT using '--topology subnet' disables data channel offload. > Regards, > > > > > > > Thanks for the report. > > > > Arne > > > > > > > > _______________________________________________ > > Openvpn-devel mailing list > > Openvpn-devel@lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/openvpn-devel > > > > -- > Antonio Quartulli > --000000000000d2712505bcb2565f Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable


=
Antonio Quartulli <a@...2181...>= ; =E4=BA=8E2021=E5=B9=B43=E6=9C=884=E6=97=A5=E5=91=A8=E5=9B=9B =E4=B8=8B=E5= =8D=883:48=E5=86=99=E9=81=93=EF=BC=9A
Hi Tony,

On 04/03/2021 03:10, Tony He wrote:
>
> Arne Schwabe <= arne@...1227... <mailto:arne@...1227...>> =E4=BA=8E2021=E5=B9=B43=E6=9C=883=E6= =97=A5
> =E5=91=A8=E4=B8=89 =E4=B8=8B=E5=8D=887:56=E5=86=99=E9=81=93=EF=BC=9A >
>=C2=A0 =C2=A0 =C2=A0Am 03.03.21 um 08:46 schrieb Tony He:
>=C2=A0 =C2=A0 =C2=A0> Hi Arne,
>=C2=A0 =C2=A0 =C2=A0>
>=C2=A0 =C2=A0 =C2=A0> I encountered segmentation fault in your dco b= ranch. Master branch is
>=C2=A0 =C2=A0 =C2=A0> OK. I reverted the commit=C2=A0"Linux dat= a-channel offload support", but it
>=C2=A0 =C2=A0 =C2=A0> still happens.
>=C2=A0 =C2=A0 =C2=A0> Anything wrong? Can you reproduce?
>
>=C2=A0 =C2=A0 =C2=A0OpenVPN without any encryption or TLS is not someth= ing I tested.
>=C2=A0 =C2=A0 =C2=A0Consider this obscure mode broken as part of being = a preview release.
>
>
> So can you reproduce this issue at your side? Did you just test static=
> key? Can you paste your commands or configurations=EF=BC=9F

What Arne meant is that, given the following message in your log,

******* WARNING *******: All encryption and authentication features
disabled -- All data will be tunnelled as clear text and will not be
protected against man-in-the-middle changes. PLEASE DO RECONSIDER THIS
CONFIGURATION!

it appears that you are testing *without* any form of encryption.
This special case is untested at the moment.
I used st= atic key and saw same error.
=C2=A0% sudo /project/openvpn/schwabe/ope= nvpn.git/src/openvpn/openvpn --ifconfig 10.200.0.1 10.200.0.2 --dev tun --s= ecret static.key
[sudo] password for tony:
2021-03-04 16:20:33 OpenV= PN 2.6_git [git:dco/8be9bbd16b2c5e1b] x86_64-pc-linux-gnu [SSL (OpenSSL)] [= LZO] [LZ4] [EPOLL] [MH/PKTINFO] [AEAD] [DCO] built on Mar =C2=A04 2021
2= 021-03-04 16:20:33 library versions: OpenSSL 1.1.1 =C2=A011 Sep 2018, LZO 2= .08
2021-03-04 16:20:33 WARNING: INSECURE cipher (BF-CBC) with block siz= e less than 128 bit (64 bit).=C2=A0 This allows attacks like SWEET32.=C2=A0= Mitigate by using a --cipher with a larger block size (e.g. AES-256-CBC). = Support for these insecure ciphers will be removed in OpenVPN 2.6.
2021-= 03-04 16:20:33 WARNING: INSECURE cipher (BF-CBC) with block size less than = 128 bit (64 bit).=C2=A0 This allows attacks like SWEET32.=C2=A0 Mitigate by= using a --cipher with a larger block size (e.g. AES-256-CBC). Support for = these insecure ciphers will be removed in OpenVPN 2.6.
2021-03-04 16:20:= 33 WARNING: INSECURE cipher (BF-CBC) with block size less than 128 bit (64 = bit).=C2=A0 This allows attacks like SWEET32.=C2=A0 Mitigate by using a --c= ipher with a larger block size (e.g. AES-256-CBC). Support for these insecu= re ciphers will be removed in OpenVPN 2.6.
2021-03-04 16:20:33 sitnl_sen= d: rtnl: generic error (-17): File exists
2021-03-04 16:20:33 net_iface_= mtu_set: mtu 1500 for ovpn-dco1
2021-03-04 16:20:33 net_iface_up: set ov= pn-dco1 up
2021-03-04 16:20:33 net_addr_ptp_v4_add: 10.200.0.1 peer 10.2= 00.0.2 dev ovpn-dco1
2021-03-04 16:20:33 Could not determine IPv4/IPv6 p= rotocol. Using AF_INET
2021-03-04 16:20:33 UDPv4 link local (bound): [AF= _INET][undef]:1194
2021-03-04 16:20:33 UDPv4 link remote: [AF_UNSPEC]zsh: segmentation fault =C2=A0sudo /project/openvpn/schwabe/openvpn.git/sr= c/openvpn/openvpn --ifconfig =C2=A0 =C2=A0
=C2=A0=C2=A0

A classic configuration with CA/certs/keys should work.
Have you tried that?

Yes. I also tried this for a while and did not saw th= is error. However, the dco=C2=A0was not enabled by default.=C2=A0 So I aske= d Arne's commands or configurations.
But I just played with m= y configurations again and adjust verb to "5". Below log tells th= at I must set "topology subnet=E2=80=9C=C2=A0explicitly. Now it finally works.=


Note: NOT using '--topology su= bnet' disables data channel offload.=C2=A0=C2=A0

=C2=A0=C2=A0
Regards,

> =C2=A0
>
>=C2=A0 =C2=A0 =C2=A0Thanks for the report.
>
>=C2=A0 =C2=A0 =C2=A0Arne
>
>
>
> _______________________________________________
> Openvpn-devel mailing list
> Openvpn-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/l= istinfo/openvpn-devel
>

--
Antonio Quartulli
--000000000000d2712505bcb2565f--