Received: by 2002:a05:6602:18e:0:0:0:0 with SMTP id m14csp2387932ioo; Sat, 28 May 2022 12:04:45 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzxGp+Y/N7xQ0Zr33HMr3uvpFmWx4e7R4o4oOqcUOQc1iu2nCbwYK7UZE/EjxLHabKbChdc X-Received: by 2002:a17:902:76cb:b0:15e:e178:e2eb with SMTP id j11-20020a17090276cb00b0015ee178e2ebmr49303249plt.0.1653764685293; Sat, 28 May 2022 12:04:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1653764685; cv=none; d=google.com; s=arc-20160816; b=N0XpTUrTGcYaeFRk/GfOpSxn0L49pfN/OGxZPO62AsVj83KA5chhNnFlHC1u0AlRoU pL6h7K+g2eBoOg94FK1358FaUZ7h9Ulhjw0YKPv4lo3tGDmC02bOc9w6HCbARouX97Ag XYmtL2xf35+wREepDvgDg65jcnQ++zGxz71QfnQzf7Z4V88geSHkeZhhhQYVOP0krvTG qHpbeQrF5LX4WtbMBip1Na6zqKmWWQfNwhyOSkkb7sfIrQdjKRC0oEjftjL6hyQICE8h 6QRd8/YmE/XQPibWc49LBg9KnmMjDr8NBSYAH9WCIC+aZLd4CkYqPD8/Km41afRWkSes kcXQ== 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=0F9eGLXRdJKTz3t41Iyw2k6BptoWXXxGKZDfcsazRvI=; b=PLcf8MaDN5pGak4uVEBY1KbacNzFjzQL6e/0QYlF5GjzcwHRkdr0GNnXiXKFTlk8jS 3A6qeLCX9wQcaZUe2AVjif3GdaYVknvP8kb3CP0L6sE0g9eGEj4wmLoN1ZR71bFpWdj9 AszNfcuLowjoVHP74wfjNd/vXBzBHIwk5BKiFwfPYf5DAtAYZFCdFrEUiLtGHqeX10M/ owby4B7mZlcV0ScoE22KekqglLReNTKbJ0EjxoGY3Zl36jcolOixIhR56oumOSt5x+/0 ybJxWBgNuQDZj6e/8hRDRTFd1ruN2Z0Krko+6MdMMJsKZQmvTdMyVZ8BolpKWTZiKftB heEA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=EIk+Spse; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id a33-20020a634d21000000b003daeb2bb972si9909614pgb.699.2022.05.28.12.04.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 28 May 2022 12:04:45 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=EIk+Spse; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 02EC33EA82; Sat, 28 May 2022 11:45:48 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1347195AbiEZPEQ (ORCPT + 99 others); Thu, 26 May 2022 11:04:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58538 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236669AbiEZPEN (ORCPT ); Thu, 26 May 2022 11:04:13 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DFA7E6A42C for ; Thu, 26 May 2022 08:04:12 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id E81AE61BD1 for ; Thu, 26 May 2022 15:04:10 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id CF142C385A9; Thu, 26 May 2022 15:04:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1653577450; bh=DAb6Mdf0L5zLMXVmixeygXYc8MEZ6Kt1EcneRZH0ja0=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=EIk+Spsefgrihz/Ij8Nj75Ys69J7KtYhwaUGRgBVdYtP0Z4qsP77FSz2uklqRpYCZ 3Exf4aANOHEv2OtNlQZa0PaBmWVheUmLcG1ih236qzadRs4zLx3hQQ1YlneE8CDbx5 2YVIG0RKFuoHHG/HoLoGwFOyng4p1czKDhtORg/Td5PgVgwsNHcIDRW5XVjgWzz9xT 84UTtw5SSlp4lUeLgfMquOOKxdU1kNh9MTEY1AD7TSUZGrACvM+07/8GWywrAXZ5Qf Z+lj/3z3tYBLrIZpho6Kqd8dPsXYCxmmuzVL8ShRac4G3oHE0J0gK5wGGmYt+ZrERF Hl4DdX9k8H4+g== Date: Thu, 26 May 2022 08:04:07 -0700 From: Josh Poimboeuf To: Peter Zijlstra Cc: x86@kernel.org, jpoimboe@redhat.com, linux-kernel@vger.kernel.org, elver@google.com, jbaron@akamai.com, rostedt@goodmis.org, ardb@kernel.org, mark.rutland@arm.com Subject: Re: [PATCH 1/7] x86/entry: Anchor annotation Message-ID: <20220526150407.bsagwksr5osgde62@treble> References: <20220526105252.440440893@infradead.org> <20220526105957.754830839@infradead.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20220526105957.754830839@infradead.org> X-Spam-Status: No, score=-3.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=unavailable 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 Thu, May 26, 2022 at 12:52:53PM +0200, Peter Zijlstra wrote: > x86_64-allmodconfig gives: > > vmlinux.o: warning: objtool: entry_SYSCALL_compat+0x0: ANNOTATE_NOENDBR on ENDBR > > This is due to: > > ANNOTATE_NOENDBR > SYM_CODE_END(entry_SYSENTER_compat) > SYM_CODE_START(entry_SYSCALL_compat) > UNWIND_HINT_EMPTY > ENDBR > > And the hint then landing on the first instruction of the next symbol, > which happens to be ENDBR. Stick in an int3 to anchor the annotation > in the previous symbol. > > Fixes: 3e3f06950434 ("x86/ibt: Annotate text references") > Signed-off-by: Peter Zijlstra (Intel) > --- > arch/x86/entry/entry_64_compat.S | 1 + > 1 file changed, 1 insertion(+) > > --- a/arch/x86/entry/entry_64_compat.S > +++ b/arch/x86/entry/entry_64_compat.S > @@ -124,6 +124,7 @@ SYM_INNER_LABEL(entry_SYSENTER_compat_af > jmp .Lsysenter_flags_fixed > SYM_INNER_LABEL(__end_entry_SYSENTER_compat, SYM_L_GLOBAL) > ANNOTATE_NOENDBR // is_sysenter_singlestep > + int3 > SYM_CODE_END(entry_SYSENTER_compat) Hm, I get the feeling this warning is pretty much useless anyway. Can we just get rid of the warning instead? -- Josh