Skip to content

Commit b6f5e74

Browse files
arndbakpm00
authored andcommitted
crashdump: add CONFIG_KEYS dependency
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. Link: https://lkml.kernel.org/r/[email protected] Fixes: 62f17d9 ("crash_dump: retrieve dm crypt keys in kdump kernel") Signed-off-by: Arnd Bergmann <[email protected]> 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]> Signed-off-by: Andrew Morton <[email protected]>
1 parent c9e8efa commit b6f5e74

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

kernel/Kconfig.kexec

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,7 @@ config CRASH_DM_CRYPT
134134
depends on KEXEC_FILE
135135
depends on CRASH_DUMP
136136
depends on DM_CRYPT
137+
depends on KEYS
137138
help
138139
With this option enabled, user space can intereact with
139140
/sys/kernel/config/crash_dm_crypt_keys to make the dm crypt keys

0 commit comments

Comments
 (0)