-
Notifications
You must be signed in to change notification settings - Fork 2
Syscall handlers tweaks #5
Copy link
Copy link
Open
Labels
enhancementNew feature or requestNew feature or requestlimitationSomething that has drawbacks, but is necessary/desirableSomething that has drawbacks, but is necessary/desirable
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or requestlimitationSomething that has drawbacks, but is necessary/desirableSomething that has drawbacks, but is necessary/desirable
Some system call use structs as arguments.
For simplicity and speed, the corresponding syscall handlers will consider the whole struct as read.
However, those struct may have holes due to fields padding.
These paddings are not actually used by the struct, and is therefore highly probable that they are uninitialized when the system call is executed, thus causing MemTrace reporting uninitialized reads which must be considered false positives.
It is possible to slightly change syscall handlers to make them read only the used parts of the structs used as arguments.
This Issue will be used as a thread to report syscall handlers that caused some false positives during testing and possibly also the structure of the struct they use as a parameter.