Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp3474406pxj; Mon, 7 Jun 2021 11:30:41 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx0pYrNt4Yymk9aQybHd2jgdOldODuAgQNrfzifvx+Tfwj7BdVLYPXxf/xcoPB0l5qELuq0 X-Received: by 2002:aa7:ca1a:: with SMTP id y26mr21237346eds.314.1623090641505; Mon, 07 Jun 2021 11:30:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623090641; cv=none; d=google.com; s=arc-20160816; b=nae/Pg5P7XuWfyaLjy1kshmgG0B2pLTJNKY2DUF2k3Boz620l7PRabrJfsrVwAl4oo SxxMQcrcG+D9xb0YlkglH1jQj6G+tAibDj/zunM6kKdnxMEs4PIPM+UT3XXEmvD9YSIF 3iJ3BdUS23T5CpBZDt5SmcxZp8CvxYgKiQkPoZl0qFNWmMdc/jyZIp8FIGlmO8P/edh3 jFhO6hu6l0b7imWDIvyQLuRZOa7wXZkwfMRLac815HDKyTyUY1rvOnU0wrYEadckk6np qhH7Dd3rPcun4FBYu3x+kHTCJZ4oBtIDa6J+3aR5d3ssvQFspqWBwBxQfFhYKJH9YAyR rbQw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=+0Qwo32Oi1nv9vlDwm2eqEKRAzjcx7HfOAwXOuTbk10=; b=r+YyOZJlvAXHMKUznd+SqD737YpQyehT66Y0xy1Birb0osMJNbM1jh5TiSZXxlVpDT NkrVVmVcCfs2+DQIGKui/dF97MdKJxqr2QbTibZaWqGtFJQ/OHl+VbMBQb6/cqZCNtRD pt4F8oyihkOT2LRwajE75/xquGdO04rvU00pJ3qITp/HCksAwmYwdQOtphAB/tOT9yXy 99glsIDxk/iIHa2Q9BIywByam0A/m18qptO6Yl9WePpmlMUVtHGvRExVB0/8NiIqqhLY RBUveSM8YgGRZcSVoP6nLiI1jPCM4H1XP9//2EB0/3X0V2Dm9/GbETR/R7JniTsgRDfy 043Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=lkaKgvYp; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id j17si1352627edw.429.2021.06.07.11.30.16; Mon, 07 Jun 2021 11:30:41 -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=@google.com header.s=20161025 header.b=lkaKgvYp; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230444AbhFGSar (ORCPT + 99 others); Mon, 7 Jun 2021 14:30:47 -0400 Received: from mail-yb1-f181.google.com ([209.85.219.181]:41702 "EHLO mail-yb1-f181.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230253AbhFGSaq (ORCPT ); Mon, 7 Jun 2021 14:30:46 -0400 Received: by mail-yb1-f181.google.com with SMTP id q21so26348193ybg.8 for ; Mon, 07 Jun 2021 11:28:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=+0Qwo32Oi1nv9vlDwm2eqEKRAzjcx7HfOAwXOuTbk10=; b=lkaKgvYp2UoBsbN0mkUg7ioP3c5jqxct7eqLECGRJveesvW4KC2u1BWVhzfqxf6FSt HhQixNRJpZH3+7y0A2oZg1XSElp+Dr2IA308Z7sOrS3VRG/gY9in2SoimvKMgqoWKpgO ek1/b7A3Qwz5EYIi/CY12UoCeXWU2z/+bfhzPd+/c55NF9kmPQapkxknUHefsJ393eD+ Df6jsV7q4u4MRXOqpNXEOh64c2G6CvR71F9RajfCGEfYIy6549eKKO4h6gFD+z5NceXk TaRHXRGLjE8gsKm2Cn/9AjIFDWWNuPoZlFzV82pLgrFA2jNFhqaPD8zj+4qV1TxoPYTV inJQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=+0Qwo32Oi1nv9vlDwm2eqEKRAzjcx7HfOAwXOuTbk10=; b=jW6psxBFMKhk1iKEiIBTxybnIJdwaBLq3/q1YYrPvLOn85ozEyFR+owxexmERUlLSQ drmE3MO7I9gajTsxv7lSBNSlLtNmNDisAD/Qp0DVF9S9oIvKbdpRbp6gdLXWruvWzboU dbJWof/wa4yu6YaF7fZkVRN6Sn+f9LLCdTdVuX3EBHiWMgotuUhzKdwW6MHcALpNfnJ6 9DvEciLA2Jz11UWNxajmrahwj0t21pcWzrrRPpI5NN/U0XWl65IS0l7EFy0ETpEyFZoY IndAs+T5bON/Q5nWJkG7wuI9/YELEfDT7PbY4BcuVQ2DGKt2J2Cc4uNjcIGNhNZK+Km4 IZeA== X-Gm-Message-State: AOAM530mwXFqukd/1VgaMTVDtJGJksZOAgbpAi3zPj7sJ7CJMMJrog8s 8SCL2GcE5WVBff+R5zrIVVA2ru/l5FB70BiaxDAD5Q== X-Received: by 2002:a25:e741:: with SMTP id e62mr26818800ybh.484.1623090458346; Mon, 07 Jun 2021 11:27:38 -0700 (PDT) MIME-Version: 1.0 References: <20210604205018.2238778-1-ndesaulniers@google.com> <20210604235046.w3hazgcpsg4oefex@google.com> In-Reply-To: From: =?UTF-8?B?RsSBbmctcnXDrCBTw7JuZw==?= Date: Mon, 7 Jun 2021 11:27:27 -0700 Message-ID: Subject: Re: [PATCH v3 16/16] objtool,x86: Rewrite retpoline thunk calls To: Peter Zijlstra Cc: Nick Desaulniers , Josh Poimboeuf , lma@semihalf.com, Guenter Roeck , Juergen Gross , lb@semihalf.com, LKML , mbenes@suse.com, =?UTF-8?Q?Rados=C5=82aw_Biernacki?= , upstream@semihalf.com, "maintainer:X86 ARCHITECTURE (32-BIT AND 64-BIT)" , clang-built-linux , Nathan Chancellor , Sami Tolvanen Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jun 7, 2021 at 11:19 AM Peter Zijlstra wrote= : > > On Sat, Jun 05, 2021 at 06:58:39PM -0700, F=C4=81ng-ru=C3=AC S=C3=B2ng wr= ote: > > > You may use https://github.com/llvm/llvm-project/blob/main/llvm/tools/l= lvm-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.