Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp620309rwb; Thu, 22 Sep 2022 04:28:40 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5t3liaCkkPhCqN3jbGZABP0nAOTz7LUGYWWV573RYvvdKF5/XK0szrYhLHQ6D+K7S+11/q X-Received: by 2002:a17:907:9616:b0:782:4a87:3aaf with SMTP id gb22-20020a170907961600b007824a873aafmr2296770ejc.131.1663846119866; Thu, 22 Sep 2022 04:28:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663846119; cv=none; d=google.com; s=arc-20160816; b=S098AktJO9smQPS+hSizDT6L7dAVAM1nik9DE1FkFvgb1ZGb3GJpGpSxXmdS+Kv8Pq eCf5YoorQ1o8vmEaIKDX1Z8DUnoI0sLICGnJpBGa0JqNdFMveqmw/H1HtFCWSIOrvKuz NVFYRjVtE1vnhHKOQXAna+rF36JmitTEu45pa+zX0rM/OfCTGjDJwBxqf0GHWYxZwFau pjYLsoUERJg5bHhqO1bmRvc1bRgHZx/q8KEd7Ns3fsPOaySKlc6YJSixFR8cFHo2MerU PkWr+76CrgRh91/XGWb9kixsPyDq7F8gBTsbbrIb3wPZp59IjJP7g+VulAj29r1VbEyC tc0Q== 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=2kibY8Nweftx04FK9m7D/xvB+s41KyG8kSahRJmzDQY=; b=X8HCcbGuwA2gXwKW2lzQ9UGybOK3UK1wj73B0dXfFt/JO+wL2rX8+fVv8Ymp8S792K GS6vicojCgsiGdDRv3R6oaVpcS6VM5wMO8I/vnn5AITNoOk8lOEJDoxJdEvWPlCC2y1M zQuRszzillReCLjNm7KH/+iH6YlKxnIDzzj/FV5DV3NSGgNb7MciJTvfANujI1kVWrae HuXv2/xh2gdH8t89drLf5vYz9ILV49FwtIwglEH0RcLP5RhOdiuwXddCWFgtq4AXF05y AVI7yE4XXxMV3ZrjLNX1S1UPQOnDeHm+WstIdo8kbn+jSrLI4kGWayjRp2ZS/NXiSct8 xYfQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=desiato.20200630 header.b=jCtnGGAc; 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 hv11-20020a17090760cb00b0073d2fa02149si4319734ejc.553.2022.09.22.04.28.12; Thu, 22 Sep 2022 04:28:39 -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=desiato.20200630 header.b=jCtnGGAc; 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 S229884AbiIVKrz (ORCPT + 99 others); Thu, 22 Sep 2022 06:47:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47182 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229470AbiIVKrx (ORCPT ); Thu, 22 Sep 2022 06:47:53 -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 07FCFCC8F8 for ; Thu, 22 Sep 2022 03:47:52 -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-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=2kibY8Nweftx04FK9m7D/xvB+s41KyG8kSahRJmzDQY=; b=jCtnGGAc5yEixTV4V7CKVVFf4z p7PDW+oF3EFFQBk1Wuq0fLwjqzvbK0J4DYUW3Z10xUoKpUkkAVTQ4MOdDXUuOe0QI3fVVqIJ9O9sm BoO/N/T7wPulTLsSDJQ8+obKeuzj1D4sSNtw4YqX8yWDzXMpmSGJImzz6tRR7uHtBC01r/fHA1Dgp QBrJAdIaJcywC45PYPIfcPL3LckK0hQG1kdldxB5LHECyBMyAISaro5gtzK/g32Tjq3Z3eW+OAtN9 ugcW7SQqRFnP6+LW/v7EP5kfGbbehRJy7TkfiuE5Aac+Xbt3IkNGiHUC499ucX3Ur0sU7OkIcrXec Bd77sb/A==; Received: from j130084.upc-j.chello.nl ([24.132.130.84] helo=noisy.programming.kicks-ass.net) by desiato.infradead.org with esmtpsa (Exim 4.94.2 #2 (Red Hat Linux)) id 1obJjr-00EwKr-EN; Thu, 22 Sep 2022 10:47:27 +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)) (Client did not present a certificate) by noisy.programming.kicks-ass.net (Postfix) with ESMTPS id 72F93300074; Thu, 22 Sep 2022 12:47:26 +0200 (CEST) Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id 53FE92BB9BA7A; Thu, 22 Sep 2022 12:47:26 +0200 (CEST) Date: Thu, 22 Sep 2022 12:47:26 +0200 From: Peter Zijlstra To: Pawan Gupta Cc: Thomas Gleixner , linux-kernel@vger.kernel.org, x86@kernel.org, Linus Torvalds , Tim Chen , Josh Poimboeuf , Andrew Cooper , Johannes Wikner , Alyssa Milburn , Jann Horn , "H.J. Lu" , Joao Moreira , Joseph Nuzman , Steven Rostedt , Juergen Gross , Masami Hiramatsu , Alexei Starovoitov , Daniel Borkmann , K Prateek Nayak , Eric Dumazet Subject: Re: [PATCH v3 32/59] objtool: Allow STT_NOTYPE -> STT_FUNC+0 tail-calls Message-ID: References: <20220915111039.092790446@infradead.org> <20220915111146.224130589@infradead.org> <20220922052750.wux3iykp2pfzi75k@desk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: 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 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 On Thu, Sep 22, 2022 at 12:29:58PM +0200, Peter Zijlstra wrote: > I managed to reproduce with 12.2.0 -- my 12.1.0 compiler didn't > reproduce. > > $ ./scripts/objdump-func vmlinux.o ftrace_replace_code > 0000 0000000000012a83 : > 0000 12a83: 48 89 de mov %rbx,%rsi > 0003 12a86: 89 c7 mov %eax,%edi > 0005 12a88: 5b pop %rbx > 0006 12a89: 5d pop %rbp > 0007 12a8a: 41 5c pop %r12 > 0009 12a8c: 41 5d pop %r13 > 000b 12a8e: 41 5e pop %r14 > 000d 12a90: e9 62 fd ff ff jmp 127f7 > > > Seems to suggest objtool is actually right; I cannot find a reference to > that cold symbol. Ohhhh, ftrace_replace_cold is a weak function, so it could be the original weak symbol had a reference to the cold thing. We have some code to deal with crap like that, lemme try and figure out what went wrong.