Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/2217393/?format=api
{ "id": 2217393, "url": "http://patchwork.ozlabs.org/api/patches/2217393/?format=api", "web_url": "http://patchwork.ozlabs.org/project/linux-ext4/patch/20260328150038.349497-1-kartikey406@gmail.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": "<20260328150038.349497-1-kartikey406@gmail.com>", "list_archive_url": null, "date": "2026-03-28T15:00:38", "name": "[v2] ext4: fix bounds check in check_xattrs() to prevent out-of-bounds access", "commit_ref": null, "pull_url": null, "state": "new", "archived": false, "hash": "79b71c758232f3b37ea484e4904d92d0e369cc60", "submitter": { "id": 91725, "url": "http://patchwork.ozlabs.org/api/people/91725/?format=api", "name": "Deepanshu Kartikey", "email": "kartikey406@gmail.com" }, "delegate": null, "mbox": "http://patchwork.ozlabs.org/project/linux-ext4/patch/20260328150038.349497-1-kartikey406@gmail.com/mbox/", "series": [ { "id": 497872, "url": "http://patchwork.ozlabs.org/api/series/497872/?format=api", "web_url": "http://patchwork.ozlabs.org/project/linux-ext4/list/?series=497872", "date": "2026-03-28T15:00:38", "name": "[v2] ext4: fix bounds check in check_xattrs() to prevent out-of-bounds access", "version": 2, "mbox": "http://patchwork.ozlabs.org/series/497872/mbox/" } ], "comments": "http://patchwork.ozlabs.org/api/patches/2217393/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/2217393/checks/", "tags": {}, "related": [], "headers": { "Return-Path": "\n <SRS0=Ab/c=B4=vger.kernel.org=linux-ext4+bounces-15515-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\tdkim=pass (2048-bit key;\n unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256\n header.s=20251104 header.b=ZIMzOwRo;\n\tdkim-atps=neutral", "legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=ozlabs.org\n (client-ip=2404:9400:2221:ea00::3; helo=mail.ozlabs.org;\n envelope-from=srs0=ab/c=b4=vger.kernel.org=linux-ext4+bounces-15515-patchwork-incoming=ozlabs.org@ozlabs.org;\n receiver=patchwork.ozlabs.org)", "gandalf.ozlabs.org;\n arc=pass smtp.remote-ip=\"2600:3c09:e001:a7::12fc:5321\"\n arc.chain=subspace.kernel.org", "gandalf.ozlabs.org;\n dmarc=pass (p=none dis=none) header.from=gmail.com", "gandalf.ozlabs.org;\n\tdkim=pass (2048-bit key;\n unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256\n header.s=20251104 header.b=ZIMzOwRo;\n\tdkim-atps=neutral", "gandalf.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-ext4+bounces-15515-patchwork-incoming=ozlabs.org@vger.kernel.org;\n receiver=ozlabs.org)", "smtp.subspace.kernel.org;\n\tdkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com\n header.b=\"ZIMzOwRo\"", "smtp.subspace.kernel.org;\n arc=none smtp.client-ip=209.85.215.175", "smtp.subspace.kernel.org;\n dmarc=pass (p=none dis=none) header.from=gmail.com", "smtp.subspace.kernel.org;\n spf=pass smtp.mailfrom=gmail.com" ], "Received": [ "from mail.ozlabs.org (mail.ozlabs.org [IPv6:2404:9400:2221:ea00::3])\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 4fjghg5Wxqz1y1j\n\tfor <incoming@patchwork.ozlabs.org>; Sun, 29 Mar 2026 02:01:55 +1100 (AEDT)", "from mail.ozlabs.org (mail.ozlabs.org [IPv6:2404:9400:2221:ea00::3])\n\tby gandalf.ozlabs.org (Postfix) with ESMTP id 4fjghZ1D93z4wSv\n\tfor <incoming@patchwork.ozlabs.org>; Sun, 29 Mar 2026 02:01:50 +1100 (AEDT)", "by gandalf.ozlabs.org (Postfix)\n\tid 4fjghZ0v2xz4wTc; Sun, 29 Mar 2026 02:01:50 +1100 (AEDT)", "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)\n\t(No client certificate requested)\n\tby gandalf.ozlabs.org (Postfix) with ESMTPS id 4fjghT6k1Gz4wSv\n\tfor <patchwork-incoming@ozlabs.org>; Sun, 29 Mar 2026 02:01:45 +1100 (AEDT)", "from smtp.subspace.kernel.org (conduit.subspace.kernel.org\n [100.90.174.1])\n\tby sto.lore.kernel.org (Postfix) with ESMTP id 9BA6330190B8\n\tfor <patchwork-incoming@ozlabs.org>; Sat, 28 Mar 2026 15:00:57 +0000 (UTC)", "from localhost.localdomain (localhost.localdomain [127.0.0.1])\n\tby smtp.subspace.kernel.org (Postfix) with ESMTP id 5FCD8199949;\n\tSat, 28 Mar 2026 15:00:56 +0000 (UTC)", "from mail-pg1-f175.google.com (mail-pg1-f175.google.com\n [209.85.215.175])\n\t(using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits))\n\t(No client certificate requested)\n\tby smtp.subspace.kernel.org (Postfix) with ESMTPS id 12C222EB10\n\tfor <linux-ext4@vger.kernel.org>; Sat, 28 Mar 2026 15:00:54 +0000 (UTC)", "by mail-pg1-f175.google.com with SMTP id\n 41be03b00d2f7-c648bc907ebso2138967a12.3\n for <linux-ext4@vger.kernel.org>;\n Sat, 28 Mar 2026 08:00:54 -0700 (PDT)", "from deepanshu-kernel-hacker..\n ([2405:201:682f:389d:7beb:e3a8:8b1a:3a0d])\n by smtp.gmail.com with ESMTPSA id\n d2e1a72fcca58-82ca85fc6e9sm2653328b3a.46.2026.03.28.08.00.43\n (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n Sat, 28 Mar 2026 08:00:46 -0700 (PDT)" ], "ARC-Seal": [ "i=2; a=rsa-sha256; d=ozlabs.org; s=201707; t=1774710110; cv=pass;\n\tb=Y9jEiugZuFdtGvdKQHvG1BPUGIrsNGogVRvBW6VfU0r9rmOCjKuq3+c99gH450GhS/J+VDKCOLpAA5j/F9otL/XUa2zikafbIWCINij19BQFAqCoicEQBax+UpgqzZR8Wn/q9BjZFfThdYPko4xB1W9puji2ZIb7kKS0/ZQFeHB0/0BblLlgctKYSl0fFTOl3iCfCuzP4xRce640z+Mqd4NCTFWdE1ZXUuQo6E6XWgAO8ATRJnWYwz9YDL8mzMXVsjK1biIepcPxOU0PrOse1NGK6mQ202ft+pALamq/i4w1QQ9XxrVN1xUo5otP7Kds2JVuAEELd0zi8mM8WLRRQQ==", "i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116;\n\tt=1774710056; cv=none;\n b=ES5/bn6AmL8pSJ7w5aGEYZ9s9ZIc9CWyu8T0zMbIQ42208W5KOyD7B+cu0VehVPLfxKN/n7kJA+kRrJlu+JnbfWnwO98kSp/8RQ7goNWrCSLDg/NLo36lZpGFchLQASnk6Io1bshswON31YTPSumfrX4kh7pa5Yojrux79xTdFs=" ], "ARC-Message-Signature": [ "i=2; a=rsa-sha256; d=ozlabs.org; s=201707;\n\tt=1774710110; c=relaxed/relaxed;\n\tbh=qUWulkuc6nwiMpNnsS5d9tfMi0kH9Q6gq1CmIp5Vans=;\n\th=From:To:Cc:Subject:Date:Message-ID:MIME-Version;\n b=hvPaA2zmEr1GwB2BzV6AblXzz58i7+ww0c5ZadTBWtEsPxNF+Wfq+AFaQj+exOQIdAE2P/yqTlVRvgmT3C0DEZ7lp6KgearnJlVXxWlSEwtsuZSN1pLckEFcsMLkwg9+AQ3mMNrtUqU14aApW3xCquthqIhwnDyheFf5EuIbGX5TEyD1l8/0ZLcZZ5DB4EzAvaWGg/o8Jy1p1WZg4BZzRGSegBA6pjBO0twNE+wq+DBvt97sHIZ6Mn6RgQx8Zsp4fuyjl4VdpP4Y8JAZQ29JJD7DNpZ5PNI1JlGd7J4u1NtlPnvQtjGGR30BTy0mnyYdH0jUaVAAuP9AYP14u7H8cg==", "i=1; a=rsa-sha256; d=subspace.kernel.org;\n\ts=arc-20240116; t=1774710056; c=relaxed/simple;\n\tbh=8ZVqhZ/N1PdMAWTWRuymqWQ5zXGNYBpTlwAycXGZ7jQ=;\n\th=From:To:Cc:Subject:Date:Message-ID:MIME-Version;\n b=TqgyNoZP9grOG1w4Hmwy7SkiCMlLYlidvxtgO2ZLkCHxeqTWFPuZBJ/heDJBZR+7p1JWWwwPD0crF8YSeVNAL9BJlmOHhUx5X8+MW4a8jEt+Veh0rXshEFWH+sFeGaFbr3ZL5wy2we5T5CgmPYNLDma5CLfleRspj3c0R3mhxKA=" ], "ARC-Authentication-Results": [ "i=2; gandalf.ozlabs.org;\n dmarc=pass (p=none dis=none) header.from=gmail.com; dkim=pass (2048-bit key;\n unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256\n header.s=20251104 header.b=ZIMzOwRo; dkim-atps=neutral;\n spf=pass (client-ip=2600:3c09:e001:a7::12fc:5321; helo=sto.lore.kernel.org;\n envelope-from=linux-ext4+bounces-15515-patchwork-incoming=ozlabs.org@vger.kernel.org;\n receiver=ozlabs.org) smtp.mailfrom=vger.kernel.org", "i=1; smtp.subspace.kernel.org;\n dmarc=pass (p=none dis=none) header.from=gmail.com;\n spf=pass smtp.mailfrom=gmail.com;\n dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com\n header.b=ZIMzOwRo; arc=none smtp.client-ip=209.85.215.175" ], "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=gmail.com; s=20251104; t=1774710054; x=1775314854;\n darn=vger.kernel.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=qUWulkuc6nwiMpNnsS5d9tfMi0kH9Q6gq1CmIp5Vans=;\n b=ZIMzOwRodO5zXcjr7c0+2lIuw8j72Ts9rKKn5AJ2QeQnMZaYQ7h7kTVylQTn07Ji1j\n ey5RGjRuCLwc+BTHT3YcfzS9rSphFkwtRSHn1AjlNYNEYrlDmv9ikVyc8Y8NvnNh5VZ6\n B7ugRN7cd7IijXLArPvkhWrUyM0Dkbw4UF1CelGPTbEpw3qfkH9FIeOAcn9enYtHsWbQ\n /+/cY+Iw0aVEaCqCwKG2h5Vr3M5/TmjDaiE9wUxG3BnJTOm4Tt1NTLFT5aZlb/sfRUvq\n yZDdHzG4s0bhBCCaQPUbtSUvnsjbBI+jFE21KgJoCiW4uNrccE3uqYtOEg7KZzNn3AxY\n LU8g==", "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=1e100.net; s=20251104; t=1774710054; x=1775314854;\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=qUWulkuc6nwiMpNnsS5d9tfMi0kH9Q6gq1CmIp5Vans=;\n b=O3FAiTpEX8rwlzeRNqmhUhs6M8XWgX6rDDDpZIEGZ/Rc0KwpLKgRsiitr8CdxD1SeR\n W5a3QLUfR3yld8DxgkCd0FUUX6q92gNi+YjxqM2DdX8NTdu0zVWRFNMBLAcmmnM7G25R\n htfA4X7WBI1mk1h0DuJGDAcJ/XNqdhYxqxGvAiYfdLg+8/GF2z8jooG3y18+gEgIAqHS\n 8p6222xFucr8wJjfTgctGYgOhUU2YqsHVqpzfvaWu/tWkJy8nzxPBMWon9NUYc/sLfiL\n hd2tyQgnAZMDsfiRLgRR3zk7IU/qb9RqIzhK1rb66xaAdgVXiq0tS3RbqowpWZJkSr9D\n hVNQ==", "X-Gm-Message-State": "AOJu0Yzo0afr2KZ5eLQjJvf1hlsv5XnwayjnB9vJM6YwtdCSg5xvJ3PB\n\t5S7qIeW1DC+yT0KPZ+eBFle0VSCMTzK28VmtUyS4zxsIrwFnh8iPjYzb", "X-Gm-Gg": "ATEYQzzdPob33Z++RixbKn01x9WnRQs8640r3oe2fa6m7Ph1w/fEyulKhLph6AHb9qH\n\tX1TY/wdfCvaimYQqLIhHkK5NiL/IHTjAaYKzPeuCYnhcqPD0MgWxHMBBzuMPAqlEXQQ9g7S/tpZ\n\t0m+krHmPd80ckJhMtUOO5bkTCkijoP+6447ppAi89RAD9iVXvvyV945rhowA66fRh4yRppHyvBK\n\thuZQw4zKOwSPf/ORBqBwuks1G+KqfhcbvMMjOGuoRJKK/DuqK9G+Wz7FT7sKKgx0wZKQHaAuSOI\n\tMlCNgL0tRDI+J/0HCU4B1AmLsrBN7zyw6CyaEwbqvZbFFKdkIwIYrJVbBGIt94O8xxFL6gghS58\n\tlKLMXS4ltVZvDW+7s40QjJZEJ/X4/t5VcOXYRS6L0vmwIvAJ1et17YWD4LE08xyd3GtsAmGOGzg\n\teR+2b42zBNjYJst87TgrfNtgTMiPmimvXNusB/vRtNKATeWmhh4lku1ToVuYSZXN1nep+gdaHF8\n\teHjyzrjis9qn2HZZA==", "X-Received": "by 2002:a05:6a20:a12b:b0:398:9466:2eef with SMTP id\n adf61e73a8af0-39c87812061mr7154979637.12.1774710046987;\n Sat, 28 Mar 2026 08:00:46 -0700 (PDT)", "From": "Deepanshu Kartikey <kartikey406@gmail.com>", "To": "tytso@mit.edu,\n\tadilger.kernel@dilger.ca", "Cc": "linux-ext4@vger.kernel.org,\n\tlinux-kernel@vger.kernel.org,\n\tDeepanshu Kartikey <kartikey406@gmail.com>,\n\tstable@vger.kernel.org,\n\tsyzbot+fb32afec111a7d61b939@syzkaller.appspotmail.com", "Subject": "[PATCH v2] ext4: fix bounds check in check_xattrs() to prevent\n out-of-bounds access", "Date": "Sat, 28 Mar 2026 20:30:38 +0530", "Message-ID": "<20260328150038.349497-1-kartikey406@gmail.com>", "X-Mailer": "git-send-email 2.43.0", "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-Spam-Status": "No, score=-1.2 required=5.0 tests=ARC_SIGNED,ARC_VALID,\n\tDKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DMARC_PASS,\n\tFREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS,\n\tMAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=disabled\n\tversion=4.0.1", "X-Spam-Checker-Version": "SpamAssassin 4.0.1 (2024-03-25) on gandalf.ozlabs.org" }, "content": "The bounds check for the next xattr entry in check_xattrs() uses\n(void *)next >= end, which allows next to point within sizeof(u32)\nbytes of end. On the next loop iteration, IS_LAST_ENTRY() reads 4\nbytes via *(__u32 *)(entry), which can overrun the valid xattr region.\n\nFor example, if next lands at end - 1, the check passes since\nnext < end, but IS_LAST_ENTRY() reads 4 bytes starting at end - 1,\naccessing 3 bytes beyond the valid region.\n\nFix this by changing the check to (void *)next + sizeof(u32) > end,\nensuring there is always enough space for the IS_LAST_ENTRY() read\non the subsequent iteration.\n\nFixes: 3478c83cf26b (\"ext4: improve xattr consistency checking and error reporting\")\nCc: stable@vger.kernel.org\nReported-by: syzbot+fb32afec111a7d61b939@syzkaller.appspotmail.com\nCloses: https://syzkaller.appspot.com/bug?extid=fb32afec111a7d61b939\nLink: https://lore.kernel.org/all/20260224231429.31361-1-kartikey406@gmail.com/T/ [v1]\nSigned-off-by: Deepanshu Kartikey <kartikey406@gmail.com>\n\n---\nv2: Move the fix to check_xattrs() as suggested by Ted Ts'o,\n instead of adding a check in ext4_xattr_ibody_get().\n---\n fs/ext4/xattr.c | 2 +-\n 1 file changed, 1 insertion(+), 1 deletion(-)", "diff": "diff --git a/fs/ext4/xattr.c b/fs/ext4/xattr.c\nindex 7bf9ba19a89d..c6205b405efe 100644\n--- a/fs/ext4/xattr.c\n+++ b/fs/ext4/xattr.c\n@@ -226,7 +226,7 @@ check_xattrs(struct inode *inode, struct buffer_head *bh,\n \t/* Find the end of the names list */\n \twhile (!IS_LAST_ENTRY(e)) {\n \t\tstruct ext4_xattr_entry *next = EXT4_XATTR_NEXT(e);\n-\t\tif ((void *)next >= end) {\n+\t\tif ((void *)next + sizeof(u32) > end) {\n \t\t\terr_str = \"e_name out of bounds\";\n \t\t\tgoto errout;\n \t\t}\n", "prefixes": [ "v2" ] }