From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pf1-f201.google.com (mail-pf1-f201.google.com [209.85.210.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 896F72248A4 for ; Fri, 25 Apr 2025 21:58:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1745618314; cv=none; b=k7CMVhF1SeIVBRP+VZcxFrzkzd39QFe/ROJtjR4WZjnElX5NgyTHv6spYhTY1PUGiLUaxbJIprM6WlZI04V6jZaGGlD45rFaIY3Q/0aPTcwx5Ip9gqv0YPwZ6y3dfsM36O1YQ2RTua1klwMBLVHOLAhLeOR+YaocCcv100Dgjw0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1745618314; c=relaxed/simple; bh=nlrjxlQBn4QDkl4nD9eRz10BhKpa3Zy+kDdUe23cZhI=; h=Date:In-Reply-To:Mime-Version:References:Message-ID:Subject:From: To:Cc:Content-Type; b=mhvleQtw8TDiwQtkgTrY7Fza+MVHt7UM6aNZ733QYdGmbY7VaUw46NBOjoI7KJVy6F66s3uQiUTmtiU6Wp9McxoGC3N6rE99iDsxOA7WlZ8SJd3D2kWFY4lg0bcSQlwssCuWc/FhYE0rIF9UxlBOA5tYFIFne4tytc/PkIvfe8c= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com; spf=pass smtp.mailfrom=flex--seanjc.bounces.google.com; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b=Jau6+wPG; arc=none smtp.client-ip=209.85.210.201 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=flex--seanjc.bounces.google.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="Jau6+wPG" Received: by mail-pf1-f201.google.com with SMTP id d2e1a72fcca58-7395d07a3dcso1898978b3a.3 for ; Fri, 25 Apr 2025 14:58:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1745618311; x=1746223111; darn=vger.kernel.org; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:from:to:cc:subject:date:message-id:reply-to; bh=OnjZAjlxaCS/Ix/Ff+GvicWfGPT6j7/1j45wJAOEfTQ=; b=Jau6+wPGT4SqRjiwE+SvV83RylhilF/2bKzx4vnQN5Iv2UGKvkVGCVMc8OyP1rYAaN uhYSl65ouAypxU5ac485LevEndumNKrc3Y23g1gx9mTCiCKBqFKHwhr8WjOgZj27eVcs AcFHgIteSvtIZ4X+4nroIppdDKeXEwA982ItKxm1eYGTCBWWfGD6lTmjI0lUAnYOiXUS anBNtBdgf31PTFv6QGIkGFvSaLB0o8A5QdoMgPps+y3inHD1dwy76Iuqw2XU3OkKNW6G IjvMp28xfQnosP0tWWogjaR3O5l+upOc8RXpbF2gItT9hqEzClE/0Ml2AM+qQk9+NsLt Ps4g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1745618311; x=1746223111; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=OnjZAjlxaCS/Ix/Ff+GvicWfGPT6j7/1j45wJAOEfTQ=; b=oRCpTXKDC7Ko8GRpps0cJ9h4GwWJqru/RAFXf1haoqGhUvMbl8KIzOWYOE67TQh5e/ pdVTvvSOc997gdHjn/DC4Po9uND6CtkR6MBAW+KcCMf7h0orI3UAb2aC+Aa5prHSV+k6 6nEZaf8VPbIifsCKtBrnDzPbfd1xABteSZxER9KzKLf5FtI7nl8nN8uFjcbNk5C1sXVt gLZmjzSj3e6hQdrmBG+hE4mRVrZQwW5ikAFpRYxEVJhtgNhtT3dQG2LfoPHCwRQTwHsD UomCTfFBbTRS2xEZTFQruxi5NtE9T/0KcXtMFOWLWp6PpvrwZ/OVsjQdteex76kKcQfP n7Bw== X-Forwarded-Encrypted: i=1; AJvYcCXs1bitvLb2fqSzx6g6WsRSzfeoIJuwoRVD1UTj7lLB9rS8auD+QIAKCiaWaNpJGZSeFuZ/fI9Y8iRe2rw=@vger.kernel.org X-Gm-Message-State: AOJu0Yza86UfpcgbbnMTlOLvnTwhOsvrDBDYES/t4ppwoTIzRUYZK/x2 cF+v4jOEYNDSju5r8neZ73ZtCARlRj1AiN5wAj95Iw/GvtKlS9SOvn9KkHe6YP6EkWpZwg6wzS8 6dQ== X-Google-Smtp-Source: AGHT+IHTe0CjQt3IK80UyV2xWXutllBPoyStfeBNWRtTh0faqqijRUQAJBPYR2ZInDA1PJzZPIWfkb5jzFk= X-Received: from pfbfj39.prod.google.com ([2002:a05:6a00:3a27:b0:736:6fb6:7fc]) (user=seanjc job=prod-delivery.src-stubby-dispatcher) by 2002:a05:6a00:4f95:b0:73e:2dcf:e44a with SMTP id d2e1a72fcca58-73fd896a1damr4826171b3a.16.1745618310833; Fri, 25 Apr 2025 14:58:30 -0700 (PDT) Date: Fri, 25 Apr 2025 14:58:29 -0700 In-Reply-To: Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 References: <0d7d6b9a-e7bd-4225-8f08-05bd9473a894@intel.com> Message-ID: Subject: Re: [PATCH v3 2/2] x86/sgx: Implement EUPDATESVN and opportunistically call it during first EPC page alloc From: Sean Christopherson To: Dave Hansen Cc: Elena Reshetova , "jarkko@kernel.org" , Kai Huang , "linux-sgx@vger.kernel.org" , Vincent Scarlata , "x86@kernel.org" , Vishal Annapurve , Chong Cai , Asit K Mallick , Erdem Aktas , "linux-kernel@vger.kernel.org" , "bondarn@google.com" , "dionnaglaze@google.com" , Scott Raynor Content-Type: text/plain; charset="us-ascii" On Fri, Apr 25, 2025, Dave Hansen wrote: > On 4/25/25 14:04, Sean Christopherson wrote: > > Userspace is going to be waiting on ->release() no matter what. > > Unless it isn't even involved and it happens automatically. With my Google hat on: no thanks. Customer: Hey Google, why haven't you applied security update XYZ? Support: We have. Customer: The SVN in my attestation report says otherwise. Support: Let me check with engineering. TDX team: We applied the ucode update provided by platforms. Platforms, what's up? Platforms: That's the right ucode patch. TDX team: Hmm, the kernel is supposed to update the SVN. Let's bug the kernel team. Me: Have you guaranteed there are no active enclaves after the update? TDX team: Yep. Me: Me: Our theory is that enclaves haven't been fully destroyed when the hold is lifted. Try adding a delay? Maybe 1s? TDX team: That helped, but we still have intermittent failures. Me: How about 5 seconds? TDX team: Great, that worked! Support: Sorry for the delay, we're rolling out a fix, you should see the correct SVN shortly.