From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796503376; b=dr6Lx7D+Wa3h/Qr3F9eRIz7MH9Y4Mm3ZtghWE+GjKQ+z/gzvesEegB2CNtAxBoNEiM6F HlRHOp/HgntljNkgF5KgbILLPihBHUyaAFq7H14EDydyBhi9mZNur16YF6sbE45IvlpHM FOR5V3hutSSbQJfuEvafp/hvcMkmp54OCR+g8n+HUjH41FoCg98pLfbvREFutRdVekqRp YyOfH7VBewCg8qBqcOo4EKT5QbLW6wwrmVpl+AprURQEtdcypkVNWHnBUC0rsVVF9LS16 AbVsa0qu6IdwIuR3X7GqvEJ9VRAvspNQ75X7Ygugz3uCZ6rCuc+3tllVbcP9TU56xvA== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796503376; h=Received:DKIM-Signature:Date:From:To:Cc:Subject:Message-ID: References:MIME-Version:Content-Type:Content-Disposition:In-Reply-To; bh=SxruGIWT+diUS5xbyBJork2LoJsclY9dGCVU74rR6g0=; b=CVIqvAgw70DgAIpm9mRfXGslmZ6dVOrIuPSsxCkSMkhzP0enhs04eX1lcORDMYz3L/SM WFEeQDcSDFfrW4KCTWu/mnHcETIcSbAMnMC1oh51GiMA/eNUxjbO06HjjpZmpBRM8iMvg PkAydV9iA3mAcisbEvYJEzJ1JywO/r7ywcoycs16scjgEXUp0XGEh48vWCXO9O6I0S8mH SSHmEoBBOKln4SMV66PrWhFw8xo7ootAMw99Q4l45XRlllWmLXHk/8fLH9qjO8gFjSaIv gYNdsJNEaNN34qcFXq1yQtKEejqOrJJFxDJiMYaPq/6yCd/lasZs1mvVZnJRHya4How== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=QPJuwbpX; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 49654606A31F; Sat, 5 Dec 2026 20:42:55 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=QPJuwbpX Received: by smtp.kernel.org (Postfix) with ESMTPSA id A74D21F0092B; Sat, 5 Dec 2026 20:42:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796503375; bh=SxruGIWT+diUS5xbyBJork2LoJsclY9dGCVU74rR6g0=; h=Date:From:To:Cc:Subject:References:In-Reply-To; b=QPJuwbpXAcBfVdHSzD27puY6YCcYaxkCSKiIswjS9Su3V1GJ2c3B3C6CVe/Og0qYW hKcxMznK6qZk2jGXa28yJD7uA1JrslwzZIPEZahe6HixA48nlEuW/x9GIOTJT2Hyo+ WH+3HFP/1+rwrBy9rnpKTpQzUcdN5zbh+6cDPq3wN3NQYdDizdAaaGGIl5vVX0z+2l A/ZpS0F884Q0I4yOgKwB0ZGjphjP7GIOHL15Cv4XkDbi87h3aCIOsZDdco5Yli4boG bnTf5nakMbuufebTfyuoxvExJBbxZnAzT77XG0/DRgpZHaM1PImaT7U6tF8cCd9U6a RHKxuxY6dl8YA== Date: Sat, 5 Dec 2026 12:42:54 -0800 From: Eric Biggers To: Anggara Putra Cc: "linux-crypto@vger.kernel.org" , "Jason@zx2c4.com" , "ardb@kernel.org" , "linux-hardening@vger.kernel.org" Subject: Re: [PATCH] crypto: polyval - Mark binary test vectors as nonstrings Message-ID: <20261205204254.GB3189@quark> References: X-Mailing-List: linux-crypto@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: On Sat, Dec 05, 2026 at 08:01:30PM +0700, Anggara Putra wrote: > The RFC 8452 key, input and digest are fixed-width binary test vectors. > Enabling GCC's -Wunterminated-string-initialization flags their string > literal initializers because the arrays omit the terminating NUL. > Mark the arrays as __nonstring. The test data and the length passed to > polyval() stay the same. > > OpenAI Codex assisted with the patch, commit message, and local tests > using the public KSPP compiler diagnostics. > > Link: https://github.com/KSPP/linux/issues/381 > Signed-off-by: Anggara Putra Someone else sent a patch for this first (https://lore.kernel.org/linux-crypto/20261204131128.74519-1-pawan@hexcode.au/). I'll take the first one. - Eric