RE: [PATCH 3/4] ipc/shm.c: check for integer overflow during shmget.

From: Motohiro Kosaki
Date: Tue Apr 22 2014 - 17:09:02 EST


> > 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@xxxxxxxxxxxxxxxx>
>
> Acked-by: Davidlohr Bueso <davidlohr@xxxxxx>

Acked-by: KOSAKI Motohiro <kosaki.motohiro@xxxxxxxxxxxxxx>