Received: by 2002:a05:6a10:6d10:0:0:0:0 with SMTP id gq16csp622102pxb; Thu, 21 Apr 2022 07:04:21 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwYmDXdTtNqLmCXj0V8yhRNhts5/NRgfBbg+cgz5L/Winl7Zz6yF2Zxv74eZiN0tKdR62rB X-Received: by 2002:aa7:dc53:0:b0:421:d085:9a0d with SMTP id g19-20020aa7dc53000000b00421d0859a0dmr29680764edu.0.1650549860865; Thu, 21 Apr 2022 07:04:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1650549860; cv=none; d=google.com; s=arc-20160816; b=i/MtycQb2jrKnAAmKRNUu7bMSlLv2kWuMYlJYn3LxfcY/7bBSjgbrsjMghD4+xqUNr iQQgtWwhVCmyT4f4+kauud0jVq3lwJpHmRhuBWNyYjH3NNovHqQK2zPBxEpokecoSdp5 DUhGMNIn8VjjXp/UfQmc/bPS93/oIsobbh2QKFpULTeYMBX675rn+1QlSJ/MPH6LKVp4 8zDJQyScSxHKLsD9onf4pahQLb8pxaoc6FO7YAdcQ1OldgoABnOUU1gWhqQnVGL3UiO7 R/LzS1XZ7VNNnab80Jf/gxWg5ipcWv9SxPyK1VdkktpiQxyfzPa9Pb5u8FWYXRCOrQuU NF/w== 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=64YXxcekbBcHuR/pr9BA25gJNm0zvp5b2EChe5V7YSU=; b=g5I7WAADKyzcvgGEXikILvXW24EwocMphFRIey29bZZ80fRfDwL1yTLnWm+vqvzroz x20+ZwP9rtZr1veXlcEuLxW/m0d4NliofAeiCSpJ8Qi82EGr+Dile/OUDcCd6hvjh215 tPW19g2pG14zjVubZwG2dtaPNLC4kQ4VCNoR1JU3wKz/FV5wiZGFMooVJaiFLskVb8iT QWSdAUlhOHwJ65lNc7WrWJvEjRn/vBwmnyD6BjPZCweEd4yS1Dr8Md9BT0zBjaXbxfcu BSs1xR419DZIZ+SAR79NH7PX9/eMIPBN7GCOx8QiyFLVGk3qhiCMtg6+0Vr3Pseo6FnJ uzfw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=desiato.20200630 header.b=MrsvalZV; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id o22-20020a056402439600b00423f40b8548si4353827edc.579.2022.04.21.07.03.54; Thu, 21 Apr 2022 07:04:20 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=desiato.20200630 header.b=MrsvalZV; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1377020AbiDTPyQ (ORCPT + 99 others); Wed, 20 Apr 2022 11:54:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33182 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232903AbiDTPyO (ORCPT ); Wed, 20 Apr 2022 11:54:14 -0400 Received: from desiato.infradead.org (desiato.infradead.org [IPv6:2001:8b0:10b:1:d65d:64ff:fe57:4e05]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 339C03FDB4 for ; Wed, 20 Apr 2022 08:51:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=desiato.20200630; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=64YXxcekbBcHuR/pr9BA25gJNm0zvp5b2EChe5V7YSU=; b=MrsvalZVr0CQIT6szVIkkuWZ4A TbpXqRendCyaA6KlLbK+GDCq2k1ScDQXQq85oaFOgFLLk0HSnvHDaqAx0ThJ8XOpxMhqAl8EXEKNu vq78Lrx4DbuWOgKVsdADM2ObhI23B+arlKunYymzdTH9lieMoTI3o1zh3dF7A3DnPkdbDJsSJ2cQm OZ/mJhvJjyc/ojyxfpANiU5Ele6k1U5UDIR5tx/eq6D8ZyPeDwjU0gIkI3buKSWI5pi95q5IiyJBZ IPD9oH2IAb/UP6lZ4iPvySK5tzjenuDFDWZH+Mbb4r16gOjxmmVzVh4UpZe+9aFERtEGsYGzREmVA Na2Yezfg==; Received: from j217100.upc-j.chello.nl ([24.132.217.100] helo=worktop.programming.kicks-ass.net) by desiato.infradead.org with esmtpsa (Exim 4.94.2 #2 (Red Hat Linux)) id 1nhCbu-0079ps-2e; Wed, 20 Apr 2022 15:51:18 +0000 Received: by worktop.programming.kicks-ass.net (Postfix, from userid 1000) id 6BC109861A4; Wed, 20 Apr 2022 17:51:16 +0200 (CEST) Date: Wed, 20 Apr 2022 17:51:16 +0200 From: Peter Zijlstra To: Josh Poimboeuf Cc: x86@kernel.org, brgerst@gmail.com, jiangshanlai@gmail.com, Andrew.Cooper3@citrix.com, linux-kernel@vger.kernel.org Subject: Re: [PATCH 1/2] x86: Simplify Retpoline thunk Message-ID: <20220420155116.GH2731@worktop.programming.kicks-ass.net> References: <20220419204109.520779286@infradead.org> <20220419205241.280037046@infradead.org> <20220420152736.qzl3nikds6mq5nrr@treble> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220420152736.qzl3nikds6mq5nrr@treble> X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,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 On Wed, Apr 20, 2022 at 08:27:36AM -0700, Josh Poimboeuf wrote: > On Tue, Apr 19, 2022 at 10:41:10PM +0200, Peter Zijlstra wrote: > > Now that we rewrite all the indirect call sites, per commit: > > > > 750850090081 ("x86/alternative: Implement .retpoline_sites support") > > > > it doesn't make sense to have the retpoline thunks be an ALTERNATIVE_2 > > that still includes a 'naked' indirect jump. > > > > (this accidentally 'defunnels' i386 by going back to full retpolines) > > So mitigations=off no longer works on i386? Also true I suppose... does anybody care? /me runs like heck. I'd hate to make all this more complicated just because i386 tho :/