Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp649775pxk; Thu, 17 Sep 2020 12:18:15 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxwvkKONSa6n2hnn/VHzqEiPg4uvpc8TYlxzUOANYN6OOfPW1v0OqG0u9URPMCF5vdrL2iy X-Received: by 2002:a17:906:4a19:: with SMTP id w25mr31104447eju.199.1600370295070; Thu, 17 Sep 2020 12:18:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600370295; cv=none; d=google.com; s=arc-20160816; b=nL5I6g+S2RM2R4PF3lSK4u4RQBz9J0FjoXNx1xauWL1Q8zw26zsAVFsLai0ctfQOww M2yOQZUvjlsSuGt7Xk1DnUTpwTLyZdRN+yS4ljoFgmgfbXJAebl7l6rKHB5cXLegyzOh 3Uxb92nAHP44gVHmNH+0GodMiuBwbSRXiZDTRYC2uiQ/Rmw9jpUK3liDavbsBlfaxnpk SUp8+fI9fWyjedezO+oe4bndAxn/tu7IOhPUiG0Hg/nrOyTLgh683Dsm2pu8kh+YmbJB 8MwzyiZ2DRLcc31pGjh3bGDk9m0NMn6mM9ySwGMAEZkHZ6lMfJLJGUlNkF5nQcdUQJLl tz0g== 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=A84IxiK3D0zbWZulW+NkYTq2jOtJKkSYwYoy45zDKZQ=; b=FDH7IvbuWy5wNDX8XBXW51ANvG2pkAnK1ZOOZDDLCz3e4gPlKmhxW3PYEoNk9Q59Dl kzqG7OUAJPzSceinMVQpPSrRGbLQjqZmtI6vcYwnVzeTx/qm+JoigwIVvI/tO+GltmrA s7vS23K/RZhpSTUt5Wv+WCbriCwTdMnpNC2JIL2y+2Q3lYMHPnE2orC9E5dbaIzxPKst drwq0WfX7CFSFMZuP2qdBU/9voTYQGmGdZKNUtlg9m1zWuzUE0itOr4CfWsbYsWBbU+m 2YAMWmwhNQHn7B46g17bbjslCVkn6fK/PAO3u7xi14jjTP04Y+OvOs1Rfw8exMQYExhl bEqw== 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 ox7si594176ejb.336.2020.09.17.12.17.51; Thu, 17 Sep 2020 12:18:15 -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 S1728406AbgIQQSr (ORCPT + 99 others); Thu, 17 Sep 2020 12:18:47 -0400 Received: from mga06.intel.com ([134.134.136.31]:12992 "EHLO mga06.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728364AbgIQQRW (ORCPT ); Thu, 17 Sep 2020 12:17:22 -0400 IronPort-SDR: RTUREFFOF6tKv20Wiws4Mf1zOM5WbFq4IwMfGcJCJA+lIgUi4jzMA2h4hXfqafJgGjDuTfmvDu Xl9YVQxBUVEQ== X-IronPort-AV: E=McAfee;i="6000,8403,9747"; a="221281505" X-IronPort-AV: E=Sophos;i="5.77,271,1596524400"; d="scan'208";a="221281505" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga004.jf.intel.com ([10.7.209.38]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 17 Sep 2020 09:03:39 -0700 IronPort-SDR: 4m382i1pxeXdUEc7xOvEVVYM45AdPaqhT5CI5uRaZ0eh5kk4YVsRF/Ip2NnOUn/C52nQw1FEb0 iZsqxOtAkh1w== X-IronPort-AV: E=Sophos;i="5.77,271,1596524400"; d="scan'208";a="452367508" Received: from sdompke-mobl.ger.corp.intel.com (HELO localhost) ([10.249.45.123]) by orsmga004-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 17 Sep 2020 09:03:25 -0700 Date: Thu, 17 Sep 2020 19:03:22 +0300 From: Jarkko Sakkinen To: Haitao Huang Cc: x86@kernel.org, linux-sgx@vger.kernel.org, linux-kernel@vger.kernel.org, Jethro Beekman , Chunyang Hui , Jordan Hand , Nathaniel McCallum , Seth Moore , Darren Kenny , Sean Christopherson , Suresh Siddha , akpm@linux-foundation.org, andriy.shevchenko@linux.intel.com, asapek@google.com, bp@alien8.de, 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, puiterwijk@redhat.com, rientjes@google.com, tglx@linutronix.de, yaozhangx@google.com Subject: Re: [PATCH v38 13/24] x86/sgx: Add SGX_IOC_ENCLAVE_ADD_PAGES Message-ID: <20200917160322.GG8530@linux.intel.com> References: <20200915110522.893152-1-jarkko.sakkinen@linux.intel.com> <20200915110522.893152-14-jarkko.sakkinen@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > > + for (c = 0 ; c < addp.length; c += PAGE_SIZE) { > > + if (signal_pending(current)) { > > + if (!c) > > + ret = -EINTR; > > + > > + break; > > + } > > + > > Return -ERESTARTSYS so that kernel can restart this IOC when SA_RESTART is > set? Yes, this is quite obvious. I will change it, thank you. /Jarkko