Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/2217754/?format=api
{ "id": 2217754, "url": "http://patchwork.ozlabs.org/api/patches/2217754/?format=api", "web_url": "http://patchwork.ozlabs.org/project/linux-ext4/patch/20260330133035.287842-6-yebin@huaweicloud.com/", "project": { "id": 8, "url": "http://patchwork.ozlabs.org/api/projects/8/?format=api", "name": "Linux ext4 filesystem development", "link_name": "linux-ext4", "list_id": "linux-ext4.vger.kernel.org", "list_email": "linux-ext4@vger.kernel.org", "web_url": null, "scm_url": null, "webscm_url": null, "list_archive_url": "", "list_archive_url_format": "", "commit_url_format": "" }, "msgid": "<20260330133035.287842-6-yebin@huaweicloud.com>", "list_archive_url": null, "date": "2026-03-30T13:30:35", "name": "[v5,5/5] ext4: fix possible null-ptr-deref in mbt_kunit_exit()", "commit_ref": null, "pull_url": null, "state": "new", "archived": false, "hash": "dc5e86d89be8807faa1bf109d525cd030e4f7670", "submitter": { "id": 85089, "url": "http://patchwork.ozlabs.org/api/people/85089/?format=api", "name": "Ye Bin", "email": "yebin@huaweicloud.com" }, "delegate": null, "mbox": "http://patchwork.ozlabs.org/project/linux-ext4/patch/20260330133035.287842-6-yebin@huaweicloud.com/mbox/", "series": [ { "id": 498033, "url": "http://patchwork.ozlabs.org/api/series/498033/?format=api", "web_url": "http://patchwork.ozlabs.org/project/linux-ext4/list/?series=498033", "date": "2026-03-30T13:30:32", "name": "Fix some issues about ext4-test", "version": 5, "mbox": "http://patchwork.ozlabs.org/series/498033/mbox/" } ], "comments": "http://patchwork.ozlabs.org/api/patches/2217754/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/2217754/checks/", "tags": {}, "related": [], "headers": { "Return-Path": "\n <SRS0=lj8W=B6=vger.kernel.org=linux-ext4+bounces-15533-patchwork-incoming=ozlabs.org@ozlabs.org>", "X-Original-To": [ "incoming@patchwork.ozlabs.org", "linux-ext4@vger.kernel.org" ], "Delivered-To": [ "patchwork-incoming@legolas.ozlabs.org", "patchwork-incoming@ozlabs.org" ], "Authentication-Results": [ "legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=ozlabs.org\n (client-ip=150.107.74.76; helo=mail.ozlabs.org;\n envelope-from=srs0=lj8w=b6=vger.kernel.org=linux-ext4+bounces-15533-patchwork-incoming=ozlabs.org@ozlabs.org;\n receiver=patchwork.ozlabs.org)", "gandalf.ozlabs.org;\n arc=pass smtp.remote-ip=172.105.105.114 arc.chain=subspace.kernel.org", "gandalf.ozlabs.org;\n dmarc=none (p=none dis=none) header.from=huaweicloud.com", "gandalf.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org\n (client-ip=172.105.105.114; helo=tor.lore.kernel.org;\n envelope-from=linux-ext4+bounces-15533-patchwork-incoming=ozlabs.org@vger.kernel.org;\n receiver=ozlabs.org)", "smtp.subspace.kernel.org;\n arc=none smtp.client-ip=45.249.212.56", "smtp.subspace.kernel.org;\n dmarc=none (p=none dis=none) header.from=huaweicloud.com", "smtp.subspace.kernel.org;\n spf=pass smtp.mailfrom=huaweicloud.com" ], "Received": [ "from mail.ozlabs.org (gandalf.ozlabs.org [150.107.74.76])\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 4fkstZ2dmmz1y1q\n\tfor <incoming@patchwork.ozlabs.org>; Tue, 31 Mar 2026 00:44:38 +1100 (AEDT)", "from mail.ozlabs.org (mail.ozlabs.org [IPv6:2404:9400:2221:ea00::3])\n\tby gandalf.ozlabs.org (Postfix) with ESMTP id 4fkstZ2QGvz4xY1\n\tfor <incoming@patchwork.ozlabs.org>; Tue, 31 Mar 2026 00:44:38 +1100 (AEDT)", "by gandalf.ozlabs.org (Postfix)\n\tid 4fkstZ2H3jz4xdw; Tue, 31 Mar 2026 00:44:38 +1100 (AEDT)", "from tor.lore.kernel.org (tor.lore.kernel.org [172.105.105.114])\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 gandalf.ozlabs.org (Postfix) with ESMTPS id 4fkstV5r8Lz4xY1\n\tfor <patchwork-incoming@ozlabs.org>; Tue, 31 Mar 2026 00:44:34 +1100 (AEDT)", "from smtp.subspace.kernel.org (conduit.subspace.kernel.org\n [100.90.174.1])\n\tby tor.lore.kernel.org (Postfix) with ESMTP id 83C913151DA9\n\tfor <patchwork-incoming@ozlabs.org>; Mon, 30 Mar 2026 13:33:00 +0000 (UTC)", "from localhost.localdomain (localhost.localdomain [127.0.0.1])\n\tby smtp.subspace.kernel.org (Postfix) with ESMTP id 473473D092A;\n\tMon, 30 Mar 2026 13:32:54 +0000 (UTC)", "from dggsgout12.his.huawei.com (dggsgout12.his.huawei.com\n [45.249.212.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 16E601B4F1F\n\tfor <linux-ext4@vger.kernel.org>; Mon, 30 Mar 2026 13:32:50 +0000 (UTC)", "from mail.maildlp.com (unknown [172.19.163.170])\n\tby dggsgout12.his.huawei.com (SkyGuard) with ESMTPS id 4fksc22kc8zKHLw8\n\tfor <linux-ext4@vger.kernel.org>; Mon, 30 Mar 2026 21:32:02 +0800 (CST)", "from mail02.huawei.com (unknown [10.116.40.128])\n\tby mail.maildlp.com (Postfix) with ESMTP id ECD8140561\n\tfor <linux-ext4@vger.kernel.org>; Mon, 30 Mar 2026 21:32:48 +0800 (CST)", "from huaweicloud.com (unknown [10.50.87.132])\n\tby APP4 (Coremail) with SMTP id gCh0CgDHn0p7e8pp7U0sCw--.17260S9;\n\tMon, 30 Mar 2026 21:32:48 +0800 (CST)" ], "ARC-Seal": [ "i=2; a=rsa-sha256; d=ozlabs.org; s=201707; t=1774878278; cv=pass;\n\tb=AHI2oE9WGg5OYEllOJc/N3IBc9O8hoqU28ZPjeW7xwyJKhp27vo6eOvEpOQgIcXzBGYx1wURCTfUAiphV+Iohsb6YKXYkZN8p5eYVldGqnm4H47+fB/WZWzC5IVjvTicTIIiC9S7oiIrgjK2KhNpNfUad5tPPHsweby6EiAxxuV1v2G31bpEKN554Wn2z2CYh9voN1cps70JAZ598hXOGTg9tqdtWeIszig4r2OBOw4thZW/Xh+iZYQHcI+c6MNOcOewh7c9UM+qDfrdtUBOD0PaqrKJhYSYXSDfqgzicCqCcyO3TlKVWk39Utw7I5kWEBOeQEo0f+xPQ0hr6MsZzg==", "i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116;\n\tt=1774877574; cv=none;\n b=iTJWm1R88JkVq+RiJwKW8btFkz7jPFa+ee9l5HyKqPlMH77OZJxTq6wY+e8CV9LgO5kE/KzHD8Km8p6z+feaKQHumWnKOAwsDfu36yG2GbtgingX/9SylGXDeOcEyu0og0fgJK/GjRRo5SQzCR2P8GYguCBstC3HWywH1zL9Sjk=" ], "ARC-Message-Signature": [ "i=2; a=rsa-sha256; d=ozlabs.org; s=201707;\n\tt=1774878278; c=relaxed/relaxed;\n\tbh=d/i0hQfU1ZkEetBi1PnuH8F0JfXVpZMdQVOowm6vUj8=;\n\th=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References:\n\t MIME-Version;\n b=RjbFqos6bHHjo2eb75fI5PGYxgOKOQOov5H6JpeKaqrNM11YmiaWp31lzmhXAM9ZbRmLMsE67xpVlI4dU2jwkeEDdY2tZEY1FNi8EyVT7fP34ujiwZpsYx4po1M5MnR9tt1rjQ40WNYr8IqH7RDYZJfXCniPq7+jVpdeXdSIBn+wSb/b+G7ZMVhdd94VyVU7TvPI2BpJ9Cu6Cm+x8PrcsptUR9El+UR1ShTsAFZLQQHIbOwZj/duXxeNugdYVvwOtOxtuEMKD5/Oio6mr8kbmG04nqblqEli12Z1UZgKFh9G9zQ078eKlpbsBT4MXX6KDsH75XT3RWOYNF1J68c1Iw==", "i=1; a=rsa-sha256; d=subspace.kernel.org;\n\ts=arc-20240116; t=1774877574; c=relaxed/simple;\n\tbh=RE93ai5RXLe9MSJU+kjAcFTtZ1d8uCfamTDrIkb0aGs=;\n\th=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References:\n\t MIME-Version;\n b=B/uQluDPaSuX0s0wj3YaeEZ038B8nFI/Qho4cbopF+7cdUnAKPspXAmBuFUPw/NymOJKaN8oTKWiK/TaH9Ll5GgISkLxwYOb6Cc2HQd05fKz0yLPuozUXdLTNzxY0bvpyoZtI6StxwECdNlYD/iBt2SnSL5CvXTneMs5om47nE8=" ], "ARC-Authentication-Results": [ "i=2; gandalf.ozlabs.org;\n dmarc=none (p=none dis=none) header.from=huaweicloud.com;\n spf=pass (client-ip=172.105.105.114; helo=tor.lore.kernel.org;\n envelope-from=linux-ext4+bounces-15533-patchwork-incoming=ozlabs.org@vger.kernel.org;\n receiver=ozlabs.org) smtp.mailfrom=vger.kernel.org", "i=1; smtp.subspace.kernel.org;\n dmarc=none (p=none dis=none) header.from=huaweicloud.com;\n spf=pass smtp.mailfrom=huaweicloud.com; arc=none smtp.client-ip=45.249.212.56" ], "From": "Ye Bin <yebin@huaweicloud.com>", "To": "tytso@mit.edu,\n\tadilger.kernel@dilger.ca,\n\tlinux-ext4@vger.kernel.org", "Cc": "jack@suse.cz", "Subject": "[PATCH v5 5/5] ext4: fix possible null-ptr-deref in mbt_kunit_exit()", "Date": "Mon, 30 Mar 2026 21:30:35 +0800", "Message-Id": "<20260330133035.287842-6-yebin@huaweicloud.com>", "X-Mailer": "git-send-email 2.34.1", "In-Reply-To": "<20260330133035.287842-1-yebin@huaweicloud.com>", "References": "<20260330133035.287842-1-yebin@huaweicloud.com>", "Precedence": "bulk", "X-Mailing-List": "linux-ext4@vger.kernel.org", "List-Id": "<linux-ext4.vger.kernel.org>", "List-Subscribe": "<mailto:linux-ext4+subscribe@vger.kernel.org>", "List-Unsubscribe": "<mailto:linux-ext4+unsubscribe@vger.kernel.org>", "MIME-Version": "1.0", "Content-Transfer-Encoding": "8bit", "X-CM-TRANSID": "gCh0CgDHn0p7e8pp7U0sCw--.17260S9", "X-Coremail-Antispam": "1UD129KBjvJXoW7ur4rXry3JF48Zw47Gr1UAwb_yoW8AFy8p3\n\t9xCFyUKrW8Wr1qyr47tryDAryIgws7uFyUJryxC3WavFZxAryrJFn5KFWYqFW8uFW8Xayr\n\tZ3WjvFyqg3WfAaUanT9S1TB71UUUUU7qnTZGkaVYY2UrUUUUjbIjqfuFe4nvWSU5nxnvy2\n\t9KBjDU0xBIdaVrnRJUUUvEb4IE77IF4wAFF20E14v26rWj6s0DM7CY07I20VC2zVCF04k2\n\t6cxKx2IYs7xG6rWj6s0DM7CIcVAFz4kK6r1j6r18M28IrcIa0xkI8VA2jI8067AKxVWUAV\n\tCq3wA2048vs2IY020Ec7CjxVAFwI0_Gr0_Xr1l8cAvFVAK0II2c7xJM28CjxkF64kEwVA0\n\trcxSw2x7M28EF7xvwVC0I7IYx2IY67AKxVWDJVCq3wA2z4x0Y4vE2Ix0cI8IcVCY1x0267\n\tAKxVW8Jr0_Cr1UM28EF7xvwVC2z280aVAFwI0_GcCE3s1l84ACjcxK6I8E87Iv6xkF7I0E\n\t14v26rxl6s0DM2AIxVAIcxkEcVAq07x20xvEncxIr21l5I8CrVACY4xI64kE6c02F40Ex7\n\txfMcIj6xIIjxv20xvE14v26r1j6r18McIj6I8E87Iv67AKxVWUJVW8JwAm72CE4IkC6x0Y\n\tz7v_Jr0_Gr1lF7xvr2IYc2Ij64vIr41l42xK82IYc2Ij64vIr41l4I8I3I0E4IkC6x0Yz7\n\tv_Jr0_Gr1lx2IqxVAqx4xG67AKxVWUJVWUGwC20s026x8GjcxK67AKxVWUGVWUWwC2zVAF\n\t1VAY17CE14v26r126r1DMIIYrxkI7VAKI48JMIIF0xvE2Ix0cI8IcVAFwI0_JFI_Gr1lIx\n\tAIcVC0I7IYx2IY6xkF7I0E14v26r4j6F4UMIIF0xvE42xK8VAvwI8IcIk0rVWUJVWUCwCI\n\t42IY6I8E87Iv67AKxVW8JVWxJwCI42IY6I8E87Iv6xkF7I0E14v26r4j6r4UJbIYCTnIWI\n\tevJa73UjIFyTuYvjxU2CJmUUUUU", "X-CM-SenderInfo": "p1hex046kxt4xhlfz01xgou0bp/", "X-Spam-Status": "No, score=-1.1 required=5.0 tests=ARC_SIGNED,ARC_VALID,\n\tDMARC_MISSING,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,\n\tSPF_HELO_NONE,SPF_PASS autolearn=disabled version=4.0.1", "X-Spam-Checker-Version": "SpamAssassin 4.0.1 (2024-03-25) on gandalf.ozlabs.org" }, "content": "From: Ye Bin <yebin10@huawei.com>\n\nThere's issue as follows:\n # test_new_blocks_simple: failed to initialize: -12\nKASAN: null-ptr-deref in range [0x0000000000000638-0x000000000000063f]\nTainted: [E]=UNSIGNED_MODULE, [N]=TEST\nRIP: 0010:mbt_kunit_exit+0x5e/0x3e0 [ext4_test]\nCall Trace:\n <TASK>\n kunit_try_run_case_cleanup+0xbc/0x100 [kunit]\n kunit_generic_run_threadfn_adapter+0x89/0x100 [kunit]\n kthread+0x408/0x540\n ret_from_fork+0xa76/0xdf0\n ret_from_fork_asm+0x1a/0x30\n\nIf mbt_kunit_init() init testcase failed will lead to null-ptr-deref.\nSo add test if 'sb' is inited success in mbt_kunit_exit().\n\nFixes: 7c9fa399a369 (\"ext4: add first unit test for ext4_mb_new_blocks_simple in mballoc\")\nSigned-off-by: Ye Bin <yebin10@huawei.com>\nReviewed-by: Ritesh Harjani (IBM) <ritesh.list@gmail.com>\nReviewed-by: Ojaswin Mujoo <ojaswin@linux.ibm.com>\n---\n fs/ext4/mballoc-test.c | 6 +++++-\n 1 file changed, 5 insertions(+), 1 deletion(-)", "diff": "diff --git a/fs/ext4/mballoc-test.c b/fs/ext4/mballoc-test.c\nindex c75b91ae0cf0..90ed505fa4b1 100644\n--- a/fs/ext4/mballoc-test.c\n+++ b/fs/ext4/mballoc-test.c\n@@ -362,7 +362,6 @@ static int mbt_kunit_init(struct kunit *test)\n \t\treturn ret;\n \t}\n \n-\ttest->priv = sb;\n \tkunit_activate_static_stub(test,\n \t\t\t\t ext4_read_block_bitmap_nowait,\n \t\t\t\t ext4_read_block_bitmap_nowait_stub);\n@@ -383,6 +382,8 @@ static int mbt_kunit_init(struct kunit *test)\n \t\treturn -ENOMEM;\n \t}\n \n+\ttest->priv = sb;\n+\n \treturn 0;\n }\n \n@@ -390,6 +391,9 @@ static void mbt_kunit_exit(struct kunit *test)\n {\n \tstruct super_block *sb = (struct super_block *)test->priv;\n \n+\tif (!sb)\n+\t\treturn;\n+\n \tmbt_mb_release(sb);\n \tmbt_ctx_release(sb);\n \tmbt_ext4_free_super_block(sb);\n", "prefixes": [ "v5", "5/5" ] }