[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20251123203120.GC49083@sol>
Date: Sun, 23 Nov 2025 12:31:20 -0800
From: Eric Biggers <ebiggers@...nel.org>
To: linux-crypto@...r.kernel.org
Cc: linux-kernel@...r.kernel.org, Ard Biesheuvel <ardb@...nel.org>,
"Jason A . Donenfeld" <Jason@...c4.com>,
Herbert Xu <herbert@...dor.apana.org.au>,
linux-hardening@...r.kernel.org, Kees Cook <kees@...nel.org>
Subject: Re: [PATCH 0/6] lib/crypto: More at_least decorations
On Sat, Nov 22, 2025 at 11:42:00AM -0800, Eric Biggers wrote:
> This series depends on the 'at_least' macro added by
> https://lore.kernel.org/r/20251122025510.1625066-4-Jason@zx2c4.com
> It can also be retrieved from
>
> git fetch https://git.kernel.org/pub/scm/linux/kernel/git/ebiggers/linux.git more-at-least-decorations-v1
>
> Add the at_least (i.e. 'static') decoration to the fixed-size array
> parameters of more of the crypto library functions. This causes clang
> to generate a warning if a too-small array of known size is passed.
>
> Eric Biggers (6):
> lib/crypto: chacha: Add at_least decoration to fixed-size array params
> lib/crypto: curve25519: Add at_least decoration to fixed-size array
> params
> lib/crypto: md5: Add at_least decoration to fixed-size array params
> lib/crypto: poly1305: Add at_least decoration to fixed-size array
> params
> lib/crypto: sha1: Add at_least decoration to fixed-size array params
> lib/crypto: sha2: Add at_least decoration to fixed-size array params
>
Applied this series to
https://git.kernel.org/pub/scm/linux/kernel/git/ebiggers/linux.git/log/?h=libcrypto-next
The build errors should be gone now, since I rebased it on top of
Jason's v4 patch
(https://lore.kernel.org/linux-crypto/20251123054819.2371989-3-Jason@zx2c4.com/).
- Eric
Powered by blists - more mailing lists