mirror-linux/drivers
Coiby Xu e3a84be1ec arm64,ppc64le/kdump: pass dm-crypt keys to kdump kernel
CONFIG_CRASH_DM_CRYPT has been introduced to support LUKS-encrypted
device dump target by addressing two challenges [1],
 - Kdump kernel may not be able to decrypt the LUKS partition. For some
   machines, a system administrator may not have a chance to enter the
   password to decrypt the device in kdump initramfs after the 1st kernel
   crashes

 - LUKS2 by default use the memory-hard Argon2 key derivation function
   which is quite memory-consuming compared to the limited memory reserved
   for kdump.

To also enable this feature for ARM64 and PowerPC, the missing piece is to
let the kdump kernel know where to find the dm-crypt keys which are
randomly stored in memory reserved for kdump.  Introduce a new device tree
property dmcryptkeys [2] as similar to elfcorehdr to pass the memory
address of the stored info of dm-crypt keys to the kdump kernel.  Since
this property is only needed by the kdump kernel, it won't be exposed to
userspace.

Link: https://lkml.kernel.org/r/20260225060347.718905-4-coxu@redhat.com
Link: https://lore.kernel.org/all/20250502011246.99238-1-coxu@redhat.com/ [1]
Link: https://github.com/devicetree-org/dt-schema/pull/181 [2]
Signed-off-by: Coiby Xu <coxu@redhat.com>
Acked-by: Rob Herring (Arm) <robh@kernel.org>
Reviewed-by: Sourabh Jain <sourabhjain@linux.ibm.com>
Cc: Arnaud Lefebvre <arnaud.lefebvre@clever-cloud.com>
Cc: Baoquan he <bhe@redhat.com>
Cc: Dave Young <dyoung@redhat.com>
Cc: Kairui Song <ryncsn@gmail.com>
Cc: Pingfan Liu <kernelfans@gmail.com>
Cc: Krzysztof Kozlowski <krzk@kernel.org>
Cc: Thomas Staudt <tstaudt@de.ibm.com>
Cc: Will Deacon <will@kernel.org>
Cc: Christophe Leroy (CS GROUP) <chleroy@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
2026-04-02 23:36:24 -07:00
..
accel
accessibility
acpi Merge branches 'acpica' and 'acpi-bus' 2026-03-19 14:57:06 +01:00
amba
android
ata ata: libata-scsi: report correct sense field pointer in ata_scsiop_maint_in() 2026-03-20 09:59:30 +01:00
atm
auxdisplay
base Driver core fixes for 7.0-rc5 2026-03-21 16:59:09 -07:00
bcma
block zram: do not slot_free() written-back slots 2026-03-21 17:36:33 -07:00
bluetooth
bus driver core: platform: use generic driver_override infrastructure 2026-03-17 20:30:57 +01:00
cache
cdrom
cdx
char
clk driver core: platform: use generic driver_override infrastructure 2026-03-17 20:30:57 +01:00
clocksource
comedi
connector
counter
cpufreq
cpuidle
crypto Crypto library fixes for v7.0-rc5 2026-03-18 15:50:29 -07:00
cxl cxl: Adjust the startup priority of cxl_pmem to be higher than that of cxl_acpi 2026-03-19 15:12:40 -07:00
dax
dca
devfreq
dibs
dio
dma
dma-buf
dpll
edac
eisa
extcon
firewire bonding: prevent potential infinite loop in bond_header_parse() 2026-03-16 19:29:45 -07:00
firmware soc: fixes for 7.0 2026-03-18 08:28:54 -07:00
fpga
fsi
fwctl
gnss
gpib
gpio
gpu Driver Changes: 2026-03-21 02:17:59 +10:00
greybus
hid hid-for-linus-2026031701 2026-03-17 13:55:51 -07:00
hsi
hte
hv mshv: Fix error handling in mshv_region_pin 2026-03-18 16:18:49 +00:00
hwmon Driver core fixes for 7.0-rc5 2026-03-21 16:59:09 -07:00
hwspinlock
hwtracing
i2c i2c: tegra: Don't mark devices with pins as IRQ safe 2026-03-22 11:37:58 -07:00
i3c
idle
iio I3C fixes for 7.0 2026-03-14 16:25:10 -07:00
infiniband
input
interconnect
iommu iommu/amd: Block identity domain when SNP enabled 2026-03-17 14:02:02 +01:00
ipack
irqchip irqchip/riscv-rpmi-sysmsi: Fix mailbox channel leak in rpmi_sysmsi_probe() 2026-03-17 11:16:15 +01:00
isdn
leds
macintosh
mailbox
mcb
md
media media: verisilicon: Fix kernel panic due to __initconst misuse 2026-03-18 13:17:25 +01:00
memory
memstick
message
mfd
misc
mmc mmc: sdhci: fix timing selection for 1-bit bus width 2026-03-16 16:08:54 +01:00
most
mtd mtd: rawnand: pl353: make sure optimal timings are applied 2026-03-18 18:08:25 +01:00
mux
net net: dsa: bcm_sf2: fix missing clk_disable_unprepare() in error paths 2026-03-19 09:26:40 -07:00
nfc NFC: nxp-nci: allow GPIOs to sleep 2026-03-18 17:20:51 -07:00
ntb
nubus
nvdimm
nvme
nvmem
of arm64,ppc64le/kdump: pass dm-crypt keys to kdump kernel 2026-04-02 23:36:24 -07:00
opp
parisc
parport
pci pci-v7.0-fixes-4 2026-03-19 16:13:51 -07:00
pcmcia
peci
perf
phy
pinctrl
platform
pmdomain pmdomain providers: 2026-03-20 09:46:15 -07:00
pnp
power
powercap
pps
ps3
ptp
pwm
rapidio
ras
regulator
remoteproc
resctrl
reset
rpmsg
rtc
s390 s390 updates for 7.0-rc4 2026-03-13 14:18:13 -07:00
sbus
scsi SCSI fixes on 20260315 2026-03-15 13:15:39 -07:00
sh
siox
slimbus driver core: platform: use generic driver_override infrastructure 2026-03-17 20:30:57 +01:00
soc Fixing a missing of_node_put() call. 2026-03-17 09:35:40 +01:00
soundwire
spi spi: geni-qcom: Check DMA interrupts early in ISR 2026-03-17 17:07:47 +00:00
spmi
ssb
staging
target
tc
tee
thermal
thunderbolt
tty
ufs
uio
usb USB: ezcap401 needs USB_QUIRK_NO_BOS to function on 10gbs usb speed 2026-03-13 18:19:07 +01:00
vdpa
vfio
vhost
video
virt
virtio
w1
watchdog
xen xen/privcmd: add boot control for restricted usage in domU 2026-03-20 12:06:01 +01:00
zorro
Kconfig
Makefile