test(monitor): implement unit and fuzz testing for syscallParser - #2788
Open
Rucha0901 wants to merge 1 commit into
Open
test(monitor): implement unit and fuzz testing for syscallParser#2788Rucha0901 wants to merge 1 commit into
Rucha0901 wants to merge 1 commit into
Conversation
Signed-off-by: Rucha0901 <imt_2025071@iiitm.ac.in>
Rucha0901
requested review from
Aryan-sharma11,
AryanBakliwal and
achrefbensaad
as code owners
July 22, 2026 14:51
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Purpose of PR?:
This PR implements unit and fuzz testing for
syscallParser.gowhich is responsible for binary decoding of system call contexts. It also updates the fuzzing build script to compile these targets.Fixes #2787
Does this PR introduce a breaking change?
No.
If the changes in this PR are manually verified, list down the scenarios covered::
monitorpackage and tests targeting Linux using:GOOS=linux go test -c ./monitorreadContextFromBuffwith valid and truncated mock buffers.readArgFromBuffwith all supported argument type tags (integers, strings, string arrays, capabilities, syscall names, open/exec/mount/umount flags, ptrace reqs, socket domains/types, UDP messages, DNS query types) and socket address structures (AF_UNIX,AF_INET,AF_INET6).GetHasheswith correct/truncated/unknown hashes.GetArgswith variable arguments.FuzzReadContextFromBuffFuzzReadArgFromBuffFuzzGetHashesFuzzGetArgsAdditional information for reviewer? :
None.
Checklist:
<type>(<scope>): <subject>