diff options
author | Manfred Spraul <manfred@colorfullife.com> | 2018-08-22 07:01:37 +0200 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2018-08-22 19:52:52 +0200 |
commit | 2e5ceb452c9b7f0a30c87bd61c01260e3d8464ad (patch) | |
tree | b4a999c84f6a8935a46a35d741ef07968a9a330c /ipc/util.h | |
parent | ipc: rename ipcctl_pre_down_nolock() (diff) | |
download | linux-2e5ceb452c9b7f0a30c87bd61c01260e3d8464ad.tar.xz linux-2e5ceb452c9b7f0a30c87bd61c01260e3d8464ad.zip |
ipc/util.c: correct comment in ipc_obtain_object_check
The comment that explains ipc_obtain_object_check is wrong: The function
checks the sequence number, not the reference counter.
Note that checking the reference counter would be meaningless: The
reference counter is decreased without holding any locks, thus an object
with kern_ipc_perm.deleted=true may disappear at the end of the next rcu
grace period.
Link: http://lkml.kernel.org/r/20180712185241.4017-6-manfred@colorfullife.com
Signed-off-by: Manfred Spraul <manfred@colorfullife.com>
Reviewed-by: Davidlohr Bueso <dbueso@suse.de>
Cc: Davidlohr Bueso <dave@stgolabs.net>
Cc: Dmitry Vyukov <dvyukov@google.com>
Cc: Herbert Xu <herbert@gondor.apana.org.au>
Cc: Kees Cook <keescook@chromium.org>
Cc: Michael Kerrisk <mtk.manpages@gmail.com>
Cc: Michal Hocko <mhocko@suse.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'ipc/util.h')
0 files changed, 0 insertions, 0 deletions