Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp55706imm; Tue, 25 Sep 2018 15:54:26 -0700 (PDT) X-Google-Smtp-Source: ACcGV626RRIHJIPRwrpqNYDvuQm/7KJsapH72o8fu/hbGevstAK3RsmbDTOwPQyQjoriFHPIRB6g X-Received: by 2002:a63:754a:: with SMTP id f10-v6mr2910680pgn.137.1537916066082; Tue, 25 Sep 2018 15:54:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537916066; cv=none; d=google.com; s=arc-20160816; b=IwZ8KyqfnULJE5Q1cP7tTNLYHGuRZ4f9vzAeeHN25oNTrWEL8drgS9Bn0TGqmKmnYM KuqZQg9uyupuvjncq4GMGg0fkWN/OZ85T4Pp+JtQVNVXOMx3K08uAEjsxNEtkRc1bfIu 87MCtPbrevN/psTjcGEi2PmV/AeIxhIBTPpakq/r/h7un+ZJeYKjTbAAE5jdiQXYaaag RZ+XUZq096Zl8b/E+iQdBqmtw0lC35cCqhFwdvZo9XuHKvqgkr8zB8CfnFLIbbHBDO/Z bS6iOwoFVWuIxVWzwsqjArk5h64cs6jOOsQM5JR8fFK57prW87g/qaauXIHierZLSXMo tJuQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=qfY904h5QTXEaGYDCR/OOiXyFTQ8AJRouKjHh/zUUt0=; b=K7r88Ax1+Xn/8L/Hwn7CC6YmT8sDryzHYvl9mmcPEUlaUiHOuym92aPYHgFEIDeC2l JkhGH6W580VJiqUmOG9NEr7XEzLHgiK+SsezK/vMKkYQKQAiBMcJH/z+pXNxeFCqVoYe t5PAus9DaJJD7iiupei+5UjfCh7fc8CbyKpMT2UrxG5xmaSRxRjrBeUUbFSuLBj/yuOd hJsqd2ZYs+YFbdYojMIYWPhGMh+2IO5/SSpqyuFx7DUSKTbqdKamYQbToc9uK17nWywL t/FiCkPboOa+qKMARCNvMxMI7NQHkmGVBt3FQ/2qtJsK1SnT/vB9k43iSope1Cs1AXNm 5gQw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=GQ1GKRQV; 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t66-v6si3399747pgt.181.2018.09.25.15.54.09; Tue, 25 Sep 2018 15:54:26 -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=@kernel.org header.s=default header.b=GQ1GKRQV; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726253AbeIZFDv (ORCPT + 99 others); Wed, 26 Sep 2018 01:03:51 -0400 Received: from mail.kernel.org ([198.145.29.99]:40568 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725999AbeIZFDv (ORCPT ); Wed, 26 Sep 2018 01:03:51 -0400 Received: from mail-wr1-f43.google.com (mail-wr1-f43.google.com [209.85.221.43]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 5181C2089D for ; Tue, 25 Sep 2018 22:54:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1537916042; bh=/n7+qciOD4NhE9DYgfSYN15DDayjfU8GY9wPFHnKQmQ=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=GQ1GKRQVlGed7oB+LIHXYCIQ2WVSvWjF8/q8Vi/8Iwv4LELbXiqAd3SCJ8qGw9vxs mqMjNmZXpNHpiNRutey9SPi6nA2ikCjOfu8uCLHxx8fLQe3QXpvKuN3HX0XzzFsP3o 9mwBR4hdryK/QZ97jwUm9adXRnDSNzr2icM8XKEg= Received: by mail-wr1-f43.google.com with SMTP id j15-v6so20890667wrt.8 for ; Tue, 25 Sep 2018 15:54:02 -0700 (PDT) X-Gm-Message-State: ABuFfoiYOMdWbjvP+hMm41FTrcUwKn9GLQStr0bdaJY/uizCNxWMNQm6 FfnLVC1kBrijWAgIS1/NB//U087vkR+JJs1i6p7VPA== X-Received: by 2002:adf:c98d:: with SMTP id f13-v6mr2782183wrh.148.1537916040736; Tue, 25 Sep 2018 15:54:00 -0700 (PDT) MIME-Version: 1.0 References: <20180925130845.9962-1-jarkko.sakkinen@linux.intel.com> <20180925130845.9962-10-jarkko.sakkinen@linux.intel.com> In-Reply-To: <20180925130845.9962-10-jarkko.sakkinen@linux.intel.com> From: Andy Lutomirski Date: Tue, 25 Sep 2018 15:53:48 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v14 09/19] x86/mm: x86/sgx: Signal SEGV_SGXERR for #PFs w/ PF_SGX To: Jarkko Sakkinen Cc: X86 ML , Platform Driver , Dave Hansen , "Christopherson, Sean J" , nhorman@redhat.com, npmccallum@redhat.com, "Ayoun, Serge" , shay.katz-zamir@intel.com, linux-sgx@vger.kernel.org, Andy Shevchenko , Dave Hansen , Andrew Lutomirski , Peter Zijlstra , Thomas Gleixner , Ingo Molnar , Borislav Petkov , "H. Peter Anvin" , LKML Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Minor nit: On Tue, Sep 25, 2018 at 6:12 AM Jarkko Sakkinen wrote: > > From: Sean Christopherson > > by (c) as the kernel doesn't really have any other reasonable option, > e.g. we could kill the task or panic, but neither is warranted. Not killing the task is quite nice, but... > + /* > + * Access is blocked by the Enclave Page Cache Map (EPCM), > + * i.e. the access is allowed by the PTE but not the EPCM. > + * This usually happens when the EPCM is yanked out from > + * under us, e.g. by hardware after a suspend/resume cycle. > + * In any case, there is nothing that can be done by the > + * kernel to resolve the fault (short of killing the task). Maybe s/killing the task/sending a signal/? --Andy