get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 2227816,
    "url": "http://patchwork.ozlabs.org/api/patches/2227816/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/linux-tegra/patch/20260424095820.1433700-1-kkartik@nvidia.com/",
    "project": {
        "id": 21,
        "url": "http://patchwork.ozlabs.org/api/projects/21/?format=api",
        "name": "Linux Tegra Development",
        "link_name": "linux-tegra",
        "list_id": "linux-tegra.vger.kernel.org",
        "list_email": "linux-tegra@vger.kernel.org",
        "web_url": null,
        "scm_url": null,
        "webscm_url": null,
        "list_archive_url": "",
        "list_archive_url_format": "",
        "commit_url_format": ""
    },
    "msgid": "<20260424095820.1433700-1-kkartik@nvidia.com>",
    "list_archive_url": null,
    "date": "2026-04-24T09:58:20",
    "name": "pstore/zone: Emit registration message as a single pr_info()",
    "commit_ref": null,
    "pull_url": null,
    "state": "new",
    "archived": false,
    "hash": "98492946312303d0b1df9c8c9fdb3f293c7941f4",
    "submitter": {
        "id": 83016,
        "url": "http://patchwork.ozlabs.org/api/people/83016/?format=api",
        "name": "Kartik Rajput",
        "email": "kkartik@nvidia.com"
    },
    "delegate": null,
    "mbox": "http://patchwork.ozlabs.org/project/linux-tegra/patch/20260424095820.1433700-1-kkartik@nvidia.com/mbox/",
    "series": [
        {
            "id": 501334,
            "url": "http://patchwork.ozlabs.org/api/series/501334/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/linux-tegra/list/?series=501334",
            "date": "2026-04-24T09:58:20",
            "name": "pstore/zone: Emit registration message as a single pr_info()",
            "version": 1,
            "mbox": "http://patchwork.ozlabs.org/series/501334/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/2227816/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/2227816/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "\n <linux-tegra+bounces-13939-incoming=patchwork.ozlabs.org@vger.kernel.org>",
        "X-Original-To": [
            "incoming@patchwork.ozlabs.org",
            "linux-tegra@vger.kernel.org"
        ],
        "Delivered-To": "patchwork-incoming@legolas.ozlabs.org",
        "Authentication-Results": [
            "legolas.ozlabs.org;\n\tdkim=pass (2048-bit key;\n unprotected) header.d=Nvidia.com header.i=@Nvidia.com header.a=rsa-sha256\n header.s=selector2 header.b=jAcnT1mp;\n\tdkim-atps=neutral",
            "legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org\n (client-ip=2600:3c09:e001:a7::12fc:5321; helo=sto.lore.kernel.org;\n envelope-from=linux-tegra+bounces-13939-incoming=patchwork.ozlabs.org@vger.kernel.org;\n receiver=patchwork.ozlabs.org)",
            "smtp.subspace.kernel.org;\n\tdkim=pass (2048-bit key) header.d=Nvidia.com header.i=@Nvidia.com\n header.b=\"jAcnT1mp\"",
            "smtp.subspace.kernel.org;\n arc=fail smtp.client-ip=52.101.57.56",
            "smtp.subspace.kernel.org;\n dmarc=pass (p=reject dis=none) header.from=nvidia.com",
            "smtp.subspace.kernel.org;\n spf=fail smtp.mailfrom=nvidia.com"
        ],
        "Received": [
            "from sto.lore.kernel.org (sto.lore.kernel.org\n [IPv6:2600:3c09:e001:a7::12fc:5321])\n\t(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n\t key-exchange x25519 server-signature ECDSA (secp384r1) server-digest SHA384)\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4g27hz3xdZz1xvV\n\tfor <incoming@patchwork.ozlabs.org>; Fri, 24 Apr 2026 19:59:15 +1000 (AEST)",
            "from smtp.subspace.kernel.org (conduit.subspace.kernel.org\n [100.90.174.1])\n\tby sto.lore.kernel.org (Postfix) with ESMTP id 9A8B330039B2\n\tfor <incoming@patchwork.ozlabs.org>; Fri, 24 Apr 2026 09:59:12 +0000 (UTC)",
            "from localhost.localdomain (localhost.localdomain [127.0.0.1])\n\tby smtp.subspace.kernel.org (Postfix) with ESMTP id CFA6A35AC19;\n\tFri, 24 Apr 2026 09:59:11 +0000 (UTC)",
            "from BN8PR05CU002.outbound.protection.outlook.com\n (mail-eastus2azon11011056.outbound.protection.outlook.com [52.101.57.56])\n\t(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))\n\t(No client certificate requested)\n\tby smtp.subspace.kernel.org (Postfix) with ESMTPS id 1D32E1A8F97;\n\tFri, 24 Apr 2026 09:59:09 +0000 (UTC)",
            "from BN9PR03CA0216.namprd03.prod.outlook.com (2603:10b6:408:f8::11)\n by MW4PR12MB7288.namprd12.prod.outlook.com (2603:10b6:303:223::15) with\n Microsoft SMTP Server (version=TLS1_2,\n cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.9846.22; Fri, 24 Apr\n 2026 09:59:02 +0000",
            "from BN3PEPF0000B075.namprd04.prod.outlook.com\n (2603:10b6:408:f8:cafe::d9) by BN9PR03CA0216.outlook.office365.com\n (2603:10b6:408:f8::11) with Microsoft SMTP Server (version=TLS1_3,\n cipher=TLS_AES_256_GCM_SHA384) id 15.20.9846.22 via Frontend Transport; Fri,\n 24 Apr 2026 09:59:01 +0000",
            "from mail.nvidia.com (216.228.117.161) by\n BN3PEPF0000B075.mail.protection.outlook.com (10.167.243.120) with Microsoft\n SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id\n 15.20.9846.18 via Frontend Transport; Fri, 24 Apr 2026 09:59:01 +0000",
            "from rnnvmail205.nvidia.com (10.129.68.10) by mail.nvidia.com\n (10.129.200.67) with Microsoft SMTP Server (version=TLS1_2,\n cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.2562.20; Fri, 24 Apr\n 2026 02:58:42 -0700",
            "from rnnvmail202.nvidia.com (10.129.68.7) by rnnvmail205.nvidia.com\n (10.129.68.10) with Microsoft SMTP Server (version=TLS1_2,\n cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.2562.20; Fri, 24 Apr\n 2026 02:58:42 -0700",
            "from kkartik-desktop.nvidia.com (10.127.8.13) by mail.nvidia.com\n (10.129.68.7) with Microsoft SMTP Server id 15.2.2562.20 via Frontend\n Transport; Fri, 24 Apr 2026 02:58:39 -0700"
        ],
        "ARC-Seal": [
            "i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116;\n\tt=1777024751; cv=fail;\n b=EvSNQiXrHEFl7fD7vm5q6crwMUNi1gzb8wL1XAh3UGa/ziDv329F7EISIeyneSLG0f4NnDAEEXJ95PRs3jfkwqw0FW/md7kQi0Mq82fc+/mqWFVtyxj+rUxuSG1jnedZH16yW7477jOq2eRzjg1HL7ABPYhbnMvMCbws7s0Bd24=",
            "i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none;\n b=fh10YBddFOG7C8eDXK/HlQ9/cCHmGhRCUjy4ZiKYdlRmGRTlm3MNzpDvCwKFHCKBcCMr0UPgh09lMLSh5ELGynO8kHfHTgwnxmjHniwTGmme45tZAfkoGaWQmXniFcx3iqAL5SPQWx9eGd1PpC9ROgag2wyUQDA2ASWhbUQme3Q5uNs6Q376fVVkGT+WmhgCB4MIHwCitlDiSR6QvXOpqVuKJHambjO/dysLhp2t0fVh63rELqKw1PMvhFOEjOG5cwgBJ8zy5XZ0O/49VMDOF6hqyIXRLqi5mNwBlWldyWU0VLt4vFMQ44Z49y5H+vIP6qRNh7wVhiIlK1+dv5buXw=="
        ],
        "ARC-Message-Signature": [
            "i=2; a=rsa-sha256; d=subspace.kernel.org;\n\ts=arc-20240116; t=1777024751; c=relaxed/simple;\n\tbh=vIKrhFWnBtzv39LgzHwzXeJ3q6nvIknNmq86K2/UToM=;\n\th=From:To:CC:Subject:Date:Message-ID:MIME-Version:Content-Type;\n b=eGv0Q7mq4cmTjXV2A84tXeEXof5GEwXQWGashnXlUmx6GqUz7iv4Uk84AKRsXwB2GC63b9WXkpeKlQ+vRgF8bbXK+S0y6D2YG6oHfmVOXgSImykRJgMpGXqJKuYLDkZ4GfuCbE1tl/T8D3MVjuQku1KnknJmcfNyo+B4ajGp8FI=",
            "i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com;\n s=arcselector10001;\n h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1;\n bh=fkYP3bzm2HO5YSQ4cRQ7K8FRk4rMZNdd6Ex7qA00jWM=;\n b=iSdUbTa+/ha5depMTdgL5SMkSj205bzUZCRoe+Sv3TgPAuGNpC/SRPtYO9jBxk8GIe3WY2l3Q/hSXHj61S5kyApH2D84268FgPWnUs0058olekPNZZ0uGQKr0urjY9qMRs9zuM2HCkBuRaGcIN0RSCGbWQ/TLVczt6WEz0IRLCIf4faWXJuz6WmSBPOlPYtuFyNJovhyx8MtozAt0UhmJFP3joFlJyyzOcWCZKt5VipGB0F561XKOeFNGY/w4HKurnHwBU1rY7aEDfodIDQO7cyM0yij1//lHG/MarX8ImfZhMvrBlIWKr/qlSLMLjWIbkKTzyUhJlEbshx3Hrb1Hg=="
        ],
        "ARC-Authentication-Results": [
            "i=2; smtp.subspace.kernel.org;\n dmarc=pass (p=reject dis=none) header.from=nvidia.com;\n spf=fail smtp.mailfrom=nvidia.com;\n dkim=pass (2048-bit key) header.d=Nvidia.com header.i=@Nvidia.com\n header.b=jAcnT1mp; arc=fail smtp.client-ip=52.101.57.56",
            "i=1; mx.microsoft.com 1; spf=pass (sender ip is\n 216.228.117.161) smtp.rcpttodomain=kernel.org smtp.mailfrom=nvidia.com;\n dmarc=pass (p=reject sp=reject pct=100) action=none header.from=nvidia.com;\n dkim=none (message not signed); arc=none (0)"
        ],
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=Nvidia.com;\n s=selector2;\n h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck;\n bh=fkYP3bzm2HO5YSQ4cRQ7K8FRk4rMZNdd6Ex7qA00jWM=;\n b=jAcnT1mpzIfNVIx/QOpg6kNdQSM9dtpsYaJPDFrQsN/NnBBR5DJJpjrsmq96SFjnVOx06WtilErsUSU/z8qnx4p/3S0TPgYUMBm3t6eT6ZExwDsW3K6UYEdpT51RdFeWrDJUAZCvktyMqUXGhGAytaAOj1+hFw/uAC1bhSmXJ/1rD+mnqeDY4WsF9Humd1YXZdz61+w8u3r5six2eYBXtwVg2pSJLnvDHSla3ZUSEDnKhV/Ilvb7yqekufptjU9fAV433fwgIum6Efo80gX3hg+81vGB2R8jpKRD+tl2eEWogV32UWl03fOIL4maQXTEXe+aE2UbgVec0LWetonl8g==",
        "X-MS-Exchange-Authentication-Results": "spf=pass (sender IP is 216.228.117.161)\n smtp.mailfrom=nvidia.com; dkim=none (message not signed)\n header.d=none;dmarc=pass action=none header.from=nvidia.com;",
        "Received-SPF": "Pass (protection.outlook.com: domain of nvidia.com designates\n 216.228.117.161 as permitted sender) receiver=protection.outlook.com;\n client-ip=216.228.117.161; helo=mail.nvidia.com; pr=C",
        "From": "Kartik Rajput <kkartik@nvidia.com>",
        "To": "Kees Cook <kees@kernel.org>, Tony Luck <tony.luck@intel.com>, \"Guilherme G\n . Piccoli\" <gpiccoli@igalia.com>, Jon Hunter <jonathanh@nvidia.com>, \"Thierry\n Reding\" <thierry.reding@kernel.org>, <linux-kernel@vger.kernel.org>,\n\t<linux-tegra@vger.kernel.org>",
        "CC": "Kartik Rajput <kkartik@nvidia.com>",
        "Subject": "[PATCH] pstore/zone: Emit registration message as a single pr_info()",
        "Date": "Fri, 24 Apr 2026 15:28:20 +0530",
        "Message-ID": "<20260424095820.1433700-1-kkartik@nvidia.com>",
        "X-Mailer": "git-send-email 2.43.0",
        "Precedence": "bulk",
        "X-Mailing-List": "linux-tegra@vger.kernel.org",
        "List-Id": "<linux-tegra.vger.kernel.org>",
        "List-Subscribe": "<mailto:linux-tegra+subscribe@vger.kernel.org>",
        "List-Unsubscribe": "<mailto:linux-tegra+unsubscribe@vger.kernel.org>",
        "MIME-Version": "1.0",
        "Content-Transfer-Encoding": "8bit",
        "Content-Type": "text/plain",
        "X-NV-OnPremToCloud": "ExternallySecured",
        "X-EOPAttributedMessage": "0",
        "X-MS-PublicTrafficType": "Email",
        "X-MS-TrafficTypeDiagnostic": "BN3PEPF0000B075:EE_|MW4PR12MB7288:EE_",
        "X-MS-Office365-Filtering-Correlation-Id": "ffafa5fe-a984-4701-4272-08dea1e81cb3",
        "X-MS-Exchange-SenderADCheck": "1",
        "X-MS-Exchange-AntiSpam-Relay": "0",
        "X-Microsoft-Antispam": "\n\tBCL:0;ARA:13230040|82310400026|1800799024|376014|36860700016|18002099003|56012099003;",
        "X-Microsoft-Antispam-Message-Info": "\n\tnBX62fSrZq/CW6OX8w5cOACYTH/hO8UeyeDpBKPoTShI0pECLtwX7lVSD43wbjHT/ehCNPrUH2fqp3oLC/t/0l5TDgAwmHcsiDwF4TUsaCQOWSkiJIMr6w4+daAfmInjV0Pz07eNsWn28xCapCxQRKwal3xnxc3nZZpIOrHxS1Wif08AuRTS0+VETpTrn/TSLhRNZfbWHeqaDHAZzK+WaD71ccLlKKCADS7k833wnqEvCwpDMcC2kguop66JsP3HL/wk7suTaIy2EzLXK9VTel6fllKhrn3e2qMFzbOp821QNqUJJZM9tjraNUYNCJTG2ZkoMgDP1ZpLf4wT9hBW4YCPBtbkDme3rDyNXJCZCgGKEcYVeTLkn0AGE3qGWKLHfrmGIRg6LmUIrxb+7Sq+N/aOlNkn7YafRbov3pFc0gPodVAXYTQTzBynJP+M76vmSGz1MfJrC0/swbiW4R7do55c0qnGzOpzCw+lmHxhgIKshl9U+s8g923wRDEg4+Y7BgywlAQVmqH1qht/nUK9ogGdIHL1Ygw2DKs0RmNE+kmRXr3I2VsREuBDz0r2WXqFdNgirHH8LgxwqD9tHPtImfl4vd5KGfo1qnvQgO2GtneqDJdAQOladUT9ovfS4AdiXbqCSZMLwAMNC7KVrP0L4gufEbLSFPoE0y5j21umZBNHX96+p9G9fQgte4oWK8gtHb9omBm5ihBn7ZvyACcilTmmD+fwctzFM8MYFcdUAYnd0NjfIvHOMhYkWx3am0Ydj0l6P370y9b+5uYA/W+zvw==",
        "X-Forefront-Antispam-Report": "\n\tCIP:216.228.117.161;CTRY:US;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:mail.nvidia.com;PTR:dc6edge2.nvidia.com;CAT:NONE;SFS:(13230040)(82310400026)(1800799024)(376014)(36860700016)(18002099003)(56012099003);DIR:OUT;SFP:1101;",
        "X-MS-Exchange-AntiSpam-MessageData-ChunkCount": "1",
        "X-MS-Exchange-AntiSpam-MessageData-0": "\n\tFti2HeDnH/SRoyq6pAJJLD1+hlUWqSG3Vcd99LFpvayR6fGp2AuI0wpgq4O+EOMJ7y9Q/ajmZO1CIv5aOlpbmmaZshaIxpREY6CXYvupzQxqwzqX3YIa5fw2OZqeNi7JXE5Qak0fG48llIZTG0ht8gqJnsN/+QJd1g9TzltvbOqEUognMScxR1P4jvxT2hpCaioilc+XeW2Lt5hHju7AqRGBqeLUA6rrVIg1BANFTFCq5RiMB8+qadiDecDxHtoOdyx2x7J6tpHbkZ8yZ93a3B7sG67Tr/a8X7DQ+R3qHiNagKPZXy2jetJVL5jMCynslXJ7VObKyLHnAoPg/e0a49bzL5+ORAJrC7aKVL9JA2oEufQWWCzmSplKPpaEgh65wYHxa2YxGRveK7o4CsnRtIFeztBbU7wqWStjmJBqPFISSBs/anX5GXPauO6Z4Q1c",
        "X-OriginatorOrg": "Nvidia.com",
        "X-MS-Exchange-CrossTenant-OriginalArrivalTime": "24 Apr 2026 09:59:01.7260\n (UTC)",
        "X-MS-Exchange-CrossTenant-Network-Message-Id": "\n ffafa5fe-a984-4701-4272-08dea1e81cb3",
        "X-MS-Exchange-CrossTenant-Id": "43083d15-7273-40c1-b7db-39efd9ccc17a",
        "X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp": "\n TenantId=43083d15-7273-40c1-b7db-39efd9ccc17a;Ip=[216.228.117.161];Helo=[mail.nvidia.com]",
        "X-MS-Exchange-CrossTenant-AuthSource": "\n\tBN3PEPF0000B075.namprd04.prod.outlook.com",
        "X-MS-Exchange-CrossTenant-AuthAs": "Anonymous",
        "X-MS-Exchange-CrossTenant-FromEntityHeader": "HybridOnPrem",
        "X-MS-Exchange-Transport-CrossTenantHeadersStamped": "MW4PR12MB7288"
    },
    "content": "register_pstore_zone() prints its \"registered ... as backend for ...\"\nsummary as a pr_info() followed by several pr_cont() calls.\n\npr_cont() is not atomic and has no log level of its own. It appends\nto whichever line was most recently opened by a printk(). If a\npr_err() or pr_warn() from another CPU or an interrupt handler\npreempts the pr_info() / pr_cont() sequence, it closes the\ncontinuation between the fragments. This can cause parts of the\npstore registration message to appear at the wrong log level and be\ninterleaved with other messages.\n\nFurthermore, this causes the detection of new warning and error\nmessages in the kernel log to be unreliable.\n\nFormat the registration line in a small local buffer using\nscnprintf() and emit it with a single pr_info() call, making the\nline atomic with respect to concurrent printk() callers.  No\nfunctional change to registration.\n\nSigned-off-by: Kartik Rajput <kkartik@nvidia.com>\n---\n fs/pstore/zone.c | 20 ++++++++++----------\n 1 file changed, 10 insertions(+), 10 deletions(-)",
    "diff": "diff --git a/fs/pstore/zone.c b/fs/pstore/zone.c\nindex a3b003f9a3a0..fbe0a252dd2a 100644\n--- a/fs/pstore/zone.c\n+++ b/fs/pstore/zone.c\n@@ -1301,6 +1301,8 @@ int register_pstore_zone(struct pstore_zone_info *info)\n {\n \tint err = -EINVAL;\n \tstruct psz_context *cxt = &pstore_zone_cxt;\n+\tchar buf[256] = \"\";\n+\tsize_t len = 0;\n \n \tif (info->total_size < 4096) {\n \t\tpr_warn(\"total_size must be >= 4096\\n\");\n@@ -1383,30 +1385,28 @@ int register_pstore_zone(struct pstore_zone_info *info)\n \t}\n \tcxt->pstore.data = cxt;\n \n-\tpr_info(\"registered %s as backend for\", info->name);\n \tcxt->pstore.max_reason = info->max_reason;\n \tcxt->pstore.name = info->name;\n \tif (info->kmsg_size) {\n \t\tcxt->pstore.flags |= PSTORE_FLAGS_DMESG;\n-\t\tpr_cont(\" kmsg(%s\",\n-\t\t\tkmsg_dump_reason_str(cxt->pstore.max_reason));\n-\t\tif (cxt->pstore_zone_info->panic_write)\n-\t\t\tpr_cont(\",panic_write\");\n-\t\tpr_cont(\")\");\n+\t\tlen += scnprintf(buf + len, sizeof(buf) - len, \" kmsg(%s%s)\",\n+\t\t\t       kmsg_dump_reason_str(cxt->pstore.max_reason),\n+\t\t\t       cxt->pstore_zone_info->panic_write ? \",panic_write\" : \"\");\n \t}\n \tif (info->pmsg_size) {\n \t\tcxt->pstore.flags |= PSTORE_FLAGS_PMSG;\n-\t\tpr_cont(\" pmsg\");\n+\t\tlen += scnprintf(buf + len, sizeof(buf) - len, \" pmsg\");\n \t}\n \tif (info->console_size) {\n \t\tcxt->pstore.flags |= PSTORE_FLAGS_CONSOLE;\n-\t\tpr_cont(\" console\");\n+\t\tlen += scnprintf(buf + len, sizeof(buf) - len, \" console\");\n \t}\n \tif (info->ftrace_size) {\n \t\tcxt->pstore.flags |= PSTORE_FLAGS_FTRACE;\n-\t\tpr_cont(\" ftrace\");\n+\t\tlen += scnprintf(buf + len, sizeof(buf) - len, \" ftrace\");\n \t}\n-\tpr_cont(\"\\n\");\n+\n+\tpr_info(\"registered %s as backend for%s\\n\", info->name, buf);\n \n \terr = pstore_register(&cxt->pstore);\n \tif (err) {\n",
    "prefixes": []
}