summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorWaiman Long <longman@redhat.com>2018-10-30 23:07:24 +0100
committerLinus Torvalds <torvalds@linux-foundation.org>2018-10-31 16:54:14 +0100
commit8c81ddd2acd2c10979f5a64f6784ce7c6717495e (patch)
tree753eefd7695e89bd0667bb877123be642c134642 /lib
parentipc: IPCMNI limit check for msgmni and shmmni (diff)
downloadlinux-8c81ddd2acd2c10979f5a64f6784ce7c6717495e.tar.xz
linux-8c81ddd2acd2c10979f5a64f6784ce7c6717495e.zip
ipc: IPCMNI limit check for semmni
For SysV semaphores, the semmni value is the last part of the 4-element sem number array. To make semmni behave in a similar way to msgmni and shmmni, we can't directly use the _minmax handler. Instead, a special sem specific handler is added to check the last argument to make sure that it is limited to the [0, IPCMNI] range. An error will be returned if this is not the case. Link: http://lkml.kernel.org/r/1536352137-12003-3-git-send-email-longman@redhat.com Signed-off-by: Waiman Long <longman@redhat.com> Reviewed-by: Davidlohr Bueso <dave@stgolabs.net> Cc: "Eric W. Biederman" <ebiederm@xmission.com> Cc: Jonathan Corbet <corbet@lwn.net> Cc: Kees Cook <keescook@chromium.org> Cc: Luis R. Rodriguez <mcgrof@kernel.org> Cc: Matthew Wilcox <willy@infradead.org> Cc: Takashi Iwai <tiwai@suse.de> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'lib')
0 files changed, 0 insertions, 0 deletions