| Message ID | 20260924210421.3631790-4-sandeen@redhat.com |
|---|---|
| State | New |
| Headers | show
Return-Path:
<SRS0=1Af8=HQ=vger.kernel.org=linux-ext4+bounces-19796-patchwork-incoming=ozlabs.org@ozlabs.org>
X-Original-To: incoming@patchwork.ozlabs.org
Delivered-To: patchwork-incoming@legolas.ozlabs.org
Authentication-Results: legolas.ozlabs.org;
dkim=pass (1024-bit key;
unprotected) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256
header.s=mimecast20190719 header.b=aahTHjBH;
dkim=pass (2048-bit key;
unprotected) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256
header.s=google header.b=Ah5jVKeR;
dkim-atps=neutral
Authentication-Results: legolas.ozlabs.org;
spf=pass (sender SPF authorized) smtp.mailfrom=ozlabs.org
(client-ip=2404:9400:2221:ea00::3; helo=mail.ozlabs.org;
envelope-from=srs0=1af8=hq=vger.kernel.org=linux-ext4+bounces-19796-patchwork-incoming=ozlabs.org@ozlabs.org;
receiver=patchwork.ozlabs.org)
Received: from mail.ozlabs.org (mail.ozlabs.org [IPv6:2404:9400:2221:ea00::3])
(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
key-exchange x25519)
(No client certificate requested)
by legolas.ozlabs.org (Postfix) with ESMTPS id 4hrRFS5tm7z1y0M
for <incoming@patchwork.ozlabs.org>; Fri, 25 Sep 2026 07:05:48 +1000 (AEST)
Received: from mail.ozlabs.org (mail.ozlabs.org [IPv6:2404:9400:2221:ea00::3])
by gandalf.ozlabs.org (Postfix) with ESMTP id 4hrRF01VKlz4w9b
for <incoming@patchwork.ozlabs.org>; Fri, 25 Sep 2026 07:05:24 +1000 (AEST)
Received: by gandalf.ozlabs.org (Postfix)
id 4hrRF01RjLz4wB6; Fri, 25 Sep 2026 07:05:24 +1000 (AEST)
Delivered-To: patchwork-incoming@ozlabs.org
Authentication-Results: gandalf.ozlabs.org;
arc=pass smtp.remote-ip=172.105.105.114 arc.chain=subspace.kernel.org
ARC-Seal: i=2; a=rsa-sha256; d=ozlabs.org; s=201707; t=1790283924; cv=pass;
b=Qt1yh457OJ6MHlaindlNWpgwwkJhtpQYoyhbBfGMeKA+I3QvIg4a6Z+kU5EfsOHerv/eJ11y2Rf3xXacAq7hDT2xdY+W3L9YmCRy7Q8sUqSl7ukLISG3IHtvh6lKZD8qH4ueErhuJDZt/lZGKP8taigmOgj4NaOCIQNKULNWCy1IbpFzbX338rdCAN8DJFeWnQj2eb/TdLP3uTKng9ygQM8fiM4iSi4xSWDBQLTcnsToyXD8NjwO+5xWYYSOJ429+sf8sJTJYavLZAsFEp10s/OunWv4SKkm1sFQgWVcAbFQwhMrDkShDcmbWGEGup789VSRqPAtHOxVsm+2ugVEjg==
ARC-Message-Signature: i=2; a=rsa-sha256; d=ozlabs.org; s=201707;
t=1790283924; c=relaxed/relaxed;
bh=+Zt9gUNeOKPrdTfiRKc8EciOISO0/eSZXG9YD+0Ggig=;
h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References:
MIME-Version;
b=tNTAJsPQYnGAEOY6qn6aZiI1x78LYw009jfDy/KGVvHoJWRBmOhUttWKLlswPkCEhyvZENdNdKZoZ3MhQAcxw1277BfUJyOWZkIDDmWvaCuGMnF+1nWj/YLxSn0v9dpqMuhgC90KFY8N7xf9DnkBOF5gt7YRG/QAKNWUVf5nyOy4Qpqr7hiUY+K0xDUkBDF2r8PZzfzr8V1u79dAC9HyBX9SJu2F5EQhsEe524ZRF7UsAyB6IZQ/6eBGE5QwtKetlGNYaOq9IzuXrzSON/4QiI0GjAgCa0pHwLzlYMV7svSAlBc/iSpiqPJCRjLaWrr7kzUgMfPJ0+PPyLmgjZPjog==
ARC-Authentication-Results: i=2; gandalf.ozlabs.org;
dmarc=pass (p=quarantine dis=none) header.from=redhat.com;
dkim=pass (1024-bit key;
unprotected) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256
header.s=mimecast20190719 header.b=aahTHjBH; dkim=pass (2048-bit key;
unprotected) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256
header.s=google header.b=Ah5jVKeR; dkim-atps=neutral;
spf=pass (client-ip=172.105.105.114; helo=tor.lore.kernel.org;
envelope-from=linux-ext4+bounces-19796-patchwork-incoming=ozlabs.org@vger.kernel.org;
receiver=ozlabs.org) smtp.mailfrom=vger.kernel.org
Authentication-Results: gandalf.ozlabs.org;
dmarc=pass (p=quarantine dis=none) header.from=redhat.com
Authentication-Results: gandalf.ozlabs.org;
dkim=pass (1024-bit key;
unprotected) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256
header.s=mimecast20190719 header.b=aahTHjBH;
dkim=pass (2048-bit key;
unprotected) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256
header.s=google header.b=Ah5jVKeR;
dkim-atps=neutral
Authentication-Results: gandalf.ozlabs.org;
spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org
(client-ip=172.105.105.114; helo=tor.lore.kernel.org;
envelope-from=linux-ext4+bounces-19796-patchwork-incoming=ozlabs.org@vger.kernel.org;
receiver=ozlabs.org)
Received: from tor.lore.kernel.org (tor.lore.kernel.org [172.105.105.114])
(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
key-exchange x25519)
(No client certificate requested)
by gandalf.ozlabs.org (Postfix) with ESMTPS id 4hrRDw3JBfz4w9b
for <patchwork-incoming@ozlabs.org>; Fri, 25 Sep 2026 07:05:20 +1000 (AEST)
Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org
[100.90.174.1])
by tor.lore.kernel.org (Postfix) with ESMTP id 011C230C89
for <patchwork-incoming@ozlabs.org>; Thu, 24 Sep 2026 21:04:40 +0000 (UTC)
Received: from localhost.localdomain (localhost.localdomain [127.0.0.1])
by smtp.subspace.kernel.org (Postfix) with ESMTP id A50474DD3BB;
Thu, 24 Sep 2026 21:04:37 +0000 (UTC)
Authentication-Results: smtp.subspace.kernel.org;
dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com
header.b="aahTHjBH";
dkim=pass (2048-bit key) header.d=redhat.com header.i=@redhat.com
header.b="Ah5jVKeR"
X-Original-To: linux-ext4@vger.kernel.org
Received: from us-smtp-delivery-124.mimecast.com
(us-smtp-delivery-124.mimecast.com [170.10.133.124])
(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 B2139318BB3
for <linux-ext4@vger.kernel.org>; Thu, 24 Sep 2026 21:04:32 +0000 (UTC)
Authentication-Results: smtp.subspace.kernel.org;
arc=none smtp.client-ip=170.10.133.124
ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116;
t=1790283875; cv=none;
b=jmvgqwGZm6XjUSLuNGyhS2rW7J0A5IA+HUjvxRxG7Yadm//uv+2Lkb2ajCVnpCfHNa7C1UBy95GoKbExzndM8eGIJbEdijS6bsZAZfrfOuywedxn2o2W23VrPe0jQ7EDjj7UTav5gFF20iRR8pd3Tp7Ym0MscVP6/YZkLFV/VWI=
ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org;
s=arc-20240116; t=1790283875; c=relaxed/simple;
bh=Ol4C/zff9kZJf6qBK0oZWG2rXKyYAp4IbCox1X3gWzA=;
h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References:
MIME-Version;
b=qPz5XAFOW6h9hmGXhloJUsGvelITq4Gs0/uqGPywUFvYNgMC4M7oN+neGJB1i3Ro/nFLNB0rlKCxz8fJsrCTF38dHJW0Xna7ocJUA/uCZXiQ2TjN1cGVFvV2/FUCIhxQUHbgodN4ql7/Lu8a4R6WTnYsK+QqmXIVxHPCRGKPO5Q=
ARC-Authentication-Results: i=1; smtp.subspace.kernel.org;
dmarc=pass (p=quarantine dis=none) header.from=redhat.com;
spf=pass smtp.mailfrom=redhat.com;
dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com
header.b=aahTHjBH;
dkim=pass (2048-bit key) header.d=redhat.com header.i=@redhat.com
header.b=Ah5jVKeR; arc=none smtp.client-ip=170.10.133.124
Authentication-Results: smtp.subspace.kernel.org;
dmarc=pass (p=quarantine dis=none) header.from=redhat.com
Authentication-Results: smtp.subspace.kernel.org;
spf=pass smtp.mailfrom=redhat.com
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com;
s=mimecast20190719; t=1790283870;
h=from:from:reply-to:subject:subject:date:date:message-id:message-id:
to:to:cc:cc:mime-version:mime-version:
content-transfer-encoding:content-transfer-encoding:
in-reply-to:in-reply-to:references:references;
bh=+Zt9gUNeOKPrdTfiRKc8EciOISO0/eSZXG9YD+0Ggig=;
b=aahTHjBHkPg+L+o95SKtUyxuW3+9lqPhCWcgQXnwK7zbRM+8AjOhWkkti1QjOcKI0FzZt+
PRzulTOPiybaADVIIP5C5xYBJuv6eVEx+8oiNlEW3LY1vpkbEHoogvcEcuVSDAdOueHpgk
tV2oudRX6BqjsTIt/r4KXKj+K0qk5wQ=
Received: from mail-qt1-f198.google.com (mail-qt1-f198.google.com
[209.85.160.198]) by relay.mimecast.com with ESMTP with STARTTLS
(version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id
us-mta-676-9JQFkp_NPlK2ApkdtfXyIQ-1; Thu, 24 Sep 2026 17:04:29 -0400
X-MC-Unique: 9JQFkp_NPlK2ApkdtfXyIQ-1
X-Mimecast-MFC-AGG-ID: 9JQFkp_NPlK2ApkdtfXyIQ_1790283868
Received: by mail-qt1-f198.google.com with SMTP id
d75a77b69052e-52fc0097865so6388711cf.2
for <linux-ext4@vger.kernel.org>;
Thu, 24 Sep 2026 14:04:29 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=redhat.com; s=google; t=1790283868; x=1790888668;
darn=vger.kernel.org;
h=content-transfer-encoding:mime-version:references:in-reply-to
:message-id:date:subject:cc:to:from:from:to:cc:subject:date
:message-id:reply-to:content-type;
bh=+Zt9gUNeOKPrdTfiRKc8EciOISO0/eSZXG9YD+0Ggig=;
b=Ah5jVKeRyjPt0Ti0MGp7eUYFzQu7XAeumFO+qXi6VXO57zUsZAt3X2M9b1CVo9AcTp
166JUsjI6sArmiJ+1SpFV2EB25wFcLTvFdnF+shNRpWRGnjAbkeNSosc9cUFSBkz+baY
vR0kKPzGTRP0xGPTI6c+5hIhFoSw4PNjlZRY5+Ohsod7VUF8AjQlw+QUWH1CAnr8+2fm
/StLezr2qR9vxVh/RGIdWdl4rToG6Siq7ReTBNya5EOS2D1KKXgLWm4SudmvcNojUGAg
ipNzP/K+9nPnQx8/NzuKsxnvnklaFuNS0zaIghuyKUKjKMfjQpwmTkEGCz6Dns5huzww
8dVw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20260707; t=1790283868; x=1790888668;
h=content-transfer-encoding:mime-version:references:in-reply-to
:message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from
:to:cc:subject:date:message-id:reply-to:content-type;
bh=+Zt9gUNeOKPrdTfiRKc8EciOISO0/eSZXG9YD+0Ggig=;
b=1YDSUiitDtZTxtpsazgafdXNWtiLha4EG2oChIRjcmwrQkPMkEtgR58z4hJ+FuMS7K
QIcj4uV3D6H9IU7f1YRrn7UIUC0lD9r+DjkhiqfRh17byTGbeR7aMmWSLqsG60CsChu5
8BvqJNTMjGY2rC32EULNy1ugn92/yekDYABnhlXPs+hlCLI3EGUZfoydnPZDIC1b/Cck
JWce88btgMGVN7vmazM/TJyPTBPZjbkgHLOBzt7Gh4zU4T+BB+MSWCNkJsVKK/wvBMbL
Y1d6ju0BhxXlUQ2j+EHPWHjbHRFQrDKcYReK0SU0U935rVzn642LCkU4gA3kmXafBEbR
Unog==
X-Gm-Message-State: AFuF++m8UvsbMdGtrA+SzWNDJ699HKdhXAsIhNkkEEc76NjJX5duefoW
YoLqlhYBJD+SU2zGE+QFAJXnYSOVCZH/7IMYNABqLoV7pbKO4juQNNuM7HGJ3EHQQ03vmVnkySd
cZ45FuhcD4kCKyxLx3qWiYc6DgSJnTBp/H5dyeJqhEyO1EGp3CirQZjp0QK1/F4QC5IFmylULfK
rH+CsZV7rbkGRBCcbo87fJOAYaeqcc8hTsG/u+02HMCqUf9iRa
X-Gm-Gg: AYBFou0ao0uMFqNrzlLYqqMayydsS5LJu+o79SoLkF2/5AUgk8en11h4bl4eGBJx4pw
bahsyIggLHhP4XHe29wWe60DUVXpRkK2IIv8V4BpmWT+uAvayUHdYFmJ1Izrw2SbKOAtjJld+CU
Dus56JWTwbbq1eMz6V/zEQ5vkJeePxcTJiNDvulDNy/+o78OzKegExu6bCZpW484skxov/yY62K
rH867UoRkm8GZpu1G12YGVfLGGbICA7wDlHOHolY/iBi4+FKODkC/DzokDtENouZT3si1t+6aLA
yybR9CuUKHKUXuJEoa0jFlD4hhZA/YuIc4mxph1KJRw/LbYVVwvcKxQ/eS0ZGVXkrJzx5M6qlI+
5eowVCsdgIh1X9Z7Noss/QlaJkqT9G4NAJhA9Hw==
X-Received: by 2002:a05:622a:4d0f:b0:530:d1d6:792d with SMTP id
d75a77b69052e-5330b5b8736mr9335741cf.15.1790283868437;
Thu, 24 Sep 2026 14:04:28 -0700 (PDT)
X-Received: by 2002:a05:622a:4d0f:b0:530:d1d6:792d with SMTP id
d75a77b69052e-5330b5b8736mr9335021cf.15.1790283867807;
Thu, 24 Sep 2026 14:04:27 -0700 (PDT)
Received: from big24.sandeen.net (97-116-156-223.mpls.qwest.net.
[97.116.156.223])
by smtp.gmail.com with ESMTPSA id
d75a77b69052e-5330c06e5ddsm2112091cf.22.2026.09.24.14.04.26
(version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
Thu, 24 Sep 2026 14:04:27 -0700 (PDT)
From: Eric Sandeen <sandeen@redhat.com>
To: linux-ext4@vger.kernel.org
Cc: tytso@mit.edu,
Eric Sandeen <esandeen@redhat.com>,
Eric Sandeen <sandeen@redhat.com>
Subject: [PATCH 3/4] blkid: probe_ntfs: validate offset and length of volume
name
Date: Thu, 24 Sep 2026 16:02:47 -0500
Message-ID: <20260924210421.3631790-4-sandeen@redhat.com>
X-Mailer: git-send-email 2.55.0
In-Reply-To: <20260924210421.3631790-1-sandeen@redhat.com>
References: <20260924210421.3631790-1-sandeen@redhat.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-Spam-Status: No, score=-1.3 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED,
DKIM_VALID,DKIM_VALID_AU,DMARC_PASS,HEADER_FROM_DIFFERENT_DOMAINS,
MAILING_LIST_MULTI,SPF_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
|
| Series |
e2fsprogs: blkid: misc fixes
|
expand
|
diff --git a/lib/blkid/probe.c b/lib/blkid/probe.c index ae769a77..87167171 100644 --- a/lib/blkid/probe.c +++ b/lib/blkid/probe.c @@ -773,6 +773,13 @@ static int probe_ntfs(struct blkid_probe *probe, break; if (attr_type == MFT_RECORD_ATTR_VOLUME_NAME) { + /* Value length must be multiple of two (UTF-16LE) */ + if (val_len & 1) + break; + /* End of value must be within attr length */ + if (val_off > attr_len || val_len > attr_len - val_off) + break; + if (val_len > sizeof(label_str)) val_len = sizeof(label_str)-1;