From nobody Tue Jan 30 05:39:45 2024 X-Original-To: net@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 4TPDWj6lShz58LH6 for ; Tue, 30 Jan 2024 05:39:45 +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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TPDWj4bC3z4Wc5 for ; Tue, 30 Jan 2024 05:39:45 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1706593185; 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: in-reply-to:in-reply-to:references:references; bh=+ilaX0hA+zmzb3iHTXRvVw+L/Ig7kTraU9C27ow+uW0=; b=MtkiYjCbq6G6TRU2UDfkeLdKvaz02SPHG5x2tWtLFHvAhLgwpV6yuMpMONIFlK7FyBwATC 4fn2efv9spcSDwXfgrdOKiHfydlv0qu3onGD01Z3k68upF6O1JJlD2H4+3OZrgFAAlP4KZ YLolj71NUopxTUZ0a7PRjFnAjAdKDcd6HIC/jbR7EabgxLNv+2of7X//XU0ARKyZBm/wUy xgmxeBZJb83KQhe23nnwE1LaTeG3mRHAc+WRxshAuAzxHLnpfl+i++0XyEbtZGFa4VCLZd pCSKP46iswKnDgEeVU/M7dM3MhSMwOMFTO7/RP9sSe8SJnTyUz2ILBGcKbGrLw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1706593185; a=rsa-sha256; cv=none; b=d1Uj3IUXPXWPiXCVLguzpcaA2FcDv5yiQH7R/yJxp+2fepBKvZSDXfOvcgNfebbOS7qf58 Qv+FXWu0yLaT206xF5iUcS3iVpvk1VmLsKBs52D27XDhiY3QwiXMQXvv0evtQr8pCTAErc 6n3hvZ9lUDR5W+ktHBa7+Z9daSFCIoYiMLYH3yc/qcE2SFruhL3C3xSwX/mfq4dQ9m3xfC 6rB+Lokz3GJS6ymGwhNCpfQ9lKypviY273FBTT06BP5AF7TQjLsaWm51UfSPG3JzIkfdIP 39dJyCHVDmlDcKCDWc/aBPrehCCfcwKAuWwfU954GXlvT+LWATIvZVzKF1aNFg== 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 4TPDWj3YM5zN7w for ; Tue, 30 Jan 2024 05:39:45 +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 40U5djlp062482 for ; Tue, 30 Jan 2024 05:39:45 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from bugzilla@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 40U5djBB062477 for net@FreeBSD.org; Tue, 30 Jan 2024 05:39:45 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: bugzilla set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: net@FreeBSD.org Subject: [Bug 276363] if_wg: Fix bug in calculate_padding() for the 'p_mtu = 0' case Date: Tue, 30 Jan 2024 05:39:45 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: commit-hook@FreeBSD.org X-Bugzilla-Status: In Progress X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: kevans@freebsd.org X-Bugzilla-Flags: mfc-stable14? mfc-stable13? mfc-stable12- X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: 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: Networking and TCP/IP with FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-net List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-net@freebsd.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D276363 --- Comment #5 from commit-hook@FreeBSD.org --- A commit in branch stable/13 references this bug: URL: https://cgit.FreeBSD.org/src/commit/?id=3Dbbda52e814e0c760b2beaeae40a2c76ff= 43d1975 commit bbda52e814e0c760b2beaeae40a2c76ff43d1975 Author: Aaron LI AuthorDate: 2024-01-17 23:29:23 +0000 Commit: Kyle Evans CommitDate: 2024-01-30 05:37:46 +0000 if_wg: fix erroneous calculation in calculate_padding() for p_mtu =3D= =3D 0 In practice this is harmless; only keepalive packets may realistically = have p_mtu =3D=3D 0, and they'll also have no payload so the math works out = the same either way. Still, let's prefer technical accuracy and calculate the amount of padding needed rather than the padded length... PR: 276363 (cherry picked from commit b891f61ef538a4e9b4658b4b756635c8036a5788) sys/dev/wg/if_wg.c | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) --=20 You are receiving this mail because: You are on the CC list for the bug.=