Skip to content

syscalls2 x64 and ARM64 do not support 32-bit syscalls #1525

Closed
@lacraig2

Description

@lacraig2

This seems to have been a deliberate choice. I'd like to know if anyone has strong feelings about it.

If not, I'd propose we add support for it.

If people do care about it I think it'd be fine to add an argument to syscalls2 for one functionality or the other.

@LauraLMann it looks like git blame has you adding this so I want to make sure to get your input.

else if (buf[0]== 0xCD && buf[1] == syscalls_profile->syscall_interrupt_number) {
#if defined(TARGET_X86_64)
LOG_WARNING("32-bit system call (int 0x80) found in 64-bit replay - ignoring\n");
return 0;
#else
return pc;
#endif
}
// Check if the instruction is sysenter (0F 34)
else if (buf[0]== 0x0F && buf[1] == 0x34) {
#if defined(TARGET_X86_64)
LOG_WARNING("32-bit sysenter found in 64-bit replay - ignoring\n");
return 0;
#else
return pc;
#endif

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions