Received: by 2002:a05:6602:18e:0:0:0:0 with SMTP id m14csp1592400ioo; Fri, 27 May 2022 11:51:18 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzMV5sWT/M/t5yfion7MHdzFSnSmfL8aUn2XTnaHBXdEjWyBTTuFCVydxbKo+yln0HJFrFK X-Received: by 2002:a17:906:dc89:b0:6f4:d3a9:34ed with SMTP id cs9-20020a170906dc8900b006f4d3a934edmr40115996ejc.459.1653677478654; Fri, 27 May 2022 11:51:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1653677478; cv=none; d=google.com; s=arc-20160816; b=G1hZ93Ja1UoqDukE2N7BzTGDajNot2J5Mt2M+CRW3UmHDJ51d4PdOM2+Fbpb4vedUE iuIO+RqynPq4ZiuUdZh1ZlhTqiQCTNO6sqXCpBuFcQ+2SUUW7BpcHRaxyJ1yajwtYwvr KhJgeEq+mA6+KDkWoMFH7hgdBgaIly4o0FQs1yWNUAEGj5Otpi4pSCkGgjjMoUg1+T7w t0EDKq5wwKUnBeHSJ36MIYaWHiKVaaR7wnzaA7rRi4t1XoQdJuDNtZE8OY+8ZKUnNa+B QXF7pF6hUVpDCKQ/btITvEYr0I/mzTmrMcmYjvXrg6HhegH8j9xjYbe2yADQB6iu7wBE Pyqg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:subject:cc:to:from:date :user-agent:message-id:dkim-signature; bh=ahCkEUxJhRK4hVH+4uEu4Zy1YkpDUahrDlA6QHnqYn8=; b=p9u/yHc7fPwuFST12gRVLjqnH/6M/CLZVUJ6S9sF+tvRK9ulAd0ZPlvBGCGKCjAQc4 Gn9RA4G9s0bX5FrUUJjyPfhVnO3Q+Y3lrLuC65uqT6EWEphIWDkNFFIk3BYbABOgTzWw Vi0hdOn4fYFWKPjLufcYKpkKpT98ludc5SnvsbBOOXkqXwq9aR87Yn9I843a6EtmOjtg 09rGrhHmD0vt7k2cKPFlx8E0JXJLjQKQbWdJjqLAK3yzHGg31ABm1ubwRPj/7jVGnDGp 3xp7eSemPKH/IXdEQ0zMU2hQNOQ1HO0kXkFnN/WGGuLTFVQOBUiCcSLMH3yFOJMXSpkH DPIQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=VBE83Hd4; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id i3-20020a1709064fc300b006fee2d84db4si6644442ejw.301.2022.05.27.11.50.52; Fri, 27 May 2022 11:51:18 -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=@infradead.org header.s=casper.20170209 header.b=VBE83Hd4; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1347127AbiEZLDm (ORCPT + 99 others); Thu, 26 May 2022 07:03:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35328 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1347104AbiEZLDP (ORCPT ); Thu, 26 May 2022 07:03:15 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2DCC9CEBB1 for ; Thu, 26 May 2022 04:03:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=Content-Type:MIME-Version:References: Subject:Cc:To:From:Date:Message-ID:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:In-Reply-To; bh=ahCkEUxJhRK4hVH+4uEu4Zy1YkpDUahrDlA6QHnqYn8=; b=VBE83Hd4eytECO94kruW1UuKSc 2WI3mvsU/TIWy8PuSiezJKbYSVu2vrql7iDaYT9vR22bxcXupaeD6bGmbN75ZXokikrHgKGVbFMrM FTWGjHlJDlRgS+q28NyFrsn5MDRRUn/Bcfb2+26JX2xQjr3/Zd3k+4AUDgBbFrLx1920YCNiBtlWj jmWb+ohJoYo8MAcRjGlsN691mXZgBGrzZK/OfrK5LqlqyPAb0vcp0TX0N55A7vLTD6JV1pgwEFbvO v/sgzlDvd21SIW56whktjMdaGO+qO3KdS+KYriZxBVboad6LrOgcSu0hl7UND/ORRyXZ7+c1NH3Jk T9JS6Fbw==; Received: from j217100.upc-j.chello.nl ([24.132.217.100] helo=noisy.programming.kicks-ass.net) by casper.infradead.org with esmtpsa (Exim 4.94.2 #2 (Red Hat Linux)) id 1nuBGX-001Bjo-5l; Thu, 26 May 2022 11:02:53 +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 (4096 bits) server-digest SHA256) (Client did not present a certificate) by noisy.programming.kicks-ass.net (Postfix) with ESMTPS id 932EE30031D; Thu, 26 May 2022 13:02:50 +0200 (CEST) Received: by hirez.programming.kicks-ass.net (Postfix, from userid 0) id 6B11E202C3166; Thu, 26 May 2022 13:02:50 +0200 (CEST) Message-ID: <20220526105957.754830839@infradead.org> User-Agent: quilt/0.66 Date: Thu, 26 May 2022 12:52:53 +0200 From: Peter Zijlstra To: x86@kernel.org, jpoimboe@redhat.com Cc: linux-kernel@vger.kernel.org, peterz@infradead.org, elver@google.com, jbaron@akamai.com, rostedt@goodmis.org, ardb@kernel.org, mark.rutland@arm.com Subject: [PATCH 1/7] x86/entry: Anchor annotation References: <20220526105252.440440893@infradead.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_NONE,T_SCC_BODY_TEXT_LINE 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 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) /*