Received: by 2002:a05:7412:3b8b:b0:fc:a2b0:25d7 with SMTP id nd11csp2773163rdb; Mon, 12 Feb 2024 16:50:52 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCWtRFAD587RzGO7yJSn3BCg4uQSVaC53ae51MJ5DLLFqQG5tKERe+WIXajf8rYg7laHPsel3r7Klg2KmE4pnT9M0ly73HvElpsCfKD+nw== X-Google-Smtp-Source: AGHT+IF2od/CXAPArQOfboCLkAYDASDNJh5jWuumSGcDvHmTn2ccabr9hpfpxDNGPlhvMVq7ns10 X-Received: by 2002:a05:6a00:181f:b0:6e0:4c77:661a with SMTP id y31-20020a056a00181f00b006e04c77661amr1522423pfa.11.1707785452517; Mon, 12 Feb 2024 16:50:52 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707785452; cv=pass; d=google.com; s=arc-20160816; b=ujC8FlH8sVp+XpnXu++hKwBI6t/H1nR4cuJGKCADaRURIxpl8ZsE9fCpSaNpL/s5fS Yhlh1qQHDE6JdFVnfLXGzBgOW1w9Gkzx82RpTegqEn9qXOuLhy54NRAsrGpccpmTTxwg 3+DjADpc40ZPipjGtcUy4mIeeHU5Taxip7xlvdPTTGxLZ1L8jG6+P+C7xgorfv0eWe5t MZh7oOK5KMeoOMQgPrfO74mpM11tD6nDR2Ol2tlmVxbKSo6Bxrike1Fih2T3Dp8ElTRv vdoTMAj2berTM9AeJCKQ20lV8TwJZ7rh5l8gUuS12BNzvaisJn1H0bjcAaYlMAfKWErT eVSg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=OSOnuwBc9pzSzPOTIK1S+NVU2WN35bEhW9kyCEyPVcI=; fh=hv741KhOqJRwomnFhYBN1NXexxIrTcUHexUOKjBoy1M=; b=qCE7vvTj/f246Sl/+i2IxujbqCVVmZxbN9m6MdcXqXBd6BnO9mNnBE4H1rKVDaTuza iIuJ4ni1tePB5jblI4xdswCKIo44nZ2/1AHEpG2zgEpPO69EDkg6CzOclvFrGCn7k8YO oafeTiaNNXUNNA9TWYec8U7uiS6mKdw8Vzn/3YA7meTHvg3VfDWdvERCpPljoW4lmTH6 1qCXbvRr56RHUArexbI59Y5YoZiVM5K9eREVWWiGWE+g3KOGo+1awdfdEVgLEsJXfPRP MM7h5NSpDUkMIO3uZJhx0hrwNtmLmPuh3e1yuTPcEdCn0GDbIxggiH7UjMG5fAp9fIPl qv0w==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=R4K8ZiCo; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-62688-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-62688-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org X-Forwarded-Encrypted: i=2; AJvYcCV/J8yhM3nh5wWzh4Uy7aXhl8WxWxsQAyDGNc9gPlKVYuNSweALhCSaRMNC+K40jZUOodoO60Qt7f8yK5Q2kAQ7y07BDCl2I9EeD5vjSg== Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id dw14-20020a056a00368e00b006e05cb39617si5830106pfb.116.2024.02.12.16.50.52 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 12 Feb 2024 16:50:52 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-62688-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=R4K8ZiCo; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-62688-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-62688-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 2F42528275D for ; Tue, 13 Feb 2024 00:50:52 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B638076045; Tue, 13 Feb 2024 00:22:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="R4K8ZiCo" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id D170C76919; Tue, 13 Feb 2024 00:22:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707783762; cv=none; b=oL6Ggoyorl7ZlRTovbOM8xJdusEipOlVSbpvXF8JHX2spVVWjKzQb/RbuiJBhNCDw6Ghxeqtltip99QCu5LVdoFVNrT+7lgSkB7CasA6TmfLD/2eOeCDCcNZQYberDgCLsxXZeiSUymhHJQzaKh34jSq9WN+xFeUn48MDu52Fjs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707783762; c=relaxed/simple; bh=5jdQ8ka1cAjXD4ykRdjthiJU48SgqrsTzGpdqupGmCY=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=JeuNQ1YA8kIv7LgJNPnKjdQSBdPzBzfCLVVI2WE4M5lPqlq9FQaRgEszltGMXzvN1mGSSnCHeftdGVLYaUzJX6igjyFI9tii2gwm0tk8CZaFIu35kBvfbC1Z8WqLN344JpJZQca1Zgs+LsUwKDA4EQdPi92C0fFIYKLPRruHCh8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=R4K8ZiCo; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id B09F5C433A6; Tue, 13 Feb 2024 00:22:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1707783762; bh=5jdQ8ka1cAjXD4ykRdjthiJU48SgqrsTzGpdqupGmCY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=R4K8ZiCo0moueCSIM9cwP++zzn+p9Nsck3DDuB1HZXiS/JIFIKR1lPi3jv1eLgb1k ZFkAYKbYb3bCNbS3dFD2ddF3ZnXSbhJup7edjPH4Sd0OGy28NMEMlyi/hhGtKKtJDH FK1Xc2JbJZOmhxnqy8jauxnxbjcIBdEzI9PJ2MomO2LuQbCm6h0vCEUnvrJ14z8Fi2 X7QvDblrUQ9fFq17nn9eqvpt+5rQIPL2cn/nGOI4p4SfqOVgTpGAeP9EbQ7sLJyjTK 1/o52prQlXGLwFq7SVYH/glERQlGLRW6c87VEgqwfP7NDYEKaZU4cjki9I2INNcX+3 vg0MPM6SBfS1g== From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Konstantin Komarov , Sasha Levin , ntfs3@lists.linux.dev Subject: [PATCH AUTOSEL 6.1 05/28] fs/ntfs3: Fix detected field-spanning write (size 8) of single field "le->name" Date: Mon, 12 Feb 2024 19:22:03 -0500 Message-ID: <20240213002235.671934-5-sashal@kernel.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240213002235.671934-1-sashal@kernel.org> References: <20240213002235.671934-1-sashal@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore X-stable-base: Linux 6.1.77 Content-Transfer-Encoding: 8bit From: Konstantin Komarov [ Upstream commit d155617006ebc172a80d3eb013c4b867f9a8ada4 ] Signed-off-by: Konstantin Komarov Signed-off-by: Sasha Levin --- fs/ntfs3/ntfs.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/ntfs3/ntfs.h b/fs/ntfs3/ntfs.h index 0f38d558169a..8b580515b1d6 100644 --- a/fs/ntfs3/ntfs.h +++ b/fs/ntfs3/ntfs.h @@ -517,7 +517,7 @@ struct ATTR_LIST_ENTRY { __le64 vcn; // 0x08: Starting VCN of this attribute. struct MFT_REF ref; // 0x10: MFT record number with attribute. __le16 id; // 0x18: struct ATTRIB ID. - __le16 name[3]; // 0x1A: Just to align. To get real name can use bNameOffset. + __le16 name[]; // 0x1A: Just to align. To get real name can use name_off. }; // sizeof(0x20) -- 2.43.0