-
Notifications
You must be signed in to change notification settings - Fork 165
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
new(driver): ia32 emulation bpf drivers support #1196
Merged
Merged
Changes from all commits
Commits
Show all changes
39 commits
Select commit
Hold shift + click to select a range
d86f095
new(driver/bpf): initial ia32 support for old bpf probe.
FedeDP 1df7e28
new(driver/modern_bpf): initial ia32 support for modern bpf.
FedeDP 6500840
new(driver/bpf): added a syscalls-bumper generated ia32 to x64 map ta…
FedeDP db015c7
new(driver/modern_bpf): implemented new map converting ia32 syscall n…
FedeDP 818ff7a
new(driver): ported kmod to new design for ia32 support.
FedeDP 99619a8
cleanup(driver): dropped unused syscall_table32.c.
FedeDP 9652b06
chore(driver): properly only support ia32 for x86_64 architecture.
FedeDP a1e7f9e
fix(driver): added back x86_64 ia32 socketcall support for kmod.
FedeDP 72f6bd6
fix(driver): implemented execve and execveat logic to bpf and modern …
FedeDP 59c6ab8
fix(driver/bpf): implemented proper x86 ia32 socketcall support.
FedeDP cf92c79
chore(driver,userspace): properly generate ia32 mapping table filled …
FedeDP 17eb43a
clenup(driver,driver/bpf): socketcall_to_syscall file can now use 64b…
FedeDP fffa482
cleanup(driver): made socketcall support fully dynamic.
FedeDP 526c584
chore(driver): bumped maj API version.
FedeDP 308b65b
fix(userspace/libscap): bumped SCAP_MINIMUM_DRIVER_API_VERSION.
FedeDP 6a9772f
new(test): added initial driver tests for ia32.
FedeDP 003812b
chore(ci): install gcc-multilib.
FedeDP a171af1
chore: only build ia32 test on x86_64 arch.
FedeDP 0703106
chore(driver,test): update ia32 script to call SYS_SEND and SYS_ACCEP…
FedeDP 56286ea
chore(test): send an unexistent SYS_ code too.
FedeDP cfbe153
fix(driver/bpf): reassure bpf verifier about read length.
FedeDP 7ea7f00
fix(bpf): initialize some variables
Andreagit97 857aca7
chore(test/drivers): properly test that execve exit is received even …
FedeDP 8ed4cdb
fix(driver): handle id == __NR_ia32_socketcall case in old bpf and kmod.
FedeDP 4f9b915
chore(test/drivers): add specific test for execve exit behavior.
FedeDP c93fbe0
chore(test/drivers): add cmake option to skip ia32 tests, skipping ne…
FedeDP 54c2f43
chore(test/drivers): added new tests for ia32 to check pushed params.
FedeDP 8e3ec73
chore(test/drivers): allow ia32 helper build even on system without o…
FedeDP 0bfd34d
chore(driver/modern_bpf): try to simplify `extract__network_args`.
FedeDP 3d31efa
chore(test/drivers): move to use openat2 exit event to test at least …
FedeDP 4e2819a
chore(test/drivers): do not assert openat2 exit return code in ia32, …
FedeDP 9f7e31b
cleanup(bpf): add some comments and clean some code paths
Andreagit97 f97b1ca
cleanup(driver): add some comments and clean some code paths
Andreagit97 31a142b
cleanup(modern): add some comments and clean some code paths
Andreagit97 2ec5079
chore(test/drivers): updated test name.
FedeDP e80a900
fix(modern): move some code to fix verifier on old kernels <5.11
Andreagit97 ade13ea
fix(driver): do not support socketcall on old ebpf when raw tracepoin…
FedeDP 8e74d5e
chore(test/drivers): add mmap test to ia32 tests.
FedeDP b23c48e
chore(driver): regenerated ia32_64 map with latest syscalls-bumper fi…
FedeDP File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
5.0.0 | ||
6.0.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,7 +6,7 @@ | |
# MIT.txt or GPL.txt for full copies of the license. | ||
# | ||
|
||
@DRIVER_NAME@-y += main.o dynamic_params_table.o fillers_table.o flags_table.o ppm_events.o ppm_fillers.o event_table.o syscall_table32.o syscall_table64.o ppm_cputime.o ppm_tp.o socketcall_to_syscall.o | ||
@DRIVER_NAME@-y += main.o dynamic_params_table.o fillers_table.o flags_table.o ppm_events.o ppm_fillers.o event_table.o syscall_table64.o ppm_cputime.o ppm_tp.o syscall_ia32_64_map.o | ||
obj-m += @[email protected] | ||
ccflags-y := @KBUILD_FLAGS@ | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just moved to
plumbing_helpers