aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/include/linux/shm.h
diff options
context:
space:
mode:
authorManfred Spraul <manfred@colorfullife.com>2014-06-06 14:37:41 -0700
committerLinus Torvalds <torvalds@linux-foundation.org>2014-06-06 16:08:14 -0700
commit1376327ce1f790070ec7128b285e2d8965e760a5 (patch)
tree6d6c8b14231b487e476e0aa84775173be45ff455 /include/linux/shm.h
parentipc/shm.c: check for overflows of shm_tot (diff)
downloadwireguard-linux-1376327ce1f790070ec7128b285e2d8965e760a5.tar.xz
wireguard-linux-1376327ce1f790070ec7128b285e2d8965e760a5.zip
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>
Diffstat (limited to 'include/linux/shm.h')
0 files changed, 0 insertions, 0 deletions