Received: by 2002:a05:6358:489b:b0:bb:da1:e618 with SMTP id x27csp4310094rwn; Sun, 11 Sep 2022 09:13:11 -0700 (PDT) X-Google-Smtp-Source: AA6agR7ePMrbk2HGBpjTnkQFCW8vQvvg8z1sFszZcq9m+7gwQ0ZJAaWGaxeEnsykAQI05TCpUcVE X-Received: by 2002:a17:907:2c74:b0:77d:5624:6301 with SMTP id ib20-20020a1709072c7400b0077d56246301mr1118937ejc.133.1662912790841; Sun, 11 Sep 2022 09:13:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1662912790; cv=none; d=google.com; s=arc-20160816; b=zE45h+k/chIeie0b7Jx/OO3++hmQAgZ6JF0Joq3PKnpbsScWFHfNhfBEEen8J49zhX 3vTZQY3rrv3YjOgOHewvbzcAw82qxJBanjbGvNXQm141PA5oSJA4kD2ETnwJtahek0Od NGkHsnGY0vTE+h5BOvNb+Awmul+xqbL8cKV4nPYW+OGtUySzAE/v9E9KzqgQPu6vXTod 0VQHK7DR4BwQxR3Fq2gFkFOLjCEu8pP8o8O1uMlkn7tebFrEXIHeDp8rkDXKW/3OhbKl RZUrN244MTIbzbALU5FEO08r9J7h1QBrlb/wdz45+3qZPy9U2IXfRlXviSTeBZZvEYqP 8Q4A== 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=dA4KVJ9n+xFH+aRdTmGiWAtvnpKz/8BixrIpwCUxjkc=; b=1F/gAkXH8yX3+zmOHNWrh2v1Gi6K7sCfuJEOHXQnP9+ja2xle27MXBK+/uEPP1M5Nd 0uTVdFlAduE14+tfm6lowUK+HyrmoJD7pcHE4pSh3nIHFjTKJ+KqlJsEe1Hf+Mtl8VPt EWp2sG5g6lmZQvegBkUXWjdIK4EGK0q20RlvXwamdPXwGsoIvGkAZKf+MH4qLqcv92IW ZFDaORyecKNlQuKYL9wwB+297RtPVxvIvOBneYiYYQ6H2xBqCsVmdbFONNATsooGSHgb Nm1HhZ0JQTm0XxhEmC9l5mJF+pY2b9fczeiHxKQ+BeDdaWWDmqhopFBtfCAMx7d73StL sTow== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=desiato.20200630 header.b=OG6BVIJB; 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 vz14-20020a17090704ce00b0072b6290f476si3925915ejb.842.2022.09.11.09.12.45; Sun, 11 Sep 2022 09:13:10 -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=OG6BVIJB; 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 S229622AbiIKP1I (ORCPT + 99 others); Sun, 11 Sep 2022 11:27:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37026 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229547AbiIKP1F (ORCPT ); Sun, 11 Sep 2022 11:27:05 -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 3E2521F602; Sun, 11 Sep 2022 08:27:04 -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=dA4KVJ9n+xFH+aRdTmGiWAtvnpKz/8BixrIpwCUxjkc=; b=OG6BVIJB3q4yCM/NV+izRXyJ0q 99gfi9l91m0kKaaSLo2cgsOK8Z5HjaKHAYH1h/5TTrdLQwPzb7H3iOZHTUSQEAf23oiUFiLc2e4aP NnrSBGBfcAiCUYl6BMaN9BeaGaV0Ihx2lwfguVQ6OLR/dECX+C5xicUpuPz1y5VKZATM90hHHyXxS qLRYbz90DMY+9MEPiGsU/vKcdgNBG87EOhGBxQ8Qwmna9GtL7PVEGEkcpz8nyzlu3ywVU267V0mu7 Uv+pZBF8a2hKkIgV0jita7HVD8Q6/qhWJKn6WhHQ7vlKWMVgIeuG/kWID7ROjFI7Lw3tBtqrZ5cKD QFKs5rbg==; 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 1oXOqj-00Bbqh-3b; Sun, 11 Sep 2022 15:26:21 +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 831F030008D; Sun, 11 Sep 2022 17:26:18 +0200 (CEST) Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id 5CEEE2B16575A; Sun, 11 Sep 2022 17:26:18 +0200 (CEST) Date: Sun, 11 Sep 2022 17:26:18 +0200 From: Peter Zijlstra To: Josh Poimboeuf Cc: linux-toolchains@vger.kernel.org, Indu Bhagat , Nick Desaulniers , linux-kernel@vger.kernel.org, "Jose E. Marchesi" , Miroslav Benes , Mark Rutland , Will Deacon , x86@kernel.org, linux-arm-kernel@lists.infradead.org, live-patching@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, Ard Biesheuvel , Chen Zhongjin , Sathvika Vasireddy , Christophe Leroy , Mark Brown Subject: Re: [RFC] Objtool toolchain proposal: -fannotate-{jump-table,noreturn} Message-ID: References: <20220909180704.jwwed4zhwvin7uyi@treble> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220909180704.jwwed4zhwvin7uyi@treble> 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 On Fri, Sep 09, 2022 at 11:07:04AM -0700, Josh Poimboeuf wrote: > Alternatives > ------------ > > Another idea which has been floated in the past is for objtool to read > DWARF (or .eh_frame) to help it figure out the control flow. That > hasn't been tried yet, but would be considerably more difficult and > fragile IMO. I though Ard played around with that a bit on ARM64. And yes, given that most toolchains consider DWARF itself best-effort, I'm not holding my breath there. On top of that, building a kernel with DWARFs on is just so much slower..