From nobody Thu Apr 2 19:00:23 2026 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 96A302E0925 for ; Tue, 17 Feb 2026 08:27:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.129.124 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1771316825; cv=none; b=tQliicAB4uzqOdTAil8i3ARdiy/uEVBrLC4jxr2HNRpHMKkjos0K6xNOJbZig+xEXQCiMSnNg4nvVa1QfJgOVNjV9UQlUSUcx/4ReuCwKYhD/j8zE5SqDy9cyzfTiC8lzR4q/Bmr9M8gfKxq0jyUWhjaDnkU5h0i1oqTHgxBxDQ= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1771316825; c=relaxed/simple; bh=MwAcjm4rUg9a3rz6rD0j81jEsYKCsZMd4yRroLuqIjY=; h=To:cc:Subject:MIME-Version:Content-Type:From:Date:Message-ID; b=p/cRTTPAzSWAQMmDRQxG7L9WCJi1LJ2NMRKP2Hrv+7SvHTLj0M+73vJWceEYuD35M4jcLbRkBc53MZLoyrVQ0WkGa1YIvz7hy0731O4+7jTzxUD1G+Z4hk5o69+0jGOngJ/HL1KAtCMqDLrs4wj5HmN9Vr2BTIju6Z/KDtbECxE= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=redhat.com; spf=pass smtp.mailfrom=redhat.com; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b=AYhmS7z0; arc=none smtp.client-ip=170.10.129.124 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="AYhmS7z0" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1771316823; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=SfsOPeqMEk/9t39NE41XsRGPuGr+cn1g6t+HMYa98o4=; b=AYhmS7z0jkKmLl+WLQS3YYaM1FT3jm8d34/ylhQIs/o2wRG09uwB7rOQOGxzknegP56yBj +CUQBmdLBIb6Q3cVwTV8Bgt0ZumT0QGt60Q/HQ0geXJZLUN2T/eXjFwkBKLqTwu+ecedEN NT16OcR2rZCgsUPhy/UAFjYUpDEkEos= Received: from mx-prod-mc-06.mail-002.prod.us-west-2.aws.redhat.com (ec2-35-165-154-97.us-west-2.compute.amazonaws.com [35.165.154.97]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-19-QCsD-w1XOhC8taefQ9tCJg-1; Tue, 17 Feb 2026 03:26:58 -0500 X-MC-Unique: QCsD-w1XOhC8taefQ9tCJg-1 X-Mimecast-MFC-AGG-ID: QCsD-w1XOhC8taefQ9tCJg_1771316817 Received: from mx-prod-int-05.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-05.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.17]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mx-prod-mc-06.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id 3D3631800282; Tue, 17 Feb 2026 08:26:56 +0000 (UTC) Received: from warthog.procyon.org.uk (unknown [10.45.225.173]) by mx-prod-int-05.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP id 3C9101955F43; Tue, 17 Feb 2026 08:26:52 +0000 (UTC) Organization: Red Hat UK Ltd. Registered Address: Red Hat UK Ltd, Amberley Place, 107-111 Peascod Street, Windsor, Berkshire, SI4 1TE, United Kingdom. Registered in England and Wales under Company Registration No. 3798903 To: Linus Torvalds cc: dhowells@redhat.com, Arnd Bergmann , Lukas Wunner , Ignat Korchagin , Herbert Xu , "David S. Miller" , Jarkko Sakkinen , Arnd Bergmann , keyrings@vger.kernel.org, linux-crypto@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] x509: select CONFIG_CRYPTO_LIB_SHA256 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-ID: <1015746.1771316771.1@warthog.procyon.org.uk> Content-Transfer-Encoding: quoted-printable From: David Howells Date: Tue, 17 Feb 2026 08:26:49 +0000 Message-ID: <1015832.1771316809@warthog.procyon.org.uk> X-Scanned-By: MIMEDefang 3.0 on 10.30.177.17 Content-Type: text/plain; charset="utf-8" =20 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 cry= pto/asymmetric_keys/x509_public_key.o x509_public_key.c:(.text.x509_get_sig_params+0x12): dangerous relocation: u= nsupported relocation Select the necessary library code from Kconfig. Fixes: 2c62068ac86b ("x509: Separately calculate sha256 for blacklist") Signed-off-by: Arnd Bergmann Signed-off-by: David Howells Reviewed-by: Eric Biggers --- crypto/asymmetric_keys/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/crypto/asymmetric_keys/Kconfig b/crypto/asymmetric_keys/Kconfig index 1dae2232fe9a..e50bd9b3e27b 100644 --- a/crypto/asymmetric_keys/Kconfig +++ b/crypto/asymmetric_keys/Kconfig @@ -27,6 +27,7 @@ config X509_CERTIFICATE_PARSER tristate "X.509 certificate parser" depends on ASYMMETRIC_PUBLIC_KEY_SUBTYPE select ASN1 + select CRYPTO_LIB_SHA256 select OID_REGISTRY help This option provides support for parsing X.509 format blobs for key