From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 8CFA6606A323 for ; Wed, 2 Dec 2026 08:34:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=ugyWhB/M Received: by kanga.kvack.org (Postfix) id 908916B061D; Wed, 2 Dec 2026 03:34:23 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 8DFD86B061E; Wed, 2 Dec 2026 03:34:23 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 7D0486B0621; Wed, 2 Dec 2026 03:34:23 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0010.hostedemail.com [216.40.44.10]) by kanga.kvack.org (Postfix) with ESMTP id 59C616B061D for ; Wed, 2 Dec 2026 03:34:23 -0500 (EST) Received: from smtpin25.hostedemail.com (lb01a-stub [10.200.18.249]) by unirelay10.hostedemail.com (Postfix) with ESMTP id A61F1C022B for ; Wed, 2 Dec 2026 08:34:22 +0000 (UTC) X-FDA: 85498381164.25.9331F0B Received: from mail-pi2-f11.google.com (mail-pi2-f11.google.com [74.125.227.203]) by imf03.hostedemail.com (Postfix) with ESMTP id A5F1520009 for ; Wed, 2 Dec 2026 08:34:20 +0000 (UTC) Authentication-Results: imf03.hostedemail.com; dkim=pass header.d=gmail.com header.s=20260707 header.b="ugyWhB/M"; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (imf03.hostedemail.com: domain of chenwandun1@gmail.com designates 74.125.227.203 as permitted sender) smtp.mailfrom=chenwandun1@gmail.com ARC-Seal: i=1; a=rsa-sha256; d=hostedemail.com; s=arc-20220608; cv=none; t=1796200460; b=LSPfzplSI2rFIZoLg5ZfZ4qcEHomJAEbXJAf09vClcsDSJbfZmB7jFy2iqh3zzWuG6ush+ 0gFZh4CgdCC9drjqDrHv7p3PC/+G4C6g3bWW/OwFchbSyuMtfFidr2TET35WxyUjHpyHFy +MatTGSriJAfMddWvRAh1EbWF5b+0nY= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1796200460; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=1IpYluGAPNKH+NZrwWEbTgwstlqUmj2L/Ys67fAlJjg=; b=pry+UEP8PTs53kI9jKlA92Wvt216x8YqUo60oQwwQB8TkU8clVG/7vQXNpc5NyAx2CGu8D oP4BUk5Qwron1SEp267nVOgcY+ObjaeNyT+B8Nd4YkunDULk3vEFLDso/fseJvRAxkN6hx UNHU9KKyDyuaWlSpzGT4jl3cv77klBo= ARC-Authentication-Results: i=1; imf03.hostedemail.com; dkim=pass header.d=gmail.com header.s=20260707 header.b="ugyWhB/M"; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (imf03.hostedemail.com: domain of chenwandun1@gmail.com designates 74.125.227.203 as permitted sender) smtp.mailfrom=chenwandun1@gmail.com Received: by mail-pi2-f11.google.com with SMTP id 41be03b00d2f7-cde795fea95so3549097a12.1 for ; Wed, 02 Dec 2026 00:34:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20260707; t=1796200459; x=1796805259; darn=kvack.org; h=content-transfer-encoding:content-type:in-reply-to:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:from:to:cc:subject:date:message-id:reply-to :content-type; bh=1IpYluGAPNKH+NZrwWEbTgwstlqUmj2L/Ys67fAlJjg=; b=ugyWhB/MSCvUOJz7PdANutExARmsNXYPwxc2+2iUAZs/b6Rs4SkacCHZNV7iKS9A+f BGrjXPDEWgi6mPc778hSR7N86S/ypuV/ax/SuBADUKQkZZf7e5E+1MzRjzapsU0OjyVi z6RdQZ8qNlx6yw6tBezmfNBbigD7YXuAviH330OsS1uOKXqWYpFSOBAK+NFMtDK1QLew Mt72E2JhVYTVQFv4HKb64PcUjV/b1NjBoGQeVXofT75UybLclMMxEtn2Rr+tBPaaeCrB F5Jjvuat9/5bY/R4hRAGeJGjE97LgD5eodpHOOXRhhvkgMR2PWKJ8W4+9xHMY6NUBgf3 jUmg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1796200459; x=1796805259; h=content-transfer-encoding:content-type:in-reply-to:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to:content-type; bh=1IpYluGAPNKH+NZrwWEbTgwstlqUmj2L/Ys67fAlJjg=; b=v2iV2yp/NeDwI30CSXKjctA01qjoTUYOZrEJIz9rAGxNMf7OmXr4Ebra8Xi9ggHHug fKiGTk9/cGj7da9FE2CpqYr2rO/7AA5iB3Kxnr7/nXS5jDsID2k1gjVphaO5APcBqvDf FC0pVUeicIiQa+aQ1qdvoD8Y08Tx3B5MeLtfRG3UArs9nNOKjUAS6wmQm1nrooZ/EPEM ZjGXXhDnJ1NHR42uRoKJ/EuoNjtS20SHHzlIGDP1FwKBKCS+3HDcTaJeeJ/6Mgy3hec/ WrpDc5qM9SCvAt4jJZ6l3hRl2W7sD8Lu5xYYTplCoW53AVcCRiNwuUqOk8SSBfnciK/r afHw== X-Forwarded-Encrypted: i=1; AL+hErG/HFEjCpHscK2OczvxDJeiyrSr9jjgLQwK/XleiKufVHP0iUxkb4IYX6Ah8mo2oADT6eojsFtAlw==@kvack.org X-Gm-Message-State: APuU4Z9aRpfRNl18QpoqcAmEfB+BIfWAYMqmqDpTnJBO1tyASNQakcQx YSdF9pNwCAnZDdU73jPXXyi8pTIcF425kqUbgEAqVoMwHEdehdgb6dwY X-Gm-Gg: AZFdTZe7kdxHk181axpk8G+CixZuZgSu2fmMOHnq+oO0Rj1beVT8cbGYPxeEHcXtAX3 cqVCf77yEu65eFLS/Y62Bxp+88D9tpZufvssXyJdLM3kcfpYNX7ZtKuHCFLy7VmiRMJ3fE+yDhz ZWeh1nhLP9WrN+IzbR5JMLFa9ph+PqBx+GtJlwJmQqMqUVyAPtw8mN69ce9kc1eDYUUwYCTdWvj p8uSa65c+m2szZMHT20q/GIYizWkWd6mu8IgWC7sYA9ftPJnChcbLK9J4gq/yfJ4OEPCcoB5DG1 /M/O2aJS614FdmEV7IdlYg73QjG7Gmj0O07td3uH7XUY6mtiRHdaj5jauYQPUGotN25y7Gdgdo+ 85BGE1Rs4iNBr5Pw+q7l9+apWkZfIz9/iaABS/MP69JyC12rATtiXmqn3PAYaAcbqGk1jzzFt0c DrwbVzCa+IyNwPQg8YdjnbBXnj+9/GC43Avk71I4ZDhiSuEkLRdDPB4vfxiW6QHGH11YeR6WDs0 coMy8VMHXM4T/YNWpMnTqrP87xLKO8a/uLmyIvd1LUYqA/dCmHwH5kxwvwl5bXUB4mJW5LL1P4f Eabmf+e25YsAKdkTQpauxJtqLLIOZrrqwlE= X-Received: by 2002:a05:6a00:4518:b0:89e:f2d2:1eab with SMTP id d2e1a72fcca58-8c87cf2a12amr34923018b3a.42.1796200459233; Wed, 02 Dec 2026 00:34:19 -0800 (PST) Received: from [10.125.112.22] ([122.11.210.25]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-8c87285c219sm21458569b3a.18.2026.12.02.00.34.08 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 02 Dec 2026 00:34:18 -0800 (PST) Message-ID: Date: Wed, 2 Dec 2026 16:34:06 +0800 X-Archived-By: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v10 7/8] of: reserved_mem: mark /reserved-memory entries with MEMBLOCK_NODUMP To: sashiko-reviews@lists.linux.dev, pjw@kernel.org, palmer@dabbelt.com, aou@eecs.berkeley.edu, alex@ghiti.fr, robh@kernel.org, baoquan.he@linux.dev, rppt@kernel.org, m.szyprowski@samsung.com Cc: catalin.marinas@arm.com, will@kernel.org, mark.rutland@arm.com, chenhuacai@kernel.org, kernel@xen0n.name, tglx@kernel.org, mingo@redhat.com, bp@alien8.de, dave.hansen@linux.intel.com, x86@kernel.org, hpa@zytor.com, saravanak@kernel.org, akpm@linux-foundation.org, pasha.tatashin@soleen.com, pratyush@kernel.org, ruirui.yang@linux.dev, robin.murphy@arm.com, ruanjinjie@huawei.com, devicetree@vger.kernel.org, kexec@lists.infradead.org, linux-mm@kvack.org, conor+dt@kernel.org References: <20261127090723.741253-1-chenwandun1@gmail.com> <20261127090723.741253-8-chenwandun1@gmail.com> Content-Language: en-US From: Wandun In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Stat-Signature: aioc6weqszrx5o8mf3acs8wo57b9d7d1 X-Rspamd-Server: rspam03 X-Rspam-User: X-Spam-Status: No, score=-9.3 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI, SPF_HELO_PASS,SPF_PASS,USER_AGENT_SANE_1 autolearn=unavailable autolearn_force=no version=4.0.1 X-Rspamd-Queue-Id: A5F1520009 X-HE-Tag: 1796200460-304223 X-HE-Meta: U2FsdGVkX1+6pZ45kP3bzOLzbkMaMou5uOws1v72LrEK9d7ejWCdC4m3UXQna7VPHd/0Z+Tf/H16kW1dlBWUgz8q/b6URQDR4LpsivH50f6UH2NTU6BUOS0hohQcKuwCMFk3bS0WcuOWh3GasbRIDfIjQZvpj6RrluU2yyUp60pqibj9uiQcPgrkdBmejKMUP+OzOdFH0zlkTX6ra6waFQkY3h4PH8SYhZlQe7NQHEciTz/UH54f/akBrZp2m1qc4564hlbKO1Eq6DtBdORMY9i+lH8NU2qJEV+3y/oSt9pQsomwEnaE69huc4KaMjyK6/NvvWO620RuqwKnPa7vZUd8Fxlzsg1d5o62KKek0DpgbQjn5L35hFzkKz2vluFViTwcFngR8C1cguskKAy4oZ4d4qZYiB80Xp6qEqToYJwGyw0+1rv/TMN0u8shWyGs+eixLmss2jSlJIbsJHm2tfoH1qMl3v90ki4y00WSPrqdg5chX2xvZzG6fpCjzjMUxDwACnO8EjK66wu8hJBWsnbGwLb9tMlMb+vA8Uu1pQE26HhY/+g7iv6yxeirFsb3CLUKQMNOANQJJHYxoTQpTjaPHQTbqDvXtCqv1YCDON8H7Po8J63goi4M5/n3vkVJJKFSvSvhLN1VBZ9QWWwc/Uorw9WnYKPaBoyDdktaCz7VWO6qrGMgCGrW7Q+1fQniwRZ07Y29W2keQhfXW3yiB/yLqapuKYwraRymJ2tsujnvQRLXEQxqG7g7Hy07GJ038cAaVB3zxfXpJsdn/eCd3j63Q+BFA9T6eLbPWZvfz3A3IRQhecq9olhdX23n7F65ivtFojfCyUoQhHpErlJhHATYYiQ6GBWEIwUapLiIU7lxapsneyO/9WxuVbdrLCd3LJOG8FBOTbsy2hWNcQrCwEY16W0GJKl6T+Xthzg3GeMCUflJUrynWIrY8FmxaU5aKLY0GHuewUN/zU/kQI2 35G3TmwJ QW9FcLzLzCgTGQohZV2sEBVx70HbUX2qWHMp6C9Mvs4xcOy3tFjQy3ch1ctXlQW7whDufvGKzSp5J34mAeEPyuPo3ORAWHYiDUstA5tnhxWWml1Rqk6jv3ubIfcM2MNEo1KrJGFFhqgeE5M7Ik1crJfutiS9zv2enrN5SRkUA7/DRGp/8Wgmw5Orw0fWggAKeRiv9T303HUYlnp84BYWfBBQCVDBRKvxipfmnn+SH8BY3aQg5N10GidQbr3TtMdoB90Ys8mTvUs7IfrVPIxSixJ9/Ku97Mp6fly+MqjS3eRYtj90xi9ortrOVNzcvZMFfdZu7hUQIFm9RI6lN0LRWx1FlKY/1oSt95J/10rCt4N+glZs+H0THj0U1V6TKTl6I7eZzP/bEAZ6WILcfSRAcqrLWDPcv7XPty4tK40kIQa1zgaG5WA3IIB1MlvAGnbDAkt6L9JYiS6rLeoWEw3F4jqrKPykdAWOyvCVZTxEysWY372MjYJBOcgb39O4xceoXLzb9eh2KtstRd1s393xpPThGT8BQFUrWP0+byyeF3NWWjC8MBBHCPfMiJODTVtYzpjvVw5KX1+K0YUw+uGPoC74PncY0WQl+mYCSVvE1pSbi+o0IBeMr+9OzJh43DNsm7A6E33bT+M75k1HqnMoHTD5M7BW/KKDcOFbm5L0EOSAwhf01Gta3VqdHaQj1ygDhn9wZp8GBSfNB5EJkTu3KIiUABixVyKZIi+Q69G8ZgbhRA8hADxXoXtakmG0svAd2iYSjCN4oRmcBBiiN7mSDtKkprzr3FqJKBK0XBYTcPeVU39GoPe41mr08IafjjhCvKQ3kbCzPtC4cBHvxt5nCfUh/Lo/5Y5cvK1WEijf9cirzKrkaKAo6vpEHRmboo5vC4eaaYvCi0XU7T9+c8tfQoX3EhPYfjn5FCudPTV0JD6WTJwHnUKAxGR4ZaQ== Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: List-Subscribe: X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-26) on aws-us-west-2-korg-listserv-alma10-1 On 11/28/26 17:15, sashiko-bot@kernel.org wrote: > Thank you for your contribution! Sashiko AI review found 2 potential > issues to consider: > - [High] of: reserved_mem: sub-page memblock split in > fdt_mark_reserve_mem_nodump() > - [Medium] of: reserved_mem: early nodump split in > unflatten_device_tree() before kasan > -- > > commit 47a5a6000f1f57782ed8a71e5ff4a13ee231c6bd > Author: Wandun Chen > > of: reserved_mem: mark /reserved-memory entries with MEMBLOCK_NODUMP > > This commit adds fdt_mark_reserve_mem_nodump() and calls it from > unflatten_device_tree() to mark page-clamped non-dumpable > /reserved-memory regions with MEMBLOCK_NODUMP. > > Link: https://sashiko.dev/#/message/sashiko-outbox-181183@kernel.org [1] > >> diff --git a/drivers/of/fdt.c b/drivers/of/fdt.c >> index a58efdcbac7f1..f3a766310d119 100644 >> --- a/drivers/of/fdt.c >> +++ b/drivers/of/fdt.c >> @@ -1283,6 +1283,8 @@ void __init unflatten_device_tree(void) >> { >> void *fdt = initial_boot_params; >> >> + fdt_mark_reserve_mem_nodump(); >> + >> /* Populate an empty root node when bootloader doesn't provide one */ >> if (!fdt) { >> fdt = (void *) __dtb_empty_root_begin; > > [Severity: Medium] > Does calling fdt_mark_reserve_mem_nodump() in unflatten_device_tree() > split memblock.memory too early for kasan_init() and kvm_hyp_reserve()? > > Mapped (!no-map) reserved-memory regions were previously only recorded in > memblock.reserved, keeping memblock.memory contiguous. Splitting > memblock.memory with MEMBLOCK_NODUMP at PAGE_SIZE boundaries before the > rest of setup_arch() causes for_each_mem_range() and > for_each_mem_region() to iterate over the split ranges separately. > > On arm64 and loongarch, when a mapped non-dumpable region boundary is > PAGE_SIZE-aligned but not aligned to PAGE_SIZE << KASAN_SHADOW_SCALE_SHIFT > (e.g. 32 KiB or 64 KiB on 4 KiB pages), the two adjacent regions share a > KASAN shadow page. Because kasan_pte_populate() checks pte_none() only in > its do-while loop condition after the first iteration, the second region > allocates a duplicate shadow page, overwrites the PTE, and leaks the first > page: This leak is pre-existing: nomap markings already split memblock.memory the same way and trigger this today. This patch only adds one more source of split points. > > arch/arm64/mm/kasan_init.c:kasan_pte_populate() { > ... > do { > phys_addr_t page_phys = early ? > __pa_symbol(kasan_early_shadow_page) > : kasan_alloc_raw_page(node); > if (!early) > memset(__va(page_phys), KASAN_SHADOW_INIT, PAGE_SIZE); > next = addr + PAGE_SIZE; > __set_pte(ptep, pfn_pte(__phys_to_pfn(page_phys), PAGE_KERNEL)); > } while (ptep++, addr = next, addr != end && pte_none(__ptep_get(ptep))); > } > > On riscv, splitting 16 MiB physical ranges before kasan_init() prevents > kasan_populate_pmd() from mapping a full 2 MiB shadow PMD, falling back to > 4 KiB PTEs. Same here: nomap regions already cause this today. On arm64 with pKVM, splitting memblock.memory before > bootmem_init() -> kvm_hyp_reserve() consumes extra slots in the fixed > 128-entry hyp_memory[] array and increases per-region hypervisor > page-table and vmemmap reservations. Agreed, and to me this is the most serious of the three points. All three points introduced by this patch will be fixed in v11 by moving the call to an early_initcall. The marking is done from an early_initcall instead of from unflatten_device_tree(), so the boot-time memblock walkers (KASAN, pKVM on arm64) use the unsplit memblock ranges. The main reason to use early_initcall() instead of any other initcalls is that some driver initcalls can trigger updates to memblock.memory that may race with fdt_mark_reserve_mem_nodump(), which does not take a lock. For example, virtio_mem can queue work during probe to add guest memory to memblock.memory. Therefore, run fdt_mark_reserve_mem_nodump() as early as possible in the initcall sequence. > > [ ... ] > >> diff --git a/drivers/of/of_reserved_mem.c b/drivers/of/of_reserved_mem.c >> index a5cd8c2fffc35..cef444d4c1a38 100644 >> --- a/drivers/of/of_reserved_mem.c >> +++ b/drivers/of/of_reserved_mem.c >> @@ -610,6 +610,36 @@ static void __init fdt_init_reserved_mem_node(unsigned long node, const char *un >> reserved_mem_count++; >> } >> >> +void __init fdt_mark_reserve_mem_nodump(void) >> +{ >> + struct reserved_mem *rmem; >> + int i; >> + >> + if (!IS_ENABLED(CONFIG_CRASH_DUMP)) >> + return; >> + >> + if (!IS_ENABLED(CONFIG_KEXEC_FILE) && !IS_ENABLED(CONFIG_CRASH_HOTPLUG)) >> + return; >> + >> + if (reserved_mem_reserve_failed) >> + return; >> + >> + for (i = 0; i < reserved_mem_count; i++) { >> + phys_addr_t base, end; >> + >> + rmem = &reserved_mem[i]; >> + if (!rmem->size || rmem->dumpable) >> + continue; >> + >> + base = round_up(rmem->base, PAGE_SIZE); >> + end = round_down(rmem->base + rmem->size, PAGE_SIZE); >> + if (base >= end) >> + continue; >> + >> + memblock_mark_nodump(base, end - base); >> + } >> +} > > [Severity: High] > Can clamping each region to PAGE_SIZE here leave sub-page fragments in > memblock.memory when a no-map region or an adjacent region is not > page-aligned? > > During fdt_scan_reserved_mem(), no-map regions are marked with > MEMBLOCK_NOMAP in memblock.memory at byte granularity (for example, > cont_splash_mem in arch/arm64/boot/dts/exynos/exynos2200-g0s.dts has size > 0x9a3f80, and 4 KiB-aligned no-map regions are unaligned under 16 KiB or > 64 KiB PAGE_SIZE). Because fdt_mark_reserve_mem_nodump() does not skip > MEMBLOCK_NOMAP regions, calling memblock_mark_nodump(base, end - base) on > the page-clamped interior range gives [base, end) flags > MEMBLOCK_NOMAP | MEMBLOCK_NODUMP while leaving the unaligned head > [rmem->base, base) and tail [end, rmem->base + rmem->size) as sub-page > regions with only MEMBLOCK_NOMAP. > > Similarly, if a mapped non-dumpable region abuts an unaligned no-map > region, clamping inward to PAGE_SIZE leaves a sub-page MEMBLOCK_NONE > fragment between the two regions; and if two adjacent non-dumpable regions > meet at a sub-page boundary, clamping each entry before coalescing leaves > their shared page unmarked. > > On riscv, init_resources() converts every memblock.memory region > (including MEMBLOCK_NOMAP) using PFN_UP for start and PFN_DOWN - 1 for > end: > > arch/riscv/kernel/setup.c:init_resources() { > ... > for_each_mem_region(region) { > res = &mem_res[res_idx--]; > non_resv_res++; > > if (unlikely(memblock_is_nomap(region))) { > res->name = "Reserved"; > res->flags = IORESOURCE_MEM | IORESOURCE_EXCLUSIVE; > } else { > res->name = "System RAM"; > res->flags = IORESOURCE_SYSTEM_RAM | IORESOURCE_BUSY; > } > > res->start = __pfn_to_phys(memblock_region_memory_base_pfn(region)); > res->end = __pfn_to_phys(memblock_region_memory_end_pfn(region)) - 1; > > ret = add_resource(&iomem_resource, res); > if (ret < 0) > goto error; > } > ... > } > > Any sub-page fragment produces res->start > res->end, which fails > add_resource() and tears down iomem_resource. On arm64 and loongarch, a > sub-page MEMBLOCK_NONE fragment likewise produces res->start > res->end in > request_standard_resources() / resource_init(), and an unaligned no-map > region split by MEMBLOCK_NODUMP is broken into multiple reserved entries > in /proc/iomem. > Same here, also a pre existing issue, and will also be fixed by moving fdt_mark_reserve_mem_nodump to early_initcall. For riscv, I have already sent a separate patch to fix it. https://lore.kernel.org/linux-riscv/20261130124221.2500317-1-chenwandun1@gmail.com/ Thanks, Wandun > Since crash_should_skip_region() already skips MEMBLOCK_NOMAP regions, > skipping no-map entries and coalescing adjacent non-dumpable ranges before > clamping to page boundaries would avoid creating sub-page MEMBLOCK_NOMAP > splits and unmarked shared pages. >