Skip to content

Commit

Permalink
Removes bogus log entry for non-transitioning exec
Browse files Browse the repository at this point in the history
The workaround for x86_64/i386 transitions while in execve() is
triggered even if no actual transition is happening. Only display the
info about syscall number mismatch if we are transitioning.
  • Loading branch information
remram44 committed May 11, 2015
1 parent d22f6a0 commit b2311e5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions reprozip/native/syscalls.c
Original file line number Diff line number Diff line change
Expand Up @@ -962,7 +962,7 @@ int syscall_handle(struct Process *process)
&& processes[i]->current_syscall == 59
&& processes[i]->syscall_info != NULL)
{
if(verbosity >= 3)
if(syscall_type == SYSCALL_I386 && verbosity >= 3)
log_debug(process->tid,
"transition x64 -> i386, syscall 59 is still "
"execve");
Expand All @@ -982,7 +982,7 @@ int syscall_handle(struct Process *process)
&& processes[i]->current_syscall == 11
&& processes[i]->syscall_info != NULL)
{
if(verbosity >= 3)
if(syscall_type == SYSCALL_X86_64 && verbosity >= 3)
log_debug(process->tid,
"transition i386 -> x64, syscall 11 is still "
"execve");
Expand Down

0 comments on commit b2311e5

Please sign in to comment.