Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix test_bpf_syscall_macro selftest on powerpc #8010

Open
wants to merge 3 commits into
base: bpf-next_base
Choose a base branch
from

Commits on Nov 4, 2024

  1. libbpf: Fix accessing the syscall argument on powerpc

    Since commit 7e92e01 ("powerpc: Provide syscall wrapper"), powerpc
    selects ARCH_HAS_SYSCALL_WRAPPER so let's use the generic implementation
    of PT_REGS_SYSCALL_REGS().
    
    Also, allow overriding PT_REGS_PARM1{_CORE}_SYSCALL for powerpc as
    powerpc needs orig_gpr3, similar to s390 and arm64.
    
    Signed-off-by: Saket Kumar Bhaskar <[email protected]>
    Saket Kumar Bhaskar authored and Kernel Patches Daemon committed Nov 4, 2024
    Configuration menu
    Copy the full SHA
    15fae47 View commit details
    Browse the repository at this point in the history
  2. libbpf: Remove powerpc prefix from syscall function names

    Since commit 9474689 ("powerpc: Don't add __powerpc_ prefix to
    syscall entry points") drops _powerpc prefix to syscall entry points,
    even though powerpc now supports syscall wrapper, so /proc/kallsyms
    have symbols for syscall entry without powerpc prefix(sys_*).
    
    For this reason, arch specific prefix for syscall functions in powerpc
    is dropped.
    
    Signed-off-by: Saket Kumar Bhaskar <[email protected]>
    Saket Kumar Bhaskar authored and Kernel Patches Daemon committed Nov 4, 2024
    Configuration menu
    Copy the full SHA
    0007f3f View commit details
    Browse the repository at this point in the history
  3. selftests/bpf: Define SYS_PREFIX for powerpc

    SYS_PREFIX was missing for a powerpc, which made a kprobe test to
    sys_prctl fail.
    
    Add missing SYS_PREFIX for powerpc.
    
    Fixes: 7e92e01 ("powerpc: Provide syscall wrapper")
    Fixes: 9474689 ("powerpc: Don't add __powerpc_ prefix to syscall entry points")
    Signed-off-by: Saket Kumar Bhaskar <[email protected]>
    Saket Kumar Bhaskar authored and Kernel Patches Daemon committed Nov 4, 2024
    Configuration menu
    Copy the full SHA
    c3bbf9c View commit details
    Browse the repository at this point in the history