Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp447389yba; Fri, 26 Apr 2019 03:00:25 -0700 (PDT) X-Google-Smtp-Source: APXvYqwDhTR1dK1gHssaThOHflsoCmaCSrGxQF+ZJIX3YfRnzWHpI0P9WdZF0p+bCQ3s2R3KoATZ X-Received: by 2002:a17:902:1486:: with SMTP id k6mr45517336pla.208.1556272825463; Fri, 26 Apr 2019 03:00:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556272825; cv=none; d=google.com; s=arc-20160816; b=rhFWFXLUQzyISADtqaOK9TQo4fbdR2L1odUZaYIDqvLWgvofMak18UwekjhhAoeKOJ 8D+PI02WNLW6JwLh89GzyIyDb6+o+PL/c6o/+nuolHjsS+JTx+M5QuMy9/F3x1cD5wpp i/0HYHUG1fhwBndj3NCUegBAZtlpksv6OXh7RwpovZIFj7k4705s0yPYqugorSbp1yis yCd5sn5LuZ5CKqCEDgFHVT8w4jv1OSO9uLQr6agu35aUEkgr6AnML3JqsWKHaMZGqs/2 2uoWe74joZxiYiAPFpNSiYP7dyTtRNps+aT9QSzSXxVzCQU6Ib2N80g6gtK39MXwEfW4 4S3Q== 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=VHXOYvuGCEpH7+kGFsoVKXhWhjrn8vwqYBRpfwVM8sk=; b=gBUd859oWJ1bXI/QyfcN9+JVjLAPlGDT6xpSJ/R13HsqOsSPhb3uKKAUDKYVXVGdL1 QnSkni5IkzTK/ZSo35CrpWM7RfOezGX0rs1S8MWSteygz+A8hQPu1wESbUK8HPbYEWvV S6ALn//rkzBA9zatvOz8kgZlgQjagXJoHwXgNQ10y0B98lbEz6rP2qs3e//uRmHtUd34 W6UEC9ZkJqk8YfScVE+p73f4NbxNb1TDdIDOKsVrVDuriFYSclj1We2YCnFDY1OYserw +Bm/3zYwVVyBlg6JUGq5UoQvcpRnM5V1tYIJXmlqYEQp/hg6g7VDXwMW8RjfAR+GwGBh tx+g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@alien8.de header.s=dkim header.b=aia7Du3b; 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 v20si25724798pfa.224.2019.04.26.03.00.10; Fri, 26 Apr 2019 03:00:25 -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=aia7Du3b; 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 S1726379AbfDZJ6H (ORCPT + 99 others); Fri, 26 Apr 2019 05:58:07 -0400 Received: from mail.skyhub.de ([5.9.137.197]:47826 "EHLO mail.skyhub.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726247AbfDZJ6G (ORCPT ); Fri, 26 Apr 2019 05:58:06 -0400 Received: from zn.tnic (p200300EC2F0E4E00083B53278C752809.dip0.t-ipconnect.de [IPv6:2003:ec:2f0e:4e00:83b:5327:8c75:2809]) (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 826671EC014A; Fri, 26 Apr 2019 11:58:05 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alien8.de; s=dkim; t=1556272685; 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=VHXOYvuGCEpH7+kGFsoVKXhWhjrn8vwqYBRpfwVM8sk=; b=aia7Du3by+IGDICmz9K38elC/tV+J9McwxWcSSmQPBlQEHlKgsfOHwatDcPpD++i+Gbzjh JQW7GfGAIP2ugjjz+WOciuiZKsmsjg/Ew00keEF+AokcXBKrVTaIYO7FvAP0wwo2/e4dBm Ezed39TIWF5OMnkXNIjvZIexv7fH5uc= Date: Fri, 26 Apr 2019 11:58:00 +0200 From: Borislav Petkov To: Baoquan He Cc: "H. Peter Anvin" , Junichi Nomura , dyoung@redhat.com, Kairui Song , Thomas Gleixner , linux-kernel@vger.kernel.org, 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: <20190426095800.GB4608@zn.tnic> References: <20190419101733.GA10324@zn.tnic> <20190419105014.GE11060@MiWiFi-R3L-srv> <20190419112801.GB10324@zn.tnic> <20190419113621.GD10324@zn.tnic> <20190422143346.GD3584@localhost.localdomain> <20190422151723.GD21457@zn.tnic> <20190426095134.GP3584@localhost.localdomain> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20190426095134.GP3584@localhost.localdomain> 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 26, 2019 at 05:51:34PM +0800, Baoquan He wrote: > I can make a patch to add a bit into xloadflags, to indicate that this > is kexec-ed kernel. It can help to differentiate kexec-ed kernel from > kdump kernel. From the recent snafu, the only thing we needed is to differentiate between the *first* kernel and the following kernel(s) which has been started/loaded using a kexec syscall. -- Regards/Gruss, Boris. Good mailing practices for 400: avoid top-posting and trim the reply.