Skip to contentSkip to conversation

crashdump-add-config_keys-dependency.patch removed from -mm tree

merged mm-hotfixes-stable Andrew Morton 1 participant 1 message Jun 25, 2025

lore
Share & tools
lore

Andrew Morton

author tree notice Applied
#0 lore raw

The quilt patch titled
Subject: crashdump: add CONFIG_KEYS dependency
has been removed from the -mm tree. Its filename was
crashdump-add-config_keys-dependency.patch

This patch was dropped because it was merged into the mm-hotfixes-stable branch of git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm

------------------------------------------------------
From: Arnd Bergmann <[email protected]>
Subject: crashdump: add CONFIG_KEYS dependency
Date: Fri, 20 Jun 2025 13:21:22 +0200

The dm_crypt code fails to build without CONFIG_KEYS:

kernel/crash_dump_dm_crypt.c: In function 'restore_dm_crypt_keys_to_thread_keyring':
kernel/crash_dump_dm_crypt.c:105:9: error: unknown type name 'key_ref_t'; did you mean 'key_ref_put'?

There is a mix of 'select KEYS' and 'depends on KEYS' in Kconfig, so there is no single obvious solution here, but generally using 'depends on' makes more sense and is less likely to cause dependency loops.

Fixes 62f17d9df692 ("crash_dump: retrieve dm crypt keys in kdump kernel")
Cc Alexander Graf <[email protected]>
Cc Baoquan He <[email protected]>
Cc Coiby Xu <[email protected]>
Cc Dave Vasilevsky <[email protected]>
Cc Eric Biggers <[email protected]>
Cc Michael Ellerman <[email protected]>

---

 kernel/Kconfig.kexec |    1 +
 1 file changed, 1 insertion(+)
kernel/Kconfig.kexec renamed from kernel/Kconfig.kexec~crashdump-add-config_keys-dependency +1 -0
@@ -134,6 +134,7 @@ config CRASH_DM_CRYPT
 	depends on KEXEC_FILE
 	depends on CRASH_DUMP
 	depends on DM_CRYPT
+	depends on KEYS
 	help
 	  With this option enabled, user space can intereact with
 	  /sys/kernel/config/crash_dm_crypt_keys to make the dm crypt keys

_

Patches currently in -mm which might be from [email protected] are

lib-test_hmm-reduce-stack-usage.patch lib-test_objagg-split-test_hints_case-into-two-functions.patch