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=1796267806; b=uQ847QudmTFNXMxW13GK/x2wWYbm8UmZG2R1+06DpRhmmQKzs1DmPt7HvlnZPGVIkKd/ 7T+3FhwC6dtbut6vLK7wZDS8UaG6+JVagthXrdepDzsdbM8olxdalyuQGj6Nd6Z8GK8mG uvQ2IRNoEMvFOpThe4mWJO02LTXXp50v0xLUy7awWs5Dom8GtBYL8YfnfxQYd1nTWCDLH 993SVvRJP+CquM+5ey4dFVdAdqsPauKoTF0PzAhfXe+Ml5tEE8+py6VKFSQXZrN69nPVY d5GLgmvMdmWeZOOw/atBuUmYw1FOQ5p9pWYwiHBUwMtHGdQYu5kiJPcDlRzJ98szTJw== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796267806; h=Received:DKIM-Signature:Message-ID:From:Subject:Reply-To:To:Cc: In-Reply-To:References:Content-Type:Content-Transfer-Encoding:Date; bh=URm9d+xmSSvyCtqS1xZU4/CNqw8xnhLH9bURZKQDqM0=; b=z7ChHiqgrCPSzPWNTqRQvBmDrQTrA6wY5s7mJIxMUjISY+MwGHwMAnkKaMO/L++2MaEw K87P9jLQB0bJfrBnJ2CZ+b8c1yuXQKjg95yLCK+1hE7+vtGlkmpD2+/JQSjzX0XBEhKXF I8CE3HqWQhbfKeKqesXnL0vdA9S42gX31/h+V02v1Lb+LPK1jpDHV51adkR4kpWOvTFHG 2rddXuMc2QrPwvuckBeyg4QyscKlVet2kiSH+/WGzG7oU5PUuCKw7eji91lKIZCwMd5Nf E/EXsp2qaLNeU8D+X6iE3KBGRN9mikMiPZvh41rE1vw+h7migGhJTmy6HSI+WXc4Oqg== 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=X7TWXDYR; 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 5D5E0606A333 for ; Thu, 3 Dec 2026 03:16:46 +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=X7TWXDYR Received: by smtp.kernel.org (Postfix) with ESMTPSA id D50621F00893; Thu, 3 Dec 2026 03:16:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796267806; bh=URm9d+xmSSvyCtqS1xZU4/CNqw8xnhLH9bURZKQDqM0=; h=From:Subject:Reply-To:To:Cc:In-Reply-To:References:Date; b=X7TWXDYRqHiJvB1hYUgPzLqq+z17fIzwNsIEeN9rSE4G7wxTms/cPe/NIAfav993O Rwyk6PDFYgNM1aLqAbdmyQyu6z46hsEH2YYos+cuvGLZDJPxeUbTLigi1d7sOenL3T eMcCZpM3Jvb6onDoDzDD/6oVk/BWkcvJFSG9xFdqkFRAz3e2z0SknAJ4sYhsuZOzLJ cTINwSaBnA2P64QXd9VLdsE2cYlPG2cNKo0In4WoSRZJWah38XclPxgi8f819wgP0a e85VYf6H+7qGs+gRaQ4VxUGg0mLixJJuZu4+tebGEoFLhojGHJjWGkVkBzuyHwg4yM 6T4atUcLNhRHA== Message-ID: From: sashiko-bot@kernel.org Subject: Re: [RFC PATCH v2 09/22] ext4: Use PAGE_SIZE_MAX for the inline KUnit test data buffer Reply-To: sashiko-reviews@lists.linux.dev To: "Eric Curtin" Cc: linux-ext4@vger.kernel.org, tytso@mit.edu In-Reply-To: <20261202031533.1665444-10-ericcurtin17@gmail.com> References: <20261202031533.1665444-1-ericcurtin17@gmail.com> <20261202031533.1665444-10-ericcurtin17@gmail.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Date: Thu, 03 Dec 2026 03:16:45 +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: - [Medium] ext4: undeclared PAGE_SIZE_MAX used for data_block_buf in inline_test_ctx -- commit 3889ead9026685ea2b83434fbf57427b453dee72 Author: Eric Curtin ext4: Use PAGE_SIZE_MAX for the inline KUnit test data buffer This commit changes the size of data_block_buf in struct inline_test_ctx from PAGE_SIZE to PAGE_SIZE_MAX to support boot-time page size selection. > diff --git a/fs/ext4/inline-test.c b/fs/ext4/inline-test.c > index b3d7c51ad216b..5d9302e2a5725 100644 > --- a/fs/ext4/inline-test.c > +++ b/fs/ext4/inline-test.c > @@ -52,7 +52,7 @@ struct inline_test_ctx { > struct buffer_head iloc_bh; > u8 raw_inode_buf[TEST_BLOCK_SIZE]; > struct buffer_head data_bh; > - u8 data_block_buf[PAGE_SIZE]; > + u8 data_block_buf[PAGE_SIZE_MAX]; [Severity: Medium] Should data_block_buf be sized with TEST_BLOCK_SIZE instead of PAGE_SIZE_MAX? PAGE_SIZE_MAX is not defined in the kernel tree, so compiling fs/ext4/inline-test.c with CONFIG_EXT4_KUNIT_TESTS enabled fails with an undeclared identifier error. In addition, data_block_buf backs the mock filesystem block buffer data_bh of size TEST_BLOCK_SIZE, just like raw_inode_buf above it: fs/ext4/inline-test.c:inline_test_init() { ... ctx->data_bh.b_data =3D (char *)ctx->data_block_buf; ctx->data_bh.b_size =3D TEST_BLOCK_SIZE; ... } --=20 Sashiko AI review =C2=B7 https://sashiko.dev/#/patchset/20261202031533.1665= 444-1-ericcurtin17@gmail.com?part=3D9