Page MenuHomeFreeBSD

D31483.id93464.diff
No OneTemporary

D31483.id93464.diff

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

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)

Event Timeline