Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp2082553yba; Fri, 19 Apr 2019 11:46:53 -0700 (PDT) X-Google-Smtp-Source: APXvYqxxlYvbYkXGqYLvrPJD0JrKskKxRz8opCLePD0WdKxc8LIQgQhYC+xiTab1GoEG7WIi0BJb X-Received: by 2002:a63:5d4f:: with SMTP id o15mr5381497pgm.443.1555699613524; Fri, 19 Apr 2019 11:46:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1555699613; cv=none; d=google.com; s=arc-20160816; b=O5Uj+QpMxyH4yus1i6XNe6K6ez2+RnEB4UqrOAHbtPCecg3VJo20RA9rTPeNruzhQI FEq+y6yt673TRQ1qrQKhhBqiG/0Wp34q0VZWj0hAp2TRS6sNfx+xtnqHB6Y2lF1wNF8Y eyRIf2xjFtfZq3PKXid+4V0GY4LqXwRspixOaZwsB3cPr2MV4zaSSo2wygVm/CCyllFJ NtY9Wb92MBhMCSJZm8jCs5r2Lbr9ScfIOHRkSIPJp2v/nSzqSVh7im8T+WOHWjP3/1dE F1n50i0J8FcjqlIym1R11YoDOFLZ3pz0MYTrwYxEzq8AKsTboeh3Y6eyNv/gPJgFXxE8 O5ng== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=Qul4HOAW88aQlnLst2WoypFmSDlJii/hQ15ovrRmTvk=; b=h4+swb/G8uIGB0WTXsdVh3NBjI1axbuBByWOlWad9pqevV2E8ZW13t/2RNDAyxcX5l Y7MyzTZTHZpzWYUyJ4+xBwQIdULCrAzWtWvOswn4NgCGJZFEn08JcQIfPfpRx8sYgNLY KDexjtxeTWAEGTFSN+bZni61C4fNE6Fnxj8Q6Cj4KBAXmm9LABKbgsfsN5Sc4mCPXQND 5/KlzvnnVX9idelfCQZKXrYkVBaksppAMYZ1iZE9+s1EPok1cL4g10MfUbgNzqxWYv08 +uTErHjci+1843NabIl+m0gcUtbvIkhRS1QsG+1t5zUoebdqsqLvBN4D2RP+gX19m+r5 w02g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@alien8.de header.s=dkim header.b=LS4wGnop; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=alien8.de Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 194si6382919pfu.48.2019.04.19.11.46.38; Fri, 19 Apr 2019 11:46:53 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@alien8.de header.s=dkim header.b=LS4wGnop; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=alien8.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728219AbfDSSoC (ORCPT + 99 others); Fri, 19 Apr 2019 14:44:02 -0400 Received: from mail.skyhub.de ([5.9.137.197]:38358 "EHLO mail.skyhub.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726304AbfDSSoC (ORCPT ); Fri, 19 Apr 2019 14:44:02 -0400 Received: from zn.tnic (p200300EC2F112E006C6C37C052F44BC9.dip0.t-ipconnect.de [IPv6:2003:ec:2f11:2e00:6c6c:37c0:52f4:4bc9]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.skyhub.de (SuperMail on ZX Spectrum 128k) with ESMTPSA id 2A6331EC0AD6; Fri, 19 Apr 2019 13:36:22 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alien8.de; s=dkim; t=1555673782; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:in-reply-to:in-reply-to: references:references; bh=Qul4HOAW88aQlnLst2WoypFmSDlJii/hQ15ovrRmTvk=; b=LS4wGnopQSSwfSsm/MPJpIJeR8xC2XwXS9JVTIhF8me4Fbvnm4RREplHb8NEyRrvq6esqs 6EF1fY+oV5kmChvTsIFATSiqr5dbyco79n1uIiwIWrj7j+UNSjnIXvU5xcpPq5zu2JIaZD VJAIuG3QHa6Ztal8PMInWmJPc5+YfIE= Date: Fri, 19 Apr 2019 13:36:21 +0200 From: Borislav Petkov To: Baoquan He Cc: Kairui Song , Thomas Gleixner , linux-kernel@vger.kernel.org, Junichi Nomura , Dave Young , Chao Fan , "x86@kernel.org" , "kexec@lists.infradead.org" Subject: Re: [RFC PATCH] kexec, x86/boot: map systab region in identity mapping before accessing it Message-ID: <20190419113621.GD10324@zn.tnic> References: <20190419101733.GA10324@zn.tnic> <20190419105014.GE11060@MiWiFi-R3L-srv> <20190419112801.GB10324@zn.tnic> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20190419112801.GB10324@zn.tnic> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Apr 19, 2019 at 01:28:01PM +0200, Borislav Petkov wrote: > Read again what I said: "should all be passed through boot_params". > Which means, boot_params should be extended with a field of a flag to > say: "this is a kexec'ed kernel". And by that I mean similar to the XLF_EFI_KEXEC mechanism. The first kernel or kexec(1) should prepare the info needed by the kexec'ed kernel. -- Regards/Gruss, Boris. Good mailing practices for 400: avoid top-posting and trim the reply.