summaryrefslogtreecommitdiffstats
path: root/ipc/ipc_sysctl.c
diff options
context:
space:
mode:
authorKees Cook <keescook@chromium.org>2017-07-12 23:35:05 +0200
committerLinus Torvalds <torvalds@linux-foundation.org>2017-07-13 01:26:01 +0200
commit3e0c24042e5aa55eee817caeca67246df69931e1 (patch)
treecbc852c2acea7b8f0dfd9e3f31dc4f6291a6e128 /ipc/ipc_sysctl.c
parentipc/sem: avoid ipc_rcu_alloc() (diff)
downloadlinux-3e0c24042e5aa55eee817caeca67246df69931e1.tar.xz
linux-3e0c24042e5aa55eee817caeca67246df69931e1.zip
ipc/shm: avoid ipc_rcu_alloc()
Instead of using ipc_rcu_alloc() which only performs the refcount bump, open code it. This also allows for shmid_kernel structure layout to be randomized in the future. Link: http://lkml.kernel.org/r/20170525185107.12869-11-manfred@colorfullife.com Signed-off-by: Kees Cook <keescook@chromium.org> Signed-off-by: Manfred Spraul <manfred@colorfullife.com> Cc: Davidlohr Bueso <dave@stgolabs.net> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'ipc/ipc_sysctl.c')
0 files changed, 0 insertions, 0 deletions