Received: by 2002:a05:7412:b995:b0:f9:9502:5bb8 with SMTP id it21csp5417144rdb; Sat, 30 Dec 2023 23:26:52 -0800 (PST) X-Google-Smtp-Source: AGHT+IE9cxsgLRAZteCUh19lp59mNI7Kx4NYjW+DDvFMvVpCfi2CP3uHuBr4rmfBKS+004G31/PU X-Received: by 2002:a05:6214:2a85:b0:67a:3506:afdf with SMTP id jr5-20020a0562142a8500b0067a3506afdfmr17499469qvb.61.1704007612518; Sat, 30 Dec 2023 23:26:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704007612; cv=none; d=google.com; s=arc-20160816; b=dBhNwlv5+Cvnc5mFKFCVhTzMoPs0njZkyG9rC6GuhKaLSr6bXHimUm3QQMgsaGyubU upQxsWC//NlJWFjoSjaexgZVR9ghRT45Jt9BjnCoR1sG2mDvgEdpACbznKpGxlBtOiiV D5fSMK1GK4XvFWx9jt7JpnwOwGRMoJE4fkp7ao6T4Utr0ktwIMMMs6tot3qi0FBKtESw QMfit/+AY1w29kx1CpWlctUtjq/GySiH2jj0FqxBUfb7FlnI5p6lN2F+vs6OEoelYMqI fF0b6p+7Ow4nflcKQ4OqFDTX4ciSbf2jo72xIuQIOG9Vd/pBDZZc60KhhzR8qyhtNNrA zswQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=beHVjLZYbislpTprreVSdMQdiJq2YsVoAO93cRmwJu4=; fh=BYXfuk/Xq1lHpP2BQGhsUk6Uf38EyfSlGQ7Do91N9jU=; b=qeV4P9IuJzIItOHRt9Nr0yMjrFr2Wb803d6YvqG39PcowvNd2x5koMBGNJIDGboKnC iQo+YJoO+snUkmBXg18G9A92Et92evbabVtigydtmjNMTGy1EdHP/ffI0eUtQNUgv1P9 3qvFQ9/kiNOTODEjKzMbQuQ0X6ZrOHO7kYHJFKxHZuG8Au/8Fez3d+dcXhrjUVutgXOt tPX0ORm7nWeiD0Xu7WITqDmWSQUtfLwPoPU6SAx2EpxPCBcC8nY4QSdjRIY/mOuHApbI LZP2OmQLAFOS1uAehNZQO1NaBVstnqfXILgfHkc8fZMz5Pa+Bn6ipYa0nOUXAPRuynXk j5Bw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=jN3TBKuf; spf=pass (google.com: domain of linux-kernel+bounces-13647-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-13647-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id h7-20020a0cf407000000b0067f886473besi21168771qvl.76.2023.12.30.23.26.52 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 30 Dec 2023 23:26:52 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-13647-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=jN3TBKuf; spf=pass (google.com: domain of linux-kernel+bounces-13647-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-13647-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 0E1611C213C7 for ; Sun, 31 Dec 2023 07:26:52 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 767651873; Sun, 31 Dec 2023 07:26:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="jN3TBKuf" X-Original-To: linux-kernel@vger.kernel.org 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) 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.