Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp688515pxk; Thu, 24 Sep 2020 16:16:00 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw9XhWIZaBg5mghivBMkF6Qtstgt5SmJhx3pcQCut1PVWDETeV0Slyy0rTcqzf5kInpyd96 X-Received: by 2002:a17:906:858a:: with SMTP id v10mr944239ejx.61.1600989360675; Thu, 24 Sep 2020 16:16:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600989360; cv=none; d=google.com; s=arc-20160816; b=LzrfofcajjfR2R7vgQh42D/o2fqgmxB05qLigtUIN1drzv3zgwki8/7s78X4BJ/CkA q6aXO1O060n6/2l1zGCTU6ONkomifYtPhC1NoYOeWY0DXkVwc6V9WrcuiYWXHr8ED0hW 2qxRExoc97Tz6yyI7y+ApWLRpYlpdNps6AFcoX91UTDMxzBz0JYAB0zRB9TxjK29eCmT DPfiy0tq6RaeZZxY3BOZM3oEzNPFy6Ba1RoLAXcKKywMu+VBsiCx4b8alaO31EMjJAYS n0/viMlJvRogcvcDS+yl3RrDvNxXkFTXrZOmdcREmiOznjFZscnC2FUO4i2BRkldMoeA ssBQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:organization:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :ironport-sdr:ironport-sdr; bh=WY5YvsP25P81kUxIPnngNIkyj2/OXtP8IMvHaPkZKnI=; b=GGDcnKVT5y24jfDe2X1XyJOdRUJ4NsSmj7cqXTiRc4WlerAok8Ok7swIA5GbE7hNDH MovPdddh7aJS7nA5urDCKp88xKXU/TRiwhXZcuXasWvLY7vwCJaBySBZgREkww66x/Nt knyIxGfU/fTyfhLzGHfF2UBbQ5hN4XIBF97rcPCvZZzaaxwzf5mfoNjBTvq8PvtBt96Z 8lfHmg83EA45L7M3juxBh3QQ+Mmmo6+jC3WeehMd3RBrZDCNP5vjZ8iP2aqsXAU0y1Y1 hP/I8cPYBfRdlXPwuZM5bKDpHiSL5N6/kY1EyFglIXVgkhZG9RVuShKo1y7KQ0fjy5Bv r5lA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g20si587138edv.420.2020.09.24.16.15.37; Thu, 24 Sep 2020 16:16:00 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726808AbgIXXL3 (ORCPT + 99 others); Thu, 24 Sep 2020 19:11:29 -0400 Received: from mga17.intel.com ([192.55.52.151]:43845 "EHLO mga17.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726655AbgIXXL3 (ORCPT ); Thu, 24 Sep 2020 19:11:29 -0400 IronPort-SDR: 9Hc2pzNECPv5G4I4WAX65G5tO+9UlmZ4HaNrWtbQwd0RxOiSQNNrQ1Hwh+JkAHL5k87BMerV4l 1x9tZQcQb1oQ== X-IronPort-AV: E=McAfee;i="6000,8403,9754"; a="141385314" X-IronPort-AV: E=Sophos;i="5.77,299,1596524400"; d="scan'208";a="141385314" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga005.jf.intel.com ([10.7.209.41]) by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 24 Sep 2020 16:11:17 -0700 IronPort-SDR: nDslaICw6OZoGWsFRlqPXAUKCLSwtpovhnuBBMu184OuC61vJMzD3zzeHyIMt+OhfFhj63rwRW ZBRKsIhYdScA== X-IronPort-AV: E=Sophos;i="5.77,299,1596524400"; d="scan'208";a="487166697" Received: from nspindel-mobl.ger.corp.intel.com (HELO localhost) ([10.252.44.90]) by orsmga005-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 24 Sep 2020 16:11:11 -0700 Date: Fri, 25 Sep 2020 02:11:08 +0300 From: Jarkko Sakkinen To: Borislav Petkov Cc: x86@kernel.org, linux-sgx@vger.kernel.org, linux-kernel@vger.kernel.org, Sean Christopherson , Andy Lutomirski , Jethro Beekman , akpm@linux-foundation.org, andriy.shevchenko@linux.intel.com, asapek@google.com, cedric.xing@intel.com, chenalexchen@google.com, conradparker@google.com, cyhanish@google.com, dave.hansen@intel.com, haitao.huang@intel.com, josh@joshtriplett.org, kai.huang@intel.com, kai.svahn@intel.com, kmoy@google.com, ludloff@google.com, luto@kernel.org, nhorman@redhat.com, npmccallum@redhat.com, puiterwijk@redhat.com, rientjes@google.com, tglx@linutronix.de, yaozhangx@google.com Subject: Re: [PATCH v38 20/24] x86/traps: Attempt to fixup exceptions in vDSO before signaling Message-ID: <20200924231059.GG119995@linux.intel.com> References: <20200915112842.897265-1-jarkko.sakkinen@linux.intel.com> <20200915112842.897265-21-jarkko.sakkinen@linux.intel.com> <20200924163128.GM5030@zn.tnic> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200924163128.GM5030@zn.tnic> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Sep 24, 2020 at 06:31:28PM +0200, Borislav Petkov wrote: > On Tue, Sep 15, 2020 at 02:28:38PM +0300, Jarkko Sakkinen wrote: > > diff --git a/arch/x86/mm/fault.c b/arch/x86/mm/fault.c > > index 9e5ec861aba0..ebe290a68c36 100644 > > --- a/arch/x86/mm/fault.c > > +++ b/arch/x86/mm/fault.c > > @@ -30,6 +30,7 @@ > > #include /* exception stack */ > > #include /* VMALLOC_START, ... */ > > #include /* kvm_handle_async_pf */ > > +#include /* fixup_vdso_exception() */ > > > > #define CREATE_TRACE_POINTS > > #include > > @@ -775,6 +776,10 @@ __bad_area_nosemaphore(struct pt_regs *regs, unsigned long error_code, > > > > sanitize_error_code(address, &error_code); > > > > + if (fixup_vdso_exception(regs, X86_TRAP_PF, error_code, > > + address)) > > No need to break that line. Thanks, fixed. > -- > Regards/Gruss, > Boris. > > https://people.kernel.org/tglx/notes-about-netiquette /Jarkko