Skip to content
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

Fixes after porting sandsifter to FreeBSD #53

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Blacklist INT 0x92 and INT 0x93 on FreeBSD, they trigger SIGSYS
  • Loading branch information
Rene Ladan committed Oct 2, 2017
commit 3e313468ab70685be06bef24019864508a807d86
6 changes: 6 additions & 0 deletions injector.c
Original file line number Diff line number Diff line change
Expand Up @@ -306,6 +306,12 @@ ignore_op_t opcode_blacklist[MAX_BLACKLIST]={
{ "\xcd\x80", "int 0x80" },
/* as will syscall */
{ "\x0f\x05", "syscall" },
#ifdef __FreeBSD__
/* int 92 on FreeBSD triggers DTrace, which will trigger SIGSYS */
{ "\xcd\x92", "int 0x92" },
/* int 93 on FreeBSD is used by Xen */
{ "\xcd\x93", "int 0x93" },
#endif
/* ud2 is an undefined opcode, and messes up a length differential search
* b/c of the fault it throws */
{ "\x0f\xb9", "ud2" },
Expand Down