get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

GET /api/patches/2215673/?format=api
HTTP 200 OK
Allow: GET, PUT, PATCH, HEAD, OPTIONS
Content-Type: application/json
Vary: Accept

{
    "id": 2215673,
    "url": "http://patchwork.ozlabs.org/api/patches/2215673/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/linuxppc-dev/patch/20260325025904.2811960-3-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": "<20260325025904.2811960-3-ruanjinjie@huawei.com>",
    "list_archive_url": "https://lore.kernel.org/linuxppc-dev/20260325025904.2811960-3-ruanjinjie@huawei.com/",
    "date": "2026-03-25T02:58:58",
    "name": "[v10,2/8] powerpc/crash: Fix possible memory leak in update_crash_elfcorehdr()",
    "commit_ref": null,
    "pull_url": null,
    "state": "handled-elsewhere",
    "archived": false,
    "hash": "50c7d434bf0ed52dce301f311ca5823ea37efaa5",
    "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/20260325025904.2811960-3-ruanjinjie@huawei.com/mbox/",
    "series": [
        {
            "id": 497378,
            "url": "http://patchwork.ozlabs.org/api/series/497378/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/linuxppc-dev/list/?series=497378",
            "date": "2026-03-25T02:58:56",
            "name": "[v10,1/8] riscv: kexec_file: Fix crashk_low_res not exclude bug",
            "version": 10,
            "mbox": "http://patchwork.ozlabs.org/series/497378/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/2215673/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/2215673/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "\n <linuxppc-dev+bounces-18751-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=ivD1fPbT;\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-18751-incoming=patchwork.ozlabs.org@lists.ozlabs.org;\n receiver=patchwork.ozlabs.org)",
            "lists.ozlabs.org;\n arc=none smtp.remote-ip=113.46.200.216",
            "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=ivD1fPbT;\n\tdkim-atps=neutral",
            "lists.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=huawei.com\n (client-ip=113.46.200.216; helo=canpmsgout01.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 4fgWmc3LsSz1y1G\n\tfor <incoming@patchwork.ozlabs.org>; Wed, 25 Mar 2026 13:57:52 +1100 (AEDT)",
            "from boromir.ozlabs.org (localhost [127.0.0.1])\n\tby lists.ozlabs.org (Postfix) with ESMTP id 4fgWmJ3rW0z2yng;\n\tWed, 25 Mar 2026 13:57:36 +1100 (AEDT)",
            "from canpmsgout01.his.huawei.com (canpmsgout01.his.huawei.com\n [113.46.200.216])\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 4fgWmH1gMjz2yr8\n\tfor <linuxppc-dev@lists.ozlabs.org>; Wed, 25 Mar 2026 13:57:34 +1100 (AEDT)",
            "from mail.maildlp.com (unknown [172.19.163.104])\n\tby canpmsgout01.his.huawei.com (SkyGuard) with ESMTPS id 4fgWdr14vwz1T4Fq;\n\tWed, 25 Mar 2026 10:52:00 +0800 (CST)",
            "from dggpemf500011.china.huawei.com (unknown [7.185.36.131])\n\tby mail.maildlp.com (Postfix) with ESMTPS id CFB984056A;\n\tWed, 25 Mar 2026 10:57:30 +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; Wed, 25 Mar\n 2026 10:57:27 +0800"
        ],
        "ARC-Seal": "i=1; a=rsa-sha256; d=lists.ozlabs.org; s=201707; t=1774407456;\n\tcv=none;\n b=ZprQL8E422m5aBm+ARsR8o53Q8SzI/nXShE07vDPVkiZOPs20S+mZuQJJJ6BZ6IAUR2dA9ko0XeY1tK0A5ddMbFSiYJnxgmR933oDrNSUHA+c+bmSBCcSJ3gV+RVETLiF77XqRpB6NHTLQfaTq7AQVZ2oVvImfYDYpEoT3que0DZJFfW4MqmdmtnsDl03TQnMILKcPzGL06K5kkrCFkNLWMXdkth82QEnDBsB2N3Q+1/UkOewvIMD5G0WeiPCoe0boldmNxue3fogipNfaEy/Rvt8lFH1uNg4bmJw2bdO22Cwt63TqxNNW1M8sVN4xbx0JH3Y/Gq5tGg3Ar8xRYZBA==",
        "ARC-Message-Signature": "i=1; a=rsa-sha256; d=lists.ozlabs.org; s=201707;\n\tt=1774407456; c=relaxed/relaxed;\n\tbh=/i6VxgmNfg5cptySEU9CsbiBxFSCKM3OfYrwIMNa32Y=;\n\th=From:To:Subject:Date:Message-ID:In-Reply-To:References:\n\t MIME-Version:Content-Type;\n b=go7XtAbqCJTSA2KCG7I7AM4nAVMpgygJL6dpAIOfRGC1fCy0pYR95F2QyyS71hw1wLAuWXNzzgEUdKhIbarkxae44dniAUSiAouEFW7M15hPL53oBt/hhNYX1vP0bC618Q6fZHUPO30bHZ4rAF/PZpLRI0cT4dwAhQ0ObEd23EZLdMbgp+fLtXmcKkQBGOUJXa4FFhW/yrN5fjGziZAOT+adXDb+RGzSW/+wUpRYFcesSKy3eq1opH0RTf0YsgkTeo6VnqE2mMrSAGoBIYjCvhmUyKAXZe/CD4MePJWvRtLz+tqGV4ibuEf+oRhyhszrm0CIGuK971fdfPy0Fz5U2Q==",
        "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=ivD1fPbT; dkim-atps=neutral;\n spf=pass (client-ip=113.46.200.216; helo=canpmsgout01.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=/i6VxgmNfg5cptySEU9CsbiBxFSCKM3OfYrwIMNa32Y=;\n\tb=ivD1fPbTzEYIJATMUPqbbryzgl7/XSZpHThXqBefheozkff0gSztd7U9PEHTUquuHnasS9xc2\n\tmfTtj6jOikZBW+4M7XNr7Mn9Kz/8Fosc1CbU1SZGOjMp8hXNmqG/SEzSLJ+0fWa03btTTiY+eqQ\n\t6UVj+DXWUth+j08yU/82eDs=",
        "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<pawan.kumar.gupta@linux.intel.com>, <feng.tang@linux.alibaba.com>,\n\t<dapeng1.mi@linux.intel.com>, <kees@kernel.org>, <elver@google.com>,\n\t<paulmck@kernel.org>, <lirongqing@baidu.com>, <ruanjinjie@huawei.com>,\n\t<rppt@kernel.org>, <ardb@kernel.org>, <leitao@debian.org>, <osandov@fb.com>,\n\t<cfsworks@gmail.com>, <tangyouling@kylinos.cn>, <sourabhjain@linux.ibm.com>,\n\t<ritesh.list@gmail.com>, <eajames@linux.ibm.com>,\n\t<songshuaishuai@tinylab.org>, <kevin.brodsky@arm.com>,\n\t<samuel.holland@sifive.com>, <vishal.moola@gmail.com>,\n\t<junhui.liu@pigmoral.tech>, <coxu@redhat.com>, <liaoyuanhong@vivo.com>,\n\t<jbohac@suse.cz>, <fuqiang.wang@easystack.cn>, <guoren@kernel.org>,\n\t<chenjiahao16@huawei.com>, <hbathini@linux.ibm.com>, <james.morse@arm.com>,\n\t<takahiro.akashi@linaro.org>, <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>",
        "Subject": "[PATCH v10 2/8] powerpc/crash: Fix possible memory leak in\n update_crash_elfcorehdr()",
        "Date": "Wed, 25 Mar 2026 10:58:58 +0800",
        "Message-ID": "<20260325025904.2811960-3-ruanjinjie@huawei.com>",
        "X-Mailer": "git-send-email 2.34.1",
        "In-Reply-To": "<20260325025904.2811960-1-ruanjinjie@huawei.com>",
        "References": "<20260325025904.2811960-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": "In get_crash_memory_ranges(), if crash_exclude_mem_range() failed\nafter realloc_mem_ranges() has successfully allocated the cmem\nmemory, it just returns an error but leaves cmem pointing to\nthe allocated memory, nor is it freed in the caller\nupdate_crash_elfcorehdr(), which cause a memory leak, goto out\nto free the cmem.\n\nFixes: 849599b702ef (\"powerpc/crash: add crash memory hotplug support\")\nSigned-off-by: Jinjie Ruan <ruanjinjie@huawei.com>\n---\n arch/powerpc/kexec/crash.c | 2 +-\n 1 file changed, 1 insertion(+), 1 deletion(-)",
    "diff": "diff --git a/arch/powerpc/kexec/crash.c b/arch/powerpc/kexec/crash.c\nindex a325c1c02f96..1d12cef8e1e0 100644\n--- a/arch/powerpc/kexec/crash.c\n+++ b/arch/powerpc/kexec/crash.c\n@@ -440,7 +440,7 @@ static void update_crash_elfcorehdr(struct kimage *image, struct memory_notify *\n \tret = get_crash_memory_ranges(&cmem);\n \tif (ret) {\n \t\tpr_err(\"Failed to get crash mem range\\n\");\n-\t\treturn;\n+\t\tgoto out;\n \t}\n \n \t/*\n",
    "prefixes": [
        "v10",
        "2/8"
    ]
}