Manfred Spraul 1376327ce1 ipc/shm.c: check for integer overflow during shmget.
SHMMAX is the upper limit for the size of a shared memory segment, counted
in bytes.  The actual allocation is that size, rounded up to the next full
page.

Add a check that prevents the creation of segments where the rounded up
size causes an integer overflow.

Signed-off-by: Manfred Spraul <manfred@colorfullife.com>
Acked-by: Davidlohr Bueso <davidlohr@hp.com>
Acked-by: KOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com>
Acked-by: Michael Kerrisk <mtk.manpages@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2014-06-06 16:08:14 -07:00
..
2014-06-06 16:08:14 -07:00
2014-06-06 16:08:14 -07:00
2014-04-07 16:36:11 -07:00
2010-03-12 15:52:32 -08:00
2014-04-07 16:36:11 -07:00
2014-06-06 16:08:14 -07:00
2013-09-11 15:59:44 -07:00
2014-06-06 16:08:14 -07:00
2014-06-06 16:08:14 -07:00
2014-06-06 16:08:14 -07:00