Add endbr64/bti instruction at the start of the gadget, otherwise we'll
authorkettenis <kettenis@openbsd.org>
Wed, 13 Mar 2024 11:18:42 +0000 (11:18 +0000)
committerkettenis <kettenis@openbsd.org>
Wed, 13 Mar 2024 11:18:42 +0000 (11:18 +0000)
commit8784bc95e0f81d168290a273cb96649cc97e4c4e
treea6350ef52c70d90faee3ae438fc7dde9c48974af
parent6a1ce0f2a8f4432fea2610b4fd5c4622afdd8593
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@
regress/usr.bin/lastcomm/gadget.S