man/man2/clone.2: Document E2BIG-based extension handshake
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.
Signed-off-by Florian Weimer <[email protected]>
--- man/man2/clone.2 | 10 ++++++++++ 1 file changed, 10 insertions(+)
man/man2/clone.2 +10 -0
@@ -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
Alejandro Colomar
maintainerHi Florian,
Quoted 6 lines · Florian Weimer
The clone3 system call uses
copy_struct_from_userand the E2BIG error code to handle changes to the structclone_argssize.Signed-off-by Florian Weimer <[email protected]>---
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@@ -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 inbase-commit:
46950a0845de91c422efe6c639091ace42cb92f8
Signature · 1 line
<https://www.alejandro-colomar.es>