Skip to content
This repository has been archived by the owner on Dec 15, 2022. It is now read-only.

Remove kernel 5.5 gating around bpf_probe_read_str #44

Merged
merged 1 commit into from
Mar 2, 2021

Conversation

dbozzuto
Copy link
Contributor

@dbozzuto dbozzuto commented Mar 2, 2021

Fixes an issue where on the latest release of Ubuntu 20.04 (running a 5.8 kernel),
bpf_probe_read_kernel_str would fail to correctly copy data into the data_t struct.
Using bpf_probe_read_str works on earlier kernels (including 5.4 in the prior release
of Ubuntu 20.04), so I've updated to not use the kernel read variant at all.

Signed-off-by: Dom Bozzuto dbozzuto@vmware.com

Fixes an issue where on the latest release of Ubuntu 20.04 (running a 5.8 kernel),
bpf_probe_read_kernel_str would fail to correctly copy data into the data_t struct.
Using bpf_probe_read_str works on earlier kernels (including 5.4 in the prior release
of Ubuntu 20.04), so I've updated to not use the kernel read variant at all.

Signed-off-by: Dom Bozzuto <dbozzuto@vmware.com>
@zhao-cb zhao-cb requested review from zhao-cb and removed request for zhao-cb March 2, 2021 17:54
@dbozzuto dbozzuto merged commit 6c8dc76 into master Mar 2, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants