Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/1.1/patches/2231738/?format=api
{ "id": 2231738, "url": "http://patchwork.ozlabs.org/api/1.1/patches/2231738/?format=api", "web_url": "http://patchwork.ozlabs.org/project/linux-mtd/patch/20260501110246.50647-1-tristmd@gmail.com/", "project": { "id": 3, "url": "http://patchwork.ozlabs.org/api/1.1/projects/3/?format=api", "name": "Linux MTD development", "link_name": "linux-mtd", "list_id": "linux-mtd.lists.infradead.org", "list_email": "linux-mtd@lists.infradead.org", "web_url": null, "scm_url": null, "webscm_url": null }, "msgid": "<20260501110246.50647-1-tristmd@gmail.com>", "date": "2026-05-01T11:02:44", "name": "[1/3] jffs2: always stop garbage collection thread on unmount", "commit_ref": null, "pull_url": null, "state": "new", "archived": false, "hash": "dab11d57c3f40813a8658eb98e7ca9b6ec8bdc50", "submitter": { "id": 93179, "url": "http://patchwork.ozlabs.org/api/1.1/people/93179/?format=api", "name": "Tristan Madani", "email": "tristmd@gmail.com" }, "delegate": null, "mbox": "http://patchwork.ozlabs.org/project/linux-mtd/patch/20260501110246.50647-1-tristmd@gmail.com/mbox/", "series": [ { "id": 502440, "url": "http://patchwork.ozlabs.org/api/1.1/series/502440/?format=api", "web_url": "http://patchwork.ozlabs.org/project/linux-mtd/list/?series=502440", "date": "2026-05-01T11:02:45", "name": "[1/3] jffs2: always stop garbage collection thread on unmount", "version": 1, "mbox": "http://patchwork.ozlabs.org/series/502440/mbox/" } ], "comments": "http://patchwork.ozlabs.org/api/patches/2231738/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/2231738/checks/", "tags": {}, "headers": { "Return-Path": "\n <linux-mtd-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org>", "X-Original-To": "incoming@patchwork.ozlabs.org", "Delivered-To": "patchwork-incoming@legolas.ozlabs.org", "Authentication-Results": [ "legolas.ozlabs.org;\n\tdkim=pass (2048-bit key;\n secure) header.d=lists.infradead.org header.i=@lists.infradead.org\n header.a=rsa-sha256 header.s=bombadil.20210309 header.b=VdDqhq2p;\n\tdkim=fail reason=\"signature verification failed\" (2048-bit key;\n unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256\n header.s=20251104 header.b=TgpOb5bc;\n\tdkim-atps=neutral", "legolas.ozlabs.org;\n spf=none (no SPF record) smtp.mailfrom=lists.infradead.org\n (client-ip=2607:7c80:54:3::133; helo=bombadil.infradead.org;\n envelope-from=linux-mtd-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org;\n receiver=patchwork.ozlabs.org)" ], "Received": [ "from bombadil.infradead.org (bombadil.infradead.org\n [IPv6:2607:7c80:54:3::133])\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 4g6SnZ2S2bz1yKN\n\tfor <incoming@patchwork.ozlabs.org>; Fri, 01 May 2026 21:03:09 +1000 (AEST)", "from localhost ([::1] helo=bombadil.infradead.org)\n\tby bombadil.infradead.org with esmtp (Exim 4.98.2 #2 (Red Hat Linux))\n\tid 1wIle0-00000006bjM-3Cnp;\n\tFri, 01 May 2026 11:02:52 +0000", "from mail-wm1-x332.google.com ([2a00:1450:4864:20::332])\n\tby bombadil.infradead.org with esmtps (Exim 4.98.2 #2 (Red Hat Linux))\n\tid 1wIldy-00000006biJ-2NO2\n\tfor linux-mtd@lists.infradead.org;\n\tFri, 01 May 2026 11:02:51 +0000", "by mail-wm1-x332.google.com with SMTP id\n 5b1f17b1804b1-4852a9c6309so15065505e9.0\n for <linux-mtd@lists.infradead.org>;\n Fri, 01 May 2026 04:02:49 -0700 (PDT)", "from debian.. ([2001:41d0:303:db6b::])\n by smtp.gmail.com with ESMTPSA id\n 5b1f17b1804b1-48a8eb3427fsm79491905e9.0.2026.05.01.04.02.47\n (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n Fri, 01 May 2026 04:02:47 -0700 (PDT)" ], "DKIM-Signature": [ "v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed;\n\td=lists.infradead.org; s=bombadil.20210309; h=Sender:\n\tContent-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post:\n\tList-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-ID:Date:Subject:Cc\n\t:To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From:\n\tResent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:\n\tList-Owner; bh=dnFgJ+osoMR/ifqGthhQPZDxCo/Idn5u+5J/iE04Uak=; b=VdDqhq2pK69GjV\n\t3cNKmDrH1/N7CgF4I0e5uO8MN3/Q98vsa1yPmddqVpPnv5lv9qFftbzrtdMe9szaD8q2BAREXayPZ\n\tbtCOMs3Cfs/bA2v2PNKhuHgK19Lkrs473uHNpoYebAAHI/XbZCmA0UL+OWYICrUDG/tVFi+8XI/QG\n\tNdPu6jcYJePF2bAN0D4v4TAr1wDkamN9EZKmbjn9he/W67GRa6p7xIw5Fva4JqqDm0yDyb4JKPcF3\n\tKZwU97vw/37e69Kb/Xqi7Jvwnh3PEt4kCZn1F7fVnIYkBICirI4AyHMrhrUeI+2BthF+yR5xUn+sf\n\tmwJMZybblcL32eOEq7hA==;", "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=gmail.com; s=20251104; t=1777633368; x=1778238168;\n darn=lists.infradead.org;\n h=content-transfer-encoding:mime-version:message-id:date:subject:cc\n :to:from:from:to:cc:subject:date:message-id:reply-to;\n bh=t+8L5WJt5aFDWaIjaWK7lYM1zW6O2ZzLXWTAE6+TQR0=;\n b=TgpOb5bczm+NwUb519thKWz+xSsFs5btjYLep1Crnh+nNxpi8FUvOT54/ru3yNhL7l\n td2+ZoBeuTKsj5YNj+wSlGt93hFVGN8/oULscY1P0lwOIgwFN+dbyZKJVEoXmRT/hFtb\n 10u37Z0Jkj4E1UqDJyvAaXPH6C4JUeKVLh8paPqdSmzrA1upPH8AFWYZTw07yJl4dZZx\n Y9JqKOzLbHRCRiQupy68Rk1XR3o4awsW0xu2fqycFyG3/AuetEyzbqBRHez6GfsrjAtp\n M5bfmoRvcxzfqpsthG5pcgVBnJmPE3omGk0UbXwoH5yInf52UYzUKsQCKn6BrQfgSpP6\n CcDw==" ], "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=1e100.net; s=20251104; t=1777633368; x=1778238168;\n h=content-transfer-encoding:mime-version:message-id:date:subject:cc\n :to:from:x-gm-gg:x-gm-message-state:from:to:cc:subject:date\n :message-id:reply-to;\n bh=t+8L5WJt5aFDWaIjaWK7lYM1zW6O2ZzLXWTAE6+TQR0=;\n b=F5wwDFL9rIkiqd7qe+0Qa6XEmXsbQBoawq3mdCNrzbvknrVgRg2hySC21BgFDmCkWr\n KS3XVJoN2DMJWbyjYcsaXkvWEDgEePR1scCv5B3vX+kMRcrDvyp9+J/aSsemcytKiscD\n wNI2qJXMBL8Q+dt9ZFPGEK/7LqhMCVGOJfDXLCXFM7ELF/4GTL+ITxzcBb2XM6FIldAn\n Y0wKOeDJyX8ZEDrwCqASE7K3QjZ+24jHMm82VQCM5cgUTgn22HDJo1KkKKuyphkNC9gZ\n TxlQygWvZA10PtHsfCOjN0l2QbkV1Va5ANkZhFLjVxqtyNDXy7+E4bw0/2gLpVlJXzmt\n ekwg==", "X-Gm-Message-State": "AOJu0Yyy95JAY81kIhZC9A4V9r5cW4/N4Gq9Q3eeCBtlU+kzb5TNDFLw\n\tcJ6cFdDmDZwGFOzN3snWppFrtqCvTMl7gbwlzerMfuEtZa7Y6Mn85TU=", "X-Gm-Gg": "AeBDiesqS+NQNmGWcT8pinn+rNqMVwGO/Q8cKUsfb71W8qHq/taaOzhbV+c7DdH9x7S\n\tEQu3gVR3/0fvihcCmf2NfMUJY/e7bt4zSJTibNQaJHF03K85/Kb21+JkLxkSA3vAS9V4KvIVPBr\n\tZ9uKwXrO17wO9tRrCsVypU9VHdMUxYsIUDpq9bXgfm3Cz+V+/zV2pTrz/e2TCItTZ74RNs2cttY\n\tZ2NJHFZ9lrNd4XKFyTmdMTXHlJflGpweEOMKnHOTbVhcC7AOuWmjY7w6ZL4cL7cTYxqaUe1mQkm\n\tZxr0SAgDVPzaJcEH9HE0pq93awds/7Gk+Rn1LE1a2j+VjcbvJ8ms9Yv0LU3XHOG9kFoy+ZPl2i0\n\tnEmI9TX7jGtvelfdqzcHGFCH1U5ScFfs+KpsKSvgVBGTiPpYTdV87Ovu5B3r2otG08jIXzh7f1K\n\tRMPGt2DkJSm19OSQ==", "X-Received": "by 2002:a05:600c:8901:b0:48a:7a10:4f47 with SMTP id\n 5b1f17b1804b1-48a83d6e15fmr81071565e9.3.1777633367941;\n Fri, 01 May 2026 04:02:47 -0700 (PDT)", "From": "Tristan Madani <tristmd@gmail.com>", "To": "David Woodhouse <dwmw2@infradead.org>,\n\tRichard Weinberger <richard@nod.at>", "Cc": "linux-mtd@lists.infradead.org,\n\tlinux-kernel@vger.kernel.org,\n\tstable@vger.kernel.org,\n\tTristan Madani <tristan@talencesecurity.com>,\n\tsyzbot+e84662c5f30b8c401437@syzkaller.appspotmail.com", "Subject": "[PATCH 1/3] jffs2: always stop garbage collection thread on unmount", "Date": "Fri, 1 May 2026 11:02:44 +0000", "Message-ID": "<20260501110246.50647-1-tristmd@gmail.com>", "X-Mailer": "git-send-email 2.47.3", "MIME-Version": "1.0", "X-CRM114-Version": "20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 ", "X-CRM114-CacheID": "sfid-20260501_040250_612862_53B49D6B ", "X-CRM114-Status": "GOOD ( 13.75 )", "X-Spam-Score": "-2.1 (--)", "X-Spam-Report": "Spam detection software,\n running on the system \"bombadil.infradead.org\",\n has NOT identified this incoming email as spam. The original\n message has been attached to this so you can view it or label\n similar future email. If you have any questions, see\n the administrator of that system for details.\n Content preview: From: Tristan Madani jffs2_kill_sb() skips stopping the GC\n thread when the filesystem is mounted read-only. However, a filesystem can\n be remounted read-only while the GC thread is still running. In that case,\n jffs2_stop_g [...]\n Content analysis details: (-2.1 points, 5.0 required)\n pts rule name description\n ---- ----------------------\n --------------------------------------------------\n -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no\n trust\n [2a00:1450:4864:20:0:0:0:332 listed in]\n [list.dnswl.org]\n -0.0 SPF_PASS SPF: sender matches SPF record\n 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record\n -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from\n envelope-from domain\n -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from\n author's\n domain\n 0.1 DKIM_SIGNED Message has a DKIM or DK signature,\n not necessarily valid\n -0.1 DKIM_VALID Message has at least one valid DKIM or DK\n signature\n -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1%\n [score: 0.0000]\n 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail\n provider\n [tristmd(at)gmail.com]", "X-BeenThere": "linux-mtd@lists.infradead.org", "X-Mailman-Version": "2.1.34", "Precedence": "list", "List-Id": "Linux MTD discussion mailing list <linux-mtd.lists.infradead.org>", "List-Unsubscribe": "<http://lists.infradead.org/mailman/options/linux-mtd>,\n <mailto:linux-mtd-request@lists.infradead.org?subject=unsubscribe>", "List-Archive": "<http://lists.infradead.org/pipermail/linux-mtd/>", "List-Post": "<mailto:linux-mtd@lists.infradead.org>", "List-Help": "<mailto:linux-mtd-request@lists.infradead.org?subject=help>", "List-Subscribe": "<http://lists.infradead.org/mailman/listinfo/linux-mtd>,\n <mailto:linux-mtd-request@lists.infradead.org?subject=subscribe>", "Content-Type": "text/plain; charset=\"us-ascii\"", "Content-Transfer-Encoding": "7bit", "Sender": "\"linux-mtd\" <linux-mtd-bounces@lists.infradead.org>", "Errors-To": "linux-mtd-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org" }, "content": "From: Tristan Madani <tristan@talencesecurity.com>\n\njffs2_kill_sb() skips stopping the GC thread when the filesystem\nis mounted read-only. However, a filesystem can be remounted\nread-only while the GC thread is still running. In that case,\njffs2_stop_garbage_collect_thread() is never called, and the GC\nthread continues to run after kfree(c), accessing freed memory.\n\nThe GC thread accesses c->gc_task, c->gc_mtd, and the full\njffs2_sb_info structure during jffs2_garbage_collect_pass().\nAfter kfree(c), any of these accesses is a use-after-free.\n\nRemove the sb_rdonly() check so the GC thread is always stopped\nbefore freeing the superblock info. jffs2_stop_garbage_collect_thread()\nalready handles the case where gc_task is NULL (no thread running),\nso this is safe for the common case of a clean read-only mount.\n\nReported-by: syzbot+e84662c5f30b8c401437@syzkaller.appspotmail.com\nCloses: https://syzkaller.appspot.com/bug?extid=e84662c5f30b8c401437\nTested-by: syzbot+e84662c5f30b8c401437@syzkaller.appspotmail.com\nFixes: 1da177e4c3f4 (\"Linux-2.6.12-rc2\")\nCc: stable@vger.kernel.org\nSigned-off-by: Tristan Madani <tristan@talencesecurity.com>\n---\n fs/jffs2/super.c | 2 +-\n 1 file changed, 1 insertion(+), 1 deletion(-)", "diff": "diff --git a/fs/jffs2/super.c b/fs/jffs2/super.c\nindex 81396a092ba88..c846b435a38b6 100644\n--- a/fs/jffs2/super.c\n+++ b/fs/jffs2/super.c\n@@ -345,7 +345,7 @@ static void jffs2_put_super (struct super_block *sb)\n static void jffs2_kill_sb(struct super_block *sb)\n {\n \tstruct jffs2_sb_info *c = JFFS2_SB_INFO(sb);\n-\tif (c && !sb_rdonly(sb))\n+\tif (c)\n \t\tjffs2_stop_garbage_collect_thread(c);\n \tkill_mtd_super(sb);\n \tkfree(c);\n", "prefixes": [ "1/3" ] }