From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796324618; b=ZoGMPn7X1itBMygNSKOe+WR+xzFckvq4fOJJlpoDLJhEVgTBRidXpbqR+CvEOcVB88WC cBnf2x7QTZZnLJxDW/Yun9lE6nQXbIAhR59pOEkWuxHINek+5rWffV8fmvnUdXLBec2Wy AlFvkAUk4gixNkGWNKsTKAHfd+mAyLTeGQgqRQkAVu9Pui7eVBC3J9IwzhGUYMuz9evMl mv0btWtGHn+7g8mpxG4oQtEeMbyPkZacqJBWwNeNEfdfQX6OjgSPMmpptF0wEL1wMnIAa ka1DT5CKXQC7TuHkTHY+ikNLidWhD+rWYVt2pgMQoOapD4AOpJOrq0ukR9lKFGYyqqA== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796324618; h=Received:DKIM-Signature:Message-ID:From:Subject:Reply-To:To:Cc: In-Reply-To:References:Content-Type:Content-Transfer-Encoding:Date; bh=2cJD+P6zV9n/E+v8WnVPw2uiikzLsGRxNA/Y4+/CEjo=; b=XcstV4JZphjKBSqSsFmhSX89uF6owYWUNuUVSjBKZouqJAd8aZUVSMgG+X/fOtGVgJFA hJT7VSIWPpZXZLF8Fnb5L07rvDYhhU7JncoIYCFgctIO4btk1/YxzKTSMsEHev50ssfvd JZsSUYAOZdf5lL+y8LfZzTf96wJwbXcFY6V7M3NME8/UYG92kNO1LrBdSD2J/Jii61yWL UWxEXex6JdbQ6HFJtFTXqRgQaZFkR9zC8nt0vj66QuefcbXxaUwLT44paCgdKkuwpadTk jelO0ic7LQNl2qEUfkPDgvba/9IeaLGNs5JJoFJwOlVXlW6NBKiGaXe8D80+cSmKUGg== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=mB+BqTbE; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 35154606A322 for ; Thu, 3 Dec 2026 19:03:38 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=mB+BqTbE Received: by smtp.kernel.org (Postfix) with ESMTPSA id D4F0A1F000CE; Thu, 3 Dec 2026 19:03:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796324618; bh=2cJD+P6zV9n/E+v8WnVPw2uiikzLsGRxNA/Y4+/CEjo=; h=From:Subject:Reply-To:To:Cc:In-Reply-To:References:Date; b=mB+BqTbEcZAThEOqpzVJHlxR6v1uGrMC9h+MZi5ps7d4R/XBq9gIYtG+axp7SxMiw NEv24vsUqc2vUDLZCdiV8pZFQyBZCnIjIY9LOH+ubO5EtslTogXwxI2/mDpl8dpkYO kj1OK2cUsYOZFlMgpaan+qY+aRPYXNKMa1OWigof3gY1Bb2Px5w9jnTgykOwLCdRO0 tFQN0JEEbxBM75td3wUkWywanml7WbL/np7KmU87Nn+iogRqWol4M4vv74QEIUV2N0 T3RU19O6zbuVuo8oqWz92tXYtiIqlSMgfWFnDGZr48r2t1kwct5giIs+kEEAqDvP/c Cj13Y4ElIarYg== Message-ID: From: sashiko-bot@kernel.org Subject: Re: [PATCH v15 01/13] ext4: validate count against limit in ext4_dx_csum_verify/_set Reply-To: sashiko-reviews@lists.linux.dev To: "Artem Blagodarenko" , linux-ext4@vger.kernel.org Cc: tytso@mit.edu In-Reply-To: <20261203184938.422849-2-ablagodarenko@thelustrecollective.com> References: <20261203184938.422849-1-ablagodarenko@thelustrecollective.com> <20261203184938.422849-2-ablagodarenko@thelustrecollective.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Date: Thu, 03 Dec 2026 19:03:37 +0000 X-Mailing-List: linux-ext4@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list Thank you for your contribution! Sashiko AI review found 1 potential issue to consider: - [Low] ext4: missing Fixes trailer for commit dbe89444042a -- commit dfe4323227733fc5c8188483fb42fa83963af5d1 Author: Artem Blagodarenko > ext4: validate count against limit in ext4_dx_csum_verify/_set > > dx_countlimit's count field was read from disk and used directly to > compute the checksummed range (count_offset + count * sizeof(dx_entry)) > without ever being checked against limit -- only limit itself was > bounds-checked against the block size. A corrupted or maliciously > crafted filesystem image that sets count to a large value (e.g. 65535) > makes ext4_chksum() read far past the end of the directory block > buffer, hitting adjacent slab objects. > > Reported-by: xiaowu.417@qq.com > Signed-off-by: Artem Blagodarenko > Assisted-by: Claude:claude-opus-5-5 [Severity: Low] This fixes an out-of-bounds read in ext4_dx_csum_verify() and ext4_dx_csum_set() that has existed since htree checksumming was introduced. Should this include: Fixes: dbe89444042a ("ext4: Calculate and verify checksums for htree node= s") --=20 Sashiko AI review =C2=B7 https://sashiko.dev/#/patchset/20261203184938.4228= 49-1-ablagodarenko@thelustrecollective.com?part=3D1