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

[CLEANUP] Drivers inconsistencies #902

Closed
3 tasks done
loresuso opened this issue Feb 17, 2023 · 10 comments
Closed
3 tasks done

[CLEANUP] Drivers inconsistencies #902

loresuso opened this issue Feb 17, 2023 · 10 comments
Labels
kind/bug Something isn't working
Milestone

Comments

@loresuso
Copy link
Member

loresuso commented Feb 17, 2023

While working on our drivers I am noticing many inconsistencies.

For instance:

  • we indistinguishably use s32 and int32_t types. I think we should use one or the other for consistency, and I would use the _t ones because are defined by the C standard.
  • in our kmod, there is a macro CHECK_RES that can be used to check if a previous operation succeeded or not. It is not consistently used in the whole file.
  • there is a syscall_arg_t type that is seldom used throughout the file.

Still adding things to this. Once we are done with introducing syscall for modern probe we can think about this!

@loresuso loresuso added the kind/bug Something isn't working label Feb 17, 2023
@poiana
Copy link
Contributor

poiana commented May 18, 2023

Issues go stale after 90d of inactivity.

Mark the issue as fresh with /remove-lifecycle stale.

Stale issues rot after an additional 30d of inactivity and eventually close.

If this issue is safe to close now please do so with /close.

Provide feedback via https://github.com/falcosecurity/community.

/lifecycle stale

@loresuso
Copy link
Member Author

/remove-lifecycle stale

@incertum
Copy link
Contributor

@Andreagit97 any thoughts on s32 and int32_t types in old bpf and modern bpf?

@Andreagit97
Copy link
Member

uhm I agree with @loresuso one day or another we should convert all s... to int... but I would say it's just a matter of style not so urgent

@incertum
Copy link
Contributor

ok

@ecbadeaux
Copy link
Contributor

The CHECK_RES issue should be marked as completed like this example

@ecbadeaux
Copy link
Contributor

ecbadeaux commented Oct 25, 2023

The syscall_arg_t should be marked as completed as well @Andreagit97 :)

@ecbadeaux
Copy link
Contributor

@incertum Can you close this issue?

@loresuso
Copy link
Member Author

Thanks for your work @ecbadeaux !

@FedeDP
Copy link
Contributor

FedeDP commented Nov 20, 2023

/milestone next-driver

@poiana poiana modified the milestones: TBD, next-driver Nov 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Something isn't working
Projects
None yet
Development

No branches or pull requests

6 participants