From nobody Fri May 20 00:36:20 2022 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 C9B6E1B45A97 for ; Fri, 20 May 2022 00:36:21 +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 4L477n1B5Kz3qtc for ; Fri, 20 May 2022 00:36:20 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) 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 BAC2612B for ; Fri, 20 May 2022 00:36:20 +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 24K0aK7g044684 for ; Fri, 20 May 2022 00:36:20 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from bugzilla@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 24K0aKCS044683 for net@FreeBSD.org; Fri, 20 May 2022 00:36:20 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 263379] [regression] [ipsec] compatibility broken between stable/12 and stable/13 opencrypto in AEAD mode Date: Fri, 20 May 2022 00:36:20 +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: 13.1-STABLE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: commit-hook@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: jhb@FreeBSD.org X-Bugzilla-Flags: mfc-stable13? 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 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1653006981; 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=/39UM4Cs5e4rEvsspluLZ5hQOnAH7AAZV9IkWsu4+Pg=; b=SkBPO2QMdfseb0FQ1cTOFpp9DHuWD4TvOZZuv2HQH2rIsrgDqsV6jrkvjsBijCNjfbc3A6 IezutK7Jv+ErNvhiHlyyfhMyInW+ko+0WLOfEOSRz8LbpRb6csyr6X97wRDVEIl7qilI5x lOBHPBwqyffosi9YpBxVw9yAbFxmijzVVMNvA1EXxm7UkrV+L5XY5fGDDe13E1o0IgIfD9 bIwvO36sZUUdQxp7Wj4mf+HNeEys1wSuPFWRo1uhgpoQnnT11p4r4N5pwUJl66OjFvK32Q P+OpnhkHWLyG5GeewlwHl8+LtT8UF7VsSRSNOTHx6Lazf01tTJWgLsOJRO2p8g== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1653006981; a=rsa-sha256; cv=none; b=gRly+IwSzuK6T0gXNKR6dJiozbGdhVNmsIwKAC9Ik0AisFmwrM2+QvCi9/BTebEpuIJViT u+YxUf9pTznRBlaxcU4fkg9iTK2e2/3VBo2EX/yB5Z9HU/2qn+H8exaTkEN+2oVHhcQ2yS Gf3VJ30I5fBRM4Vt8r4Ds9lnm1txAGJzPGpbZ8cz2Lp1XkcRu1rS6IOjYY9Yw1Jaev/Jad SdBPlUYEP8AJ3UFKYUwbn7VsJXRFLR4rGYUgaWy7G+KvVt2Y5Q5Ryupw3RhijjzXbDWzQA 3OZyuiLNw5XinAhuax3Rf+cgEqzQD3Pf2MkQB8EtbG+GaGAWUe9Wo6rbPIMF6A== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D263379 --- Comment #16 from commit-hook@FreeBSD.org --- A commit in branch stable/13 references this bug: URL: https://cgit.FreeBSD.org/src/commit/?id=3D6835ace580917ec512eb96cf9c456f4ac= c161247 commit 6835ace580917ec512eb96cf9c456f4acc161247 Author: John Baldwin AuthorDate: 2022-04-27 19:18:52 +0000 Commit: John Baldwin CommitDate: 2022-05-20 00:35:34 +0000 setkey(8): Clarify language around AEAD ciphers. AEAD ciphers for IPsec combine both encryption and authentication. As such, ESP configurations using an AEAD cipher should not use a seperate authentication algorithm via -A. However, this was not apparent from the setkey manpage and 12.x and earlier did not perform sufficient argument validation permitting users to pair an explicit -A such as SHA256-HMAC with AES-GCM. (The result was a non-standard combination of AES-CTR with the specified MAC, but with the wrong initial block counter (and thus different keystream) compared to using AES-CTR as the cipher.) Attempt to clarify this in the manpage by explicitly calling out AEAD ciphers (currently only AES-GCM) and noting that AEAD ciphers should not use -A. While here, explicitly note which authentication algorithms can be used with esp vs esp-old. Also add subsection headings for the different algorithm lists and tidy some language. I did not convert the tables to column lists (Bl -column) though that would probably be more correct than using literal blocks (Bd -literal). PR: 263379 Reviewed by: Pau Amma , markj Differential Revision: https://reviews.freebsd.org/D34947 (cherry picked from commit e6dede145616ed8f98c629c23a2ba206b812c921) sbin/setkey/setkey.8 | 58 +++++++++++++++++++++++++++++-------------------= ---- 1 file changed, 32 insertions(+), 26 deletions(-) --=20 You are receiving this mail because: You are on the CC list for the bug.=