Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/2217367/?format=api
{ "id": 2217367, "url": "http://patchwork.ozlabs.org/api/patches/2217367/?format=api", "web_url": "http://patchwork.ozlabs.org/project/linuxppc-dev/patch/20260328074013.3589544-2-ruanjinjie@huawei.com/", "project": { "id": 2, "url": "http://patchwork.ozlabs.org/api/projects/2/?format=api", "name": "Linux PPC development", "link_name": "linuxppc-dev", "list_id": "linuxppc-dev.lists.ozlabs.org", "list_email": "linuxppc-dev@lists.ozlabs.org", "web_url": "https://github.com/linuxppc/wiki/wiki", "scm_url": "https://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux.git", "webscm_url": "https://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux.git/", "list_archive_url": "https://lore.kernel.org/linuxppc-dev/", "list_archive_url_format": "https://lore.kernel.org/linuxppc-dev/{}/", "commit_url_format": "https://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux.git/commit/?id={}" }, "msgid": "<20260328074013.3589544-2-ruanjinjie@huawei.com>", "list_archive_url": "https://lore.kernel.org/linuxppc-dev/20260328074013.3589544-2-ruanjinjie@huawei.com/", "date": "2026-03-28T07:40:03", "name": "[v11,01/11] riscv: kexec_file: Fix crashk_low_res not exclude bug", "commit_ref": null, "pull_url": null, "state": "handled-elsewhere", "archived": false, "hash": "a96c778c1e2f861a76d8418421aa707a5e543da1", "submitter": { "id": 84791, "url": "http://patchwork.ozlabs.org/api/people/84791/?format=api", "name": "Jinjie Ruan", "email": "ruanjinjie@huawei.com" }, "delegate": null, "mbox": "http://patchwork.ozlabs.org/project/linuxppc-dev/patch/20260328074013.3589544-2-ruanjinjie@huawei.com/mbox/", "series": [ { "id": 497856, "url": "http://patchwork.ozlabs.org/api/series/497856/?format=api", "web_url": "http://patchwork.ozlabs.org/project/linuxppc-dev/list/?series=497856", "date": "2026-03-28T07:40:03", "name": "arm64/riscv: Add support for crashkernel CMA reservation", "version": 11, "mbox": "http://patchwork.ozlabs.org/series/497856/mbox/" } ], "comments": "http://patchwork.ozlabs.org/api/patches/2217367/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/2217367/checks/", "tags": {}, "related": [], "headers": { "Return-Path": "\n <linuxppc-dev+bounces-18949-incoming=patchwork.ozlabs.org@lists.ozlabs.org>", "X-Original-To": [ "incoming@patchwork.ozlabs.org", "linuxppc-dev@lists.ozlabs.org" ], "Delivered-To": "patchwork-incoming@legolas.ozlabs.org", "Authentication-Results": [ "legolas.ozlabs.org;\n\tdkim=pass (1024-bit key;\n unprotected) header.d=huawei.com header.i=@huawei.com header.a=rsa-sha256\n header.s=dkim header.b=J/GjpK9y;\n\tdkim-atps=neutral", "legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=lists.ozlabs.org\n (client-ip=112.213.38.117; helo=lists.ozlabs.org;\n envelope-from=linuxppc-dev+bounces-18949-incoming=patchwork.ozlabs.org@lists.ozlabs.org;\n receiver=patchwork.ozlabs.org)", "lists.ozlabs.org;\n arc=none smtp.remote-ip=113.46.200.224", "lists.ozlabs.org;\n dmarc=pass (p=quarantine dis=none) header.from=huawei.com", "lists.ozlabs.org;\n\tdkim=pass (1024-bit key;\n unprotected) header.d=huawei.com header.i=@huawei.com header.a=rsa-sha256\n header.s=dkim header.b=J/GjpK9y;\n\tdkim-atps=neutral", "lists.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=huawei.com\n (client-ip=113.46.200.224; helo=canpmsgout09.his.huawei.com;\n envelope-from=ruanjinjie@huawei.com; receiver=lists.ozlabs.org)" ], "Received": [ "from lists.ozlabs.org (lists.ozlabs.org [112.213.38.117])\n\t(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n\t key-exchange x25519 server-signature ECDSA (secp384r1 raw public key)\n server-digest SHA384)\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4fjTwV5Q40z1yGQ\n\tfor <incoming@patchwork.ozlabs.org>; Sat, 28 Mar 2026 18:41:28 +1100 (AEDT)", "from boromir.ozlabs.org (localhost [127.0.0.1])\n\tby lists.ozlabs.org (Postfix) with ESMTP id 4fjTwR1vPSz2ygp;\n\tSat, 28 Mar 2026 18:41:27 +1100 (AEDT)", "from canpmsgout09.his.huawei.com (canpmsgout09.his.huawei.com\n [113.46.200.224])\n\t(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n\t key-exchange x25519 server-signature RSA-PSS (2048 bits) server-digest\n SHA256)\n\t(No client certificate requested)\n\tby lists.ozlabs.org (Postfix) with ESMTPS id 4fjTwN218Xz2xN8\n\tfor <linuxppc-dev@lists.ozlabs.org>; Sat, 28 Mar 2026 18:41:23 +1100 (AEDT)", "from mail.maildlp.com (unknown [172.19.163.200])\n\tby canpmsgout09.his.huawei.com (SkyGuard) with ESMTPS id 4fjTnD6Z19z1cyPH;\n\tSat, 28 Mar 2026 15:35:12 +0800 (CST)", "from dggpemf500011.china.huawei.com (unknown [7.185.36.131])\n\tby mail.maildlp.com (Postfix) with ESMTPS id 6F2724055B;\n\tSat, 28 Mar 2026 15:41:19 +0800 (CST)", "from huawei.com (10.90.53.73) by dggpemf500011.china.huawei.com\n (7.185.36.131) with Microsoft SMTP Server (version=TLS1_2,\n cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1544.11; Sat, 28 Mar\n 2026 15:41:16 +0800" ], "ARC-Seal": "i=1; a=rsa-sha256; d=lists.ozlabs.org; s=201707; t=1774683687;\n\tcv=none;\n b=oQ+cP3xKyEQ7I6UWiGMwjReG5MSXkZowN/U2ngsSa38OD/9tEX4I5+PevQOkKOgCCP9HOEi5iwX8dYaqPexzkOnOlxgsKYqV8v+T65dg234If1fSlIKfT1H9IIxInodLpa2cj9VwC3OMiQ2ppS0saF815zWjp+Vkj866jcHhfieM4PUjuNXZmTB1AfHLNcteFt0yAcxMwAYW59uQCCyZ/wmfFT8ThBWxYLk/hRimxRRYDbeNQquZDA72dHqyMIO97czYdtXvfha6jsRaYQoAP/zfhu35zZRdJB1jiHxxYcZjxNur8Is8vPf8Lu/dnFVAIdBxb2Us3fPCqB5G/TgHSQ==", "ARC-Message-Signature": "i=1; a=rsa-sha256; d=lists.ozlabs.org; s=201707;\n\tt=1774683687; c=relaxed/relaxed;\n\tbh=tvBPTiBQiSVQB4JmznNFGob+aTrtlvXTsOGosNdIf00=;\n\th=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References:\n\t MIME-Version:Content-Type;\n b=aUxSxkYd9eJLtW83TXDaKtW5cqEn2hNMSAHmSHX+NaLqJFB9NZXEXyS8+KUFoWsHVbDk4sbFqJfW5ZNBat+bspRKKBicp3dJ/QhcOoiQ6xC+eol79dWRfP9NO+hV09ySf15Z3Sn6ewM+6Z7SFMlBWcosxRb6zfAd6TTsfN6oJnxTR5VxajTqrRJmx/M2PjkMnbYxfZwAvItoZ/cUMMmu3VSI1YZfzN1M5ejatCkmNGR5h9zS8gtd7LxPUWFcfPvh11T9LixeHFkBV/ZpV+l9oTUC72CfcfMymlx6F4qqMEpiICIKNeG4xF5jQwAUTF3+X4ZncGphrqu1dreaIRRA6A==", "ARC-Authentication-Results": "i=1; lists.ozlabs.org;\n dmarc=pass (p=quarantine dis=none) header.from=huawei.com;\n dkim=pass (1024-bit key;\n unprotected) header.d=huawei.com header.i=@huawei.com header.a=rsa-sha256\n header.s=dkim header.b=J/GjpK9y; dkim-atps=neutral;\n spf=pass (client-ip=113.46.200.224; helo=canpmsgout09.his.huawei.com;\n envelope-from=ruanjinjie@huawei.com;\n receiver=lists.ozlabs.org) smtp.mailfrom=huawei.com", "dkim-signature": "v=1; a=rsa-sha256; d=huawei.com; s=dkim;\n\tc=relaxed/relaxed; q=dns/txt;\n\th=From;\n\tbh=tvBPTiBQiSVQB4JmznNFGob+aTrtlvXTsOGosNdIf00=;\n\tb=J/GjpK9yAWy6Awlz1NtxuUYfv2pCFEoTNos+ytoBRK/86XW1rcK5Ziji7au52RErm2KxB1res\n\tIO0UAx9viRQcZnqUez71/SMOhQuDSGe50A2dfd/FiSj299I8nr2eIZpcnc5X7Axk2lt5XtQE88f\n\tIJWIWFX2PJn31WXjy7PIEQw=", "From": "Jinjie Ruan <ruanjinjie@huawei.com>", "To": "<corbet@lwn.net>, <skhan@linuxfoundation.org>, <catalin.marinas@arm.com>,\n\t<will@kernel.org>, <chenhuacai@kernel.org>, <kernel@xen0n.name>,\n\t<maddy@linux.ibm.com>, <mpe@ellerman.id.au>, <npiggin@gmail.com>,\n\t<chleroy@kernel.org>, <pjw@kernel.org>, <palmer@dabbelt.com>,\n\t<aou@eecs.berkeley.edu>, <alex@ghiti.fr>, <tglx@kernel.org>,\n\t<mingo@redhat.com>, <bp@alien8.de>, <dave.hansen@linux.intel.com>,\n\t<hpa@zytor.com>, <robh@kernel.org>, <saravanak@kernel.org>,\n\t<akpm@linux-foundation.org>, <bhe@redhat.com>, <vgoyal@redhat.com>,\n\t<dyoung@redhat.com>, <rdunlap@infradead.org>, <peterz@infradead.org>,\n\t<feng.tang@linux.alibaba.com>, <pawan.kumar.gupta@linux.intel.com>,\n\t<dapeng1.mi@linux.intel.com>, <kees@kernel.org>, <elver@google.com>,\n\t<paulmck@kernel.org>, <lirongqing@baidu.com>, <rppt@kernel.org>,\n\t<leitao@debian.org>, <ardb@kernel.org>, <cfsworks@gmail.com>,\n\t<osandov@fb.com>, <jbohac@suse.cz>, <tangyouling@kylinos.cn>,\n\t<sourabhjain@linux.ibm.com>, <ritesh.list@gmail.com>,\n\t<eajames@linux.ibm.com>, <songshuaishuai@tinylab.org>,\n\t<kevin.brodsky@arm.com>, <vishal.moola@gmail.com>,\n\t<junhui.liu@pigmoral.tech>, <coxu@redhat.com>, <fuqiang.wang@easystack.cn>,\n\t<liaoyuanhong@vivo.com>, <guoren@kernel.org>, <chenjiahao16@huawei.com>,\n\t<hbathini@linux.ibm.com>, <takahiro.akashi@linaro.org>,\n\t<james.morse@arm.com>, <lizhengyu3@huawei.com>, <x86@kernel.org>,\n\t<linux-doc@vger.kernel.org>, <linux-kernel@vger.kernel.org>,\n\t<linux-arm-kernel@lists.infradead.org>, <loongarch@lists.linux.dev>,\n\t<linuxppc-dev@lists.ozlabs.org>, <linux-riscv@lists.infradead.org>,\n\t<devicetree@vger.kernel.org>, <kexec@lists.infradead.org>", "CC": "<ruanjinjie@huawei.com>", "Subject": "[PATCH v11 01/11] riscv: kexec_file: Fix crashk_low_res not exclude\n bug", "Date": "Sat, 28 Mar 2026 15:40:03 +0800", "Message-ID": "<20260328074013.3589544-2-ruanjinjie@huawei.com>", "X-Mailer": "git-send-email 2.34.1", "In-Reply-To": "<20260328074013.3589544-1-ruanjinjie@huawei.com>", "References": "<20260328074013.3589544-1-ruanjinjie@huawei.com>", "X-Mailing-List": "linuxppc-dev@lists.ozlabs.org", "List-Id": "<linuxppc-dev.lists.ozlabs.org>", "List-Help": "<mailto:linuxppc-dev+help@lists.ozlabs.org>", "List-Owner": "<mailto:linuxppc-dev+owner@lists.ozlabs.org>", "List-Post": "<mailto:linuxppc-dev@lists.ozlabs.org>", "List-Archive": "<https://lore.kernel.org/linuxppc-dev/>,\n <https://lists.ozlabs.org/pipermail/linuxppc-dev/>", "List-Subscribe": "<mailto:linuxppc-dev+subscribe@lists.ozlabs.org>,\n <mailto:linuxppc-dev+subscribe-digest@lists.ozlabs.org>,\n <mailto:linuxppc-dev+subscribe-nomail@lists.ozlabs.org>", "List-Unsubscribe": "<mailto:linuxppc-dev+unsubscribe@lists.ozlabs.org>", "Precedence": "list", "MIME-Version": "1.0", "Content-Transfer-Encoding": "8bit", "Content-Type": "text/plain", "X-Originating-IP": "[10.90.53.73]", "X-ClientProxiedBy": "kwepems100001.china.huawei.com (7.221.188.238) To\n dggpemf500011.china.huawei.com (7.185.36.131)", "X-Spam-Status": "No, score=-0.2 required=3.0 tests=DKIM_SIGNED,DKIM_VALID,\n\tDKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS autolearn=disabled\n\tversion=4.0.1 OzLabs 8", "X-Spam-Checker-Version": "SpamAssassin 4.0.1 (2024-03-25) on lists.ozlabs.org" }, "content": "As done in commit 944a45abfabc (\"arm64: kdump: Reimplement crashkernel=X\")\nand commit 4831be702b95 (\"arm64/kexec: Fix missing extra range for\ncrashkres_low.\") for arm64, while implementing crashkernel=X,[high,low],\nriscv should have excluded the \"crashk_low_res\" reserved ranges from\nthe crash kernel memory to prevent them from being exported through\n/proc/vmcore, and the exclusion would need an extra crash_mem range.\n\nCc: Guo Ren <guoren@kernel.org>\nCc: Baoquan He <bhe@redhat.com>\nFixes: 5882e5acf18d (\"riscv: kdump: Implement crashkernel=X,[high,low]\")\nSigned-off-by: Jinjie Ruan <ruanjinjie@huawei.com>\n---\n arch/riscv/kernel/machine_kexec_file.c | 14 +++++++++++---\n 1 file changed, 11 insertions(+), 3 deletions(-)", "diff": "diff --git a/arch/riscv/kernel/machine_kexec_file.c b/arch/riscv/kernel/machine_kexec_file.c\nindex 54e2d9552e93..3f7766057cac 100644\n--- a/arch/riscv/kernel/machine_kexec_file.c\n+++ b/arch/riscv/kernel/machine_kexec_file.c\n@@ -61,7 +61,7 @@ static int prepare_elf_headers(void **addr, unsigned long *sz)\n \tunsigned int nr_ranges;\n \tint ret;\n \n-\tnr_ranges = 1; /* For exclusion of crashkernel region */\n+\tnr_ranges = 2; /* For exclusion of crashkernel region */\n \twalk_system_ram_res(0, -1, &nr_ranges, get_nr_ram_ranges_callback);\n \n \tcmem = kmalloc_flex(*cmem, ranges, nr_ranges);\n@@ -76,8 +76,16 @@ static int prepare_elf_headers(void **addr, unsigned long *sz)\n \n \t/* Exclude crashkernel region */\n \tret = crash_exclude_mem_range(cmem, crashk_res.start, crashk_res.end);\n-\tif (!ret)\n-\t\tret = crash_prepare_elf64_headers(cmem, true, addr, sz);\n+\tif (ret)\n+\t\tgoto out;\n+\n+\tif (crashk_low_res.end) {\n+\t\tret = crash_exclude_mem_range(cmem, crashk_low_res.start, crashk_low_res.end);\n+\t\tif (ret)\n+\t\t\tgoto out;\n+\t}\n+\n+\tret = crash_prepare_elf64_headers(cmem, true, addr, sz);\n \n out:\n \tkfree(cmem);\n", "prefixes": [ "v11", "01/11" ] }