From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 12A2F606A335 for ; Wed, 2 Dec 2026 13:39:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.a=rsa-sha256 header.s=bombadil.20210309 header.b=gAUF+Tg1; dkim=fail reason="signature verification failed" (2048-bit key) header.d=infradead.org header.i=@infradead.org header.a=rsa-sha256 header.s=desiato.20200630 header.b=e5aK2TiI DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:In-Reply-To:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Unsubscribe-Post:List-Owner; bh=CQdr3v+4g70ZZ/fTZPh5KMVibea0/TyHmcFE82SfJNE=; b=gAUF+Tg1SPs7rR2D1GUCpxQ8sw gz2nm7DGBNwQmBO0eucBxw89IFyfT8VzLtwE9gQ7SheGbti2g4WCegTTM5W97RWASE+D2qKWZFkwa EMaXxS9LQt08/eOOqkxUPxn2c9ykf7gOP/dUNxUAp1LVkXb314SDYeExmoFwpwN1/4Xze7j0nRSUz yIFR6Y6Gdogy0CpnwV/5/0SAF88TEUXuu06DnBDEpF7zMP+EWczoUaDKzl3/oQ8143HaAFL1DTsrQ VpLr9k2pMDz+ns/UgRhHzv2CHRcqusQqq8ESZxtksJsbQ1oRASzJ/z51On3XeYbNlfvP+8ZR07xDr tBhvvXAQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.100.1 #2 (Red Hat Linux)) id 1xYkXp-0000000Bc3R-3ZlY; Wed, 02 Dec 2026 13:38:49 +0000 Received: from desiato.infradead.org ([2001:8b0:10b:1:d65d:64ff:fe57:4e05]) by bombadil.infradead.org with esmtps (Exim 4.100.1 #2 (Red Hat Linux)) id 1xYkXn-0000000Bc38-247j; Wed, 02 Dec 2026 13:38:48 +0000 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=CQdr3v+4g70ZZ/fTZPh5KMVibea0/TyHmcFE82SfJNE=; b=e5aK2TiIpqwl78ltauNwF9W/Ef G1JI4dFGCwvhxh8pDPf7xncSyTESYjxUSK1Pc/x5szxNjpEAos+nMK/LaJ4nenbhqfAZch71BU7VU yU0O4HDX+0cFZE/dV7WDZHJ5lYqWwWIC//2Nl6fCTJvO6mlMLPauoJdo0GfmGW3sZN/Ha5i6SO/ed 6pv45CFKNL38E+HFADbixyPHS+TDll12nPy6HSfXxZKPQ8JuYb3Ueg+OshalTcJ2HQrFvsUxPDHKO ClUaCJOrDpobjP3pyI9sWa4S+HPiVGB78T/ACBViU7Lm9O5b8PfVDoXercfb3c/sNu0adA/RRXhY3 S2m4hl6w==; Received: from 77-249-17-252.cable.dynamic.v4.ziggo.nl ([77.249.17.252] helo=noisy.programming.kicks-ass.net) by desiato.infradead.org with esmtpsa (Exim 4.100.1 #2 (Red Hat Linux)) id 1xYkXd-0000000CKJw-1LNJ; Wed, 02 Dec 2026 13:38:37 +0000 Received: by noisy.programming.kicks-ass.net (Postfix, from userid 1000) id 1C5D630045A; Wed, 02 Dec 2026 14:38:35 +0100 (CET) Date: Wed, 2 Dec 2026 14:38:35 +0100 From: Peter Zijlstra To: Ian Rogers Cc: linux-kernel@vger.kernel.org, linux-trace-kernel@vger.kernel.org, linux-arch@vger.kernel.org, jpoimboe@kernel.org, rostedt@goodmis.org, mingo@redhat.com, tglx@kernel.org, bp@alien8.de, dave.hansen@linux.intel.com, x86@kernel.org, catalin.marinas@arm.com, will@kernel.org, mark.rutland@arm.com, linux-arm-kernel@lists.infradead.org, pjw@kernel.org, palmer@dabbelt.com, aou@eecs.berkeley.edu, alex@ghiti.fr, linux-riscv@lists.infradead.org, acme@kernel.org, namhyung@kernel.org, linux-perf-users@vger.kernel.org, mhiramat@kernel.org, ast@kernel.org, daniel@iogearbox.net, andrii@kernel.org, bpf@vger.kernel.org, nathan@kernel.org, llvm@lists.linux.dev, nsc@kernel.org, linux-kbuild@vger.kernel.org, ojeda@kernel.org, rust-for-linux@vger.kernel.org, ardb@kernel.org, linux-efi@vger.kernel.org, maz@kernel.org, oupton@kernel.org, kvmarm@lists.linux.dev, shuah@kernel.org, linux-kselftest@vger.kernel.org, indu.bhagat@oracle.com, jremus@linux.ibm.com, wnliu@google.com, dylanbhatch@google.com Subject: Re: [RFC PATCH v2 00/30] unwind: Minimal DWARF CFI unwinding for user and kernel space Message-ID: <20261202133835.GJ2883950@noisy.programming.kicks-ass.net> References: <20261125061523.1540234-1-irogers@google.com> X-Archived-By: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20261125061523.1540234-1-irogers@google.com> X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" X-Spam-Status: No, score=-4.1 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS autolearn=no autolearn_force=no version=4.0.1 X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-26) on aws-us-west-2-korg-listserv-alma10-1 On Tue, Nov 24, 2026 at 10:14:53PM -0800, Ian Rogers wrote: > Overview > ======== > > This RFC v2 series introduces Minimal DWARF Call Frame Information (CFI) > stack unwinding in the Linux kernel for both user-space deferred > callchains (unwind_user / PERF_RECORD_CALLCHAIN_DEFERRED) and > kernel-space stack traces (stacktrace.h / HAVE_RELIABLE_STACKTRACE) > across x86-64, ARM64, and RISC-V, paired with an optional standalone C > build-time .eh_frame minifier (scripts/min_eh_frame.c). > > It enables reliable stack unwinding across kernel and user-space > binaries compiled with or without frame pointers (-fomit-frame-pointer), > without introducing duplicate .sframe sections in user-space ELF files > or requiring new compiler, assembler, or dynamic-loader formats. > - x86-64 (arch/x86/kernel/unwind_dwarf.c & stacktrace.c): Unwinds > vmlinux and RCU module .eh_frame tables, recovers CFA-keyed > ftrace_graph and rethook return addresses, sets state->error on any > missing or invalid FDE, and rejects stacks containing in-kernel > pt_regs boundaries in arch_stack_walk_reliable() (matching > CONFIG_FRAME_POINTER because inline asm such as pushf; pop adjusts > %rsp without .cfi_adjust_cfa_offset across preemption). I'm thinking we very much to not want .eh_frame unwinding for kernel space on x86_64. There is no interest in adding .cfi annotations to the asm files and even less interest in chasing toolchain bugs in this area. ORC works and is fully under our own control.