History log of /openbsd/regress/usr.bin/lastcomm/gadget.S (Results 1 – 2 of 2)
Revision Date Author Comments
# 8784bc95 13-Mar-2024 kettenis <kettenis@openbsd.org>

Add endbr64/bti instruction at the start of the gadget, otherwise we'll
get a SIGILL when the gadget gets call. Fix the instruction that sets
the syscall number on arm64.

ok anton@, deraadt@


# c0a6b811 09-Jan-2023 anton <anton@openbsd.org>

Fix the syscallwx target which is affected by both mimmutable(2) and
xonly by using a new gadget routine written in assembler with the sole
purpose of issuing a syscall. Since it needs to be copied t

Fix the syscallwx target which is affected by both mimmutable(2) and
xonly by using a new gadget routine written in assembler with the sole
purpose of issuing a syscall. Since it needs to be copied to wx memory,
place it in the rodata section.

show more ...