Received: by 2002:a05:6a10:eb17:0:0:0:0 with SMTP id hx23csp1459777pxb; Fri, 10 Sep 2021 06:28:19 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyal+MRzzaL2PHFak0n2UtW0MhixLfzVVZu/k2onuw6OxzqhuxaxMk3DQatvRSrwZyZMu7X X-Received: by 2002:a17:906:ece1:: with SMTP id qt1mr9263543ejb.281.1631280498757; Fri, 10 Sep 2021 06:28:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631280498; cv=none; d=google.com; s=arc-20160816; b=neHKKYR6rFovb5BYD64GAVIdxwfXDwAUXxF4SSIa/csf9htyl4iB8/wIs4HapdBo7i 7fspmaxiFvD8PXq0EVoz8+VCiH2M/y/Ip1oKqXZJfuJ39mAng91419WBZhAE0Jx06WxR CcIjjTohhGajVin40t/m0IKdGbLtOyggDh0uWKdqDGla58RyHpeq6vPEWJ/IvcCMjg7s ysYe/vM7oDAxyeiv4oKagjYzNpa8j9F3AtMoaM6dDjupMvefA64gtRZ06xP2faswzEv4 ExfXIdzgkthCUIGaJIkOcb4KYQ/vg38d9ZL3M0v5jVPCSm8Lp5SuYhJMHJ48a8xkuMiC +17w== 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=VwIDjvSAEZcyShtXbaCUqIqB8YqpksxdGrjyPfc0M+Q=; b=cmekZIM7+nqEHaRzl2c52QO78OQ+x5b9dZBVWIdcEx8/pRwx+T6vA/0vK6iAXDNOFA oaM8FxhrmcG1Gs0p03d/XrCH68C0CTocmVkMdrruPcePlV6oSRhFKW2M5FuDty/tg3yr msFs0173AmCoAdJA6386v1+IeSuYApdZ6aXrb/3KMfM20TcaOnBpd8UCjC9XsEP1LH1t FB8ZpZ3gUGpAOMGmBnTNuplE6XRgoPwQNSJpYz3M3iSEZEA63YPZUMfOfka6211K16d8 RV1XaVQsakXtt5b66+SeqEfZic82y8/ELGj1v8ij8xqDhgTJGY9IyMEleeQ0Kr5G59ts swEA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@alien8.de header.s=dkim header.b=hWQszuVO; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=alien8.de Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id z22si5405728ejl.373.2021.09.10.06.27.52; Fri, 10 Sep 2021 06:28:18 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@alien8.de header.s=dkim header.b=hWQszuVO; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=alien8.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233253AbhIJNZu (ORCPT + 99 others); Fri, 10 Sep 2021 09:25:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42766 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231963AbhIJNZt (ORCPT ); Fri, 10 Sep 2021 09:25:49 -0400 Received: from mail.skyhub.de (mail.skyhub.de [IPv6:2a01:4f8:190:11c2::b:1457]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B1594C061574 for ; Fri, 10 Sep 2021 06:24:38 -0700 (PDT) Received: from zn.tnic (p200300ec2f0f070059e5c0f8ed8d1239.dip0.t-ipconnect.de [IPv6:2003:ec:2f0f:700:59e5:c0f8:ed8d:1239]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.skyhub.de (SuperMail on ZX Spectrum 128k) with ESMTPSA id EFC3B1EC013E; Fri, 10 Sep 2021 15:24:32 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alien8.de; s=dkim; t=1631280273; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:in-reply-to:in-reply-to: references:references; bh=VwIDjvSAEZcyShtXbaCUqIqB8YqpksxdGrjyPfc0M+Q=; b=hWQszuVONK6ITVdzvuOgAbbDT+dwusyPMFU3IAHV4nF7XO6Q1ZyvCGljXrj8DbTyuJL9JT RNuywXZJukC67yctMwOl6naqV70fvD8tVlw77YitmSO9QnlRmkXaofBxv0/+wtAfMHnP/q MQLRWAZXu+MyXigyb/fZ5LcElOxaif0= Date: Fri, 10 Sep 2021 15:24:30 +0200 From: Borislav Petkov To: "H. Peter Anvin (Intel)" Cc: Thomas Gleixner , Ingo Molnar , Andy Lutomirski , Linux Kernel Mailing List , x86@kernel.org Subject: Re: [PATCH v2 0/2] x86/asm: avoid register pressure from static_cpu_has() Message-ID: References: <20210908171716.3340120-1-hpa@zytor.com> <20210909220818.417312-1-hpa@zytor.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Sep 10, 2021 at 11:16:47AM +0200, Borislav Petkov wrote: > Right, maybe I'm missing something but what is wrong with the immediate > addressing variant, i.e., that thing: > > testb $0x8,0xffffffff89346eea > > and you need to *force* %rip-relative? To answer my own question after peterz asked: that hardcoded address won't work with KASLR, ofc. -- Regards/Gruss, Boris. https://people.kernel.org/tglx/notes-about-netiquette