summaryrefslogtreecommitdiffstats
path: root/ipc/util.c
diff options
context:
space:
mode:
authorElena Reshetova2017-09-09 01:17:42 +0200
committerLinus Torvalds2017-09-09 03:26:51 +0200
commitf74370b86ec1e0ee8a56ba838efe78e21d8dba23 (patch)
tree5ecda3120c2c13915cf8e1d2ee570062465479ef /ipc/util.c
parentipc: convert ipc_namespace.count from atomic_t to refcount_t (diff)
downloadkernel-qcow2-linux-f74370b86ec1e0ee8a56ba838efe78e21d8dba23.tar.gz
kernel-qcow2-linux-f74370b86ec1e0ee8a56ba838efe78e21d8dba23.tar.xz
kernel-qcow2-linux-f74370b86ec1e0ee8a56ba838efe78e21d8dba23.zip
ipc: convert sem_undo_list.refcnt 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/1499417992-3238-3-git-send-email-elena.reshetova@intel.com Signed-off-by: Elena Reshetova <elena.reshetova@intel.com> Signed-off-by: Hans Liljestrand <ishkamiel@gmail.com> Signed-off-by: Kees Cook <keescook@chromium.org> Signed-off-by: David Windsor <dwindsor@gmail.com> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Cc: "Eric W. Biederman" <ebiederm@xmission.com> Cc: Ingo Molnar <mingo@redhat.com> Cc: Alexey Dobriyan <adobriyan@gmail.com> Cc: Serge Hallyn <serge@hallyn.com> Cc: <arozansk@redhat.com> Cc: Davidlohr Bueso <dave@stgolabs.net> Cc: Manfred Spraul <manfred@colorfullife.com> 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