From nobody Mon Jun 8 18:58:47 2026 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 4gZ1Xm0cfqz6gYSj for ; Mon, 08 Jun 2026 18:58:48 +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 "R13" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4gZ1Xl7230z3SP1 for ; Mon, 08 Jun 2026 18:58:47 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1780945128; 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=4slERwjYQEwglomD4wdH33wBPkb2kIs6x6ukw36M9F0=; b=jgsRiMfiwU03Fj5UUmCA6DfxqT9hczumtrSEP4wqMLkb8Z3Fxr6tSV0j2pP0TADzh6yQFy o1vmXA7hbuzY4PDAb98QaFzkCHfo8ifEu3TK/ogPQx4yFc9t7JHBxDwz892/zQ4Wkow13o JFLvOhq3/doYcwWhQbMPzpfPKTWXBvNOONTQYmyPdENgatbW9jcM6/ju9RErlgElUjK8+R RueopBmqIbaAeCnDuaO+W8suSzDPOQWBQjRa2XoPIhD1Hi0bSCnNm5nj+gCSrU7SOZKFRu YgGEGpNc0SHL6A3W08bLp3UgLsNg7TO2odcJdVj4laC6K1/OAKlqE+lnWKJF8w== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1780945128; a=rsa-sha256; cv=none; b=g0j+eKH5oXH0CmFoR8eHM6exycHXTamOWar3PhvHEg4HgQAa+DCr/QNKN/46Xuw1KqCCF4 c4a0MbhbOcPQpCFCPv+eGXp4ennugUMWdTUzKEi5W6khCYhuVFilP9t0c4KLAIQZlc8p7j FPjKMtzPErLuN0gVe550zXDQF3uzYV9IxLgtK8fbbQ38ZkPy+EPfLN3wRcM6llJiNsgjMz uCNSkOQsFguuRaz76OHjvsW58udaKFYi4pF7Z+dfUpgvGi6ByitJFbXlksBo0HCyrz+MFw eNJyUSs6C18hpBd1tpO5pgy454tXochPnIKHyK90OlpnOvxjg9BJoTDsaIcoUA== 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=1780945128; 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=4slERwjYQEwglomD4wdH33wBPkb2kIs6x6ukw36M9F0=; b=q/74s8hCkiu2NZdgvZnx3V6B+5L82oEB+nA15PQeJnZLAS9IE+CDck4nK2LoDDs1GB/XQW EXxZIUaAj5PeF+Fm2/RPqUS/ykGNvStmqCoRCxNqWoN5JDoSulGOPpLIqHNCvL0CQu2IBi wdVQNoZbDvW6Bvv5RdlsTNS4jwjB6EpqUvntM2hDaGq6jdVpzCPDK0NdgzraO5hODBKdiv 5Hq08i5vONQ5cSTbnYsyFXqMofbCwQmJMHC7jBDFkhwOJxhQflTbE4l+k63gxZSzIrA4Jk p+ReK3BDwgluBRhytGg7f5oalt0ri4+oBHTQAw77oZKyDM1aig8ESm+MDOM3eA== 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 4gZ1Xl5ntgz11Lx for ; Mon, 08 Jun 2026 18:58:47 +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 658Iwl1c014710 for ; Mon, 8 Jun 2026 18:58:47 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 658Iwl2S014709 for bugs@FreeBSD.org; Mon, 8 Jun 2026 18:58:47 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 295942] SSL_OP_ENABLE_KTLS_TX_ZEROCOPY_SENDFILE data corruption on files > 128KB Date: Mon, 08 Jun 2026 18:58:47 +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: 15.0-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: dinoex@FreeBSD.org 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-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="UTF-8" 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 List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D295942 Bug ID: 295942 Summary: SSL_OP_ENABLE_KTLS_TX_ZEROCOPY_SENDFILE data corruption on files > 128KB Product: Base System Version: 15.0-RELEASE Hardware: Any OS: Any Status: New Severity: Affects Some People Priority: --- Component: kern Assignee: bugs@FreeBSD.org Reporter: dinoex@FreeBSD.org Setup: lighttpd 1.4.82 running on FreeBSD-15.0 with OpenSSL 3.5.4 from base or with OpenSSL 3.5.6 from ports Network driver: igb0 Serving static files with plain http and https using mod_openssl Problem: I got reports that a source packages fetched from my server where corrupted. I was able to reproduce this on multiple servers. Even with the default lighttpd config and adding: ssl.engine =3D "enable". Steps to reproduce: The file must be > 128 kbyte to become corrupted. Fetching the files and running sha256sum an the result showed: 6ef4e286... 20260601.tgz.curl.http 6ef4e286... 20260601.tgz.curl.https 6ef4e286... 20260601.tgz.fetch.http a717baa2... 20260601.tgz.fetch.https 6ef4e286... 20260601.tgz.wget.http 347d964a... 20260601.tgz.wget.https 6ef4e286... is the correct checksum=20 The error log reports: lighttpd-1.4.82/src/mod_openssl.c.4808) SSL: addr:2***:****::*** ssl_err:5 ret:-1 errno:35: Resource temporarily unavailable I was unable to reproduce the problem on servers running FreeBSD-14.4. 14.4-RELEASE-p5 ssl=3Dopenssl35 mod_openssl OK 14.4-RELEASE-p5 ssl=3Dopenssl35 mod_openssl OK 15.0-RELEASE-p9 ssl=3Dopenssl35 mod_openssl broken 15.0-RELEASE-p9 ssl=3Dbase mod_openssl broken 15.0-RELEASE-p9 ssl=3Dopenssl35 mod_wolfssl OK sysctl kern.ipc.tls.stats | grep -v ': 0' FreeBSD-14: all values zero FreeBSD-15: kern.ipc.tls.stats.ocf.separate_output: 2114 kern.ipc.tls.stats.ocf.inplace: 12982513 kern.ipc.tls.stats.ocf.tls13_chacha20_encrypts: 232 kern.ipc.tls.stats.ocf.tls13_chacha20_decrypts: 191 kern.ipc.tls.stats.ocf.tls13_gcm_encrypts: 12984395 kern.ipc.tls.stats.ocf.tls13_gcm_decrypts: 6557803 kern.ipc.tls.stats.enable_calls: 3204921 kern.ipc.tls.stats.offload_total: 3204921 kern.ipc.tls.stats.threads: 4 Workaround: Disable KTLS in lighttpd.conf: ssl.openssl.ssl-conf-cmd +=3D ("Options" =3D> "-KTLS") --=20 You are receiving this mail because: You are the assignee for the bug.=