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

fexit/inet_csk_accept probe will not work on kernel >=6.10 #200

Closed
fearful-symmetry opened this issue Aug 23, 2024 · 0 comments · Fixed by #201
Closed

fexit/inet_csk_accept probe will not work on kernel >=6.10 #200

fearful-symmetry opened this issue Aug 23, 2024 · 0 comments · Fixed by #201
Assignees
Labels
bug Something isn't working

Comments

@fearful-symmetry
Copy link
Contributor

Severity

Major

Affects Version(s)

8.6.0

Epic/Meta Issue

No response

Kernel Version(s)

6.10.3-200

Linux Distro

Fedora 30

Fix Versions

No response

Description

A commit 5 months ago changed the function signature of inet_csk_accept: torvalds/linux@92ef0fd

On the kernel on my dev machine, it looks like this: struct sock *inet_csk_accept(struct sock *sk, struct proto_accept_arg *arg)

The code is not currently prepared for this possibility:

sudo ./EventsTrace                                                                                                                                                  1 ↵
libbpf: prog 'fexit__inet_csk_accept': BPF program load failed: Permission denied
libbpf: prog 'fexit__inet_csk_accept': -- BEGIN PROG LOAD LOG --
0: R1=ctx() R10=fp0
; int BPF_PROG( @ Probe.bpf.c:45
0: (79) r6 = *(u64 *)(r1 +32)
func 'inet_csk_accept' doesn't have 4-th argument
invalid bpf_context access off=32 size=8
processed 1 insns (limit 1000000) max_states_per_insn 0 total_states 0 peak_states 0 mark_read 0
-- END PROG LOAD LOG --
libbpf: prog 'fexit__inet_csk_accept': failed to load: -13
libbpf: failed to load object 'EventProbe_bpf'
libbpf: failed to load BPF skeleton 'EventProbe_bpf': -13
Could not create event context: -13 Permission denied
@fearful-symmetry fearful-symmetry added the bug Something isn't working label Aug 23, 2024
@fearful-symmetry fearful-symmetry self-assigned this Aug 23, 2024
@fearful-symmetry fearful-symmetry changed the title fexit/inet_csk_accet probe will not work on kernel >=6.10 fexit/inet_csk_accept probe will not work on kernel >=6.10 Aug 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant