Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F147850968
D31554.id93749.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
637 B
Referenced Files
None
Subscribers
None
D31554.id93749.diff
View Options
Index: sys/compat/linux/linux_misc.c
===================================================================
--- sys/compat/linux/linux_misc.c
+++ sys/compat/linux/linux_misc.c
@@ -1090,12 +1090,13 @@
idtype_t idtype;
int error, options;
+ if (args->options & ~(LINUX_WNOHANG | LINUX_WNOWAIT | LINUX_WEXITED |
+ LINUX_WSTOPPED | LINUX_WCONTINUED | __WCLONE | __WNOTHREAD | __WALL))
+ return (EINVAL);
+
options = 0;
linux_to_bsd_waitopts(args->options, &options);
- if (options & ~(WNOHANG | WNOWAIT | WEXITED | WUNTRACED | WCONTINUED))
- return (EINVAL);
-
switch (args->idtype) {
case LINUX_P_ALL:
idtype = P_ALL;
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Mar 15, 4:34 AM (11 h, 41 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
29701529
Default Alt Text
D31554.id93749.diff (637 B)
Attached To
Mode
D31554: linux(4): Fixup options value validation in linux_waitid().
Attached
Detach File
Event Timeline
Log In to Comment