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

fix(monitor): system monitor loading issue with clang-llvm 18 #1897

Merged
merged 1 commit into from
Nov 25, 2024

Conversation

rksharma95
Copy link
Collaborator

@rksharma95 rksharma95 commented Nov 18, 2024

Purpose of PR?:

system monitor was failing to load when compiling using clang-llvm tool v18. This PR fixes this issue.

Does this PR introduce a breaking change?
No
If the changes in this PR are manually verified, list down the scenarios covered::
Manually Tested on following environments:

  • kernel 4.18, clang-llvm-10
  • kernel 5.5, clang-llvm-12
  • kernel 6.6, clang-llvm-18

Additional information for reviewer? :
Mention if this PR is part of any design or a continuation of previous PRs

Checklist:

  • Bug fix. Fixes #
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update
  • PR Title follows the convention of <type>(<scope>): <subject>
  • Commit has unit tests
  • Commit has integration tests

@DelusionalOptimist
Copy link
Member

@rksharma95 relay latest updated.

Copy link
Member

@DelusionalOptimist DelusionalOptimist left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested on Ubuntu 18.04 👍

Signed-off-by: rksharma95 <ramakant@accuknox.com>

system monitor should compile using any version 10^ of clang-llvm
tool and should load on any kernel 4.18^, it needs more restrictive
bound checks on earlier versions of ebpf verifier.

Signed-off-by: rksharma95 <ramakant@accuknox.com>
@rksharma95 rksharma95 changed the title fix kubearmor monitor loading issue with clang-llvm 18 fix(monitor): system monitor loading issue with clang-llvm 18 Nov 25, 2024
@rksharma95 rksharma95 marked this pull request as ready for review November 25, 2024 07:50
@rksharma95 rksharma95 merged commit a86f306 into kubearmor:main Nov 25, 2024
18 checks passed
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.

3 participants