Serge E. Hallyn
02fdb36ae7
ipc: sysvsem: refuse clone(CLONE_SYSVSEM|CLONE_NEWIPC)
...
CLONE_NEWIPC|CLONE_SYSVSEM interaction isn't handled properly. This can cause
a kernel memory corruption. CLONE_NEWIPC must detach from the existing undo
lists.
Fix, part 3: refuse clone(CLONE_SYSVSEM|CLONE_NEWIPC).
With unshare, specifying CLONE_SYSVSEM means unshare the sysvsem. So it seems
reasonable that CLONE_NEWIPC without CLONE_SYSVSEM would just imply
CLONE_SYSVSEM.
However with clone, specifying CLONE_SYSVSEM means *share* the sysvsem. So
calling clone(CLONE_SYSVSEM|CLONE_NEWIPC) is explicitly asking for something
we can't allow. So return -EINVAL in that case.
[akpm@linux-foundation.org: cleanups]
Signed-off-by: Serge E. Hallyn <serue@us.ibm.com>
Cc: Manfred Spraul <manfred@colorfullife.com>
Acked-by: "Eric W. Biederman" <ebiederm@xmission.com>
Cc: Pavel Emelyanov <xemul@openvz.org>
Cc: Michael Kerrisk <mtk.manpages@googlemail.com>
Cc: Pierre Peiffer <peifferp@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2008-04-29 08:06:14 -07:00
..
2008-04-29 08:06:04 -07:00
2008-04-28 08:58:36 -07:00
2008-04-25 00:25:08 +02:00
2008-02-09 23:27:01 -08:00
2008-03-24 19:22:20 -07:00
2008-02-14 21:13:33 -08:00
2008-04-19 09:52:37 +10:00
2008-04-19 09:53:46 +10:00
2008-04-19 09:59:43 +10:00
2008-04-19 09:59:43 +10:00
2008-01-30 13:33:08 +01:00
2008-04-28 08:58:22 -07:00
2008-02-05 09:44:20 -08:00
2008-04-29 08:06:09 -07:00
2008-04-29 08:06:10 -07:00
2008-04-19 19:44:59 +02:00
2007-05-09 12:30:49 -07:00
2008-04-29 08:06:11 -07:00
2008-04-29 08:06:11 -07:00
2007-10-18 14:37:28 -07:00
2007-10-18 14:37:24 -07:00
2007-10-18 14:37:26 -07:00
2008-04-29 08:06:10 -07:00
2008-01-29 17:13:18 +11:00
2008-04-29 08:06:14 -07:00
2008-03-30 14:18:41 -07:00
2008-03-30 14:18:41 -07:00
2008-04-28 22:22:21 +02:00
2008-02-08 09:22:29 -08:00
2008-02-06 10:41:01 -08:00
2008-01-25 21:08:29 +01:00
2008-03-10 18:01:20 -07:00
2008-04-28 08:58:23 -07:00
2007-07-16 09:05:50 -07:00
2008-04-17 20:05:43 +02:00
2008-04-19 19:44:58 +02:00
2008-04-28 08:58:32 -07:00
2008-01-24 20:40:40 -08:00
2008-04-29 08:06:04 -07:00
2008-04-19 19:44:57 +02:00
2006-12-07 08:39:43 -08:00
2007-10-11 22:11:11 +02:00
2008-02-25 23:03:02 +01:00
2008-04-18 08:37:01 -07:00
2008-04-29 08:06:04 -07:00
2008-04-18 22:17:04 -04:00
2008-02-08 09:22:31 -08:00
2006-07-03 15:27:01 -07:00
2008-02-08 09:22:31 -08:00
2006-07-03 15:27:04 -07:00
2008-04-29 08:06:13 -07:00
2008-04-29 08:06:07 -07:00
2008-04-29 08:06:14 -07:00
2008-04-29 08:05:59 -07:00
2008-02-08 09:22:41 -08:00
2008-04-28 17:29:18 -07:00
2008-02-08 09:22:31 -08:00
2008-02-05 09:44:22 -08:00
2008-04-17 12:22:30 +02:00
2008-04-18 22:17:04 -04:00
2008-04-29 08:06:06 -07:00
2008-04-18 22:17:04 -04:00
2008-04-28 14:14:36 -07:00
2008-01-25 21:08:24 +01:00
2008-02-13 16:21:18 -08:00
2008-01-25 21:08:24 +01:00
2008-04-19 19:44:59 +02:00
2008-04-29 08:06:04 -07:00
2008-03-26 12:04:09 +01:00
2008-04-29 08:06:10 -07:00
2008-04-20 21:47:08 -07:00
2008-02-08 09:22:41 -08:00
2008-02-08 09:22:41 -08:00
2006-07-03 15:27:01 -07:00
2008-01-24 20:40:40 -08:00
2008-02-13 15:45:36 +01:00
2006-07-03 15:27:01 -07:00
2007-12-18 15:21:13 +01:00
2008-04-19 19:45:01 +02:00
2008-04-19 19:45:00 +02:00
2008-04-19 19:45:00 +02:00
2008-01-25 21:08:29 +01:00
2008-04-19 19:45:00 +02:00
2008-04-19 19:44:59 +02:00
2008-04-29 08:06:09 -07:00
2007-07-16 09:05:50 -07:00
2008-04-17 10:43:01 -04:00
2008-04-21 22:15:06 +00:00
2008-04-19 19:44:58 +02:00
2008-02-29 18:46:53 +01:00
2008-01-30 13:31:20 +01:00
2008-02-06 10:41:02 -08:00
2006-07-03 15:27:02 -07:00
2008-04-21 16:36:46 -07:00
2008-02-05 09:44:07 -08:00
2008-04-29 08:05:59 -07:00
2008-02-08 09:22:31 -08:00
2008-04-19 19:44:57 +02:00
2007-11-14 18:45:44 -08:00
2008-02-06 10:41:11 -08:00
2008-04-29 08:06:04 -07:00
2008-02-12 14:29:26 -08:00
2008-04-17 12:22:31 +02:00
2007-10-18 14:37:28 -07:00
2008-04-10 17:28:26 -07:00
2008-04-29 08:06:07 -07:00
2008-04-19 19:45:00 +02:00
2007-11-29 09:24:53 -08:00
2008-04-29 08:06:04 -07:00
2008-02-08 09:22:31 -08:00
2008-04-29 08:06:11 -07:00