Skip to contentSkip to conversation

kexec_file-dont-place-kexec-images-on-ioresource_mem_driver_managed.patch removed from -mm tree

merged [email protected] 1 participant 1 message Jun 5, 2020

lore
Share & tools
lore

[email protected]

author tree notice Applied
#0 lore raw

The patch titled
Subject: kexec_file: don't place kexec images on IORESOURCE_MEM_DRIVER_MANAGED
has been removed from the -mm tree. Its filename was
kexec_file-dont-place-kexec-images-on-ioresource_mem_driver_managed.patch

This patch was dropped because it was merged into mainline or a subsystem tree

------------------------------------------------------
From: David Hildenbrand <[email protected]>
Subject: kexec_file: don't place kexec images on IORESOURCE_MEM_DRIVER_MANAGED

Memory flagged with IORESOURCE_MEM_DRIVER_MANAGED is special - it won't be part of the initial memmap of the kexec kernel and not all memory might be accessible. Don't place any kexec images onto it.

---

 kernel/kexec_file.c |    5 +++++
 1 file changed, 5 insertions(+)
kernel/kexec_file.c renamed from kernel/kexec_file.c~kexec_file-dont-place-kexec-images-on-ioresource_mem_driver_managed +5 -0
@@ -540,6 +540,11 @@ static int locate_mem_hole_callback(stru
 	unsigned long sz = end - start + 1;
 
 	/* Returning 0 will take to next memory range */
+
+	/* Don't use memory that will be detected and handled by a driver. */
+	if (res->flags & IORESOURCE_MEM_DRIVER_MANAGED)
+		return 0;
+
 	if (sz < kbuf->memsz)
 		return 0;
 

_

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