Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp3548905pxj; Mon, 7 Jun 2021 13:43:11 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxQn38gtKfox4n1+EPAJy1s2Ruoy8IFAvVE+S+Rav4Ad+v5Lwh9EG5cnaOw+RBaj8MXjloC X-Received: by 2002:a17:907:1117:: with SMTP id qu23mr19743669ejb.71.1623098591730; Mon, 07 Jun 2021 13:43:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623098591; cv=none; d=google.com; s=arc-20160816; b=q6udsEhoZN9jltA+YPOXvYTwOkYIQbTwqUHYANIThmdennq57EuP8nIRDSrEPhVNaA QfQEGKIiuJw96yzSfwlAJBit79c9m0mr4GyCUrutEI8V1I3JbjDhcqKOVbc31M25F3ke N/U/Q8FEIkaFzD3tq1UlWW0Tpx9MjGOQZxmvm9+/odUO0lOU1kYzRuLcufi5ZWDh1xq9 P4nwaRRv8LZR1NXinulXgMzn6RDNFg5EcRQqG3CKkHpzfZRZollCl+nBvSOcE13iT7lB FCjKxfah13FSmWhSM326ksFccd/jwZL5iqThkJLyWrz+bhHRNbbgU3Lc0setC9DD6CLT bq3g== 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-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=E5W7BBL5OZLc434qu0qEVLUyiQ0rMZ4BUsHzE04chsk=; b=JYrHA5vFekU+6FMYBtXPf/+KhNMKRhYTETg3HC+043TcHigNahqbunjLTct2c/q8bz CQ+xdyIHrO2DAAUXKX0NWa+zcOVBOm54XWAcE3q7mRnwCVxMtm6kk/nD6yLRnzhT3WOQ QKpAtzu76UGdIe0rpG8BKkorRRJG49zfAids5Im2ICQcG03swy5F1H8iLesfPhLFiLTM xFhNFD1diJUgYy8YA3bRI0P7kXSKMoYCXk2hRzee9TUfLUSESdArD3A/5sWx53bMa3vG +YdY7ySfpqqXaUVFcXHavCMYv7NNpwfbeJ5w9oVCTb7UR7566hZm2M71IqENeSPxpfmK NJ3A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=desiato.20200630 header.b=MFrbR7Do; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id f16si4221114edy.74.2021.06.07.13.42.48; Mon, 07 Jun 2021 13:43:11 -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=@infradead.org header.s=desiato.20200630 header.b=MFrbR7Do; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231160AbhFGSta (ORCPT + 99 others); Mon, 7 Jun 2021 14:49:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54320 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231140AbhFGSt3 (ORCPT ); Mon, 7 Jun 2021 14:49:29 -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 27A00C061766 for ; Mon, 7 Jun 2021 11:47:38 -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-Transfer-Encoding: Content-Type:MIME-Version:References:Message-ID:Subject:Cc:To:From:Date: Sender:Reply-To:Content-ID:Content-Description; bh=E5W7BBL5OZLc434qu0qEVLUyiQ0rMZ4BUsHzE04chsk=; b=MFrbR7Do6dylpH+9Bj5xt1YyPa KGW0a+JJ3x4yx/qFmDroZCmE2MCLb7LIXZVV4CzHK9/yZsCuD1GS+skmgJ3L8W7kwSshsp01tj1jj cQGor8ifkVStU2xM0zsXpJbq4ZhQFzTa5QIMuB6Glowonh56fHWLc8qQHZAsvRa9ayVDQoVeFRb7G HaPEPfipaEslvOecolT53a+yvaL95YH3A4Rt9a70oUuZ3aFyERnctC+CfZQkpQdFyak6mWMUIlgbg KLI8cHGSX9U/qKXRzp0mQRyg2yQ5Cbu+KGAC0rklTSzvzxWo8xmmtxDVqCL77ohQN5R5yVi2nfotu syiYUMZw==; Received: from j217100.upc-j.chello.nl ([24.132.217.100] helo=noisy.programming.kicks-ass.net) by desiato.infradead.org with esmtpsa (Exim 4.94.2 #2 (Red Hat Linux)) id 1lqKHS-004UmG-Fe; Mon, 07 Jun 2021 18:47:29 +0000 Received: from hirez.programming.kicks-ass.net (hirez.programming.kicks-ass.net [192.168.1.225]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (Client did not present a certificate) by noisy.programming.kicks-ass.net (Postfix) with ESMTPS id AE2E2300258; Mon, 7 Jun 2021 20:47:28 +0200 (CEST) Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id 89F673037F2BB; Mon, 7 Jun 2021 20:47:28 +0200 (CEST) Date: Mon, 7 Jun 2021 20:47:28 +0200 From: Peter Zijlstra To: =?utf-8?B?RsSBbmctcnXDrCBTw7JuZw==?= Cc: Nick Desaulniers , Josh Poimboeuf , lma@semihalf.com, Guenter Roeck , Juergen Gross , lb@semihalf.com, LKML , mbenes@suse.com, =?utf-8?B?UmFkb3PFgmF3?= Biernacki , upstream@semihalf.com, "maintainer:X86 ARCHITECTURE (32-BIT AND 64-BIT)" , clang-built-linux , Nathan Chancellor , Sami Tolvanen Subject: Re: [PATCH v3 16/16] objtool,x86: Rewrite retpoline thunk calls Message-ID: References: <20210604205018.2238778-1-ndesaulniers@google.com> <20210604235046.w3hazgcpsg4oefex@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jun 07, 2021 at 11:27:27AM -0700, Fāng-ruì Sòng wrote: > On Mon, Jun 7, 2021 at 11:19 AM Peter Zijlstra wrote: > > > > On Sat, Jun 05, 2021 at 06:58:39PM -0700, Fāng-ruì Sòng wrote: > > > > > You may use https://github.com/llvm/llvm-project/blob/main/llvm/tools/llvm-objcopy/ELF/Object.cpp#L843 > > > as a reference. > > > > BTW, Error::success(), is that a successfull error, or an erroneous > > success? :-)) > > A success (no error). Error::success() is a factory member function. > Its purpose is to create an "unchecked" Error instance and require the > caller to explicitly check for the error state. I got that (see the smily face), but it reads really weird when you're not used to it.