Received: by 2002:a05:6358:489b:b0:bb:da1:e618 with SMTP id x27csp8021312rwn; Wed, 14 Sep 2022 07:53:04 -0700 (PDT) X-Google-Smtp-Source: AMsMyM46+GTVE9smQOBU1CcXyZkuZpWfpAqZrGWJLx7xQGqRTaI/AiWBp2si+PC+Dc0S6ux5w/A8 X-Received: by 2002:a17:90b:358e:b0:200:9d8a:7a70 with SMTP id mm14-20020a17090b358e00b002009d8a7a70mr5175549pjb.61.1663167183911; Wed, 14 Sep 2022 07:53:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663167183; cv=none; d=google.com; s=arc-20160816; b=oKLg5BzCRSN+09m8YMDTpNuyMtjIAsTt81SqajXXaNi3jOybv4YD+/5db/Ge1lO0sx r3FD0ETwkh4MiuZyYTwQ6P8oNvEK+LGPmbta0/Tk/8oXsOm95JrZdypMtex0GmC6x0j6 fCcQJbkJlWqC1fhO+H2nF/FMY4pN3dYcTQileEmIHrCBHHtaNmdMkmoeC3mvZmrog5cL Yf2GOp0yHFFfFcAQmZ6sCXsRb1WV9E/3Zx8NGFElY10/8Mm3lfgE2Tbq5H+4dFfhruSy MZ9IrVbTbmS6xrJDRFRQgdEiNAdvpwSmpJ1lgnniPSasECsPRr8BqeIP8URRP32uhm/D cJSw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent:references:message-id :in-reply-to:subject:cc:to:from:date:dkim-signature:dkim-signature; bh=rNlI3zlemkHtad6UJYVAQefl5OerSoDA86fMBi08vO4=; b=exK1aTxvyAdE8X8ZQA7BbiPgJdZtsB/qsIFOGpTSLIlr+JeCyk+6LBdX/+97AZQz6g pzXmGmSAg+vQyFQkjXFF1fbez6e6sXfWMaEULOsiwAKS0ArOd0gwjxXiO2L6XWlLyGD3 JkEIAtrqFiS+cgjEvsMq//hDYo6YALOJu8W3W4oQmdy2Ch56t40PLPFqos89+XoRZdwD 8snoSwtCLfCemZjOCwr5Gd0oi6t9IT+zZBQtMV4Au29wRauCdCkj/l2JpvgMRoeVIra7 on48Sqjk0KwdLQx8AFj8LN9EDiC1zE/wkG367xAnlBG/VFXwqPSfN2+m1ntFIYGjQC5h ZpCg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=IMcU+sMz; dkim=neutral (no key) header.i=@suse.de; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=suse.de Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id s23-20020a634517000000b00438cd7f5b74si13175482pga.801.2022.09.14.07.52.41; Wed, 14 Sep 2022 07:53:03 -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=@suse.de header.s=susede2_rsa header.b=IMcU+sMz; dkim=neutral (no key) header.i=@suse.de; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=suse.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229938AbiINO2x (ORCPT + 99 others); Wed, 14 Sep 2022 10:28:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47360 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230042AbiINO23 (ORCPT ); Wed, 14 Sep 2022 10:28:29 -0400 Received: from smtp-out2.suse.de (smtp-out2.suse.de [IPv6:2001:67c:2178:6::1d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D73393ED5C; Wed, 14 Sep 2022 07:28:28 -0700 (PDT) Received: from relay2.suse.de (relay2.suse.de [149.44.160.134]) by smtp-out2.suse.de (Postfix) with ESMTP id 884331FAC1; Wed, 14 Sep 2022 14:28:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1663165707; h=from:from:reply-to: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=rNlI3zlemkHtad6UJYVAQefl5OerSoDA86fMBi08vO4=; b=IMcU+sMzPrtf2swXGKoltws1DQ4PgrmVnuO6T/Q8delDYm0q8pNrJpq1MOP7xd6pZAf/Jb Fj9kKS+pmhqrUq9gHQbLKe9xjwQzs0XXFM41HygdB74Nb7ZvF9w5/0sBD/TJQ6ijUhNld2 ovmAUy7zEQzNfJwAOOA+Lerl2Xz07qg= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1663165707; h=from:from:reply-to: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=rNlI3zlemkHtad6UJYVAQefl5OerSoDA86fMBi08vO4=; b=3fJIRsrioi8AmmHGURizF9ChVKr3QoUbkZwIJ7IgJ5my1PvR3SHrnTkZipLA9y0w31fOb6 QBhZcoLjuWM9F4Bw== Received: from wotan.suse.de (wotan.suse.de [10.160.0.1]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by relay2.suse.de (Postfix) with ESMTPS id 0A94B2C141; Wed, 14 Sep 2022 14:28:27 +0000 (UTC) Received: by wotan.suse.de (Postfix, from userid 10510) id EFA0E62AF; Wed, 14 Sep 2022 14:28:26 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by wotan.suse.de (Postfix) with ESMTP id EDC3C62AE; Wed, 14 Sep 2022 14:28:26 +0000 (UTC) Date: Wed, 14 Sep 2022 14:28:26 +0000 (UTC) From: Michael Matz To: Peter Zijlstra cc: Josh Poimboeuf , Borislav Petkov , 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} In-Reply-To: Message-ID: References: <20220909180704.jwwed4zhwvin7uyi@treble> <20220914000416.daxbgccbxwpknn2q@treble> User-Agent: Alpine 2.20 (LSU 67 2015-01-07) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS, 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 Hello, On Wed, 14 Sep 2022, Peter Zijlstra wrote: > > Maybe this is semantics, but I wouldn't characterize objtool's existence > > as being based on the mistrust of tools. It's main motivation is to > > fill in the toolchain's blind spots in asm and inline-asm, which exist > > by design. > > That and a fairly deep seated loathing for the regular CFI annotations > and DWARF in general. Linus was fairly firm he didn't want anything to > do with DWARF for in-kernel unwinding. I was referring only to the check-stuff functionality of objtool, not to its other parts. Altough, of course, "deep seated loathing" is a special form of mistrust as well ;-) > That left us in a spot that we needed unwind information in a 'better' > format than DWARF. > > Objtool was born out of those contraints. ORC not needing the CFI > annotations and ORC being *much* faster at unwiding and generation > (debug builds are slow) were all good. Don't mix DWARF debug info with DWARF-based unwinding info, the latter doesn't imply the former. Out of interest: how does ORC get around the need for CFI annotations (or equivalents to restore registers) and what makes it fast? I want faster unwinding for DWARF as well, when there's feature parity :-) Maybe something can be learned for integration into dwarf-unwind. Ciao, Michael.