libs
libs copied to clipboard
new(driver,userspace/libsinsp): added support for state modifying `epoll_create` and `epoll_create1`.
What type of PR is this?
/kind feature
Any specific area of the project related to this PR?
/area driver-kmod /area driver-bpf /area libsinsp
Does this PR require a change in the driver versions?
Yep, because it adds a new event.
/version driver-SCHEMA-version-minor
But, given that min schema version was already bumped since last libs release, i think we can skip this. (see https://github.com/falcosecurity/libs/pull/501).
What this PR does / why we need it:
Adds support for epoll_create and epoll_create1 syscalls, because they create a FD thus are needed for sinsp state.
Which issue(s) this PR fixes:
Fixes #
Special notes for your reviewer:
Does this PR introduce a user-facing change?:
new: support `epoll_create` and `epoll_create1` syscalls.
Github 503 :/
Probably we need to add them also in the modern probe /hold
Would this case fit along the others in the creates_fd_generic test you recently added?
Would this case fit along the others in the creates_fd_generic test you recently added?
Done!
Probably we need to add them also in the modern probe
Done!
@LucaGuerra @Andreagit97
Probably we need to add them also in the modern probe
Done!
Awesome @FedeDP . I will look later thru the patch set. Thanks.
But epoll_create1 tests are failing and i don't get why :/
But
epoll_create1tests are failing and i don't get why :/
Looks like the syscall passes but does not create an event:
[ RUN ] SyscallEnter.epoll_create1E
HALLO: fd=245 errno=Success
/root/git/falcosecurity/libs/test/modern_bpf/event_class/event_class.cpp:378: Failure
Failed
There is no event in the buffer.
with using printf("HALLO: fd=%i errno=%s\n", fd, strerror(errno));
@FedeDP Tests pass on s390x:
# ./test/modern_bpf/bpf_test |grep epoll
[ RUN ] SyscallExit.epoll_create1X
[ OK ] SyscallExit.epoll_create1X (0 ms)
[ RUN ] SyscallExit.epoll_createX
[ OK ] SyscallExit.epoll_createX (0 ms)
[ RUN ] SyscallEnter.epoll_create1E
[ OK ] SyscallEnter.epoll_create1E (0 ms)
[ RUN ] SyscallEnter.epoll_createE
[ OK ] SyscallEnter.epoll_createE (0 ms)
will review then later.
@hbrueckner fixed everything!
@FedeDP other the minors above, this looks good to me. /lgtm
LGTM label has been added.
@FedeDP Thanks for the update. /lgtm
LGTM label has been added.
Rebased on top of master.
TODO:
- bump schema version minor
Rebased on top of master.
/milestone next-driver
LGTM label has been added.
Rebased on top of master.
LGTM label has been added.
@Andreagit97 thanks for your review! Addressed in latest commit!
LGTM label has been added.
[APPROVALNOTIFIER] This PR is APPROVED
This pull-request has been approved by: Andreagit97, FedeDP, hbrueckner, leogr
The full list of commands accepted by this bot can be found here.
The pull request process is described here
- ~~OWNERS~~ [Andreagit97,FedeDP,leogr]
Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment
/unhold