πŸš€ go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.debian.kernel
Article #126

Bug#1150677: marked as done (linux: Linux logs error `ima: Can not allocate sha384 (reason: -2)`)

#126
From: Debian Bug Tracking System
Date: Fri, 16 Oct 2026 03:40
338 lines
15685 bytes
This is a multi-part message in MIME format...

------------=_1792121827-3068409-0
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain; charset="utf-8"

Your message dated Fri, 16 Oct 2026 03:34:29 +0000
with message-id <E1xHYiD-00000005UHi-2hxW@fasolo.debian.org>
and subject line Bug#1150677: fixed in linux 7.3~rc7-1~exp1
has caused the Debian Bug report #1150677,
regarding linux: Linux logs error `ima: Can not allocate sha384 (reason: -2=
)`
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact owner@bugs.debian.org
immediately.)


--=20
1150677: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=3D1150677
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems

------------=_1792121827-3068409-0
Content-Type: message/rfc822
Content-Disposition: inline
Content-Transfer-Encoding: 7bit

Received: (at submit) by bugs.debian.org; 12 Oct 2026 07:02:30 +0000
X-Spam-Checker-Version: SpamAssassin 4.0.1-bugs.debian.org_2005_01_02
	(2024-03-25) on buxtehude.debian.org
X-Spam-Level: 
X-Spam-Status: No, score=-15.0 required=4.0 tests=BAYES_00,
	BODY_INCLUDES_PACKAGE,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,
	DKIM_VALID_EF,FOURLA,HAS_PACKAGE,RCVD_IN_DNSWL_MED,SPF_HELO_PASS,
	SPF_PASS autolearn=ham autolearn_force=no
	version=4.0.1-bugs.debian.org_2005_01_02
X-Spam-Bayes: score:0.0000 Tokens: new, 47; hammy, 150; neutral, 87; spammy,
	0. spammytokens: hammytokens:0.000-+--sha512, 0.000-+--SHA512,
	0.000-+--sk:config_, 0.000-+--sk:CONFIG_, 0.000-+--deb14amd64
Return-path: <pmenzel@molgen.mpg.de>
Received: from mx3.molgen.mpg.de ([141.14.17.11]:46693)
	by buxtehude.debian.org with esmtps (TLS1.3:ECDHE_X25519__RSA_PSS_RSAE_SHA256__AES_256_GCM:256)
	(Exim 4.96)
	(envelope-from <pmenzel@molgen.mpg.de>)
	id 1xGA3J-00ELPO-2d
	for submit@bugs.debian.org;
	Mon, 12 Oct 2026 07:02:29 +0000
Received: from [192.168.2.230] (p57bd9ff3.dip0.t-ipconnect.de [87.189.159.243])
	(using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)
	 key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256)
	(No client certificate requested)
	(Authenticated sender: pmenzel)
	by mx.molgen.mpg.de (Postfix) with ESMTPSA id 3401C4C442F977;
	Mon, 12 Oct 2026 09:02:21 +0200 (CEST)
Message-ID: <efb46f3c-ff3c-4a20-a40c-469b64e881c1@molgen.mpg.de>
Date: Mon, 12 Oct 2026 09:02:19 +0200
MIME-Version: 1.0
User-Agent: Mozilla Thunderbird
Content-Language: en-US
To: submit@bugs.debian.org
From: Paul Menzel <pmenzel@molgen.mpg.de>
Subject: linux: Linux logs error `ima: Can not allocate sha384 (reason: -2)`
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=molgen.mpg.de; s=20260906; 
	t=1791788541; 
	h=from:from:subject:date:message-id:mime-version:content-type:content-transfer-encoding; 
	bh=OpMA3U1lF2X2Bg2ZwIrviQkw3Rj3LRY+W3Yk2qMH8Mg=; 
	b=KJmwsVH+lzcVm0KFbNmLqjKQS1Wu7N+HEobHMLy5xRoj/tuIkii12cAhcq9wVpOlOGIqPAq4Cjzr
	S5dxkK65bMGsN9zAZ9l3TXQziCITM15L3epsU6UUQlXLh3umSfWuwZBeWua2fLiKD/1CmiUUuysYof
	rZn/GwXHlaSn8dD/IicnAbnri6rCdLO/HPuK+m1qx8O69Aq1zJelxQujbwjdnHH1ClOysiMMqh1m2Z
	4lJSdIYrf1HWzjZR7tZxyMew8bPv1cASWlM50MJ78u3Ay4HCrYU9D7hyybZc8jIh3uClwmz6z+n19x
	xw9xKwTneStyAufH5vIS+leCOQAZ0GQw==
Delivered-To: submit@bugs.debian.org

Package: src:linux
Version: 7.2.9-1
Severity: minor


Dear Debian folks,


On a Dell XPS 13 7390, BIOS 1.29.0, Nuvoton TPM 2.0 NTC0702, Linux 
7.2.9-1 (*linux-image-7.2.9+deb14-amd64* 7.2.9-1) logs the error below:

     [    0.546039] ima: Allocated hash algorithm: sha256
     [    0.548233] ima: Can not allocate sha384 (reason: -2)

sha384 is provided by `CONFIG_CRYPTO_SHA512` (`crypto/sha512.c`), which 
`debian/config/config` sets to m:

     $ grep SHA512 /boot/config-7.2.9+deb14-amd64
     # CONFIG_MODULE_SIG_SHA512 is not set
     CONFIG_CRYPTO_SHA512=m
     CONFIG_CRYPTO_LIB_SHA512=y
     CONFIG_CRYPTO_LIB_SHA512_ARCH=y

SHA-1 works because IMA selects `CRYPTO_SHA1` resulting in:

     $ grep CRYPTO_SHA1 /boot/config-7.2.9+deb14-amd64
     CONFIG_CRYPTO_SHA1=y

SHA-256 works because `debian/config/config` already builds it in β€œfor 
IMA_DEFAULT_HASH_SHA256”.

     $ grep CRYPTO_SHA256 /boot/config-7.2.9+deb14-amd64
     CONFIG_CRYPTO_SHA256=y

SHA-384 gets -ENOENT.

Please consider setting 
  


     CONFIG_CRYPTO_SHA512=y 
  


next to `CONFIG_CRYPTO_SHA256=y`. `CONFIG_CRYPTO_LIB_SHA512` is already 
built in, so only the crypto API glue moves into vmlinux.

Tested on Dell XPS 13 7390.


Kind regards,

Paul


PS: `ima_init_crypto()` runs as a late initcall. It allocates a shash 
for every PCR bank, the TPM reports as active. 
`tpm2_get_pcr_allocation()` skips banks without selected PCRs. With the 
default ima_hash and no policy loaded yet, that loop is the only place 
requesting sha384, so this TPM has an active SHA-384 bank.

The effect is more than a log message. For a bank without a tfm, IMA 
extends PCR 10 with the zero-padded SHA-1 template digest (see the 
comment β€œfor unmapped TPM algorithms digest is still a padded SHA1” in 
`ima_calc_field_array_hash()`). So the SHA-384 bank of PCR 10 does not 
contain SHA-384 measurements.

PPS: Related to bug report #1144056 [1].

https://bugs.debian.org/1144056

------------=_1792121827-3068409-0
Content-Type: message/rfc822
Content-Disposition: inline
Content-Transfer-Encoding: 7bit

Received: (at 1150677-close) by bugs.debian.org; 16 Oct 2026 03:34:31 +0000
X-Spam-Checker-Version: SpamAssassin 4.0.1-bugs.debian.org_2005_01_02
	(2024-03-25) on buxtehude.debian.org
X-Spam-Level: 
X-Spam-Status: No, score=-114.2 required=4.0 tests=ALL_TRUSTED,BAYES_00,
	DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FVGT_m_MULTI_ODD,
	HAS_BUG_NUMBER,MD5_SHA1_SUM,PGPSIGNATURE,USER_IN_DKIM_WELCOMELIST
	autolearn=ham autolearn_force=no
	version=4.0.1-bugs.debian.org_2005_01_02
X-Spam-Bayes: score:0.0000 Tokens: new, 77; hammy, 150; neutral, 167; spammy,
	0. spammytokens: hammytokens:0.000-+--HX-Debian:DAK,
	0.000-+--H*rp:D*ftp-master.debian.org, 0.000-+--HX-DAK:process-upload,
	0.000-+--UD:debian.tar.xz, 0.000-+--H*r:sk:fasolo.
Return-path: <envelope@ftp-master.debian.org>
Received: from muffat.debian.org ([2607:f8f0:614:1::1274:33]:47858)
	by buxtehude.debian.org with esmtps (TLS1.3:ECDHE_SECP256R1__RSA_PSS_RSAE_SHA256__AES_256_GCM:256)
	(Exim 4.96)
	(envelope-from <envelope@ftp-master.debian.org>)
	id 1xHYiF-00Cry0-13
	for 1150677-close@bugs.debian.org;
	Fri, 16 Oct 2026 03:34:31 +0000
Received: via submission
	from C=NA,ST=NA,L=Ankh Morpork,O=Debian SMTP,OU=Debian SMTP CA,CN=fasolo.debian.org,EMAIL=hostmaster@fasolo.debian.org (verified)
	by muffat.debian.org with esmtps (TLS1.3:ECDHE_SECP256R1__RSA_PSS_RSAE_SHA256__AES_256_GCM:256)
	(Exim 4.96)
	(envelope-from <envelope@ftp-master.debian.org>)
	id 1xHYiE-007KJV-1y
	for 1150677-close@bugs.debian.org;
	Fri, 16 Oct 2026 03:34:30 +0000
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed;
	d=ftp-master.debian.org; s=smtpauto.fasolo; h=Date:Message-Id:Content-Type:
	Subject:MIME-Version:To:Reply-To:From:Cc:Content-Transfer-Encoding:Content-ID
	:Content-Description:In-Reply-To:References;
	bh=CwaRMmNTAxZZaHuyZsZQK3uVF1GphNhg7srz3ILo6RA=; b=Ev8kHlD4zQzgW8/s0oMiGo/XVv
	p/H/jkDxaB1WCqYz6/doC5BHAjAe/89YeMI4qXQPzPvMYZvoa0NC2qdyhCmz0TiH1bh7ycFjZ4VUA
	pX8gOcQ6X8NB3MMJLkpd3gchmHbAwU8brTmoFJ8UW0zjDkV+bqTuiXRDR8Vnk7iKTtR7gBZaVhNYQ
	z8kyGwzgQFlprGgkfZ91GEEThRC8X2VgS5DigJvWvnG/PHkHbR6s+0NVTWKAOdkeTRaL85nRDP1+4
	8Ev9XbyYQShYIAph2rdFFLPaErYAX0c5BaaDZOZbi+k0TqNSzuS3UxOwkBI8MsM5EK7kTjC+vccpZ
	n63DOG7g==;
Received: from dak by fasolo.debian.org with local (Exim 4.98.2)
	(envelope-from <envelope@ftp-master.debian.org>)
	id 1xHYiD-00000005UHi-2hxW;
	Fri, 16 Oct 2026 03:34:29 +0000
From: Debian FTP Masters <ftpmaster@ftp-master.debian.org>
Reply-To: Salvatore Bonaccorso <carnil@debian.org>
To: 1150677-close@bugs.debian.org
X-DAK: dak process-upload
X-Debian: DAK
X-Debian-Package: linux
Debian: DAK
Debian-Changes: linux_7.3~rc7-1~exp1_source.changes
Debian-Source: linux
Debian-Version: 7.3~rc7-1~exp1
Debian-Architecture: source
Debian-Suite: experimental
Debian-Archive-Action: accept
MIME-Version: 1.0
Subject: Bug#1150677: fixed in linux 7.3~rc7-1~exp1
Content-Type: multipart/signed; micalg="pgp-sha256";
 protocol="application/pgp-signature";
 boundary="===============4302434979876462558=="
Message-Id: <E1xHYiD-00000005UHi-2hxW@fasolo.debian.org>
Date: Fri, 16 Oct 2026 03:34:29 +0000
X-CrossAssassin-Score: 2

--===============4302434979876462558==
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: quoted-printable

Source: linux
Source-Version: 7.3~rc7-1~exp1
Done: Salvatore Bonaccorso <carnil@debian.org>

We believe that the bug you reported is fixed in the latest version of
linux, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 1150677@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Salvatore Bonaccorso <carnil@debian.org> (supplier of updated linux package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@ftp-master.debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Format: 1.8
Date: Fri, 16 Oct 2026 04:51:48 +0200
Source: linux
Architecture: source
Version: 7.3~rc7-1~exp1
Distribution: experimental
Urgency: medium
Maintainer: Debian Kernel Team <debian-kernel@lists.debian.org>
Changed-By: Salvatore Bonaccorso <carnil@debian.org>
Closes: 1148364 1149564 1149840 1150677
Changes:
 linux (7.3~rc7-1~exp1) experimental; urgency=3Dmedium
 .
   * New upstream release candidate.
     - bnxt_en: fix DMA mapping length for padded small packets
       (Closes: #1149564)
     - riscv: lib: Fix ZBB strnlen wrap-around regression on huge counts
       (Closes: #1148364)
 .
   [ Salvatore Bonaccorso ]
   * drivers/hwmon: Enable SENSORS_ARCTIC_FAN_CONTROLLER as module
     (Closes: #1149840)
   * Change CRYPTO_SHA512 from module to built-in, as required by IMA
     (Closes: #1150677)
Checksums-Sha1:
 943670ca7abe2d423d70f196aa82709d0c239a29 180429 linux_7.3~rc7-1~exp1.dsc
 06a651adf41b1ebf4fb6226296890023a876044c 165730924 linux_7.3~rc7.orig.tar.xz
 34b655852b6bd35170dc89ac489ed2d72068efcd 1457708 linux_7.3~rc7-1~exp1.debian=
.tar.xz
 46c600e45d8dcfb131e4f06ac4f795a271b80778 5925 linux_7.3~rc7-1~exp1_source.bu=
ildinfo
Checksums-Sha256:
 8a806f5233f53f783999343d648e288af0ea37845c0bf61bd9e7f3e18465474b 180429 linu=
x_7.3~rc7-1~exp1.dsc
 b002bfc898de459a40f47f216393f5489427ab2e4dd095b1ed510ace0a42f9f0 165730924 l=
inux_7.3~rc7.orig.tar.xz
 f6bc8ab6213a40bd624b02d0a493449c1d2c327dbea1ef01863ad9e95bf0f30c 1457708 lin=
ux_7.3~rc7-1~exp1.debian.tar.xz
 5b3176154fff07790e0390be622d25bfcd61c7cd1dc386464f3218be4ee4b14c 5925 linux_=
7.3~rc7-1~exp1_source.buildinfo
Files:
 620c7e6773f3ce71c3053573ce45bae4 180429 kernel optional linux_7.3~rc7-1~exp1=
.dsc
 df638a7abe9f4e77c147bcad6038322a 165730924 kernel optional linux_7.3~rc7.ori=
g.tar.xz
 9b4ba411c608da86083e8c4c6c99fdf4 1457708 kernel optional linux_7.3~rc7-1~exp=
1.debian.tar.xz
 9c45ee193ed103a452b2204f87ba5abc 5925 kernel optional linux_7.3~rc7-1~exp1_s=
ource.buildinfo

-----BEGIN PGP SIGNATURE-----

iQKmBAEBCgCQFiEERkRAmAjBceBVMd3uBUy48xNDz0QFAmrRlslfFIAAAAAALgAo
aXNzdWVyLWZwckBub3RhdGlvbnMub3BlbnBncC5maWZ0aGhvcnNlbWFuLm5ldDQ2
NDQ0MDk4MDhDMTcxRTA1NTMxRERFRTA1NENCOEYzMTM0M0NGNDQSHGNhcm5pbEBk
ZWJpYW4ub3JnAAoJEAVMuPMTQ89EChEP/iGWQM0am1AGCzCrLOZycZYBFEZVv9C7
BLVMWalwmvDCEQlzDY+IfenMMU5WPKouZPS2Iy6dm4BPWFbRB51gh30Gn4DaEr21
7ToWV6O7XufPWVh8BfdMUKgo82VcCN2UlyigjrZmTAhYVJKF6q91B8daKkkjKySV
efCX1tVAreP8pvtbDVTx1o0pQa2lTyPGTAE+fMI2be+Qz6qo2LzQWX5wd4dRZN2m
EYYQjvBeJY8Xrmt45u2gk3dUM1q0RdlLZh2RJOxvxuKx3Ogo0fo3GJyez1BvIb3y
YtJyVh2RO/JZC1sILdk6al3/76Fs2ixqwndt02Mp1+YCCwemKcW3Jlfqd1jPonB2
brwm5JR3XDWsdBq6Gs7ZsOJpd63AGzgoZYioViRyf6h8Io2iZuuOBydtQafMPRTI
G/ftOVl5aGSYqkWSbHiBFiGDyQeIGDs9nPV3gX1utdCdCKS82/Arp7H7tRQSlt0p
0xzbrCLlnxMxpg4Nlww6/cXGG6p1xSTrTc8kUELWtBm5jBuv9/YGtWrg/cM9lQ2W
33KBl/3kzRJPGyJtTi0fIGcycpcVlX/HxDV/SgjvzE8P6Mn7D6Yom0tKAv8EJKjc
ikUubGcKQyEgA3UE07oAsyUjs/iter5qztmJV7mm2pbOzllQdYAnNDlkskkTUwIM
njWrcnth2L5g
=3DEyi+
-----END PGP SIGNATURE-----


--===============4302434979876462558==
Content-Type: application/pgp-signature

-----BEGIN PGP SIGNATURE-----

iHUEABYIAB0WIQTziqJOuF8J+ZI8pJSb9qggYcy5IQUCatGbRQAKCRCb9qggYcy5
IaboAQD/ZfLdJNWSrFGkYxwk1zx78XkMEvEkal37ZPPiqB0PQQD/Q2ltJ0UjHx/E
TRnvBMSs4Hn1ZSJnoN+z7G0s1O7W/Qc=
=PUM9
-----END PGP SIGNATURE-----

--===============4302434979876462558==--
------------=_1792121827-3068409-0--
Technical Details
Message-ID: <NOGXv-5PLU-25@gated-at.bofh.it>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer02.iad!feed-me.highwinds-media.com!peer03.ams4!peer.am4.highwinds-media.com!news.highwinds-media.com!feeder3.feed.ams11.usenet.farm!feed.usenet.farm!3.eu.feeder.erje.net!feeder.erje.net!fu-berlin.de!bofh.it!news.nic.it!robomod
References: <NOGXv-5PLU-27@gated-at.bofh.it> <NNikx-51Zt-1@gated-at.bofh.it>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer02.iad!feed-me.highwinds-media.com!peer03.ams4!peer.am4.highwinds-media.com!news.highwinds-media.com!feeder3.feed.ams11.usenet.farm!feed.usenet.farm!3.eu.feeder.erje.net!feeder.erje.net!fu-berlin.de!bofh.it!news.nic.it!robomod
From: "Debian Bug Tracking System" <owner@bugs.debian.org>
Newsgroups: linux.debian.kernel
Subject: Bug#1150677: marked as done (linux: Linux logs error `ima: Can  not allocate sha384 (reason: -2)`)
Date: Fri, 16 Oct 2026 05:40:01 +0200
Message-ID: <NOGXv-5PLU-25@gated-at.bofh.it>
References: <NOGXv-5PLU-27@gated-at.bofh.it> <NNikx-51Zt-1@gated-at.bofh.it>
X-Original-To: Salvatore Bonaccorso <carnil@debian.org>
X-Mailbox-Line: From debian-kernel-request@lists.debian.org  Fri Oct 16 03:37:58 2026
Old-Return-Path: <debbugs@buxtehude.debian.org>
X-Amavis-Spam-Status: No, score=-2 tagged_above=-10000 required=5.3
 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1,
 RCVD_IN_DNSWL_NONE=-0.0001] autolearn=ham autolearn_force=no
MIME-Version: 1.0
X-Mailer: MIME-tools 5.510 (Entity 5.510)
X-Debian-Pr-Message: closed 1150677
X-Debian-Pr-Package: src:linux
X-Debian-Pr-Keywords: patch
X-Debian-Pr-Source: linux
Reply-To: 1150677@bugs.debian.org
Content-Type: multipart/mixed; boundary="----------=_1792121827-3068409-0"
X-Mailing-List: <debian-kernel@lists.debian.org> archive/latest/157663
List-ID: <debian-kernel.lists.debian.org>
List-URL: <https://lists.debian.org/debian-kernel/>
List-Archive: https://lists.debian.org/msgid-search/handler.1150677.D1150677.17921216713067416.ackdone@bugs.debian.org
Approved: robomod@news.nic.it
Lines: 338
Organization: linux.* mail to news gateway
Sender: robomod@news.nic.it
X-Original-Date: Fri, 16 Oct 2026 03:37:07 +0000
X-Original-Message-ID: <handler.1150677.D1150677.17921216713067416.ackdone@bugs.debian.org>
X-Original-References: <E1xHYiD-00000005UHi-2hxW@fasolo.debian.org>
 <efb46f3c-ff3c-4a20-a40c-469b64e881c1@molgen.mpg.de>
X-Received-Bytes: 15481