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=1796305934; b=aPr5l/0Tir9C+MX3WHCHoBsbwZjwpgMcwfE5tWbJkPIdBa6h5j0YKyPOyDmdeptzLafH RaGXQFGRMgSpm+hsjgG18rLpJiDHfRDcr2O7f4fyJhk1XIMf1/lqer37Bl39PYVVXAg2J DNaaMvywp8dMLRFa2lEGWVADgeR9shSuaKbpNfpi/f6qIsrCKli6Ce8ybVlxpQq2p5K+/ KC39wrnhqOnmXxgawRazRSE+r3JTEH/W7YdHufzYhjp+IrDsmwXwDhcNU+MbVSGFRZ0jE NqsXD/J2YFp+4J+qcacgNrfg4fc4VGbVd1AvyhlMFD2cu24gfIdCzR1IxuP1v/Man6Q== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796305934; h=Received:DKIM-Signature:Message-ID:From:Subject:Reply-To:To:Cc: In-Reply-To:References:Content-Type:Content-Transfer-Encoding:Date; bh=UXIeZ5mVTDx3NmkP4L9qUNZqQTfaygaAMpUI98j8Le0=; b=FNwOxNzgkwykiPxf3fgpkhod3w2gkakgHplYM8NWHtIOvRMMhrmVbbS4wlocqLRlRFad g+8C7MxSEDJ+hxqoezm0+mPuKKBKvvQZ1l2GFzICA4QENnXemyDl0vUaIs7bn41Jno+J9 /rLOc9cEHSw1MVs1je5LPvwODqq+0XC5my9NKT7dhBdJS3GQFLO619Zk1XIz1+wBuJ7uI 7bu9Gy7MkwdJI4vMRRGb9ieH/JfjReREn0rZ5PM5zQVVmI+zbceJbPmYEOySM8yAtA4vd BLO6DFV1Pr+Fij/puPnqwFdU3DRkGWv8QU8/GHK7q8ysRk6IEqmuSKytKvZge4rL5/A== 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=EkhN3wUc; 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 E9AE9606A322; Thu, 3 Dec 2026 13:52:13 +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=EkhN3wUc Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4503D1F000C1; Thu, 3 Dec 2026 13:52:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796305933; bh=UXIeZ5mVTDx3NmkP4L9qUNZqQTfaygaAMpUI98j8Le0=; h=From:Subject:Reply-To:To:Cc:In-Reply-To:References:Date; b=EkhN3wUcrpj31s1+1CNTchJEFfW6iTCTcg86FKYlz290KLOKEGaqd0FfwjUNWV79t mkMHR1pBLTFtMbV/6k+78ljpUjuXfdo1bR+IbpahhP0kmqqhDMTDwDuLnQk3ezYrxK Qe++Sg/PU4VE7WF2ZA1nX5/nFuEEvXiycCbNL9BbyiFsx6qKNLpUiJ3sBvxj8MpKsj QhQE7HjV9OLkXrlTnGYmcMJQ4rwg3lWYEzAhCQu2biTMRkEf16Joj4HYAYGlnKl621 wIIvnuLjsRBRfm/dqQwG0vlEvtBf2CQTuGEuIUk2of8Pax6EsBb9LGGp2FnAw5c3r6 AVFq6UdwJTZNA== Message-ID: From: sashiko-bot@kernel.org Subject: Re: [PATCH v8 12/22] efi/cper: validate the remaining length before reading a section Reply-To: sashiko-reviews@lists.linux.dev To: "Ahmed Tiba" Cc: linux-cxl@vger.kernel.org, linux-pci@vger.kernel.org, devicetree@vger.kernel.org, robh@kernel.org, conor+dt@kernel.org In-Reply-To: <20261203-topics-ahmtib01-ras_ffh_arm_internal_review-v8-12-157aac88560b@arm.com> References: <20261203-topics-ahmtib01-ras_ffh_arm_internal_review-v8-0-157aac88560b@arm.com> <20261203-topics-ahmtib01-ras_ffh_arm_internal_review-v8-12-157aac88560b@arm.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Date: Thu, 03 Dec 2026 13:52:12 +0000 X-Mailing-List: linux-cxl@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] efi/cper: Fixes trailer cites c4335fdd3822 instead of 1be72c8e0786 -- commit 6ca8a7519e24ea7df3b9fa23e96fe2862cd9f070 Author: Ahmed Tiba > efi/cper: validate the remaining length before reading a section > > cper_estatus_check() enters the section loop whenever any data remains. > When a malformed status block leaves fewer than sizeof(*gdata) trailing > bytes, acpi_hest_get_size() reads gdata->revision beyond the valid buffer > before the existing record-size check can reject it. > > Require a complete generic data header before dereferencing the section. > > Fixes: c4335fdd3822 ("ACPI: APEI: fix the wrong iteration of generic erro= r status block") > Reported-by: sashiko-bot@kernel.org > Link: https://sashiko.dev/#/message/20260708143557.91D601F000E9%40smtp.ke= rnel.org > Signed-off-by: Ahmed Tiba [Severity: Low] Should the Fixes tag cite 1be72c8e0786 ("efi: cper: check section header more appropriately") instead of c4335fdd3822 ("ACPI: APEI: fix the wrong iteration of generic error status block")? The earlier out-of-bounds read was fixed by 45b14a4ffcc1 ("efi: cper: Fix possible out-of-bounds access"), which checked that sizeof(*gdata) bytes remained before dereferencing gdata. The unguarded acpi_hest_get_size(gdata) read was then reintroduced in 2021. Citing the 2017 commit can cause stable backporting to target trees that already have the earlier guard. Fixes: 1be72c8e0786 ("efi: cper: check section header more appropriately") --=20 Sashiko AI review =C2=B7 https://sashiko.dev/#/patchset/20261203-topics-ahm= tib01-ras_ffh_arm_internal_review-v8-0-157aac88560b@arm.com?part=3D12