Skip to content

Unexport kallsyms_lookup_name() and kallsyms_on_each_symbol()

Will Deacon live-patching lkml 1 version Applied

Status from this message: [merged] kallsyms-unexport-kallsyms_lookup_name-and-kallsyms_on_each_symbol.patch removed from -mm tree

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 22 repliesApplied 3/3

Patches in v1 All 3 applied

#Subject and filesSizeRepliesApplied
1/3samples/hw_breakpoint: Drop HW_BREAKPOINT_R when reporting writessamples/hw_breakpoint/data_breakpoint.c+1 -11 replyApplied
2/3samples/hw_breakpoint: Drop use of kallsyms_lookup_name()samples/hw_breakpoint/data_breakpoint.c+7 -22 repliesApplied
3/3kallsyms: Unexport kallsyms_lookup_name() and kallsyms_on_each_symbol()kernel/kallsyms.c+0 -23 repliesApplied

Reviews trailers per patch

All 3 patches have a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchGreg Kroah-HartmanChristoph HellwigAlexei StarovoitovQuentin PerretMasami Hiramatsu
SeriesR-b R-b
1/3R-b
2/3R-b
3/3R-b R-b A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 5 reviewers.

Read the v1 thread

Cover letter [PATCH 0/3] Unexport kallsyms_lookup_name() and kallsyms_on_each_symbol()

Hi folks,

Despite having just a single modular in-tree user that I could spot, kallsyms_lookup_name() is exported to modules and provides a mechanism for out-of-tree modules to access and invoke arbitrary, non-exported kernel symbols when kallsyms is enabled.

This patch series fixes up that one user and unexports the symbol along with kallsyms_on_each_symbol(), since that could also be abused in a similar manner.

Cheers,

Will

Cc K.Prasad <[email protected]>
Cc Thomas Gleixner <[email protected]>
Cc Greg Kroah-Hartman <[email protected]>
Cc Frederic Weisbecker <[email protected]>
Cc Christoph Hellwig <[email protected]>
Cc Quentin Perret <[email protected]>
Cc Alexei Starovoitov <[email protected]>
Cc Masami Hiramatsu <[email protected]>

--->8

Will Deacon (3):
samples/hw_breakpoint: Drop HW_BREAKPOINT_R when reporting writes samples/hw_breakpoint: Drop use of kallsyms_lookup_name()
kallsyms: Unexport kallsyms_lookup_name() and
kallsyms_on_each_symbol()

 kernel/kallsyms.c                       |  2 --
 samples/hw_breakpoint/data_breakpoint.c | 11 ++++++++---
 2 files changed, 8 insertions(+), 5 deletions(-)
Signature · 1 line
2.25.0.265.gbab2e86ba0-goog