Received: by 2002:a05:7412:251c:b0:e2:908c:2ebd with SMTP id w28csp2043757rda; Tue, 24 Oct 2023 10:31:10 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHTdd0duh3ONh8OuVCqKlDIh6IGhLgBKHbCc/g0XitRvM3j/hpeiMhY4JVi44r8Ik9QeHFZ X-Received: by 2002:a05:6a20:8e0e:b0:129:d944:2e65 with SMTP id y14-20020a056a208e0e00b00129d9442e65mr3911796pzj.13.1698168669906; Tue, 24 Oct 2023 10:31:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698168669; cv=none; d=google.com; s=arc-20160816; b=o0CXTN3URxYjA8hgbLbfam/tsxPNikw/w494Fk/GoTG2HZ3iy9JNd+mDZB2e1FQjRS KEWMACbQloriFaOfdOnlDfdd0u8IS4sAOXmY0X+mVk3oICmvTFKlf0GsKRjYkvrVtbC3 imIwhaIjswRQ82o6c92OSoNMHLBbwdH3Ktzaq3OpdVu6po6YP1QdUk8/ASZIWMZS7Oys WUIs9lnPPpnaAI0S0llfxIQ9NObtQPdxG1XNbw7aEVKKdXt1xvRFyUi9OkJ303nzQ2g6 NUpJPsTI8fcJ6lh5ZefDvzIekc6RGX8uQBY570wMO2ZunPdCGB3QI26zEfDdV5GKfLEr fprQ== 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=sZfC5b21DDWjKMIGOOjNcPlDTYCjfLlOTvcOQk/8q7A=; fh=q22FrE+3HPFqgIfGSDy85ckjMt4+7YeUp/9thyDx+2k=; b=SwVX3EbByyC7n5oaVX+1Zax7AZZBMCL/upz6zKMxaEhO+qSgMGzhTNVpMksHEzWao7 B3k3QiuXonqWY2DdzX8liS+YgVRxFqIw8rxGa+qo1TjINtLGPwiA1GBp1JWBPFMtkG5I j+ZmYQ8AwRQFe9pU3lUWNeYZBqcNcmGXzKLlzz3YNwolPHL+0XIiDbE7Xs+0dU7jpQ4E /B2TR0e6+nnswkacwnlmA/O5iGynicTZxPjB3MUTJUTLf5FNk5SMfQRj+Zq5Os3IpFLP UEvY+IDunRgfiI9wsiufCBTzsgFF+QqnmKrEqxUAijES0bpL69fs9OrG4Yt1doVlPY7C DOsg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b="a/fOm95V"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 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. [23.128.96.37]) by mx.google.com with ESMTPS id h63-20020a636c42000000b005b887ff580asi7073969pgc.878.2023.10.24.10.31.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 24 Oct 2023 10:31:09 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) client-ip=23.128.96.37; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b="a/fOm95V"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 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 E2CBF807D926; Tue, 24 Oct 2023 10:30:37 -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 S234858AbjJXRa3 (ORCPT + 99 others); Tue, 24 Oct 2023 13:30:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56628 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234856AbjJXRa1 (ORCPT ); Tue, 24 Oct 2023 13:30:27 -0400 Received: from mgamail.intel.com (mgamail.intel.com [192.55.52.88]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1378FD7F; Tue, 24 Oct 2023 10:30:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1698168626; x=1729704626; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=4eTWR985NBV3mAvJMXvgeRN/dPF8gIx1f+55k33TMFE=; b=a/fOm95V579m4pvk+0O/p+2Qyt1N+DUnZHLK/ZS5Ri+qB8tgOKqPXQX0 vBDPTtmR8OrAfP2UEvVpndmmkx1cAMZBWjhIpFdR8FeshrrVxUlAu71wJ 4GA2MfRXW6MhrLb0wMCKw2sIpkambUhneMuAnZ+waCvthPSF0esK33vMk rc9wLnSCh2/0eic1KeZ9rQ+sFTXF9djaQLJEcWjsBQolw+0s11z30L/ML xRV7G7RqDUcZ8+FvdJj1wZGNmQG3ojf5BZNxNfbjxgdVs/HlZxqgrVjaE XmJdUi65uGrSLHPG9td43+ooh9hoTG6Ugw/Y41VdU6dNvrPUEuNJj9OBd Q==; X-IronPort-AV: E=McAfee;i="6600,9927,10873"; a="418247965" X-IronPort-AV: E=Sophos;i="6.03,248,1694761200"; d="scan'208";a="418247965" Received: from orsmga002.jf.intel.com ([10.7.209.21]) by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 24 Oct 2023 10:30:25 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10873"; a="758554073" X-IronPort-AV: E=Sophos;i="6.03,248,1694761200"; d="scan'208";a="758554073" Received: from zijianw1-mobl.amr.corp.intel.com (HELO desk) ([10.209.109.187]) by orsmga002-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 24 Oct 2023 10:30:24 -0700 Date: Tue, 24 Oct 2023 10:30:15 -0700 From: Pawan Gupta To: Peter Zijlstra Cc: 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: [PATCH v2 1/6] x86/bugs: Add asm helpers for executing VERW Message-ID: <20231024173015.w5qw767akvcdwmiv@desk> References: <20231024-delay-verw-v2-0-f1881340c807@linux.intel.com> <20231024-delay-verw-v2-1-f1881340c807@linux.intel.com> <20231024103601.GH31411@noisy.programming.kicks-ass.net> <20231024163515.aivo2xfmwmbmlm7z@desk> <20231024163621.GD40044@noisy.programming.kicks-ass.net> <20231024164520.osvqo2dja2xhb7kn@desk> <20231024170248.GE40044@noisy.programming.kicks-ass.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231024170248.GE40044@noisy.programming.kicks-ass.net> X-Spam-Status: No, score=-4.3 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, 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]); Tue, 24 Oct 2023 10:30:38 -0700 (PDT) On Tue, Oct 24, 2023 at 07:02:48PM +0200, Peter Zijlstra wrote: > On Tue, Oct 24, 2023 at 09:45:20AM -0700, Pawan Gupta wrote: > > > > > modules being within 4GB of kernel. > > FWIW, it's 2G, it's a s32 displacement, the highest most address can > jump 2g down, while the lowest most address can jump 2g up. Leaving a 2G > directly addressable range. > > And yeah, we ensure kernel text and modules are inside that 2G range. Ah, okay. Thanks for the info.