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

Trace skb with fragments. #253

Open
middaywords opened this issue Sep 19, 2023 · 1 comment
Open

Trace skb with fragments. #253

middaywords opened this issue Sep 19, 2023 · 1 comment

Comments

@middaywords
Copy link

middaywords commented Sep 19, 2023

Some NIC driver may also put packet header(IP/TCP header) in skb non-linear area(frags).
in this case, packet related information(e.g. IP/port) cannot be retrieved from linear data area.
bpf_skb_load_bytes() can load packet data in fragments, however, it only works in tc/sk_filter/lwt bpf progs and fail verification in kprobe.

Since pwru use kprobe, do u have any plan or idea about supporting tracing fragmented skb in pwru?

Thanks

@brb
Copy link
Member

brb commented Sep 23, 2023

We would need to track fragments in a BPF map. Not sure what an entry function would be good for that. No plans at the moment, but happy to help with such a contribution.

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

No branches or pull requests

2 participants