Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp1752747rwb; Mon, 7 Nov 2022 05:30:08 -0800 (PST) X-Google-Smtp-Source: AMsMyM6gIYehN9BYPam6IxK1cc3y6KkY/49ZzG3B/BLRZQU2unlvZ8oXBPmPLN7W3JcRc+6Ev6Sv X-Received: by 2002:a17:90b:f06:b0:212:cb07:fb82 with SMTP id br6-20020a17090b0f0600b00212cb07fb82mr67021051pjb.221.1667827808112; Mon, 07 Nov 2022 05:30:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1667827808; cv=none; d=google.com; s=arc-20160816; b=Wwn4CgI+lH84+eurvPn7cwZi2PqlKR4/YyqG+bdmY38+OESdVS7NrU9hDVwW6vMx91 CVoZbQY0qEmZuOnUsquBTWKTpjHs9RfbTIFJdSdVE039V/T8/dHOkZIccu7bk9JNET+K U/SVtqHVKGNz4Lmt+mJaJakEroBk/VPq+ueDuwq5i1YubV7Nkri4GDZjd/Mj2x5XPye/ Ss6Qq6oxakZW6MRhQbSgyRrm/aXdPNHscIaWhyEGBNzAtgCYldlSm9m7Fkv4nSnDsR5+ us5i/I5f6ltRPopV5RY9hKi+lV78x3W3wkSsI402IFjgjv366vJCbm84PYVKPq2XWn/X Z+kg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=iBqA5rFTfNwU5o+J9TxIcK0S46kbO+AKz+ncFKEAltE=; b=Mx2hc9OyFPom+v6UvSSn6bsGfnks1VS4l69kNihqALU593W+n49i9pkD+o5oOEpr9D 0WWep4H2enrzGGmV62krSCklaRFds6GMHqUqswtkWJLqfccEIWDweHxDbKCbM7RpaMqx OBAFn4wnysLdBrUwsGr5c2IggF3IezFS73tXL6Kjr0QY5QmgyM2BCdh8T9Ri3J6QkFvU IfWsQn23Zx2YK1q5AfrspeKbQOPhiRxcG2qrPaZyce0EVk7lR2JtpC2jQC5jMOXujRKy O2vS/TjWXeWympgIPHzPkPkjjBdt5jSqGlgGVZPkaTLQRrEk2lu4yfBVAgxISiRlKVo4 +YZQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=bOMlffTW; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id q19-20020a056a00085300b00546ce9189b1si11457857pfk.65.2022.11.07.05.29.55; Mon, 07 Nov 2022 05:30:08 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=bOMlffTW; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232081AbiKGM6l (ORCPT + 93 others); Mon, 7 Nov 2022 07:58:41 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43764 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231378AbiKGM6k (ORCPT ); Mon, 7 Nov 2022 07:58:40 -0500 Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2D8C113F79 for ; Mon, 7 Nov 2022 04:58:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1667825919; x=1699361919; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=75Q8jfo9VuSCUpi/mO2u+M18tr1BpWsKHMiqiHRAxVE=; b=bOMlffTWjFv/KKGi3ZGADCs9rdL3s4jxTEGfKXwJaZnajGMt3/3jRv6S CgfEAaG2zc/pZnAiX0qQYkglGDDnfE+qnvq6zz6hMJNK+Be+XVXzOFluO lcrvgqcy3Q0P0WAftfcTuq2Rj/LVzVXbQ4UmF8PwUoLqZH46WJQ8OAFlf mji1aI2mFwxFCMArMHibNKkrxwIu2sBBpUQLNprlfAn4FKdPJkgYqTKlB gAi1k3zgft1fQ757LI4IhSFjbiLBxnQJ3Fbj4yGhPV6P+7z7LerxkDtu1 TuqTwfgLwA9+g6+dFlv/NWHtN+8ruLcteLPjkuwnfYFUNFjPdr2CSGVjU g==; X-IronPort-AV: E=McAfee;i="6500,9779,10523"; a="312167011" X-IronPort-AV: E=Sophos;i="5.96,143,1665471600"; d="scan'208";a="312167011" Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by orsmga103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 07 Nov 2022 04:58:38 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6500,9779,10523"; a="699463658" X-IronPort-AV: E=Sophos;i="5.96,143,1665471600"; d="scan'208";a="699463658" Received: from irvmail001.ir.intel.com ([10.43.11.63]) by fmsmga008.fm.intel.com with ESMTP; 07 Nov 2022 04:58:35 -0800 Received: from newjersey.igk.intel.com (newjersey.igk.intel.com [10.102.20.203]) by irvmail001.ir.intel.com (8.14.3/8.13.6/MailSET/Hub) with ESMTP id 2A7CwX1k017267; Mon, 7 Nov 2022 12:58:33 GMT From: Alexander Lobakin To: Thomas Gleixner , Ingo Molnar , Borislav Petkov , Dave Hansen Cc: Alexander Lobakin , Jiri Slaby , "H. Peter Anvin" , "Peter Zijlstra (Intel)" , Tony Luck , Kees Cook , Masahiro Yamada , x86@kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2 0/2] x86/boot: fix relying on link order Date: Mon, 7 Nov 2022 13:55:28 +0100 Message-Id: <20221107125528.543764-1-alexandr.lobakin@intel.com> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20221101161529.1634188-1-alexandr.lobakin@intel.com> References: <20221101161529.1634188-1-alexandr.lobakin@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_NONE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Alexander Lobakin Date: Tue, 1 Nov 2022 17:15:27 +0100 > The series contains stuff I caught last week while working on some > x86 code. It can be considered a material for fixes or for next, > I'm okay with either, although leaning more towards fixes :P > > Notes on patches: > * 0001: I didn't put any "Fixes:" tag since it's not linear. The > lines changed with this patch came from the initial x86 > KASLR series, but that unconditional jump to the kernel > beginning already was there. It goes at least from the set > that brought relocatable kernel support to x86, but this > is quite prehistoric already and might not look really > relatable. So up to you whether it needs any. > * 0002: doesn't fix anything, except that having any files listed > in that whitelist already is an architecture bug :D And > it wouldn't be convenient to decouple it from #0001, but > up to you as well. > > From v1[0]: > * collect the Tested-by tags (Jiri); > * don't add pathetic returns after noreturn error() (Jiri); > * debug-print the entry point offset via debug_putaddr() before > booting (Jiri); > * always have an empty line before return statements (Jiri). > > [0] https://lore.kernel.org/all/20221031151047.167288-1-alexandr.lobakin@intel.com > > Alexander Lobakin (2): > x86/boot: robustify calling startup_{32,64}() from the decompressor > code > scripts/head-object-list: remove x86 from the list > > arch/x86/boot/compressed/head_32.S | 2 +- > arch/x86/boot/compressed/head_64.S | 2 +- > arch/x86/boot/compressed/misc.c | 16 ++++++++++------ > scripts/head-object-list.txt | 6 ------ > 4 files changed, 12 insertions(+), 14 deletions(-) Ping? Also, I managed to remove .head.text at all from x86. Would it be better to respin this series with the third patch or send a follow-up later? > > -- > 2.38.1 Thanks, Olek