syscall.sh / x86 / kexec_load

kexec_load

load a new kernel for later execution

sys_kexec_load(unsigned long entry, unsigned long nr_segments, struct kexec_segment *segments, unsigned long flags)
number283 (0x11b)
abii386
entry pointsys_kexec_load
sinceLinux 3.3
man pagekexec_load(2)
sourceelixir.bootlin.com

Registers

registervalue
eax283, the syscall number
ebxunsigned long entry
ecxunsigned long nr_segments
edxstruct kexec_segment *segments
esiunsigned long flags
eaxthe return value

Then run int 0x80 to enter the kernel.

Same syscall on other architectures

Get this as JSON: https://api.syscall.sh/v2/syscalls/x86/kexec_load