Received: by 2002:a05:7412:b10a:b0:f3:1519:9f41 with SMTP id az10csp1281325rdb; Fri, 1 Dec 2023 11:39:23 -0800 (PST) X-Google-Smtp-Source: AGHT+IHWftF68f+aPjMmRlAdnGaYr9gJ4x5dKeFXcjPoUKDitSmtreiyg5ivXK42RgKpXBi/YYGl X-Received: by 2002:a05:6a20:7d8e:b0:18b:cc3a:cf24 with SMTP id v14-20020a056a207d8e00b0018bcc3acf24mr110147pzj.9.1701459559997; Fri, 01 Dec 2023 11:39:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701459559; cv=none; d=google.com; s=arc-20160816; b=X2H4lZvC9rzElAzIBb4xY1a+NE63iot+0lwBkNFDAERKdEQrK3niU+c4Ug97LLuFRf N4gjakyzYJ6+BKW0kAp29Wag7KEVObdrbtpy3lcl2/il7LoDOceMeFWLaE3mSGFZjLmr RWhGoj0dHVAXHNC0Q7RXxk93zAeUy/moF1LZ3+fv6h/+ambe8cACYXrrODsZWGJi+vBG nv23EsChjAKQRLfAIgA+3mvN7A+BhHXLVkyHFrOb/nAe9R+HMipRdm49eF57yrmrNYa9 us07ryhK7QXmus3WJpqv7moHRcZVrS1slJor3HR06yEzotKpHkK/7SGSJBTf2N/3oe1H c95w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:autocrypt :from:references:cc:to:content-language:subject:user-agent :mime-version:date:message-id:dkim-signature; bh=PI2nUm5BWEnyJT7IRHVWhCfPZiY09UKb4l9jvq8BAic=; fh=s8mR8L+RqktInGh6DUTt63SBG9clcbhKWdjKc4O5ivA=; b=PKIAU3AgSMVFkw4Br20d2rvHjONNMID4mrdrBBpAXvUJZj846Pdq5MsuvbPOhg0vdB B8Sdk3UmFEJqguCMtqYhu5+hbxgHehAGz/96hVUSvPdQHai9mKionesQCPGzI89/Xybl dh/3Jx3Mx+XBAYzj10b4pSx9WD7syYUOyzdYHvL//bZdVESPOogrK1qAvBb4snRoil6M 7SnpBBWUWRuBwAGwN+2jhuUHOTqpM3OlSboLLO73Ga6r2udS4mJoKhzeTsk8vIA/D62T HCy4DTXvFfLP1nitdUzSpcWlV4i5E6uu6Opz6adKEyRdUJs6N5Ypn4sDPIVK8VtLvxHG Z/Sw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@citrix.com header.s=google header.b=ozLp1Sva; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=citrix.com Return-Path: Received: from morse.vger.email (morse.vger.email. [2620:137:e000::3:1]) by mx.google.com with ESMTPS id q26-20020a63f95a000000b005be3c3748c7si3581795pgk.38.2023.12.01.11.39.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 01 Dec 2023 11:39:19 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) client-ip=2620:137:e000::3:1; Authentication-Results: mx.google.com; dkim=pass header.i=@citrix.com header.s=google header.b=ozLp1Sva; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=citrix.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by morse.vger.email (Postfix) with ESMTP id D6564837B886; Fri, 1 Dec 2023 11:39:16 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at morse.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230340AbjLATjE (ORCPT + 99 others); Fri, 1 Dec 2023 14:39:04 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42310 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230052AbjLATjD (ORCPT ); Fri, 1 Dec 2023 14:39:03 -0500 Received: from mail-wm1-x32f.google.com (mail-wm1-x32f.google.com [IPv6:2a00:1450:4864:20::32f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EEF6410E2 for ; Fri, 1 Dec 2023 11:39:07 -0800 (PST) Received: by mail-wm1-x32f.google.com with SMTP id 5b1f17b1804b1-40b427507b7so19014695e9.2 for ; Fri, 01 Dec 2023 11:39:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=citrix.com; s=google; t=1701459546; x=1702064346; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:autocrypt:from:references:cc :to:content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=PI2nUm5BWEnyJT7IRHVWhCfPZiY09UKb4l9jvq8BAic=; b=ozLp1Sva2xWFHjgunuUhzCPzAjlvMhD+waBYWdjNSLiv71ruXFUDoFNMjiDzd8dphQ rIm2O0sWrJFyoU0D1+UTaqrmsyePPxnPkz6JcSu/Ix2vr0s/pp3s0QNo6+cvjAZZv39V 26Ugr5LET3BFVz1v5+Dk7j7s1GgIpg6NYqGOA= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701459546; x=1702064346; h=content-transfer-encoding:in-reply-to:autocrypt:from:references:cc :to:content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=PI2nUm5BWEnyJT7IRHVWhCfPZiY09UKb4l9jvq8BAic=; b=HGiA4MSYMGemMIW0uQzeK2YcLfo/9Q2IEv7r/S1RT+OSlOhowbHHTOfsfJ2+PWpvzj Qhj25M1oh2nwmDYMZlgU/vEL7C2S42DNRo1iT6he6r+lV9scrQ5cEL8KIIR43r8DMAEy Edc+StTNM+levhFDcX8ktxyKfFgie3IwgPhlTVqcuwQuCFNO+jYHDd+FjcjMj2FdTnfy HmsmeLIhKu+JTgmSmVknD512fXdNwOEpn7Z1S3xK39hBzlgTytf7m7uTvMbyzpQtJ8Fq njpiToxUPay69GPSx2cEYNySBFikJk8YiOr9ggOiz3an32Ss3lfJ/zqFVlAE+5ZF+x3W 3NVw== X-Gm-Message-State: AOJu0YwcYqoCfgDpw3eqOT8CWbTnfF4vc/yTDughedvvnXon+Mz+KEVM yfK7EQdV8nH3d/OsXu6fagxgCQ== X-Received: by 2002:a05:600c:4928:b0:40b:5e59:b7a7 with SMTP id f40-20020a05600c492800b0040b5e59b7a7mr573882wmp.132.1701459546277; Fri, 01 Dec 2023 11:39:06 -0800 (PST) Received: from [10.80.67.30] (default-46-102-197-194.interdsl.co.uk. [46.102.197.194]) by smtp.gmail.com with ESMTPSA id v11-20020a05600c444b00b003fefaf299b6sm6276798wmn.38.2023.12.01.11.39.05 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 01 Dec 2023 11:39:06 -0800 (PST) Message-ID: Date: Fri, 1 Dec 2023 19:39:05 +0000 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v4 1/6] x86/bugs: Add asm helpers for executing VERW Content-Language: en-GB To: Josh Poimboeuf , Pawan Gupta Cc: Thomas Gleixner , Ingo Molnar , Borislav Petkov , Dave Hansen , x86@kernel.org, "H. Peter Anvin" , Peter Zijlstra , Andy Lutomirski , Jonathan Corbet , Sean Christopherson , Paolo Bonzini , tony.luck@intel.com, ak@linux.intel.com, tim.c.chen@linux.intel.com, Nikolay Borisov , linux-kernel@vger.kernel.org, linux-doc@vger.kernel.org, kvm@vger.kernel.org, Alyssa Milburn , Daniel Sneddon , antonio.gomez.iglesias@linux.intel.com, Greg Kroah-Hartman , Alyssa Milburn References: <20231027-delay-verw-v4-0-9a3622d4bcf7@linux.intel.com> <20231027-delay-verw-v4-1-9a3622d4bcf7@linux.intel.com> <20231201193657.mvzslo4nlcbuv2q4@treble> From: Andrew Cooper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/N7VZtSfEJeRV04unbsKVXWZAk uAJyDDKN99ziC0Wz5kcPyVD1HNf8bgaqGDzrv3TfYjwqayRFcMf7xJaL9xXedMcAEQEAAcLB XwQYAQgACQUCUuE2fwIbDAAKCRBlw/kGpdefoG4XEACD1Qf/er8EA7g23HMxYWd3FXHThrVQ HgiGdk5Yh632vjOm9L4sd/GCEACVQKjsu98e8o3ysitFlznEns5EAAXEbITrgKWXDDUWGYxd pnjj2u+GkVdsOAGk0kxczX6s+VRBhpbBI2PWnOsRJgU2n10PZ3mZD4Xu9kU2IXYmuW+e5KCA vTArRUdCrAtIa1k01sPipPPw6dfxx2e5asy21YOytzxuWFfJTGnVxZZSCyLUO83sh6OZhJkk b9rxL9wPmpN/t2IPaEKoAc0FTQZS36wAMOXkBh24PQ9gaLJvfPKpNzGD8XWR5HHF0NLIJhgg 4ZlEXQ2fVp3XrtocHqhu4UZR4koCijgB8sB7Tb0GCpwK+C4UePdFLfhKyRdSXuvY3AHJd4CP 4JzW0Bzq/WXY3XMOzUTYApGQpnUpdOmuQSfpV9MQO+/jo7r6yPbxT7CwRS5dcQPzUiuHLK9i nvjREdh84qycnx0/6dDroYhp0DFv4udxuAvt1h4wGwTPRQZerSm4xaYegEFusyhbZrI0U9tJ B8WrhBLXDiYlyJT6zOV2yZFuW47VrLsjYnHwn27hmxTC/7tvG3euCklmkn9Sl9IAKFu29RSo d5bD8kMSCYsTqtTfT6W4A3qHGvIDta3ptLYpIAOD2sY3GYq2nf3Bbzx81wZK14JdDDHUX2Rs 6+ahAA== In-Reply-To: <20231201193657.mvzslo4nlcbuv2q4@treble> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on morse.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (morse.vger.email [0.0.0.0]); Fri, 01 Dec 2023 11:39:17 -0800 (PST) On 01/12/2023 7:36 pm, Josh Poimboeuf wrote: > On Fri, Oct 27, 2023 at 07:38:40AM -0700, Pawan Gupta wrote: >> +.pushsection .entry.text, "ax" >> + >> +.align L1_CACHE_BYTES, 0xcc >> +SYM_CODE_START_NOALIGN(mds_verw_sel) >> + UNWIND_HINT_UNDEFINED >> + ANNOTATE_NOENDBR >> + .word __KERNEL_DS >> +.align L1_CACHE_BYTES, 0xcc >> +SYM_CODE_END(mds_verw_sel); >> +/* For KVM */ >> +EXPORT_SYMBOL_GPL(mds_verw_sel); >> + >> +.popsection > This is data, so why is it "CODE" in .entry.text? Because KPTI. ~Andrew