From patchwork Mon Aug 19 15:25:39 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jarkko Sakkinen X-Patchwork-Id: 11101279 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 4CD15174A for ; Mon, 19 Aug 2019 15:25:51 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 3B1CF287C3 for ; Mon, 19 Aug 2019 15:25:51 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 2FAE5287EA; Mon, 19 Aug 2019 15:25:51 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.9 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A6E30287C3 for ; Mon, 19 Aug 2019 15:25:49 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726373AbfHSPZt (ORCPT ); Mon, 19 Aug 2019 11:25:49 -0400 Received: from mga09.intel.com ([134.134.136.24]:46721 "EHLO mga09.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726211AbfHSPZt (ORCPT ); Mon, 19 Aug 2019 11:25:49 -0400 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga003.jf.intel.com ([10.7.209.27]) by orsmga102.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 19 Aug 2019 08:25:48 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.64,405,1559545200"; d="scan'208";a="180393006" Received: from jsakkine-mobl1.tm.intel.com (HELO localhost) ([10.237.50.125]) by orsmga003.jf.intel.com with ESMTP; 19 Aug 2019 08:25:45 -0700 From: Jarkko Sakkinen To: linux-sgx@vger.kernel.org Cc: Jarkko Sakkinen , Sean Christopherson , Shay Katz-zamir , Serge Ayoun Subject: [PATCH 0/5] x86/sgx: Improve permission handing Date: Mon, 19 Aug 2019 18:25:39 +0300 Message-Id: <20190819152544.7296-1-jarkko.sakkinen@linux.intel.com> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Sender: linux-sgx-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-sgx@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Refine the naming, documentation and validation of the page permissions. silent behaviour to occur. Cc: Sean Christopherson Cc: Shay Katz-zamir Cc: Serge Ayoun Jarkko Sakkinen (5): x86/sgx: Document permission handling better x86/sgx: Use memchr_inv() in sgx_validate_secinfo() x86/sgx: Make sgx_validate_secinfo() more readable x86/sgx: Validate TCS permssions in sgx_validate_secinfo() x86/sgx: Rename vm_prot_bits as max_vm_flags arch/x86/kernel/cpu/sgx/driver/ioctl.c | 36 +++++++++++++++++++------- arch/x86/kernel/cpu/sgx/encl.c | 14 +++++----- arch/x86/kernel/cpu/sgx/encl.h | 4 +-- 3 files changed, 35 insertions(+), 19 deletions(-)