lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  PHC 
Open Source and information security mailing list archives
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:   Fri, 16 Oct 2020 19:02:24 -0700
From:   Sudarshan Rajagopalan <>
Cc:     Sudarshan Rajagopalan <>,
        Catalin Marinas <>,
        Will Deacon <>,
        Anshuman Khandual <>,
        Mark Rutland <>,
        Gavin Shan <>,
        Logan Gunthorpe <>,
        David Hildenbrand <>,
        Andrew Morton <>,
        Steven Price <>,
        Suren Baghdasaryan <>
Subject: [PATCH 2/2] arm64: allow hotpluggable sections to be offlined

On receiving the MEM_GOING_OFFLINE notification, we disallow offlining of
any boot memory by checking if section_early or not. With the introduction
of SECTION_MARK_HOTPLUGGABLE, allow boot mem sections that are marked as
hotpluggable with this bit set to be offlined and removed. This now allows
certain boot mem sections to be offlined.

Signed-off-by: Sudarshan Rajagopalan <>
Cc: Catalin Marinas <>
Cc: Will Deacon <>
Cc: Anshuman Khandual <>
Cc: Mark Rutland <>
Cc: Gavin Shan <>
Cc: Logan Gunthorpe <>
Cc: David Hildenbrand <>
Cc: Andrew Morton <>
Cc: Steven Price <>
Cc: Suren Baghdasaryan <>
 arch/arm64/mm/mmu.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/arm64/mm/mmu.c b/arch/arm64/mm/mmu.c
index 75df62fea1b6..fb8878698672 100644
--- a/arch/arm64/mm/mmu.c
+++ b/arch/arm64/mm/mmu.c
@@ -1487,7 +1487,7 @@ static int prevent_bootmem_remove_notifier(struct notifier_block *nb,
 	for (; pfn < end_pfn; pfn += PAGES_PER_SECTION) {
 		ms = __pfn_to_section(pfn);
-		if (early_section(ms))
+		if (early_section(ms) && !removable_section(ms))
 			return NOTIFY_BAD;
 	return NOTIFY_OK;
Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum,
a Linux Foundation Collaborative Project

Powered by blists - more mailing lists