From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=90.155.92.199 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796218733; b=PscF7on/4vYfcQrwYiUw7K2u5NM3rvda2x+lAmNEet230p4E3UlZaTtWfjBJYEhd6EhX yAhEid5lUHU3BOQ1V015DB35TYQv4lrP+k+F3V9GOAc0fGWAz8DzsHbIWh3mZbdSKejEj 91MaU1Xr1HJaAW6XcipH8XGyUm+2be4CVYyr7T1fkwZmOVPMqSu/H74vU6qgWnC5JGrAc 1TSfbYXzIB0bZA0a1dDRtJMGkHnPVnsTMuzp+91sCJvVnRKFPzsX0Z+FdigX6kmA1zxGu /oIlYA8mUnzC+2uLpZBQRGDH2umkUBK6CUeiBxpMFWkUlttgrgfIDktrUlPaAdO8Kfg== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796218733; h=DMARC-Filter:DKIM-Signature:Received:Received:Date:From:To:Cc: Subject:Message-ID:References:MIME-Version:Content-Type: Content-Disposition:In-Reply-To; bh=CQdr3v+4g70ZZ/fTZPh5KMVibea0/TyHmcFE82SfJNE=; b=L2f6EPH8318BQT/z/N3BHM743ac/tSyOsbXsCS7jcKJCOhuCeqOkjABAsgKQB++AnTpq fgk+Axo/WYmu9BURg7x6M3gxy0OXsYs4xjta2tjcWeQ9z7s7SfqdMVjzQH1OoWdLh29qc lOOc6OKbJnTd2G/ibv1ikavjGSrZeUr5A2bJ/LHb+PiTuJrNfG5p2KHwgTULpjNET0zIO zrvr61ySNDpO9cER+TII7n615QALAlodmIqrLHiWH+Q8FpiR2ENN53qPqXU+R9fwDWwbQ 4Zq5sTMrE2zRGToKIubXQYC+MyKTLLHlADPykg+aRCt9e7YTF7PEyLYj1tJsJUt9Lfg== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=infradead.org; spf=pass smtp.mailfrom=infradead.org; dkim=pass header.d=infradead.org header.i=@infradead.org header.a=rsa-sha256 header.s=desiato.20200630 header.b=e5aK2TiI; arc=none smtp.remote-ip=90.155.92.199 Received: from desiato.infradead.org (desiato.infradead.org [90.155.92.199]) (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 03FDB606A325; Wed, 2 Dec 2026 13:38:51 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 03FDB606A325 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=infradead.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=infradead.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (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=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-Mailing-List: rust-for-linux@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20261125061523.1540234-1-irogers@google.com> 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.