Received: by 2002:a05:6358:51dd:b0:131:369:b2a3 with SMTP id 29csp1066212rwl; Thu, 10 Aug 2023 06:05:55 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHaiwwAAolVjQ9Rzo2azvutu5YkE4lHb2CTZu1ktIpVbrOHD10Ij09Tl8keUXBCzQmfHJt/ X-Received: by 2002:a05:6a21:81a5:b0:13d:6c5a:1887 with SMTP id pd37-20020a056a2181a500b0013d6c5a1887mr1987665pzb.20.1691672754872; Thu, 10 Aug 2023 06:05:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691672754; cv=none; d=google.com; s=arc-20160816; b=OumztSwrVYxm98pFmrkRTSi4OgcU01QiKHw5CwnluhofrJC5uf+1OVEb4vVg19eJzf pswnIK6KIX1HJ9IVIEAuhn3dnZTpap8AJb948kAZcknX8F2m+jg6R4eN7rM8i520PqOn nFhXsG7P6ymYaKgLjX/UFE/XoeUiN/a0Tzr858HJwkENxX/yA1E1ZCwpfUNPRw/FZIJ6 rINrx/hhZqda6oXpXjIV3au7MchCjH3v8FxqME2PCBUnbqXL7D42vmmpX5M2FxRuOAUD gj3tnHQXgBDsFRS2jJr6EIZoTQgusOW7/nF/zyjQDNnh/t/zRdwOe8XTBusPZtAfWLRJ 6UNA== 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=/2tnPFLw5mb2iAyfEp04Lxf42Q933p9aHH5odv7/L+I=; fh=o4ocl7M6wwzFplZFgyQ1vRQVmBcm9jp/U8HM00c8OpM=; b=lqTGvX8YPZvoSmHnkfpzhIY5MSyOOBJEBsSuF+v1Izy9ge/hiyicE6BzwoUkudhAo1 k4W/9n/fIJFWEYfhbzu7Wxffab3gmqWrIS/kjsDgA+TB9B8BrKM1RqaWpnnfl9SfL8BE 5v46g5IuKSejHDjqsa38Fq2aZDpEf/tyVprE09/5MSFIWRT/siSbzK07V24mipW2IB2v MEHFqKNRBCqMXdIfq4hct+Vep0m2EYykYA2QyIBrxEocJcvAa29b1v6oKbBONzyffYGI 4VQKTZqdz2bBQdLi8DsuNA7BQrVBH7p2KrHfLAbMR30tRVyN5+VDq3gs7SF8Q5XAz0Bm r87g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@alien8.de header.s=alien8 header.b=Mg1ob5P2; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=alien8.de Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id h128-20020a636c86000000b005649989e2d7si1479896pgc.431.2023.08.10.06.05.39; Thu, 10 Aug 2023 06:05:54 -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=@alien8.de header.s=alien8 header.b=Mg1ob5P2; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=alien8.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235399AbjHJLiF (ORCPT + 99 others); Thu, 10 Aug 2023 07:38:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49210 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235387AbjHJLh5 (ORCPT ); Thu, 10 Aug 2023 07:37:57 -0400 Received: from mail.alien8.de (mail.alien8.de [IPv6:2a01:4f9:3051:3f93::2]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B58612D4A for ; Thu, 10 Aug 2023 04:37:52 -0700 (PDT) Received: from localhost (localhost.localdomain [127.0.0.1]) by mail.alien8.de (SuperMail on ZX Spectrum 128k) with ESMTP id D40C140E0185; Thu, 10 Aug 2023 11:37:50 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at mail.alien8.de Authentication-Results: mail.alien8.de (amavisd-new); dkim=pass (4096-bit key) header.d=alien8.de Received: from mail.alien8.de ([127.0.0.1]) by localhost (mail.alien8.de [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id dyLYOwkNCFuw; Thu, 10 Aug 2023 11:37:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alien8.de; s=alien8; t=1691667468; bh=/2tnPFLw5mb2iAyfEp04Lxf42Q933p9aHH5odv7/L+I=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Mg1ob5P2yijMLWJy7JX4vOlK+c2j0gbeeTzLdMDIHnrDjVyUs44Gba5xbrmTN2KVU UD9NwMGkhN2gzITffHvTlyxZq+Wxrssi9QYemBsi/yEW3ddPT5dtksmewPBGFFQUnE 5flfTYGMMymgFSZ3PJyUwrSggXZcfqF8aMUAkxspt+SkiEa1wf1S/TTWyIHWFqzG6t zENkuF2ruYgnFVV4Flh4x2LXeL+mf5ITfZLS1U+NNl74Lnsxj9l8kb8vA26xBOitcJ MH4Wl8byk/jNXZ12lBg0w3prLf7Xwc2v+P9KeSpmyV38qsZTmbzZQS+kHUBiczgqLP hbYdsp6UlSD+5+26qP1dAlA2QpeQLPIlzckSVy256CKcntYjeOCPzXZisfdcZvqRJo +HyN+zyvk1ykCwQm+M0fRxlmF3sH40SaOKnaFkgLZBtCpbz21APDF7d+X/TIcGSTVh +8oLMFhzTNW7f2Mt3HRwMgXoCsyK/gnRFvvo642soiGi0ISFKgaxEMTgT09mzWA0l4 7pYy5E3cLNtJ/+o8d/at5BbdoRHmIcq+MrBEKYc35GuCLQ2FPoPD8nL8zKdwMqy4kS v1N2MGhMCpcpVGXGx+Jb+henmBLgPz5iUyp8MIJ9F18dfSrRJFMy9wRf4x2QJZIoY6 qsa21k7LKB9LZSF4nXvMpGRE= Received: from zn.tnic (pd9530d32.dip0.t-ipconnect.de [217.83.13.50]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature ECDSA (P-256) server-digest SHA256) (No client certificate requested) by mail.alien8.de (SuperMail on ZX Spectrum 128k) with ESMTPSA id 6165C40E01A0; Thu, 10 Aug 2023 11:37:41 +0000 (UTC) Date: Thu, 10 Aug 2023 13:37:36 +0200 From: Borislav Petkov To: Peter Zijlstra Cc: x86@kernel.org, linux-kernel@vger.kernel.org, David.Kaplan@amd.com, Andrew.Cooper3@citrix.com, jpoimboe@kernel.org, gregkh@linuxfoundation.org Subject: Re: [RFC][PATCH 01/17] x86/alternative: Unconditional custom return thunk Message-ID: <20230810113736.GDZNTMAGTbzwxSdjbx@fat_crate.local> References: <20230809071218.000335006@infradead.org> <20230809072200.450404700@infradead.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20230809072200.450404700@infradead.org> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED,SPF_PASS, T_SPF_HELO_TEMPERROR 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, Aug 09, 2023 at 09:12:19AM +0200, Peter Zijlstra wrote: Please add a verb to the subject: "Make the custom return thunk unconditional" or so. > There is infrastructure to rewrite return thunks to point to any > random thunk one desires, unwrap that from CALL_THUNKS, which up to > now was the sole user of that. And yes, provided we can do the thing in the next patch which makes sense to me, ack. -- Regards/Gruss, Boris. https://people.kernel.org/tglx/notes-about-netiquette