Received: by 2002:a05:6358:45e:b0:b5:b6eb:e1f9 with SMTP id 30csp846757rwe; Wed, 31 Aug 2022 12:06:24 -0700 (PDT) X-Google-Smtp-Source: AA6agR4+6yaDqpvkXsxC5hHLZnJ3sJot4/vid/FUgroEXDO9twaiVBH6+RspM2GRBGfjXrvpq39U X-Received: by 2002:a17:902:8d8a:b0:16f:21fb:b97a with SMTP id v10-20020a1709028d8a00b0016f21fbb97amr26914814plo.160.1661972783935; Wed, 31 Aug 2022 12:06:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661972783; cv=none; d=google.com; s=arc-20160816; b=aGyq9KUtWraQbk+vwZ22umOxr619MlGQ7+S0XFA7blSjpxB2xQ6ox5fP49H45CBiLe 6yTK6J47Uf89zZSlq43lqiCkV0NRc9aOmy1pn0OSBw3Fe4Y7eC3gI6QDiw8g1JvopA+0 Q2K4Qr+R7MbHT8Vpl2ZZw7QkE8hcJcw+fjhA6Y92kOwPBXpRhnHaSfWFSwreOzenQac+ DfCpvOPwx8LPnPjo7CrBtikgxceOM7DXeopf1FQXa7bHJ1VDa+Ji88pf/1PDQj57ROPD fyXG/haRGShsLGHrxo0xttokN4dv3+zvOHHeKhZ0+HBzt40buon0Hri/HQSxCNllOKZU PbJw== 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=bsSh+V97gPUYt/zscJXxolTtfgc5W+dmO+/9G2So86A=; b=TRDm+bL5KML9AV0k2DeM0hIVciwg6r/HvK8YLrjC0FTQ5k9ObQbyQJGfsSxI1tHk7H nZa5aicZmfSzQ5el7niM3IwV+43cCyMpJ8/ILJU/vvss2SglO5JhF78+HJHUIYnoeew9 ayVRB1mIOr3u5OorSd9m2VYDkLaxRK2ZQyG++2lb7w8XUNND8x5WD1VbvE7ibARFY0bv s2ijooSZnbRbk1ovJbPN2eU5V9+nt9eATQwTJokyOSjPtuWw8zF4iWhaxM2Z392oH+j+ FQMWkx1i9J8LtGs+VRhQmCzW5ftTqv+mUNixMfJbtxDW/DqDI63VNU2UXREKqQrL6Ctn FVNQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=YfRKBl2t; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id n17-20020a170902f61100b0017293d9ea92si15035976plg.41.2022.08.31.12.06.11; Wed, 31 Aug 2022 12:06:23 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=YfRKBl2t; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 S233120AbiHaSow (ORCPT + 99 others); Wed, 31 Aug 2022 14:44:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46616 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233033AbiHaSof (ORCPT ); Wed, 31 Aug 2022 14:44:35 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 53B43BD5; Wed, 31 Aug 2022 11:44:34 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id D994160E89; Wed, 31 Aug 2022 18:44:33 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id B8099C433D6; Wed, 31 Aug 2022 18:44:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1661971473; bh=bXVzGMvvGTEaLDHMeK2hMUd2osC7vq1ST9RgLI8qV5U=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=YfRKBl2tseu5V+P2/pvJuHp+UPI5ey31PwfQxSywuqpZGSi40WnEajFVRczC8P4zN gXoHdizqUUk1IuSeLKKOVuoXEoRthT8H01oQVuH4xVglQI7HwDTHFzsYPTxXQjQMGi 1PTmzW4XFF/SBWsBrCRwuVo+MD5m2p8+2LMtVKtNg67gYmBDOID2KOyVaRNx0epJi0 ASEz6LAyypQBHuV7oPBehmEOu+KvuFSTaL4Miw428vBKGXp0x/uBpH63okNpvCFrpN b2+eMsGdVpCURl7biAfJIGMDRkhxdsoY+wBfIfyF/wbs6cm0jvbKxSs5PvMIHt3MA1 VfHplgSNet7ww== Date: Wed, 31 Aug 2022 21:44:28 +0300 From: "jarkko@kernel.org" To: Dave Hansen Cc: Haitao Huang , "Huang, Kai" , "pmenzel@molgen.mpg.de" , "linux-sgx@vger.kernel.org" , "x86@kernel.org" , "dave.hansen@linux.intel.com" , "Dhanraj, Vijay" , "Chatre, Reinette" , "mingo@redhat.com" , "tglx@linutronix.de" , "bp@alien8.de" , "hpa@zytor.com" , "linux-kernel@vger.kernel.org" Subject: Re: [PATCH 1/6] x86/sgx: Do not consider unsanitized pages an error Message-ID: References: <1b3308a364317d36ad41961ea9cfee24aa122f02.camel@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Aug 31, 2022 at 11:35:10AM -0700, Dave Hansen wrote: > Jarkko, Kai and Haitao, > > Can you three please start trimming your replies? You don't need to and > should not quote the entirety of your messages every time you reply. > > On 8/31/22 11:28, jarkko@kernel.org wrote: > >> Will it cause racing if we expose dev nodes to user space before > >> ksgxd is started and sensitization done? > > I'll to explain this. > > > > So the point is to fix the issue at hand, and fix it locally. > > > > Changing initialization order is simply out of context. It's > > not really an argument for or against changing it > > > > We are fixing sanitization here, and only that with zero > > side-effects to any other semantics. > > > > It's dictated by the development process [*] but more > > importantly it's also just plain common sense. > > Kai, I think your suggestion is reasonable. You make a good point about > not needing ksgxd for vepc. > > *But*, I think it's a bit too much for a bugfix that's headed to > -stable. I'm concerned that it will have unintended side effects, > *especially* when there's a working, tested alternative. Yeah, I also actually *do* agree that the suggestions could be reasonable. BR, Jarkko