Received: by 2002:a05:7412:37c9:b0:e2:908c:2ebd with SMTP id jz9csp2280962rdb; Thu, 21 Sep 2023 13:58:07 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGoffqAgTX/DKvB168hyoLKn1ItqcZEfzH6Oy9gtbAQ99ViCUqS5l5XSjKHoPR/hyYM6DmK X-Received: by 2002:a05:6870:9a24:b0:1d6:439d:d03e with SMTP id fo36-20020a0568709a2400b001d6439dd03emr7172125oab.18.1695329887489; Thu, 21 Sep 2023 13:58:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695329887; cv=none; d=google.com; s=arc-20160816; b=kCamqsrtaPBi9qMbiu2VDKxLP7jNPW78YnOBKv5tHFoO7/5uTVui97rq4W5aTPVfXf nFOgLnYiZuP9i16BJMtTAniC2e1xh1PMGxq5JNrEnGJRfCAY4RC+rhlrei+rvmTk33TY gvuF/+TNoy9PCo5U7lPkK+/P5ArnKSLLLP9wF8jMDc+1JTGKkY617DC01yiBMmKCl3h0 aOiC21kzutf17/tlfxnLmsbFyA3Kuf1wmbe+ZXaEX1IQy1XrQFyz1CwTApmyKd4EJaGC D7zlPwF4jw4HRgzvjjA4D2A/40bF7Vc/AQWnn2enyvruX6N8gA31Wy/8gZ8scq3dJEqx ijVg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=8tj/4fxUZiry2jTheMg2G/1hmUuSMfloAmMrY1fbglg=; fh=nPVE68qm/1WxGgaIlVI7CC0o65llPozXvO7uptCmadw=; b=ziMEKrhFwSazlJKeQ90W/Y1ExZQTrMMQHfOHdZqzjP5XSwaoSgPZjQxXf1tNJ/tJZi yhFkeU6mPTb9tbtddB/lWNKxB1BHCTNF/yGOORycWZj8H2mlHJ7eW1Ye1rjq3UmC5qEu ZjxV6yr1VtOy5D0jTQ56lnZ+421gVbiZofhmt7UUdvxb3J3H1ZM6Sju4U0gIjcQirJwI WVFeoDoXBK5tqHzrnnDAWKsaxZt67tkjdUtmR5t2/RwAqrJTNVVeZ3VZdacFWQK6e9IS ey6DLQ3F8ReeO+raVbcnE2ql4bNjZqugcBFxDOgfHxQ67B63vcYEqqxCtR6VMGwnnDDk Fwaw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=DIEoKc3n; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from pete.vger.email (pete.vger.email. [23.128.96.36]) by mx.google.com with ESMTPS id b26-20020a6567da000000b0056532fbe293si2157203pgs.323.2023.09.21.13.58.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 21 Sep 2023 13:58:07 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) client-ip=23.128.96.36; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=DIEoKc3n; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by pete.vger.email (Postfix) with ESMTP id A15BC83A47AB; Thu, 21 Sep 2023 12:53:47 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231158AbjIUTxn (ORCPT + 99 others); Thu, 21 Sep 2023 15:53:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41216 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229502AbjIUTxb (ORCPT ); Thu, 21 Sep 2023 15:53:31 -0400 Received: from mgamail.intel.com (mgamail.intel.com [192.55.52.93]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1144790F28 for ; Thu, 21 Sep 2023 10:47:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1695318448; x=1726854448; h=date:from:to:cc:subject:message-id:references: mime-version:content-transfer-encoding:in-reply-to; bh=WcLEf00Eqb1E6LPJncnTQV2d5+wdroqiKE95ygxlftk=; b=DIEoKc3nr3JMh9ZzHDARjd2xxVtDe+ewEStujonF97dYrX1utLvBtdDS LEklICCcSvRABsLg/ZqPbp6VYBrzj8UYRSq+8x7JMTBls11hiwJGF2f1y noazlkAgP0RExdIbmiSqxVbJlSLY/PMNaAAjG5jF6nI66gVwDwgLXBoHZ r1iPpKlGL9j5hbtJL1GctHNpxVkKtqtxYgJcl84TNcqH/yU9mE4V+V+RC ViJ/LFhWQxu3ReuUoc4CZmaWf9cQOKZ9/UWCvqZJ4ws9wGriiS7BEf/8d JD9tHJlk5VI6GEmbXefwsNTJueAYbHm77LBcaNSP1FGInuxaTxBTC7L/o w==; X-IronPort-AV: E=McAfee;i="6600,9927,10840"; a="377858639" X-IronPort-AV: E=Sophos;i="6.03,165,1694761200"; d="scan'208";a="377858639" Received: from orsmga007.jf.intel.com ([10.7.209.58]) by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 21 Sep 2023 09:03:32 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10840"; a="740706780" X-IronPort-AV: E=Sophos;i="6.03,165,1694761200"; d="scan'208";a="740706780" Received: from xwan118-mobl1.ger.corp.intel.com (HELO box.shutemov.name) ([10.252.51.175]) by orsmga007-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 21 Sep 2023 09:03:29 -0700 Received: by box.shutemov.name (Postfix, from userid 1000) id E4B0B109F14; Thu, 21 Sep 2023 19:03:25 +0300 (+03) Date: Thu, 21 Sep 2023 19:03:25 +0300 From: "Kirill A. Shutemov" To: Linux regressions mailing list Cc: Dave Young , Ard Biesheuvel , Kees Cook , Aaron Lu , Bagas Sanjaya , Borislav Petkov , Linux Kernel Mailing List , kexec@lists.infradead.org, Tom Lendacky , x86@kernel.org Subject: Re: kexec reboot failed due to commit 75d090fd167ac Message-ID: <20230921160325.g5ei2gfads6deb32@box.shutemov.name> References: <20230907131409.masxz42ik6u456qp@box.shutemov.name> <20230908060230.GA283801@ziqianlu-dell> <20230908123233.dpbpohgrbyyxekzk@box.shutemov.name> <202309080856.F066F92C98@keescook> <20230909113209.actnan6hczrclz2d@box.shutemov.name> <20230911145707.hslq47ngknshrlyk@box.shutemov.name> <20230913142410.dfqsg3l5v44mr5j3@box> <91daa8b6-57c2-424f-8c6c-647e05f2a8c9@leemhuis.info> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <91daa8b6-57c2-424f-8c6c-647e05f2a8c9@leemhuis.info> X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on pete.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (pete.vger.email [0.0.0.0]); Thu, 21 Sep 2023 12:53:48 -0700 (PDT) On Thu, Sep 21, 2023 at 11:54:15AM +0200, Linux regression tracking (Thorsten Leemhuis) wrote: > On 13.09.23 16:24, Kirill A. Shutemov wrote: > > On Mon, Sep 11, 2023 at 05:57:07PM +0300, Kirill A. Shutemov wrote: > >> On Mon, Sep 11, 2023 at 10:56:36PM +0800, Dave Young wrote: > >>>> early console in extract_kernel > >>>> input_data: 0x000000807eb433a8 > >>>> input_len: 0x0000000000d26271 > >>>> output: 0x000000807b000000 > >>>> output_len: 0x0000000004800c10 > >>>> kernel_total_size: 0x0000000003e28000 > >>>> needed_size: 0x0000000004a00000 > >>>> trampoline_32bit: 0x000000000009d000 > >>>> > >>>> Decompressing Linux... out of pgt_buf in arch/x86/boot/compressed/ident_map_64.c!? > >>>> pages->pgt_buf_offset: 0x0000000000006000 > >>>> pages->pgt_buf_size: 0x0000000000006000 > >>>> > >>>> Error: kernel_ident_mapping_init() failed > > [...] > >> The problem is not limited to unaccepted memory, it also triggers if we > >> reach efi_get_rsdp_addr() in the same setup. > >> > >> I think we have several problems here. > > [...] > >> Any comments? > > > > I struggle to come up with anything better than increasing the constant to > > a value that "ought to be enough for anybody" ?, let's say 128K. > > > > And we can eliminate logic on no-KASLR vs. KASLR vs. KASLR+VERBOSE_BOOTUP. > > > > Objections? > > Apparently not, as there was no reply since then (which is why I show up > here, as it looked like fixing this regression stalled). It has been fixed in upstream by the commit f530ee95b72e ("x86/boot/compressed: Reserve more memory for page tables") -- Kiryl Shutsemau / Kirill A. Shutemov