Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp550420ybb; Wed, 8 Apr 2020 05:21:49 -0700 (PDT) X-Google-Smtp-Source: APiQypJQcNmurwLax05iPdtzF9bnhkBPAWzfHCVHDZhHpCG18MelpqLYcw3oDV7TzvD9PWoHcd9a X-Received: by 2002:a4a:9451:: with SMTP id j17mr5660571ooi.30.1586348508859; Wed, 08 Apr 2020 05:21:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1586348508; cv=none; d=google.com; s=arc-20160816; b=zrUAaC4Y4aov7J3/eFap8C4w1WcGN+SO8Muv/7m2JzUMH6De6b0ZEe5Rt0Fb775gpV sgcUYXfMSVU2+hNGrw7CzLu0M5ZgwYL3AjabnuDeq5vB8ixu6GQ51J8UpsYzKdGb+4c/ BQqpfGtA0ybPS3mNVy5hswvCEl9V2JSIPQv3qxy+nxFZTYa6cji/FoGvNHL4MsEqqHD3 JKnBOVDF4vdydAzXAjd10sAPeY1oV9AwbeJH3XD9ys9oBCnIw+xGw7RRdI+peA+HFqpr c2pWsbqNF963LfE0p3JARqpCABD3DliWMrLffXXQLVNrDFLLAjsUKRNQh7NOX3XLAT59 DRPQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=WCOPqkfojgD8KZcwcemPOllvjUVR1cNNbNK8tehOyhg=; b=cmEWjNqxyX85TJa2RWPUIY5BxtNVs9xFl6tTnL7fMt6tFKseMKLEyLffI5CiJTmTCz 6tMqWCgqU8KldkMc8w0eQtA1MReHgvLonXCSYZjURusZKuoxlybs/DX96rJhTQnGANBL +XITszA9y2/fzA8lbHTCjNwqTh3XmcTxou3wxqFfTMrHtlL5EOONhW+6Cx58lUDM9SsC K63PcbVLPfkP4Swcf7zhR8CJPreSg43V2RCQ9vK8rm1tysiCJr/ofn+vEfyZd6BMsBXU 6eS1kMHEuy3XmKOjf6gOBmjEsqCvTGC+oYsc2jaopQsPfOR+QwFLjLMWH5rrCqhRMdI3 rxvg== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=siemens.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n6si2708995otf.43.2020.04.08.05.21.34; Wed, 08 Apr 2020 05:21:48 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=siemens.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728399AbgDHLOU (ORCPT + 99 others); Wed, 8 Apr 2020 07:14:20 -0400 Received: from lizzard.sbs.de ([194.138.37.39]:38373 "EHLO lizzard.sbs.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728321AbgDHLOU (ORCPT ); Wed, 8 Apr 2020 07:14:20 -0400 Received: from mail2.sbs.de (mail2.sbs.de [192.129.41.66]) by lizzard.sbs.de (8.15.2/8.15.2) with ESMTPS id 038BDMIQ019751 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 8 Apr 2020 13:13:22 +0200 Received: from [139.22.119.141] ([139.22.119.141]) by mail2.sbs.de (8.15.2/8.15.2) with ESMTP id 038BDHA3003063; Wed, 8 Apr 2020 13:13:18 +0200 Subject: Re: [PATCH 4/4] x86,module: Detect CRn and DRn manipulation To: David Laight , Peter Zijlstra Cc: Steven Rostedt , "tglx@linutronix.de" , "linux-kernel@vger.kernel.org" , "hch@infradead.org" , "sean.j.christopherson@intel.com" , "mingo@redhat.com" , "bp@alien8.de" , "hpa@zytor.com" , "x86@kernel.org" , "kenny@panix.com" , "jeyu@kernel.org" , "rasmus.villemoes@prevas.dk" , "pbonzini@redhat.com" , "fenghua.yu@intel.com" , "xiaoyao.li@intel.com" , "nadav.amit@gmail.com" , "thellstrom@vmware.com" , "tony.luck@intel.com" , "gregkh@linuxfoundation.org" , "jannh@google.com" , "keescook@chromium.org" , "dcovelli@vmware.com" , "mhiramat@kernel.org" , Wolfgang Mauerer References: <20200407110236.930134290@infradead.org> <20200407111007.429362016@infradead.org> <20200407174824.5e97a597@gandalf.local.home> <137fe245-69f3-080e-5f2b-207cd218f199@siemens.com> <20200408085138.GQ20713@hirez.programming.kicks-ass.net> From: Jan Kiszka Message-ID: Date: Wed, 8 Apr 2020 13:13:17 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.6.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 08.04.20 11:25, David Laight wrote: > From: Jan Kiszka >> Sent: 08 April 2020 09:59 > ... >> At the risk of cutting our own branch off: That's not the firmware >> loader, it's ioremap with PAGE_KERNEL_EXEC. > > You could link the 'blob' into the .text part of a normal > kernel module and then load that. Sure, also possible. Was just more convenient so far to replace the hypervisor binary without having to recompile the driver module. Jan -- Siemens AG, Corporate Technology, CT RDA IOT SES-DE Corporate Competence Center Embedded Linux