Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp4388372ybb; Tue, 7 Apr 2020 06:36:48 -0700 (PDT) X-Google-Smtp-Source: APiQypKFvhxBnRo4vXSboyqD8+Gw//0hbhTrxme7SI3G85mso9GvX7Zmu1ALgEfixKxxs1Ajm2VT X-Received: by 2002:a05:6830:1a:: with SMTP id c26mr1380671otp.282.1586266608790; Tue, 07 Apr 2020 06:36:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1586266608; cv=none; d=google.com; s=arc-20160816; b=VvBUl/b1WPPZ0N71hPBGma4HRklHD6r6SBAmOn5gIc/U7GVSIlCRwZDqERKF/rmg1e xIEsnqAasvhFJdJQmio6KKatlTLcVbCtAskNQDVhxen8/nqMJe8pMvD7SMlV7v06jaZ3 7s3u80Y+M1l4KgO9M2RAGTtvfdiM174jVu5i0yywm1mkKqCNDFqlnO5l5Unik1Wr/WTq HLvqzsuJ37uQkb85hdQ0IaAazjlA1R6mp+69UvjwPXePUDAtvZdjnK23rvYfN7Xoco1y 8yuJRctS6SALSY3u4RrQ1etHroLmexYBVNgJYiNG+1/7BX1Alk1+aVmN03+Jp8vjyRIO 2RWQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=2H/nDRAzZ+OGlMxBcAYNBB1VSVG7oxv1UHGK2TnTwUQ=; b=lw513x6HmKGd2Omiq+WWdeCiIpRrq5ha8t81lKC4Rb19OUgizU4VCa/BzYtgAtb6U2 I2ScZRbbljZKaf1hH4jIDcotaxeMl0Bjj+TrFm4mgztMZAOHQr1P0OtPg1mdI68KGwHf 1zr6XeHe77NrXttV8EmmVR/a+KCdqZYu6TRi39E99E5bFCuX1QpvbHntPAbJPyi9TIvT OqBC1hgUQH9kDmTWGbaNy27/kTjISwZaEhWD6hEHQK8MIN0eqOK1KQJrmc0l7DrWQMFw IcyYgiCFB1Vxz4v/Kh+mCzugMzoixtobrFBzOuygRr+oHpi8+bTIYZEwCi/xGzKuxOgx uBcw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b="cD3Q/HT8"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i2si687970oif.204.2020.04.07.06.36.35; Tue, 07 Apr 2020 06:36:48 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b="cD3Q/HT8"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728922AbgDGNfg (ORCPT + 99 others); Tue, 7 Apr 2020 09:35:36 -0400 Received: from us-smtp-delivery-1.mimecast.com ([205.139.110.120]:36548 "EHLO us-smtp-1.mimecast.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1728915AbgDGNfg (ORCPT ); Tue, 7 Apr 2020 09:35:36 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1586266535; 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: in-reply-to:in-reply-to:references:references; bh=2H/nDRAzZ+OGlMxBcAYNBB1VSVG7oxv1UHGK2TnTwUQ=; b=cD3Q/HT8x9FfpXf8EEETVWHUgssq0/FyXnaPMKwUZN8lR22FBT4W9gwFGtgNXM81axSAjh 3uwv5LNRJbyM3GUPJ6yCEdlUzbU+G/hAYhycVTsIEIp2RlTtEB7sjZJZuBJwqSjD63Etez id6prq9Wgaxfqxjj/ErtrNGgQ2/ph2w= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-436-SSra-W0VMfC3O-cIc41Dsg-1; Tue, 07 Apr 2020 09:35:33 -0400 X-MC-Unique: SSra-W0VMfC3O-cIc41Dsg-1 Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.13]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 48CD21926DA0; Tue, 7 Apr 2020 13:35:32 +0000 (UTC) Received: from treble (ovpn-116-24.rdu2.redhat.com [10.10.116.24]) by smtp.corp.redhat.com (Postfix) with ESMTPS id E89AB92FA2; Tue, 7 Apr 2020 13:35:30 +0000 (UTC) Date: Tue, 7 Apr 2020 08:35:28 -0500 From: Josh Poimboeuf To: Alexandre Chartre Cc: x86@kernel.org, linux-kernel@vger.kernel.org, peterz@infradead.org, jthierry@redhat.com, tglx@linutronix.de Subject: Re: [PATCH V2 0/9] objtool changes to remove all ANNOTATE_NOSPEC_ALTERNATIVE Message-ID: <20200407133528.htoxyrfc7fv625lh@treble> References: <20200407073142.20659-1-alexandre.chartre@oracle.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20200407073142.20659-1-alexandre.chartre@oracle.com> X-Scanned-By: MIMEDefang 2.79 on 10.5.11.13 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Apr 07, 2020 at 09:31:33AM +0200, Alexandre Chartre wrote: > Hi, > > This is version v2 of this patchset based on the different comments > received so far. It now uses and includes PeterZ patch to add > UNWIND_HINT_RET_OFFSET. Other changes are described below. > > Code like retpoline or RSB stuffing, which is used to mitigate some of > the speculative execution issues, is currently ignored by objtool with > the ANNOTATE_NOSPEC_ALTERNATIVE directive. This series adds support > for intra-function calls to objtool so that it can handle such a code. > With these changes, we can remove all ANNOTATE_NOSPEC_ALTERNATIVE > directives. > > Changes: > - replace RETPOLINE_RET with PeterZ UNWIND_HINT_RET_OFFSET > - make objtool intra-function call action architecture dependent > - objtool now automatically detects and validates all intra-function > calls but it issues a warning if the call was not explicitly tagged > - change __FILL_RETURN_BUFFER to work with objtool > - add generic ANNOTATE_INTRA_FUNCTION_CALL macro > - remove all ANNOTATE_SPEC_ALTERNATIVE (even for __FILL_RETURN_BUFFER) I had trouble applying the patches. What branch are they based on? In general the latest tip/master is good. -- Josh