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

Backports/v1.2: tetragon: probe_read usage may cause issues with newer kernels #3105

Merged
merged 1 commit into from
Nov 13, 2024

Conversation

kevsecurity
Copy link
Contributor

@kevsecurity kevsecurity commented Nov 13, 2024

Newer kernels should not use probe_read so convert to probe_read_kernel. We have logic to revert to probe_read on older kernels. Further using probe_read instead of correct probe_read_{kernel|user} may fault on some architectures.

Changelog

Convert probe_read to probe_read_kernel.

Convert probe_read to probe_read_kernel to avoid possible runtime faults with probe_read on some architectures.

[Upstream PR: #2925]

Newer kernels should not use probe_read so convert to probe_read_kernel.
We have logic to rever to probe_read on older kernels when needed.

[Upstream commit: e27499d]

Signed-off-by: John Fastabend <john.fastabend@gmail.com>
@kevsecurity kevsecurity force-pushed the backports/v1.2/kevsecurity/probe-read-kernel branch from 8061e23 to 7c0193b Compare November 13, 2024 12:50
@kevsecurity kevsecurity added the release-note/misc This PR makes changes that have no direct user impact. label Nov 13, 2024
@kevsecurity kevsecurity marked this pull request as ready for review November 13, 2024 13:41
@kevsecurity kevsecurity requested a review from a team as a code owner November 13, 2024 13:41
@kevsecurity kevsecurity requested review from tpapagian and removed request for a team November 13, 2024 13:41
@kevsecurity kevsecurity merged commit 52a0932 into v1.2 Nov 13, 2024
42 of 45 checks passed
@kevsecurity kevsecurity deleted the backports/v1.2/kevsecurity/probe-read-kernel branch November 13, 2024 14:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release-note/misc This PR makes changes that have no direct user impact.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants