Re: [PATCH 1/3] kallsyms: embed source file:line info in kernel stack traces

From: Randy Dunlap

Date: Fri Mar 06 2026 - 00:28:42 EST




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 <sashal@xxxxxxxxxx>
> +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 <naveen@xxxxxxxxxx>
> M: "David S. Miller" <davem@xxxxxxxxxxxxx>

--
~Randy