Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/2228359/?format=api
{ "id": 2228359, "url": "http://patchwork.ozlabs.org/api/patches/2228359/?format=api", "web_url": "http://patchwork.ozlabs.org/project/linux-tegra/patch/20260426090929.1528232-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": "<20260426090929.1528232-1-kkartik@nvidia.com>", "list_archive_url": null, "date": "2026-04-26T09:09:29", "name": "[v2] pstore/zone: Emit registration message as a single pr_info()", "commit_ref": null, "pull_url": null, "state": "new", "archived": false, "hash": "ed28e43bad973ad12b8018727932207712aea21a", "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/20260426090929.1528232-1-kkartik@nvidia.com/mbox/", "series": [ { "id": 501516, "url": "http://patchwork.ozlabs.org/api/series/501516/?format=api", "web_url": "http://patchwork.ozlabs.org/project/linux-tegra/list/?series=501516", "date": "2026-04-26T09:09:29", "name": "[v2] pstore/zone: Emit registration message as a single pr_info()", "version": 2, "mbox": "http://patchwork.ozlabs.org/series/501516/mbox/" } ], "comments": "http://patchwork.ozlabs.org/api/patches/2228359/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/2228359/checks/", "tags": {}, "related": [], "headers": { "Return-Path": "\n <linux-tegra+bounces-13971-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=heN0uw16;\n\tdkim-atps=neutral", "legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org\n (client-ip=172.234.253.10; helo=sea.lore.kernel.org;\n envelope-from=linux-tegra+bounces-13971-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=\"heN0uw16\"", "smtp.subspace.kernel.org;\n arc=fail smtp.client-ip=40.107.201.48", "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 sea.lore.kernel.org (sea.lore.kernel.org [172.234.253.10])\n\t(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n\t key-exchange x25519)\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4g3LW80T1fz1y2d\n\tfor <incoming@patchwork.ozlabs.org>; Sun, 26 Apr 2026 19:09:55 +1000 (AEST)", "from smtp.subspace.kernel.org (conduit.subspace.kernel.org\n [100.90.174.1])\n\tby sea.lore.kernel.org (Postfix) with ESMTP id DF624300CBE2\n\tfor <incoming@patchwork.ozlabs.org>; Sun, 26 Apr 2026 09:09:53 +0000 (UTC)", "from localhost.localdomain (localhost.localdomain [127.0.0.1])\n\tby smtp.subspace.kernel.org (Postfix) with ESMTP id ACE6F286D73;\n\tSun, 26 Apr 2026 09:09:53 +0000 (UTC)", "from CH4PR04CU002.outbound.protection.outlook.com\n (mail-northcentralusazon11013048.outbound.protection.outlook.com\n [40.107.201.48])\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 2505842AA6;\n\tSun, 26 Apr 2026 09:09:51 +0000 (UTC)", "from SJ0PR03CA0262.namprd03.prod.outlook.com (2603:10b6:a03:3a0::27)\n by CH1PPF73CDB1C12.namprd12.prod.outlook.com (2603:10b6:61f:fc00::615) with\n Microsoft SMTP Server (version=TLS1_2,\n cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.9818.20; Sun, 26 Apr\n 2026 09:09:43 +0000", "from SJ1PEPF00002318.namprd03.prod.outlook.com\n (2603:10b6:a03:3a0:cafe::91) by SJ0PR03CA0262.outlook.office365.com\n (2603:10b6:a03:3a0::27) with Microsoft SMTP Server (version=TLS1_3,\n cipher=TLS_AES_256_GCM_SHA384) id 15.20.9846.25 via Frontend Transport; Sun,\n 26 Apr 2026 09:09:43 +0000", "from mail.nvidia.com (216.228.118.232) by\n SJ1PEPF00002318.mail.protection.outlook.com (10.167.242.228) 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; Sun, 26 Apr 2026 09:09:43 +0000", "from drhqmail202.nvidia.com (10.126.190.181) by mail.nvidia.com\n (10.127.129.5) with Microsoft SMTP Server (version=TLS1_2,\n cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.2562.20; Sun, 26 Apr\n 2026 02:09:34 -0700", "from drhqmail201.nvidia.com (10.126.190.180) by\n drhqmail202.nvidia.com (10.126.190.181) with Microsoft SMTP Server\n (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id\n 15.2.2562.20; Sun, 26 Apr 2026 02:09:34 -0700", "from kkartik-desktop.nvidia.com (10.127.8.13) by mail.nvidia.com\n (10.126.190.180) with Microsoft SMTP Server id 15.2.2562.20 via Frontend\n Transport; Sun, 26 Apr 2026 02:09:31 -0700" ], "ARC-Seal": [ "i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116;\n\tt=1777194593; cv=fail;\n b=B1fLlRneyhK2VfVEieEpkenJJhCl67ko01Z0UNqymWXUg23IHqyXDamKLsmHZtnyNGd/LfbcdSXDh/ZdFVrxXmTN9ymotkIlrwzjbqiVtWcGBVv4kR4p4IPBRWtK0wvty8HFb0xd8izqIDDUa1IZylypKc62cvleJecEjqZiB58=", "i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none;\n b=ia36tQoCPcqCYk2yXXqJQMXLjD9UL4l9GFv9SUwidLwArt4OEpkSm3dNXH/u8RgwTpDhYHuECDmC59x0pxLjeTapOB6NqI0YZBxjV9HjPZ2QBN2mvAMQrGAX1RMSpJizREsBseeEHbrsTCPqTm8a97hPXYowpJVSxaSdjfp8OcVHGjYAqie0UsyLYKI+Qj4mDPgcB6okym9ayCC5r8UgFm1HCbyqgh73vAmOwVOfzMv3tDXfPnf5jsFy6Z7yzJBRm5EEvk7agJ13ZpZzM8X1Xu5NpbABgKo63ZGs+hC+YOXc7RK3zqkO8Ok4m4rNAVvRS9MmEBfQzijRHqzLSwnIBg==" ], "ARC-Message-Signature": [ "i=2; a=rsa-sha256; d=subspace.kernel.org;\n\ts=arc-20240116; t=1777194593; c=relaxed/simple;\n\tbh=fDraKgvOFLlvXfzjDpYMS/xor7A/bgiWtcVuKWQLvFY=;\n\th=From:To:CC:Subject:Date:Message-ID:MIME-Version:Content-Type;\n b=mCne5X9QbTaePUEqaUUUlDt2KpdLu/qGdmUECAFiM6r/eynjYZWsdFyc675bliwUa8fgtegHvKadmQ2Ru7Nrf2Nx9AERVObjEKY7CqHnbhjqn2P6NNAtZ13tEMYFCTzB1bkmU+LV7qQg2RiRV5RYSzhWwV9HP8UHni9Dg+7J51A=", "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=0XmZuu4wEMQOvKPD+5ilBagXcgWkuw59QHGNge1jlYk=;\n b=Lb4tMGrL/jam0UrUv2YU8me2+NA0hTzPgz+uzjjcTpbV9XjsEc3jB1q5aQ3+N5t6VZ1A91tctwxeN5YaUhFGC4i/GBiJDozDim7EByOqTRB2ZkBLFUHR4OasJ6mrzybp+Llw0nQP/M1D6nKTgnVa6ca444Z1G/sZILaI3h2xEkpbWO+NaNoCvhdyg7G+s8yVeock7hr2VjHdhbrSoOupxbtiyZry8HcwXOwd4SpYDD8755gQriFdZm3CeC4G/44MXcm0qyv4MYt7MM7P8UemalNYCAIxfs+n7/2v9C28sDfEoWTRfKMEiPB0po1WWYW/XnhsIB/yKorHAJB+oJfozQ==" ], "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=heN0uw16; arc=fail smtp.client-ip=40.107.201.48", "i=1; mx.microsoft.com 1; spf=pass (sender ip is\n 216.228.118.232) 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=0XmZuu4wEMQOvKPD+5ilBagXcgWkuw59QHGNge1jlYk=;\n b=heN0uw16gtC1e5nBaXvgrG72dJv3NyRTe1jOVrlh7FXiCbZpxDRw1w/i+9wOGcVeQ0Apx7o10MstXlsBs8Wp+c27YFBx8Fiw6EgYDtqAwKhdV6i8e9KhUHej9UpYewHo+nDKZeT8+H+/gKTS1ZeEZ578HogEmeCjzjgDQvM5APlnodDFqfFsXhe9ozk4qa5MoPQKTjsMLF/9xBqHQvVTIdn2l7ZB3duHmYdujwT6mRyuCQGOGt9ehmwQWMyiQyOvLPrYyu2BDJFHNP1qbakTTevgO8oSCRe4C+4Qlk1v4PIi84fKd2tq4pbaqNEVV7NoN6UAmUEt6Pry5rDFlqWr1Q==", "X-MS-Exchange-Authentication-Results": "spf=pass (sender IP is 216.228.118.232)\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.118.232 as permitted sender) receiver=protection.outlook.com;\n client-ip=216.228.118.232; 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 v2] pstore/zone: Emit registration message as a single\n pr_info()", "Date": "Sun, 26 Apr 2026 14:39:29 +0530", "Message-ID": "<20260426090929.1528232-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": "SJ1PEPF00002318:EE_|CH1PPF73CDB1C12:EE_", "X-MS-Office365-Filtering-Correlation-Id": "e72837de-049a-4d53-2c28-08dea3738df3", "X-MS-Exchange-SenderADCheck": "1", "X-MS-Exchange-AntiSpam-Relay": "0", "X-Microsoft-Antispam": "\n\tBCL:0;ARA:13230040|376014|1800799024|82310400026|36860700016|13003099007|18002099003|56012099003;", "X-Microsoft-Antispam-Message-Info": "\n\tI3IY5aDrtKKTCheYnasDpOZ6T84FfUNWw1rCXnzQl0gbmFDL7q1PSdvlZe+TzXsd1QwvIgWs9sUpYjeusN8W3bVrF00rkm88H9pXnF1eeoKD2KCSiUi9LMbH5xb5+zGZpwELcXOOrfuDwMD5gVAqYcpBAyeYsXQXZZP7bYXjD+VKIoA1V4Tg9bznKUKTPxRxxH3KOqofgbVIMb+s3ASsv8C1872MWOQYtwF/uTW2ooBi9WOpuniAP3PQNOzOHdIlRZVhLrXr5q/Z3A9vHYhOMTCte4gZd0eU3oJzSuR7ggGHFf03cP39DYlbVeYRo0PqkUORgAiYsyz94AYuwk4ZBtGvOAcUH7dkf1ig9EKazE7EXOc88cxO5l/898cfGqCPMvMhCZ6WX80FURGO/aZ8M4brT0xE4huNUi21a3+XYVD0ky+go8qkOWdY+RU8obVGkO2ZlmfUys5uEzsgV0miv6xzQz6ld6KX96J8/ZUxQRDtaJmR8Nevx+xEUFdWPB/pOO3osUJ7Jo8TJJCInloE5Ypp9jNgJXGlKOtcFI6xGKrTaSyEMYguTlj/NlXp376SlgoSIkkSyFIz6J4NVrJ+fdW4aG7m98Uy9U3VmV0PDRJOs93AsLqN+/u50ojjcN7qqHmPxiI633ZD0yRb/W7auaaLK6kNYx1N1nJeyqzo2olr5BLpCqVE7uqFAA1uNyK1H86z+TDj5sJGiV2Wn1J/0oJd807tF0T4gFfwdJr5UzTAupsDU+8peMsG7EBXGQxDCqhusc5gi7bwcNQp6Nzz7w==", "X-Forefront-Antispam-Report": "\n\tCIP:216.228.118.232;CTRY:US;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:mail.nvidia.com;PTR:dc7edge1.nvidia.com;CAT:NONE;SFS:(13230040)(376014)(1800799024)(82310400026)(36860700016)(13003099007)(18002099003)(56012099003);DIR:OUT;SFP:1101;", "X-MS-Exchange-AntiSpam-MessageData-ChunkCount": "1", "X-MS-Exchange-AntiSpam-MessageData-0": "\n\tIuo4ImYa7xFh/IEn0I2eplG5LP0ymRnCLnUg2lGkNwfCwvOI0EvowAVXFiLpN2vLqvgb84jt1isa2nAnjmMwnSSrKazr8plheTD7m5wtw1ld3yPk6njRO7zEstKq6quVB5TgwoV85rLyeqkcRFm6bWRQ9rX71Ce58XY0LfUpzvQxJAQiZWbVd7lTl2vrlCJyOmwLLaHq3r0DWRQnZCfM0jz3QZd/F+9EEkbpVMERCGpzVtWC4D65f8e498ON1YlyhLn/6rmu6dcEbDN+5aXTyDPlqcdvoL/Z638COw7tJCs3g1E2rK4XV9AqsJ/gJuNB0jCHFGLYrAVlx+X9KJOwI5vlRUHdiN0Z/SFrJ7AOah9/uninRYaNZ0m4ijML3vmVjUh57IvaNzGkzmB0pyuNrXzeMGSOM6ZXrDr3SzlV5UdP6jt0Vv2PLST0mLWac/h8", "X-OriginatorOrg": "Nvidia.com", "X-MS-Exchange-CrossTenant-OriginalArrivalTime": "26 Apr 2026 09:09:43.0976\n (UTC)", "X-MS-Exchange-CrossTenant-Network-Message-Id": "\n e72837de-049a-4d53-2c28-08dea3738df3", "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.118.232];Helo=[mail.nvidia.com]", "X-MS-Exchange-CrossTenant-AuthSource": "\n\tSJ1PEPF00002318.namprd03.prod.outlook.com", "X-MS-Exchange-CrossTenant-AuthAs": "Anonymous", "X-MS-Exchange-CrossTenant-FromEntityHeader": "HybridOnPrem", "X-MS-Exchange-Transport-CrossTenantHeadersStamped": "CH1PPF73CDB1C12" }, "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 into a seq_buf and emit it with a\nsingle pr_info() call, making the line atomic with respect to\nconcurrent printk() callers. No functional change to registration.\n\nSigned-off-by: Kartik Rajput <kkartik@nvidia.com>\n---\nChanges in v2:\n- Use a seq_buf to build the registration line instead of scnprintf()\n calls.\n- Link to v1: https://lore.kernel.org/all/20260424095820.1433700-1-kkartik@nvidia.com/\n---\n fs/pstore/zone.c | 23 +++++++++++++----------\n 1 file changed, 13 insertions(+), 10 deletions(-)", "diff": "diff --git a/fs/pstore/zone.c b/fs/pstore/zone.c\nindex a3b003f9a3a0..004a5d5f376b 100644\n--- a/fs/pstore/zone.c\n+++ b/fs/pstore/zone.c\n@@ -12,6 +12,7 @@\n #include <linux/slab.h>\n #include <linux/mount.h>\n #include <linux/printk.h>\n+#include <linux/seq_buf.h>\n #include <linux/fs.h>\n #include <linux/pstore_zone.h>\n #include <linux/kdev_t.h>\n@@ -1301,6 +1302,10 @@ 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+\tstruct seq_buf s;\n+\n+\tseq_buf_init(&s, buf, sizeof(buf));\n \n \tif (info->total_size < 4096) {\n \t\tpr_warn(\"total_size must be >= 4096\\n\");\n@@ -1383,30 +1388,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\tseq_buf_printf(&s, \" 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\tseq_buf_puts(&s, \" pmsg\");\n \t}\n \tif (info->console_size) {\n \t\tcxt->pstore.flags |= PSTORE_FLAGS_CONSOLE;\n-\t\tpr_cont(\" console\");\n+\t\tseq_buf_puts(&s, \" console\");\n \t}\n \tif (info->ftrace_size) {\n \t\tcxt->pstore.flags |= PSTORE_FLAGS_FTRACE;\n-\t\tpr_cont(\" ftrace\");\n+\t\tseq_buf_puts(&s, \" ftrace\");\n \t}\n-\tpr_cont(\"\\n\");\n+\n+\tpr_info(\"registered %s as backend for%s\\n\", info->name, seq_buf_str(&s));\n \n \terr = pstore_register(&cxt->pstore);\n \tif (err) {\n", "prefixes": [ "v2" ] }