google / gematria

Machine learning for machine code.
Apache License 2.0
70 stars 11 forks source link

Handle additional syscall cases/terminator instructions #221

Open boomanaiden154 opened 1 week ago

boomanaiden154 commented 1 week ago

There are other ways to make syscalls on X86, including int 0x80, and sysenter that we should probably also be sanitizing for security reasons.

We also need to make sure that we're taking care of all terminator instructions. We seem to be, but changing to MCInstrDesc::isTerminator probably makes a lot of sense and avoids us needing to manually handle the cases.