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

tetragon: Switch to clang 15 #1104

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from
Draft

Conversation

olsajiri
Copy link
Contributor

Using new clang 15 to compile bpf code.

@olsajiri olsajiri force-pushed the clang_15_switch branch 2 times, most recently from 70ec69a to 0695bb5 Compare June 20, 2023 16:02
olsajiri added 2 commits July 10, 2023 15:57
The new clang use some new optimalization that uses &= as part
for '>' operator code. This messes up with maximum we setup with
&= for verifier ending up with verifier error:

  1328: (77) r1 >>= 2
  1329: (57) r1 &= 1023
  1330: (bf) r1 = r2
  1331: (57) r1 &= 8188
  1332: (79) r2 = *(u64 *)(r10 -48)
  1333: (0f) r2 += r1
  1334: (61) r2 = *(u32 *)(r2 +0)
  ...
  invalid access to map value, value_size=4096 off=8188 size=4
  R2 max value is outside of the array range

Moving the exact size check into assembly that seems to prevent the
new optimalization.

Signed-off-by: Jiri Olsa <jolsa@kernel.org>
Using new clang 15 to compile bpf code.

Signed-off-by: Jiri Olsa <jolsa@kernel.org>
@netlify
Copy link

netlify bot commented Jul 10, 2023

Deploy Preview for tetragon ready!

Name Link
🔨 Latest commit 157905b
🔍 Latest deploy log https://app.netlify.com/sites/tetragon/deploys/64ac2a8494df700008fe86bb
😎 Deploy Preview https://deploy-preview-1104--tetragon.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@mtardy
Copy link
Member

mtardy commented Sep 30, 2024

Saw this, just wanted to mention that it should be good now thanks to #2777 :)

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

Successfully merging this pull request may close these issues.

2 participants