kallsyms-bpf-rename-__bpf_address_lookup-to-bpf_address_lookup.patch removed from -mm tree
The quilt patch titled
Subject: kallsyms/bpf: rename __bpf_address_lookup() to bpf_address_lookup()
has been removed from the -mm tree. Its filename was
kallsyms-bpf-rename-__bpf_address_lookup-to-bpf_address_lookup.patch
This patch was dropped because it was merged into the mm-nonmm-stable branch of git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm
------------------------------------------------------
From: Petr Mladek <[email protected]>
Subject: kallsyms/bpf: rename __bpf_address_lookup() to bpf_address_lookup()
Date: Fri, 28 Nov 2025 14:59:18 +0100
bpf_address_lookup() has been used only in kallsyms_lookup_buildid(). It was supposed to set @modname and @modbuildid when the symbol was in a module.
But it always just cleared @modname because BPF symbols were never in a module. And it did not clear @modbuildid because the pointer was not passed.
The wrapper is no longer needed. Both @modname and @modbuildid are now always initialized to NULL in kallsyms_lookup_buildid().
Remove the wrapper and rename __bpf_address_lookup() to bpf_address_lookup() because this variant is used everywhere.
---
arch/arm64/net/bpf_jit_comp.c | 2 +- arch/loongarch/net/bpf_jit.c | 2 +- arch/powerpc/net/bpf_jit_comp.c | 2 +- include/linux/filter.h | 26 ++++---------------------- kernel/bpf/core.c | 4 ++-- kernel/kallsyms.c | 5 ++--- 6 files changed, 11 insertions(+), 30 deletions(-)
arch/arm64/net/bpf_jit_comp.c renamed from arch/arm64/net/bpf_jit_comp.c~kallsyms-bpf-rename-__bpf_address_lookup-to-bpf_address_lookup +1 -1
@@ -2951,7 +2951,7 @@ int bpf_arch_text_poke(void *ip, enum bpu64 plt_target =0ULL ;bool poking_bpf_entry; -if (!__bpf_address_lookup ((unsigned long )ip, &size, &offset, namebuf)) +if (!bpf_address_lookup ((unsigned long )ip, &size, &offset, namebuf))/* Only poking bpf text is supported. Since kernel function * entry is set up by ftrace, we reply on ftrace to poke kernel * functions.
arch/loongarch/net/bpf_jit.c renamed from arch/loongarch/net/bpf_jit.c~kallsyms-bpf-rename-__bpf_address_lookup-to-bpf_address_lookup +1 -1
@@ -1319,7 +1319,7 @@ int bpf_arch_text_poke(void *ip, enum bp/* Only poking bpf text is supported. Since kernel function entry * is set up by ftrace, we rely on ftrace to poke kernel functions. */ -if (!__bpf_address_lookup ((unsigned long )ip, &size, &offset, namebuf)) +if (!bpf_address_lookup ((unsigned long )ip, &size, &offset, namebuf))return -ENOTSUPP ; image = ip - offset;
arch/powerpc/net/bpf_jit_comp.c renamed from arch/powerpc/net/bpf_jit_comp.c~kallsyms-bpf-rename-__bpf_address_lookup-to-bpf_address_lookup +1 -1
@@ -1122,7 +1122,7 @@ int bpf_arch_text_poke(void *ip, enum bp bpf_func = (unsigned long )ip;/* We currently only support poking bpf programs */ -if (!__bpf_address_lookup (bpf_func, &size, &offset, name)) { +if (!bpf_address_lookup (bpf_func, &size, &offset, name)) {pr_err ("%s (0x%lx): kernel/modules are not supported\n" , __func__, bpf_func);return -EOPNOTSUPP ; }
include/linux/filter.h renamed from include/linux/filter.h~kallsyms-bpf-rename-__bpf_address_lookup-to-bpf_address_lookup +4 -22
@@ -1375,24 +1375,13 @@ static inline bool bpf_jit_kallsyms_enabreturn false; } -int __bpf_address_lookup (unsigned long addr,unsigned long *size, -unsigned long *off,char *sym); +int bpf_address_lookup (unsigned long addr,unsigned long *size, +unsigned long *off,char *sym);bool is_bpf_text_address (unsigned long addr);int bpf_get_kallsym (unsigned int symnum,unsigned long *value,char *type,char *sym);struct bpf_prog *bpf_prog_ksym_find (unsigned long addr); -static inline int -bpf_address_lookup (unsigned long addr,unsigned long *size, -unsigned long *off,char **modname,char *sym) -{ -int ret =__bpf_address_lookup (addr, size, off, sym); - -if (ret && modname) - *modname =NULL ; -return ret; -} -void bpf_prog_kallsyms_add (struct bpf_prog *fp);void bpf_prog_kallsyms_del (struct bpf_prog *fp);
@@ -1431,8 +1420,8 @@ static inline bool bpf_jit_kallsyms_enab }static inline int -__bpf_address_lookup (unsigned long addr,unsigned long *size, -unsigned long *off,char *sym) +bpf_address_lookup (unsigned long addr,unsigned long *size, +unsigned long *off,char *sym) {return 0 ; }
@@ -1453,13 +1442,6 @@ static inline struct bpf_prog *bpf_prog_return NULL ; } -static inline int -bpf_address_lookup (unsigned long addr,unsigned long *size, -unsigned long *off,char **modname,char *sym) -{ -return 0 ; -} -static inline void bpf_prog_kallsyms_add (struct bpf_prog *fp) { }
kernel/bpf/core.c renamed from kernel/bpf/core.c~kallsyms-bpf-rename-__bpf_address_lookup-to-bpf_address_lookup +2 -2
@@ -714,8 +714,8 @@ static struct bpf_ksym *bpf_ksym_find(un return n ? container_of(n, struct bpf_ksym, tnode) : NULL; } -int __bpf_address_lookup (unsigned long addr,unsigned long *size, -unsigned long *off,char *sym) +int bpf_address_lookup (unsigned long addr,unsigned long *size, +unsigned long *off,char *sym) {struct bpf_ksym *ksym;int ret =0 ;
kernel/kallsyms.c renamed from kernel/kallsyms.c~kallsyms-bpf-rename-__bpf_address_lookup-to-bpf_address_lookup +2 -3
@@ -345,7 +345,7 @@ int kallsyms_lookup_size_offset(unsignedreturn 1 ; }return !!module_address_lookup (addr, symbolsize, offset,NULL ,NULL , namebuf) || - !!__bpf_address_lookup (addr, symbolsize, offset, namebuf); + !!bpf_address_lookup (addr, symbolsize, offset, namebuf); } static int kallsyms_lookup_buildid(unsigned long addr,
@@ -386,8 +386,7 @@ static int kallsyms_lookup_buildid(unsig ret =module_address_lookup (addr, symbolsize, offset, modname, modbuildid, namebuf);if (!ret) - ret =bpf_address_lookup (addr, symbolsize, - offset, modname, namebuf); + ret =bpf_address_lookup (addr, symbolsize, offset, namebuf);if (!ret) ret = ftrace_mod_address_lookup(addr, symbolsize,
_
Patches currently in -mm which might be from [email protected] are