commit | 2e5ceb452c9b7f0a30c87bd61c01260e3d8464ad | [log] [tgz] |
---|---|---|
author | Manfred Spraul <[email protected]> | Tue Aug 21 22:01:37 2018 -0700 |
committer | Linus Torvalds <[email protected]> | Wed Aug 22 10:52:52 2018 -0700 |
tree | b4a999c84f6a8935a46a35d741ef07968a9a330c | |
parent | 4241c1a304078569f544d51eeaf8bc270b6e377a [diff] |
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/[email protected] Signed-off-by: Manfred Spraul <[email protected]> Reviewed-by: Davidlohr Bueso <[email protected]> Cc: Davidlohr Bueso <[email protected]> Cc: Dmitry Vyukov <[email protected]> Cc: Herbert Xu <[email protected]> Cc: Kees Cook <[email protected]> Cc: Michael Kerrisk <[email protected]> Cc: Michal Hocko <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>