Skip to contentSkip to conversation

man/man2/clone.2: Document E2BIG-based extension handshake

PATCH In review Florian Weimer 2 participants 2 messages Dec 15, 2025 – Dec 17, 2025 Man-pages: manual pages for Linux -- Sections 2, 3, 4, 5, and 7

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 man/man2/clone.2: Document E2BIG-based extension handshake

The clone3 system call uses copy_struct_from_user and the E2BIG error code to handle changes to the struct clone_args size.

---
 man/man2/clone.2 | 10 ++++++++++
 1 file changed, 10 insertions(+)
man/man2/clone.2 +10 -0
index 74c5a59be..1d62a5df1 100644
@@ -1188,6 +1188,16 @@ in the caller's context, no child process is created, and
 is set to indicate the error.
 .SH ERRORS
 .TP
+.BR E2BIG " (" clone3 "() only)"
+The kernel does not support some functionality requested in this
+.BR clone3 ()
+call:
+The size argument is larger than what the kernel supports,
+and there are non-zero values in the struct after the kernel-supported size.
+.TP
+.BR E2BIG " (" clone3 "() only)"
+The size argument is larger than the page size.
+.TP
 .BR EACCES " (" clone3 "() only)"
 .B CLONE_INTO_CGROUP
 was specified in

base-commit: 46950a0845de91c422efe6c639091ace42cb92f8

#1 lore raw

Hi Florian,

Quoted 6 lines · Florian Weimer

The clone3 system call uses copy_struct_from_user and the E2BIG error code to handle changes to the struct clone_args size.

---

Thanks! I've applied the patch.

Have a lovely night!
Alex

Quoted 28 lines
 man/man2/clone.2 | 10 ++++++++++
 1 file changed, 10 insertions(+)
man/man2/clone.2 +10 -0
index 74c5a59be..1d62a5df1 100644
@@ -1188,6 +1188,16 @@ in the caller's context, no child process is created, and
 is set to indicate the error.
 .SH ERRORS
 .TP
+.BR E2BIG " (" clone3 "() only)"
+The kernel does not support some functionality requested in this
+.BR clone3 ()
+call:
+The size argument is larger than what the kernel supports,
+and there are non-zero values in the struct after the kernel-supported size.
+.TP
+.BR E2BIG " (" clone3 "() only)"
+The size argument is larger than the page size.
+.TP
 .BR EACCES " (" clone3 "() only)"
 .B CLONE_INTO_CGROUP
 was specified in

base-commit: 46950a0845de91c422efe6c639091ace42cb92f8

Signature · 1 line
<https://www.alejandro-colomar.es>