Page MenuHomeFreeBSD

D61810.1795410068.diff
No OneTemporary

Authored By
Unknown
Size
1 KB
Referenced Files
None
Subscribers
None

D61810.1795410068.diff

diff --git a/lib/libsys/kexec_load.2 b/lib/libsys/kexec_load.2
--- a/lib/libsys/kexec_load.2
+++ b/lib/libsys/kexec_load.2
@@ -3,7 +3,7 @@
.\"
.\" Copyright (c) 2025 Juniper Networks, Inc.
.\"
-.Dd October 29, 2025
+.Dd November 20, 2026
.Dt KEXEC_LOAD 2
.Os
.Sh NAME
@@ -70,12 +70,13 @@
.Va mem
and
.Va memsz
-must be page aligned.
-The region covered by
-.Va mem
-must be in the list covered by the
+must be page aligned, and
+.Va memsz
+must not be 0.
+The target region of each segment must lie within a single segment listed by
+the
.Va vm.phys_segs
-sysctl.
+sysctl, and the target regions of different segments must not overlap.
.Pp
The
.Fn kexec_load
@@ -98,8 +99,36 @@
.Sh ERRORS
The following errors may be returned:
.Bl -tag -width Er
+.It Bq Er EBUSY
+Another
+.Fn kexec_load
+call is in progress.
+.It Bq Er EFAULT
+The
+.Fa segments
+argument, or the
+.Va buf
+member of a segment, points outside the process's allocated address space.
+.It Bq Er EINVAL
+The
+.Fa count
+argument is larger than 16.
.It Bq Er EINVAL
-Too many segments in image.
+The
+.Fa flags
+argument is not 0.
+.It Bq Er EINVAL
+The
+.Va mem
+or
+.Va memsz
+member of a segment is not page aligned, or
+.Va memsz
+is 0.
+.It Bq Er EINVAL
+The target region of a segment is not within a single segment of
+.Va vm.phys_segs ,
+or it overlaps the target region of another segment.
.It Bq Er EINVAL
The value of
.Va bufsz
@@ -108,10 +137,17 @@
in one or more segments.
.It Bq Er EINVAL
Machine-dependent load error.
-.It Bq Er EBUSY
-Another
-.Fn kexec_load
-call is in progress.
+On amd64 this includes systems running with 5-level paging
+.Pq Va vm.pmap.la57 .
+.It Bq Er ENOMEM
+There is not enough kernel address space to map the image while it is
+staged.
+.It Bq Er ENOSYS
+Staging an image is not supported on this platform.
+It is implemented on amd64 and arm64.
+.It Bq Er EPERM
+The caller is not the super-user, or the system security level is greater
+than 0.
.El
.Sh HISTORY
The

File Metadata

Mime Type
text/plain
Expires
Mon, Nov 23, 5:01 AM (9 h, 22 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
41891410
Default Alt Text
D61810.1795410068.diff (1 KB)

Event Timeline