From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 15943214807; Thu, 21 Aug 2025 20:58:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1755809891; cv=none; b=WbdoFDVWJWEt2jO7aUcuchksqNZ5zR56UpG1B6xrAwzQRVAFEMpbxakcsqy8GzGhfHkcFCsUHNkOnGiy2UAC9IdiZBlIw+mS92Y+oR99y4IT/rHHWf037rV3BfzBUYpb0TGodYVmZlP83fbTBczV+8U6OOjZhSNfIEHg9nSU2r0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1755809891; c=relaxed/simple; bh=AFBLWJOwJ4b7vAnIXPiDRB7zDnfWhOvar1ez+tAVaCk=; h=Date:From:To:Cc:Subject:Message-Id:In-Reply-To:References: Mime-Version:Content-Type; b=QPTNrCNsug1axRl6RAkfOe8wKiiGock5CTEno7hgE0h/YERcbYtkCkVvFGWFyGb6MUVtmSVR/zrs6yNyIQUlV9q70odX26KY4mGiVDA/nlkVy2pba6mOkAToVeJyOhdFVCZbVByYjgaktmkSOD3vU4lLgMueP6MjWJzAapCAWeE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux-foundation.org header.i=@linux-foundation.org header.b=umNePAT7; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux-foundation.org header.i=@linux-foundation.org header.b="umNePAT7" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 13EC3C4CEEB; Thu, 21 Aug 2025 20:58:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linux-foundation.org; s=korg; t=1755809890; bh=AFBLWJOwJ4b7vAnIXPiDRB7zDnfWhOvar1ez+tAVaCk=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=umNePAT7FP/nR5oaHv1H9T/yjVUYXR+nZuOVPtkysLQ9NhRZuyTdMBoFbF/ziX8K2 eV5xKGtgX5CjNLxozP7au3YTYdCUCJ3PXw/HZnwGKHApRpXMIwg+OmbWf3g+D8B0Tb B4ACvmCB5X6wuzLlzZyLIBvwg69IU3jtKrzwqnqE= Date: Thu, 21 Aug 2025 13:58:09 -0700 From: Andrew Morton To: Evangelos Petrongonas Cc: Ard Biesheuvel , Mike Rapoport , Alexander Graf , Changyuan Lyu , Baoquan He , , , , , Subject: Re: [PATCH v3 0/2] efi: Fix EFI boot with kexec handover (KHO) Message-Id: <20250821135809.c12105ca2a246a9fcb905af1@linux-foundation.org> In-Reply-To: References: X-Mailer: Sylpheed 3.7.0 (GTK+ 2.24.33; x86_64-pc-linux-gnu) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit On Thu, 21 Aug 2025 17:58:58 +0000 Evangelos Petrongonas wrote: > This patch series fixes a kernel panic that occurs when booting with > both EFI and KHO (Kexec HandOver) enabled. > > The issue arises because EFI's `reserve_regions()` clears all memory > regions with `memblock_remove(0, PHYS_ADDR_MAX)` before rebuilding them > from EFI data. This destroys KHO scratch regions that were set up early > during device tree scanning, causing a panic as the kernel has no valid > memory regions for early allocations. Do you think we should backport this into 6.16.x kernels? If so, is there a suitable Fixes: target we can include?