Re: [PATCH] x509: select CONFIG_CRYPTO_LIB_SHA256
Eric Biggers <[email protected]>
| Newsgroups | org.kernel.vger.keyrings,org.kernel.vger.linux-crypto,org.kernel.vger.linux-kernel |
|---|---|
| Message-ID | <20260212174910.GC2269@sol> |
On Thu, Feb 12, 2026 at 11:20:55AM +0100, Arnd Bergmann wrote: > From: Arnd Bergmann <[email protected]> > > The x509 public key code gained a dependency on the sha256 hash > implementation, causing a rare link time failure in randconfig > builds: > > arm-linux-gnueabi-ld: crypto/asymmetric_keys/x509_public_key.o: in function `x509_get_sig_params': > x509_public_key.c:(.text.x509_get_sig_params+0x12): undefined reference to `sha256' > arm-linux-gnueabi-ld: (sha256): Unknown destination type (ARM/Thumb) in crypto/asymmetric_keys/x509_public_key.o > x509_public_key.c:(.text.x509_get_sig_params+0x12): dangerous relocation: unsupported relocation > > Select the necessary library code from Kconfig. > > Fixes: 2c62068ac86b ("x509: Separately calculate sha256 for blacklist") > Signed-off-by: Arnd Bergmann <[email protected]> > --- > crypto/asymmetric_keys/Kconfig | 1 + > 1 file changed, 1 insertion(+) Reviewed-by: Eric Biggers <[email protected]> - Eric