From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 855BA4A0C; Fri, 6 Mar 2026 05:28:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.137.202.133 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1772774909; cv=none; b=T3m7F4e19a3Xzm94iMffzUxayPDdAECX/GoRqfk25kkocwTPyJLO8bX5LY8GJQeoO0nviou9W9i/jKGG8vzouA/lAoLAh3Xth/NF+cl6mneo6R7tnqjGu45jajVstbGVBPWQCFNFDFzfv+Cz2LEo8yYM9n5rxierQ+tcnKy0DcA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1772774909; c=relaxed/simple; bh=Mymp5YMe/lwJlGb/YeUoaONjTRY+VLjELsuskVN91j0=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=YY+w3i4c0kYMVZmYeZEUanv+8nI7WF5vVdAUEkEnmHIK2zkkhwYkDOj8Vo1ZoUj0zFKA7+t44AklDMcBB0xK0sYXS4J596hISVshAyu3mcv7dq0PYjlCIkx1Hc3eua0/BXCErHsARLxXxCqWw7zJezqpvsjafw5jjD5a7xN/2vA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=infradead.org; spf=none smtp.mailfrom=infradead.org; dkim=pass (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b=nQUCEu9O; arc=none smtp.client-ip=198.137.202.133 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=infradead.org Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=infradead.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b="nQUCEu9O" DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Content-Transfer-Encoding: Content-Type:In-Reply-To:From:References:Cc:To:Subject:MIME-Version:Date: Message-ID:Sender:Reply-To:Content-ID:Content-Description; bh=Vkfetqs+xpuG5oD7JT2fp2BAiX2HJc/0mpwWIS+EuZA=; b=nQUCEu9OEPJLY3czN25dwPTfJ5 rmbiVdnd5/maK1qpOsCtJkMYiUi1zsvvIBPdtlF0ZwdS9EIl8GlYuTr/rLGlf0wURU6wKgC4AeYdU eWxmCjDAtxlZckaAmtqQiOjdyMfLRX+K0FLp70cjbE/y0j2stYSok5UTNKypGPypkXQfBXdrsfvi+ T0+L2RrWZzNvrAtdth/A303CX6+vgv3yQwo8Br7C+X31BAz5zWMnx+GeULLXg4jucp7GgjT3O8P5d U7caQXDvfe3n0iZ75Z4t106YTdvtQ1ZjHzKlQRWORCtJ3de0KrQyZEDPRtH1A07d4gSNXlQ10BASW YNdhM80g==; Received: from [50.53.43.113] (helo=[192.168.254.34]) by bombadil.infradead.org with esmtpsa (Exim 4.98.2 #2 (Red Hat Linux)) id 1vyNjN-000000032qp-3jvw; Fri, 06 Mar 2026 05:28:09 +0000 Message-ID: Date: Thu, 5 Mar 2026 21:28:09 -0800 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 1/3] kallsyms: embed source file:line info in kernel stack traces To: Sasha Levin , Andrew Morton , Masahiro Yamada , Luis Chamberlain , Linus Torvalds , Richard Weinberger , Juergen Gross , Geert Uytterhoeven , James Bottomley Cc: Jonathan Corbet , Nathan Chancellor , Nicolas Schier , Petr Pavlu , Daniel Gomez , Greg KH , Petr Mladek , Steven Rostedt , Kees Cook , Peter Zijlstra , Thorsten Leemhuis , Vlastimil Babka , linux-kernel@vger.kernel.org, linux-kbuild@vger.kernel.org, linux-modules@vger.kernel.org, linux-doc@vger.kernel.org References: <20260303182103.3523438-1-sashal@kernel.org> <20260303182103.3523438-2-sashal@kernel.org> Content-Language: en-US From: Randy Dunlap In-Reply-To: <20260303182103.3523438-2-sashal@kernel.org> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 3/3/26 10:21 AM, Sasha Levin wrote: > diff --git a/Documentation/admin-guide/kallsyms-lineinfo.rst b/Documentation/admin-guide/kallsyms-lineinfo.rst > new file mode 100644 > index 0000000000000..4dffc18dbcf5a > --- /dev/null > +++ b/Documentation/admin-guide/kallsyms-lineinfo.rst > @@ -0,0 +1,72 @@ > +.. SPDX-License-Identifier: GPL-2.0 > + > +================================== > +Kallsyms Source Line Info (LINEINFO) > +================================== Heading over/under lines must be at least as long as the heading. > + > +Overview > +======== > + > +``CONFIG_KALLSYMS_LINEINFO`` embeds DWARF-derived source file and line number > +mappings into the kernel image so that stack traces include > +``(file.c:123)`` annotations next to each symbol. This makes it significantly > +easier to pinpoint the exact source location during debugging, without needing > +to manually cross-reference addresses with ``addr2line``. > diff --git a/MAINTAINERS b/MAINTAINERS > index 61bf550fd37c2..ab987e74bb0f5 100644 > --- a/MAINTAINERS > +++ b/MAINTAINERS > @@ -14278,6 +14278,12 @@ F: lib/Kconfig.kmsan > F: mm/kmsan/ > F: scripts/Makefile.kmsan > > +KALLSYMS LINEINFO > +M: Sasha Levin > +S: Maintained > +F: Documentation/admin-guide/kallsyms-lineinfo.rst > +F: scripts/gen_lineinfo.c This entry should be in alphabetical order, just before KASAN. > + > KPROBES > M: Naveen N Rao > M: "David S. Miller" -- ~Randy