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=1794047619; b=O9JIHVxoxanyOZ1ZBb5qLVxVPft92j7D4T0k9jN++26D5gXCjJJNg30e8xXGlm9YP0mU s+SU4bYtGFjM3L8uwuWePRvTIFuoDBRFBHhk3GzpbKxj8RcNMOYNjzFB796Jcj87DVdvD E2WDR0XdSnw6/IlX+L8i2mG/MNFozJhm1eNolaMEyoOti29iQ0T/JlF25oTXn6WSPKEYD bmIOY9yeV1CcYC8JLGbmHN8+bQR/SfmbIPQt4GcMWM8vcYG4FZr7xmHVpewmWAFthaBOq NvjnemkAvRsYwsEXd1hfibYQ10rgrixzpMp2nLhRj+Wn/xOMxOEOeS9tGHQxkF+SzFw== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1794047619; h=Received:DKIM-Signature:From:To:Cc:Subject:Date:Message-ID:X-Mailer: MIME-Version:Content-Type:Content-Transfer-Encoding; bh=Z8HE2Jei8ND8X1UajBRhx0mfHwSeWIYKZ1xzgpqqrR4=; b=zaHucaPZU4dMSuoyoJR5jI7Q8n+vVtc2+rgTUcXmN5sAVLNnH0T3og1vmqe7AfR9EYyF aD4ZK8LW5JY24NcZVCC59GmDDzXrkWEMI4wL4/Qw86nfV85tIjf0MsY4GurbNbdXD25sp jsifHWYk45ThtkNh99MV0guQPYMSGxZSydcMjYDKvBATKM/emj9jZ+05zSIiVJgYedxhE rGFD3rlXASRC/RRCeOJi8CCXb92km+i59f3mM4AfmMVQFgKzOXH1afcWO6xmu2NTOhsTx JE/Q5euLwUMZzfIyLUPzwF1qTtPfnown4QiCbwmEHlrJDtvAXNo4dMC/YFlJOc7Q58A== 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=afzGDO3r; 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 40BB5606A32C for ; Sat, 7 Nov 2026 10:33:39 +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=afzGDO3r Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9CC9C1F0089F; Sat, 7 Nov 2026 10:33:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1794047619; bh=Z8HE2Jei8ND8X1UajBRhx0mfHwSeWIYKZ1xzgpqqrR4=; h=From:To:Cc:Subject:Date; b=afzGDO3rJnXtikU200Qk5Y8Fn7jgMfhmjNnzi7eDIM6i0ke4VG4lVKi4CQrquHxla iH4XK+hH2L3rkcfzGLoltyyouKX5VgyJ6HhvHqP8PCXqVVtduc7kQ7L5G1smCXzjpK Ddq2lhMxWqAti4RX+IlXXd8imefhxgQXV3ShzOX7LvguDe7MwLFpQyyW21iwhm8qfn RobAIExH2cr75a2L+Ph4v8YKeu33DgKwnn0KaeSv1IHbW7+exYv5LCQCiQJnDVDEtD 7vu7v1H64Hd+iu8DK2PWV/xAO2B60XHUx51Tv89SLBzRfKmS9VGojOZUVs9Rtl9aA3 0B9ax9n/yRWDg== From: Sasha Levin To: leitao@debian.org, xueshuai@linux.alibaba.com, rafael.j.wysocki@intel.com Cc: stable@vger.kernel.org Subject: FAILED: patch "[PATCH] ACPI: APEI: accumulate the queued flag across error sections" failed to apply to 6.6-stable tree Date: Sat, 7 Nov 2026 05:33:37 -0500 Message-ID: <20261107053337-failed-6.6-f341307a1489@kernel.org> X-Mailer: git-send-email 2.53.0 X-Mailing-List: stable@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The patch below does not apply to the 6.6-stable tree. If someone wants it applied there, or to any other stable or longterm tree, then please email the backport, including the original git commit id to . To reproduce the conflict and resubmit, you may use the following commands: git fetch https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/ linux-6.6.y git checkout FETCH_HEAD git cherry-pick -x f341307a14895e5da056fb419a31ef7fb534ab18 # git commit -s git send-email --to '' --in-reply-to '20261107053337-failed-6.6-f341307a1489@kernel.org' --subject-prefix 'PATCH 6.6.y' 'HEAD^..' Thanks, Sasha ------------------ original commit in Linus's tree ------------------ From f341307a14895e5da056fb419a31ef7fb534ab18 Mon Sep 17 00:00:00 2001 From: Breno Leitao Date: Fri, 25 Sep 2026 08:09:11 -0700 Subject: [PATCH] ACPI: APEI: accumulate the queued flag across error sections ghes_do_proc() walks every error section of a CPER record, and ghes_handle_arm_hw_error() walks every error-info entry of an ARM processor section. Both assign to "queued" instead of OR-ing into it, so only the last iteration counts: a later section or entry that queues no memory-failure work clears the flag an earlier one set. Instead of reassigning the variable at every time, just do an `OR`, so, if there was a single match, it will return "queued" as set. The comment above the check says "If no memory failure work is queued", which is the semantics this patch implements. I.e, only SIGBUS if there are queue was not handled at all. If we want to SIGBUS if any event was not handled/queued at all, we will need something more sophisticated. Fixes: 7f17b4a121d0 ("ACPI: APEI: Kick the memory_failure() queue for synchronous errors") Fixes: ccb5ecdc2dde ("ACPI: APEI: fix synchronous external aborts in user-mode") Cc: All applicable Signed-off-by: Breno Leitao Reviewed-by: Shuai Xue Link: https://patch.msgid.link/20260925-ghes-queued-accumulate-v1-1-df50553957d4@debian.org Signed-off-by: Rafael J. Wysocki --- drivers/acpi/apei/ghes.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/acpi/apei/ghes.c b/drivers/acpi/apei/ghes.c index ade1cc8c9f8d1..663dc2e601cf7 100644 --- a/drivers/acpi/apei/ghes.c +++ b/drivers/acpi/apei/ghes.c @@ -603,7 +603,7 @@ static bool ghes_handle_arm_hw_error(struct acpi_hest_generic_data *gdata, * and don't filter out 'corrected' error here. */ if (is_cache && has_pa) { - queued = ghes_do_memory_failure(err_info->physical_fault_addr, flags); + queued |= ghes_do_memory_failure(err_info->physical_fault_addr, flags); p += err_info->length; continue; } @@ -1000,11 +1000,11 @@ static void ghes_do_proc(struct ghes *ghes, atomic_notifier_call_chain(&ghes_report_chain, sev, mem_err); arch_apei_report_mem_error(sev, mem_err); - queued = ghes_handle_memory_failure(gdata, sev, sync); + queued |= ghes_handle_memory_failure(gdata, sev, sync); } else if (guid_equal(sec_type, &CPER_SEC_PCIE)) { ghes_handle_aer(gdata); } else if (guid_equal(sec_type, &CPER_SEC_PROC_ARM)) { - queued = ghes_handle_arm_hw_error(gdata, sev, sync); + queued |= ghes_handle_arm_hw_error(gdata, sev, sync); } else if (guid_equal(sec_type, &CPER_SEC_CXL_PROT_ERR)) { struct cxl_cper_sec_prot_err *prot_err = acpi_hest_get_payload(gdata); -- 2.53.0