Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp827293pxf; Thu, 18 Mar 2021 12:30:42 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzhZ36di8ldgUMWMNWWQPpTJ+xsGNY1OmJuOwKpH9u2KR5EmENBFXPUDCKPZPm2QlaeakBg X-Received: by 2002:aa7:d74b:: with SMTP id a11mr5565642eds.92.1616095842599; Thu, 18 Mar 2021 12:30:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1616095842; cv=none; d=google.com; s=arc-20160816; b=O3oSU/3M2HPoOQpjujo30NrNMZW4yJpQKaFqDW2fsY/Cq33b0jJFS1ctbO6w8xDGxc TZPuIh0BD37H5onB4pJjnDGbjBFjjUMzmbXzRjoOQdSw/D2JeWhKvfNxuJEvoCFStMMf aWOVjtOd9pZCB06Mc1SrJTtYP82KbUBRjTeRDvHfHpaaHmaCkvEYATWWgcPxBji912Vl Rf7fy+B54XU8Nna0oCp6U8D/tWwK6QBPDaqj85mAA9jCFDUNFbb0mQam1gkS//iNfq5W fP0+3cdRI5XE5XJQNcbKb4BpsiIn5DeP+l54dCyB4HwdCgnmwG/TdPGTOi/1g5zo9HOY z9kQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=igtttMjSvszhp9EC1w/4N+SWYMwNwJVarfR6OQouHgU=; b=mwuCyEw4SqEzXj4GO0xIIjX2yNA4ZUgtPqPvAPqN2cDC9C/1El3kCuZdrtyEJxLYn6 Qh50EHJ2NvzilcpWwcW0hfRFaWVY3omVBo87xlow/nUCYf7dWI923VfzEiGX9gFuIWPz fIloFec0JQBeEi9PL37lPIQAWSjQdktuHAYpUw3J8zhsRGnNqaNf+DvFRs82fSRnBim5 Du4GjODsDA7NYtUU57aO7uqdct0aRCq5qQSq/CjcPR3ecrahVFcUUz7Io03JQaGxNE2x jQh6uGNTlPkAFjIS0dOLGHMG76g0IbYAGebHc+fnLAxUsQc9lGzuBsZFlgP6quEFA6be KddQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=B+6amfpj; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id dn6si2413454ejc.637.2021.03.18.12.30.20; Thu, 18 Mar 2021 12:30:42 -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; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=B+6amfpj; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232858AbhCRT25 (ORCPT + 99 others); Thu, 18 Mar 2021 15:28:57 -0400 Received: from mail.kernel.org ([198.145.29.99]:52736 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232884AbhCRT2o (ORCPT ); Thu, 18 Mar 2021 15:28:44 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 9B72D64DBA; Thu, 18 Mar 2021 19:28:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1616095724; bh=n1alF7UDpJZCRbcWoL3f8LioB2LNSnev57xiFM+Db4A=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=B+6amfpjqeECJGjY6sIRMgsL4Yw8bQe5EECAe+3iskbQaa4k+qQhAwtduzsl0M/Vf Is0Mj+50uiaynofFjHMmg3qWt/ExWuIwF5k6iqOkb9W1GxFSqkn2K+VCfGv3SW7SeM HsCkcWMLsfI5qvQ2tn9gu3cKYKDXr9XvKS2kUSou/bT9iRK+Z4b8j03j9p7/YUly3O 0RuypCpYnE3g+RMAEHzesKsCQMrPZIt64ev+COxQjTbwvJXNZyJOoK9GvNsDOkQVFL dZDPweiViPXVZUvlXU2sxMaNOIV7YjsBjme2KKQ8Mt2wZD6jRXtaNsmMxOca2CI0wT qIGj8sY81INuA== Date: Thu, 18 Mar 2021 21:28:17 +0200 From: Jarkko Sakkinen To: Borislav Petkov Cc: Dave Hansen , Jarkko Sakkinen , linux-sgx@vger.kernel.org, Dave Hansen , Thomas Gleixner , Ingo Molnar , x86@kernel.org, "H. Peter Anvin" , linux-kernel@vger.kernel.org Subject: Re: [PATCH 1/2] x86/sgx: Replace section->init_laundry_list with sgx_dirty_page_list Message-ID: References: <20210317235332.362001-1-jarkko.sakkinen@intel.com> <20210318174032.GI19570@zn.tnic> <1269283f-ddad-9049-dcf5-818a6ecbbc53@intel.com> <20210318190138.GJ19570@zn.tnic> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210318190138.GJ19570@zn.tnic> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Mar 18, 2021 at 08:01:38PM +0100, Borislav Petkov wrote: > On Thu, Mar 18, 2021 at 11:34:10AM -0700, Dave Hansen wrote: > > I usually get that after I reboot. I have to do this: > > > > chmod 755 /dev/sgx_enclave > > mount -o remount,exec /dev > > Yap, that did it: > > 0x0000000000000000 0x0000000000002000 0x03 > 0x0000000000002000 0x0000000000001000 0x05 > 0x0000000000003000 0x0000000000003000 0x03 > SUCCESS > > > BTW, that *IS* going to get tripped over all the time. > > Yap, and I saw it last time and we talked about it and I forgot again. > Conveniently. > > > The selftest needs a better error message. I'll send a patch. > > Please do. Yeah, would make sense. Not longer than two or three weeks ago I wondered what is wrong with my system, up until I realized that I forgot to remount :-) Thanks for taking the patches. > Thx. /Jarkko