Received: by 2002:a05:7412:251c:b0:e2:908c:2ebd with SMTP id w28csp2646134rda; Wed, 25 Oct 2023 08:29:46 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHspCv4B3L+PZDhXgECPGOjIzQSmfnjPd/2GiYJPB9jsKTQh90ABr4Hu4UBw+hOoFG5nDkh X-Received: by 2002:a25:664b:0:b0:d9c:2420:5d2e with SMTP id z11-20020a25664b000000b00d9c24205d2emr15544203ybm.53.1698247785710; Wed, 25 Oct 2023 08:29:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698247785; cv=none; d=google.com; s=arc-20160816; b=0l/hUARpjvbanoV+KLF5N+KFZQ/zLOlXk1Y0wxlTjVCNwRXex/ps0lQ9bZo6fd+TA3 2xjHZCYUro93519tOs5gJ0TrlFOrbCun3NEOKO8wsu8Y3j8+3oXK72Dhy4j4seoT6cFv QsnQME4VqjwmeLgIUL6aKZ3HuRYevl6R78EJo7f8olbtupJurGzzvtNw0xXaoA1E2h10 14WWp9SHnL3y4lv/fSQQVVFY1lCm1MvUwzMmuv3pON2dk471WZiyE/mVt7v5RVUuHGyl L8iqG/5aOyrgVaI6Tc7y8IHIN0OuqIjqfzlYJqp8Wz+de3u4FWPwsmg1lzwPu9tsFF+6 V07g== 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=pAeFWcv95jkqQyyZ/q00tHI3AOTbHH2R0xnwp8tmj4o=; fh=vJzGqQuHibgTSkdAGeSJ8bqRaLrIWqG2vmJt1SfDxks=; b=vklrvN0uUYyu299pKywIUdY21QKeHiwNhC06GvdpIGrh1beikePaNMmtPXTrVLcm3t rZh7IfyWkKo7YmcQB5/lMUYFafrzFtU4oWhLzYYq/P5ZM5nhiZ/2Sgq4lYY928/E9PBl 3fG0DHAStQ+ad/MbY+qTnMfT6P5JOH/TAf8mj4aDJqC+bbL7Vnamu6CPx725dzchZeEx 11TPnb0J9YcGBXUQZ6hT3freRnIAkVAdKxP1g3nMhaeaItWQ3P3xhURr/mUTYWIXtIOy i3wAebmXxlThDVSwZcKmuZCu2fpt3kVlxYpgVYSm10VxuQPlywkdmOltDvYjug2J3p+C M+Vw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=ArxU3xFQ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id n197-20020a25d6ce000000b00d9a4a89d97esi10641629ybg.323.2023.10.25.08.29.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 25 Oct 2023 08:29:45 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=ArxU3xFQ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 8B1C9806E4C1; Wed, 25 Oct 2023 08:29:44 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235236AbjJYP3h (ORCPT + 99 others); Wed, 25 Oct 2023 11:29:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49806 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235210AbjJYP3X (ORCPT ); Wed, 25 Oct 2023 11:29:23 -0400 Received: from mgamail.intel.com (mgamail.intel.com [134.134.136.24]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 360C41731; Wed, 25 Oct 2023 08:28:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1698247694; x=1729783694; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=6AqSNlNER78vW5+ip/iGIURRm9qeolLQ3W+U9IMny9U=; b=ArxU3xFQTTfr9BefBS4+xsnPg2YWoECzOBd1N3Bl4FIr98PsUfT6z1e3 vrlJKuZIWTOOCC+bO9mVff3ebkxIJ5ClMpWXLrNCaTH3Iz/lZfPFVfw7j JG5MD21JGQPUR7sRTshN2ckdewCW8tpNbb6g9k8cGVEE/IJWs1sbjTr/r 8SuUi4fIN4ueAi7sGcEEQIVzUVXPc28rpu0GUrtLZ/qtwyMlnJwfH5pFn PLGXXexrJGaDnT3vR5sWcMB61jD0fS52s5dg7usPOYHOOgOiqQqmRFykU RsNL+MWQfen48plSKkKuA9VsWSUUKUrWQ2zo4Kr8MssH/BCLhF2MfOKXk g==; X-IronPort-AV: E=McAfee;i="6600,9927,10874"; a="390184736" X-IronPort-AV: E=Sophos;i="6.03,250,1694761200"; d="scan'208";a="390184736" Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 25 Oct 2023 08:28:09 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10874"; a="824682530" X-IronPort-AV: E=Sophos;i="6.03,250,1694761200"; d="scan'208";a="824682530" Received: from kkomeyli-mobl.amr.corp.intel.com (HELO desk) ([10.251.29.139]) by fmsmga008-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 25 Oct 2023 08:28:08 -0700 Date: Wed, 25 Oct 2023 08:27:54 -0700 From: Pawan Gupta To: Peter Zijlstra Cc: Andrew Cooper , Thomas Gleixner , Ingo Molnar , Borislav Petkov , Dave Hansen , x86@kernel.org, "H. Peter Anvin" , Josh Poimboeuf , Andy Lutomirski , Jonathan Corbet , Sean Christopherson , Paolo Bonzini , tony.luck@intel.com, ak@linux.intel.com, tim.c.chen@linux.intel.com, linux-kernel@vger.kernel.org, linux-doc@vger.kernel.org, kvm@vger.kernel.org, Alyssa Milburn , Daniel Sneddon , antonio.gomez.iglesias@linux.intel.com, Alyssa Milburn Subject: Re: [RESEND][PATCH 1/6] x86/bugs: Add asm helpers for executing VERW Message-ID: <20231025152449.w6xre33cs7tkex7k@desk> References: <20231020-delay-verw-v1-0-cff54096326d@linux.intel.com> <20231020-delay-verw-v1-1-cff54096326d@linux.intel.com> <20231025062818.7kaerqklaut7dg5r@desk> <20231025072255.GA37471@noisy.programming.kicks-ass.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231025072255.GA37471@noisy.programming.kicks-ass.net> X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_NONE 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 X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Wed, 25 Oct 2023 08:29:44 -0700 (PDT) On Wed, Oct 25, 2023 at 09:22:55AM +0200, Peter Zijlstra wrote: > I'm thinking you need to at the very least stay in a section that's > actually still mapped with PTI :-) > > .entry.text is the only thing that is reliably mapped with PTI (IIRC), > some configs also get a chunk of the kernel image, but not all. > > Something like the below should do I suppose. Thanks, will do this with Andrew's improvements. > --- > arch/x86/entry/entry.S | 15 +++++++++++++++