Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F102863010
D31483.id93464.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1010 B
Referenced Files
None
Subscribers
None
D31483.id93464.diff
View Options
Index: sys/compat/linux/linux_fork.c
===================================================================
--- sys/compat/linux/linux_fork.c
+++ sys/compat/linux/linux_fork.c
@@ -64,6 +64,7 @@
#include <compat/linux/linux_emul.h>
#include <compat/linux/linux_fork.h>
#include <compat/linux/linux_futex.h>
+#include <compat/linux/linux_mib.h>
#include <compat/linux/linux_misc.h>
#include <compat/linux/linux_util.h>
@@ -410,6 +411,20 @@
if (uca->stack != 0 && uca->stack_size == 0)
return (EINVAL);
+ /* Verify that no unsupported flags are passed along. */
+ if ((uca->flags & LINUX_CLONE_NEWTIME) != 0) {
+ LINUX_RATELIMIT_MSG("unsupported clone3 option CLONE_NEWTIME");
+ return (ENOSYS);
+ }
+ if ((uca->flags & LINUX_CLONE_INTO_CGROUP) != 0) {
+ LINUX_RATELIMIT_MSG("unsupported clone3 option CLONE_INTO_CGROUP");
+ return (ENOSYS);
+ }
+ if (uca->set_tid != 0 || uca->set_tid_size != 0) {
+ LINUX_RATELIMIT_MSG("unsupported clone3 set_tid");
+ return (ENOSYS);
+ }
+
return (0);
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, Nov 19, 3:38 AM (18 h, 5 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
14709753
Default Alt Text
D31483.id93464.diff (1010 B)
Attached To
Mode
D31483: linux(4): Return ENOSYS for unsupported clone3 option bits.
Attached
Detach File
Event Timeline
Log In to Comment