From nobody Fri Jun 28 12:31:50 2024 X-Original-To: bugs@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4W9ZYz0rgqz5JwfN for ; Fri, 28 Jun 2024 12:31:51 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4W9ZYy6dxkz43Zh for ; Fri, 28 Jun 2024 12:31:50 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1719577910; a=rsa-sha256; cv=none; b=ez7APtzMr8PfybIcdPlUWJYfK5WgEQgLnCKxw+le06sL8v08SHa3acm05k0zoXI5KTTNLV qUihTnoX8RqXW/qLu7QzZQKNkDoDgqnrQSYHcnrTCzDqaQmhdGPl7kU8PJpTg4xD0LxTRJ h85FQHoc4rUlY6keCQSE2eG8zQejHiuU2PM+5hU0GeL+m7DXpS9mhSxOtBA9/p/yM1rx2n hKTscDFVF56SFFSdnbibNS2W2XzgP3a2QSBXoKEhsHFINm7kyh/W3l6udqfSflFiFGDC6L AnBCcmO8hMgaAU8x9srb1qThBCAdf0OfO1vOYplPVloX/bwXhxAw9uggXZQNMA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1719577910; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=L5mNsrM9SGqgMRocxQBn42StgT9Q10D6pQjB2Rpzlrs=; b=PCpNtBusejMD5M+nGK0fhJtr/+Vb21pmdRUCnaisP418Zl9mK7tFit/Aode+0cyNj9Vs3G Yx8aCX6ovH/jhemLshatzvLtKdd7z7O9qOqudSg1xc3yy8HbipRGERQNPZXGkNx+2lftDW 5/Pfbzqkp0a5WiMBV8dPLhlIPeI+NLIAQ/CmF455LzZwUT6zD2ZHXXOAjDY4ywM//z5Wgs HhNGZC7aohx/57H6g0t1kByI6kqWgysduJy9K98n383NZ6BR8ncrRDCtIoas62hBt3zEpZ H5e+AP2/dw/GLusp5gpKwTJZltEoG0bt5gwojSOUJ6dB10d+OaPadxszOx900Q== Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4W9ZYy6GRSzvr7 for ; Fri, 28 Jun 2024 12:31:50 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 45SCVoFN092072 for ; Fri, 28 Jun 2024 12:31:50 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 45SCVov1092071 for bugs@FreeBSD.org; Fri, 28 Jun 2024 12:31:50 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 280036] Data corruption over if_ovpn (OpenVPN DCO) observed Date: Fri, 28 Jun 2024 12:31:50 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 14.1-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: 3226388001@jcom.home.ne.jp X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-bugs@FreeBSD.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D280036 Bug ID: 280036 Summary: Data corruption over if_ovpn (OpenVPN DCO) observed Product: Base System Version: 14.1-RELEASE Hardware: Any OS: Any Status: New Severity: Affects Some People Priority: --- Component: kern Assignee: bugs@FreeBSD.org Reporter: 3226388001@jcom.home.ne.jp Steps to Reproduce: - Run two instances (Host A and Host B) of FreeBSD using VMware player on Windows Image used: https://download.freebsd.org/releases/VM-IMAGES/14.1-RELEASE/amd64/Latest/F= reeBSD-14.1-RELEASE-amd64.vmdk.xz Note: The VM environment (VMware player) is not relevant because this iss= ue is first found on a physical machine. - Do basic network config of the hosts (ip address, default gateway etc.) - Install OpenVPN at each host # pkg install openvpn - Create openvpn config files (they are derivations of /usr/tests/sys/net/if_ovpn/if_ovpn) dev ovpn0 dev-type tun proto udp4 cipher AES-256-GCM auth SHA256 local 192.168.XXX.YYY server 198.51.100.0 255.255.255.0 ca /usr/tests/sys/net/if_ovpn/ca.crt cert /usr/tests/sys/net/if_ovpn/server.crt key /usr/tests/sys/net/if_ovpn/server.key dh /usr/tests/sys/net/if_ovpn/dh.pem mode server script-security 2 auth-user-pass-verify /usr/bin/true via-env topology subnet keepalive 100 600 dev tun0 dev-type tun client remote 192.168.XXX.YYY auth-user-pass /usr/tests/sys/net/if_ovpn/user.pass ca /usr/tests/sys/net/if_ovpn/ca.crt cert /usr/tests/sys/net/if_ovpn/client.crt key /usr/tests/sys/net/if_ovpn/client.key dh /usr/tests/sys/net/if_ovpn/dh.pem keepalive 100 600 - Prepare Host A ** adduser (USERNAME) ** edit /etc/inetd.conf and enable ftpd. # /etc/rc.d/inetd onestart Starting inetd. Note: this issue is not specific to ftp. This is just for a simple test. ** start openvpn # openvpn --config HOST_A_CONFIG_FILE - Test at Host B ** start openvpn # openvpn --config HOST_B_CONFIG_FILE & ** prepare test data # dd if=3D/dev/random bs=3D1M count=3D100 of=3Drandomfile ** transfer data over if_ovpn (put and get back) # ftp 198.51.100.1 Connected to 198.51.100.1. 220 freebsd FTP server (Version 6.00LS) ready. Name (198.51.100.1:root): USERNAME 331 Password required for USERNAME. Password: 230 User USERNAME logged in. Remote system type is UNIX. Using binary mode to transfer files. ftp> put randomfile local: randomfile remote: randomfile 229 Entering Extended Passive Mode (|||50636|) 150 Opening BINARY mode data connection for 'randomfile'. 100% |**************************************************************************= ******************************| 100 MiB 22.87 MiB/s 00:00 ETA 226 Transfer complete. 104857600 bytes sent in 00:04 (22.80 MiB/s) ftp> get randomfile randomfile.returned local: randomfile.returned remote: randomfile 229 Entering Extended Passive Mode (|||58633|) 150 Opening BINARY mode data connection for 'randomfile' (104857600 byt= es). 100% |**************************************************************************= ******************************| 100 MiB 25.26 MiB/s 00:00 ETA 226 Transfer complete. 104857600 bytes received in 00:03 (25.26 MiB/s) ftp> bye 221 Goodbye. ** compare the files # diff randomfile randomfile.returned Binary files randomfile and randomfile.returned differ # ll randomfile* -rw-r--r-- 1 root wheel 104857600 Jun 28 20:18 randomfile -rw-r--r-- 1 root wheel 104857600 Jun 28 20:19 randomfile.returned # md5sum randomfile* 8008cf7f76ea6b1b3f8a85030f226ec9 randomfile f2c09d5bf4891e82bd38d8af7c2775b7 randomfile.returned Note: The larger the file, the higher the chance of data corruption. --=20 You are receiving this mail because: You are the assignee for the bug.=