]> Git Repo - linux.git/commit - ipc/msgutil.c
ipc: convert ipc_namespace.count from atomic_t to refcount_t
authorElena Reshetova <[email protected]>
Fri, 8 Sep 2017 23:17:38 +0000 (16:17 -0700)
committerLinus Torvalds <[email protected]>
Sat, 9 Sep 2017 01:26:51 +0000 (18:26 -0700)
commita2e0602c36ed9fe042714694dd5a889ecd8cb556
treece02930bac1f418d0920726c061ebeee5ca0ec53
parent7483e5d420d9d5aa1732c5efb0da59e095a8b24e
ipc: convert ipc_namespace.count from atomic_t to refcount_t

refcount_t type and corresponding API should be used instead of atomic_t
when the variable is used as a reference counter.  This allows to avoid
accidental refcounter overflows that might lead to use-after-free
situations.

Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Elena Reshetova <[email protected]>
Signed-off-by: Hans Liljestrand <[email protected]>
Signed-off-by: Kees Cook <[email protected]>
Signed-off-by: David Windsor <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: Greg Kroah-Hartman <[email protected]>
Cc: "Eric W. Biederman" <[email protected]>
Cc: Ingo Molnar <[email protected]>
Cc: Alexey Dobriyan <[email protected]>
Cc: Serge Hallyn <[email protected]>
Cc: <[email protected]>
Cc: Davidlohr Bueso <[email protected]>
Cc: Manfred Spraul <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
include/linux/ipc_namespace.h
ipc/msgutil.c
ipc/namespace.c
This page took 0.056393 seconds and 4 git commands to generate.