Skip to contentSkip to conversation

coco/guest: Remove unneeded selection of CRYPTO

PATCH In review Eric Biggers 2 participants 5 messages Dec 4, 2025 – Mar 15 Trusted execution environment security manager (tsm)

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 coco/guest: Remove unneeded selection of CRYPTO

All that's needed here is CRYPTO_HASH_INFO. It used to be the case that CRYPTO_HASH_INFO was visible only when CRYPTO, but that was fixed by commit aacb37f597d0 ("lib/crypto: hash_info: Move hash_info.c into lib/crypto/"). Now CRYPTO_HASH_INFO can be selected directly.

---
 drivers/virt/coco/guest/Kconfig | 1 -
 1 file changed, 1 deletion(-)
drivers/virt/coco/guest/Kconfig +0 -1
index 3d5e1d05bf34..da570dc4bd48 100644
@@ -11,7 +11,6 @@ config TSM_REPORTS
 	tristate
 
 config TSM_MEASUREMENTS
 	select TSM_GUEST
 	select CRYPTO_HASH_INFO
-	select CRYPTO
 	bool

base-commit: b2c27842ba853508b0da00187a7508eb3a96c8f7

Signature · 1 line
2.52.0
#1 lore raw
Quoted 16 lines · Eric Biggers

All that's needed here is CRYPTO_HASH_INFO. It used to be the case that CRYPTO_HASH_INFO was visible only when CRYPTO, but that was fixed by commit aacb37f597d0 ("lib/crypto: hash_info: Move hash_info.c into lib/crypto/"). Now CRYPTO_HASH_INFO can be selected directly.

---
 drivers/virt/coco/guest/Kconfig | 1 -
 1 file changed, 1 deletion(-)
drivers/virt/coco/guest/Kconfig +0 -0
index 3d5e1d05bf34..da570dc4bd48 100644

drivers/virt/coco/guest/Kconfig config TSM_REPORTS · line 16

Quoted 7 lines
drivers/virt/coco/guest/Kconfig +0 -1
@@ -11,7 +11,6 @@ config TSM_REPORTS
 	tristate
 
 config TSM_MEASUREMENTS
 	select TSM_GUEST
 	select CRYPTO_HASH_INFO
-	select CRYPTO
 	bool

Any interest in applying this patch?

- Eric

#2 lore raw
Quoted 18 lines · Eric Biggers
Quoted 17 lines · Eric Biggers

All that's needed here is CRYPTO_HASH_INFO. It used to be the case that CRYPTO_HASH_INFO was visible only when CRYPTO, but that was fixed by commit aacb37f597d0 ("lib/crypto: hash_info: Move hash_info.c into lib/crypto/"). Now CRYPTO_HASH_INFO can be selected directly.

---
 drivers/virt/coco/guest/Kconfig | 1 -
 1 file changed, 1 deletion(-)
drivers/virt/coco/guest/Kconfig +0 -0
index 3d5e1d05bf34..da570dc4bd48 100644
@@ -11,7 +11,6 @@ config TSM_REPORTS
 	tristate
 
Quoted 8 lines

drivers/virt/coco/guest/Kconfig config TSM_REPORTS · line 16

Quoted 6 lines
drivers/virt/coco/guest/Kconfig +0 -1
 config TSM_MEASUREMENTS
 	select TSM_GUEST
 	select CRYPTO_HASH_INFO
-	select CRYPTO
 	bool

Any interest in applying this patch?

Ping.

If there continues to be no response, I'll take this patch via libcrypto-next.

- Eric

Acked-by
#3 lore raw
Quoted 28 lines · Eric Biggers
Quoted 18 lines · Eric Biggers
Quoted 17 lines · Eric Biggers

All that's needed here is CRYPTO_HASH_INFO. It used to be the case that CRYPTO_HASH_INFO was visible only when CRYPTO, but that was fixed by commit aacb37f597d0 ("lib/crypto: hash_info: Move hash_info.c into lib/crypto/"). Now CRYPTO_HASH_INFO can be selected directly.

---
 drivers/virt/coco/guest/Kconfig | 1 -
 1 file changed, 1 deletion(-)
drivers/virt/coco/guest/Kconfig +0 -0
index 3d5e1d05bf34..da570dc4bd48 100644
@@ -11,7 +11,6 @@ config TSM_REPORTS
 	tristate
 
Quoted 8 lines

drivers/virt/coco/guest/Kconfig config TSM_REPORTS · line 16

Quoted 6 lines
drivers/virt/coco/guest/Kconfig +0 -1
 config TSM_MEASUREMENTS
 	select TSM_GUEST
 	select CRYPTO_HASH_INFO
-	select CRYPTO
 	bool

Any interest in applying this patch?

Quoted 4 lines

Ping.

If there continues to be no response, I'll take this patch via libcrypto-next.

Apologies, not sure how I missed this.

...and yes, fine for this to go through libcrypto-next.

author Applied
#4 lore raw
Quoted 31 lines · Dan Williams
Quoted 30 lines · Eric Biggers
Quoted 18 lines · Eric Biggers
Quoted 17 lines · Eric Biggers

All that's needed here is CRYPTO_HASH_INFO. It used to be the case that CRYPTO_HASH_INFO was visible only when CRYPTO, but that was fixed by commit aacb37f597d0 ("lib/crypto: hash_info: Move hash_info.c into lib/crypto/"). Now CRYPTO_HASH_INFO can be selected directly.

---
 drivers/virt/coco/guest/Kconfig | 1 -
 1 file changed, 1 deletion(-)
drivers/virt/coco/guest/Kconfig +0 -0
index 3d5e1d05bf34..da570dc4bd48 100644
@@ -11,7 +11,6 @@ config TSM_REPORTS
 	tristate
 
Quoted 8 lines

drivers/virt/coco/guest/Kconfig config TSM_REPORTS · line 16

Quoted 6 lines
drivers/virt/coco/guest/Kconfig +0 -1
 config TSM_MEASUREMENTS
 	select TSM_GUEST
 	select CRYPTO_HASH_INFO
-	select CRYPTO
 	bool

Any interest in applying this patch?

Ping.

Quoted 8 lines
Quoted 2 lines

If there continues to be no response, I'll take this patch via libcrypto-next.

Apologies, not sure how I missed this.

...and yes, fine for this to go through libcrypto-next.

Applied to https://git.kernel.org/pub/scm/linux/kernel/git/ebiggers/linux.git/log/?h=libcrypto-next

- Eric