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

Conversation

kernel-patches-daemon-bpf[bot]
Copy link

Pull request for series with
subject: Fix test_bpf_syscall_macro selftest on powerpc
version: 1
url: https://patchwork.kernel.org/project/netdevbpf/list/?series=905876

@kernel-patches-daemon-bpf
Copy link
Author

Upstream branch: f2daa5a
series: https://patchwork.kernel.org/project/netdevbpf/list/?series=905876
version: 1

@kernel-patches-daemon-bpf
Copy link
Author

Upstream branch: 9a78313
series: https://patchwork.kernel.org/project/netdevbpf/list/?series=905876
version: 1

Saket Kumar Bhaskar added 3 commits November 4, 2024 11:49
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]>
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]>
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]>
@kernel-patches-daemon-bpf
Copy link
Author

Upstream branch: 1850ce1
series: https://patchwork.kernel.org/project/netdevbpf/list/?series=905876
version: 1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants