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 A3F1317C3; Sun, 31 Dec 2023 07:26:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="jN3TBKuf" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 82230C433C7; Sun, 31 Dec 2023 07:26:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1704007605; bh=Xq8852Xb36eg5WsYqlpC32gOFgfvjFAbvVIskQcLhSs=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=jN3TBKufjtozxub0tJZ3LOuv6moAvPQloGubavm3XOiAlyTFTss1PWPRwrrBVxdDH QhOuDwNKAbihry9LujRmYI3veXxGxZ1T//eYfno7eNwjuNuoJphU1BD7vvynOiHPRS Jx772r4zV6PL7OUyteIO4mlpXDREKsYT7JbBEQriRT0pjBKfibeyGN+a80jvbTHnce jIKvtFTErUko67cxhh3h7JrfKHDdrucm2E+imrijXTz+YRz0Bj6pavbQbwMSl9/MLz TfwdLKiyAzTandOUzo40Tw1Z43U48U8ofJVdP/zi/XzJ23dkTLMNDEtJaeSP59TD2Q OZiaimYMNs85w== Date: Sun, 31 Dec 2023 09:26:22 +0200 From: Mike Rapoport To: Ashok Raj Cc: Linus Torvalds , LKML Mailing List , Thomas Gleixner , Borislav Petkov , Dave Hansen , Ingo Molnar , regressions@lists.linux.dev, Song Shuai Subject: Re: [REGRESSION] Platforms supporting SGX fail to kexec due to 96c6b8f212a ("memblock: report failures when memblock_can_resize is not set") Message-ID: References: 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-Disposition: inline In-Reply-To: Hi, On Thu, Dec 28, 2023 at 04:33:49PM -0800, Ashok Raj wrote: > Hi > > 96c6b8f212a ("memblock: report failures when memblock_can_resize is not set") > > Causes kexec failure. Backing out this change, kexec succeeds. Symptom is > it appears to hang, possibly hung at the panic. Although I have the > earlyprintk enabled, I don't see any console messages when new kernel > boots. > > Also tested turning off CONFIG_X86_SGX, the kernel with this commit > included also kexec's fine. > > Booting from warm/cold reset has no issues. Only kexec to new kernel with > this change included and CONFIG_X86_SGX=y causes the kexec failure. Can you add memblock=debug to the kernel command line and send logs for normal boot and kexec with CONFIG_X86_SGX=y and e96c6b8f212a reverted? > #regzbot introduced: 96c6b8f212a > -- > Cheers, > Ashok -- Sincerely yours, Mike.