summaryrefslogtreecommitdiffstats
path: root/ipc/util.c
diff options
context:
space:
mode:
authorKees Cook2017-07-12 23:35:07 +0200
committerLinus Torvalds2017-07-13 01:26:02 +0200
commit52f908904e7e05b6300162faa48152df073be645 (patch)
treef8b38e4c0c3cac282bcf71c61189b4e459f9359c /ipc/util.c
parentipc/shm: avoid ipc_rcu_alloc() (diff)
downloadkernel-qcow2-linux-52f908904e7e05b6300162faa48152df073be645.tar.gz
kernel-qcow2-linux-52f908904e7e05b6300162faa48152df073be645.tar.xz
kernel-qcow2-linux-52f908904e7e05b6300162faa48152df073be645.zip
ipc/msg: avoid ipc_rcu_alloc()
Instead of using ipc_rcu_alloc() which only performs the refcount bump, open code it. This also allows for msg_queue structure layout to be randomized in the future. Link: http://lkml.kernel.org/r/20170525185107.12869-12-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/util.c')
0 files changed, 0 insertions, 0 deletions