setuid on arm64

set user identity

sys_setuid(uid_t uid)
number146 (0x92)
abicommon
entry pointsys_setuid
sinceLinux 3.7 or earlier (3.7 is the first release scanned for arm64)
man pagesetuid(2)
sourceelixir.bootlin.com

Registers

registervalue
x8146, the syscall number
x0uid_t uid
x0the return value

Then run svc #0 to enter the kernel.

Same syscall on other architectures

Get this as JSON: https://api.syscall.sh/v2/syscalls/arm64/setuid