public inbox for stable@vger.kernel.org
 help / color / mirror / Atom feed
* Build failure due to backport of "bpf: Add namespace to BPF internal symbols"
@ 2025-04-29  2:52 Shung-Hsi Yu
  2025-04-29  5:52 ` Greg KH
  0 siblings, 1 reply; 2+ messages in thread
From: Shung-Hsi Yu @ 2025-04-29  2:52 UTC (permalink / raw)
  To: Sasha Levin; +Cc: stable

Hi Sasha,

bpf-add-namespace-to-bpf-internal-symbols.patch is stable-queue.git
seems like the culprit responsible for build failure in stable 6.12 and
earlier (log below). The reason is likely due to the lack of commit
cdd30ebb1b9f ("module: Convert symbol namespace to string literal")
before v6.13. Getting rid of the quotes s/"BPF_INTERNAL"/BPF_INTERNAL/
probably would be enough to fix it.

  In file included from .vmlinux.export.c:1:
  .vmlinux.export.c:1697:33: error: expected ‘)’ before ‘BPF_INTERNAL’
   1697 | KSYMTAB_FUNC(bpf_map_get, "", ""BPF_INTERNAL"");
        |                                 ^~~~~~~~~~~~
  ./include/linux/export-internal.h:45:28: note: in definition of macro ‘__KSYMTAB’
     45 |             "   .asciz \"" ns "\""                                      "\n"    \
        |                            ^~
  .vmlinux.export.c:1697:1: note: in expansion of macro ‘KSYMTAB_FUNC’
   1697 | KSYMTAB_FUNC(bpf_map_get, "", ""BPF_INTERNAL"");
        | ^~~~~~~~~~~~
  ./include/linux/export-internal.h:41:12: note: to match this ‘(’
     41 |         asm("   .section \"__ksymtab_strings\",\"aMS\",%progbits,1"     "\n"    \
        |            ^
  ./include/linux/export-internal.h:62:41: note: in expansion of macro ‘__KSYMTAB’
     62 | #define KSYMTAB_FUNC(name, sec, ns)     __KSYMTAB(name, KSYM_FUNC(name), sec, ns)
        |                                         ^~~~~~~~~
  .vmlinux.export.c:1697:1: note: in expansion of macro ‘KSYMTAB_FUNC’
   1697 | KSYMTAB_FUNC(bpf_map_get, "", ""BPF_INTERNAL"");
        | ^~~~~~~~~~~~
  .vmlinux.export.c:1706:42: error: expected ‘)’ before ‘BPF_INTERNAL’
   1706 | KSYMTAB_FUNC(bpf_link_get_from_fd, "", ""BPF_INTERNAL"");
        |                                          ^~~~~~~~~~~~
  ./include/linux/export-internal.h:45:28: note: in definition of macro ‘__KSYMTAB’
     45 |             "   .asciz \"" ns "\""                                      "\n"    \
        |                            ^~
  .vmlinux.export.c:1706:1: note: in expansion of macro ‘KSYMTAB_FUNC’
   1706 | KSYMTAB_FUNC(bpf_link_get_from_fd, "", ""BPF_INTERNAL"");
        | ^~~~~~~~~~~~
  ./include/linux/export-internal.h:41:12: note: to match this ‘(’
     41 |         asm("   .section \"__ksymtab_strings\",\"aMS\",%progbits,1"     "\n"    \
        |            ^
  ./include/linux/export-internal.h:62:41: note: in expansion of macro ‘__KSYMTAB’
     62 | #define KSYMTAB_FUNC(name, sec, ns)     __KSYMTAB(name, KSYM_FUNC(name), sec, ns)
        |                                         ^~~~~~~~~
  .vmlinux.export.c:1706:1: note: in expansion of macro ‘KSYMTAB_FUNC’
   1706 | KSYMTAB_FUNC(bpf_link_get_from_fd, "", ""BPF_INTERNAL"");
        | ^~~~~~~~~~~~
  .vmlinux.export.c:1708:34: error: expected ‘)’ before ‘BPF_INTERNAL’
   1708 | KSYMTAB_FUNC(kern_sys_bpf, "", ""BPF_INTERNAL"");
        |                                  ^~~~~~~~~~~~
  ./include/linux/export-internal.h:45:28: note: in definition of macro ‘__KSYMTAB’
     45 |             "   .asciz \"" ns "\""                                      "\n"    \
        |                            ^~
  .vmlinux.export.c:1708:1: note: in expansion of macro ‘KSYMTAB_FUNC’
   1708 | KSYMTAB_FUNC(kern_sys_bpf, "", ""BPF_INTERNAL"");
        | ^~~~~~~~~~~~
  ./include/linux/export-internal.h:41:12: note: to match this ‘(’
     41 |         asm("   .section \"__ksymtab_strings\",\"aMS\",%progbits,1"     "\n"    \
        |            ^
  ./include/linux/export-internal.h:62:41: note: in expansion of macro ‘__KSYMTAB’
     62 | #define KSYMTAB_FUNC(name, sec, ns)     __KSYMTAB(name, KSYM_FUNC(name), sec, ns)
        |                                         ^~~~~~~~~
  .vmlinux.export.c:1708:1: note: in expansion of macro ‘KSYMTAB_FUNC’
   1708 | KSYMTAB_FUNC(kern_sys_bpf, "", ""BPF_INTERNAL"");
        | ^~~~~~~~~~~~
  make[2]: *** [scripts/Makefile.vmlinux:18: .vmlinux.export.o] Error 1
  make[1]: *** [/home/runner/work/libbpf/libbpf/.kernel/Makefile:1184: vmlinux] Error 2
  make: *** [Makefile:224: __sub-make] Error 2


Shung-Hsi Yu

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2025-04-29  5:52 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-04-29  2:52 Build failure due to backport of "bpf: Add namespace to BPF internal symbols" Shung-Hsi Yu
2025-04-29  5:52 ` Greg KH

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox