diff options
author | Philippe Mikoyan <philippe.mikoyan@skat.systems> | 2018-02-06 15:40:49 -0800 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2018-02-06 18:32:46 -0800 |
commit | 87ad4b0d853e8a65d6002f4e7bd3dce4ae3a52da (patch) | |
tree | c1e7faec69a13a77606fd6e8c9578080ffe531e1 /LICENSES | |
parent | bac7a1fff7926fb9891a18fe33650884b0e13e41 (diff) | |
download | linux-87ad4b0d853e8a65d6002f4e7bd3dce4ae3a52da.tar.gz linux-87ad4b0d853e8a65d6002f4e7bd3dce4ae3a52da.tar.bz2 linux-87ad4b0d853e8a65d6002f4e7bd3dce4ae3a52da.zip |
ipc: fix ipc data structures inconsistency
As described in the title, this patch fixes <ipc>id_ds inconsistency when
<ipc>ctl_stat executes concurrently with some ds-changing function, e.g.
shmat, msgsnd or whatever.
For instance, if shmctl(IPC_STAT) is running concurrently
with shmat, following data structure can be returned:
{... shm_lpid = 0, shm_nattch = 1, ...}
Link: http://lkml.kernel.org/r/20171202153456.6514-1-philippe.mikoyan@skat.systems
Signed-off-by: Philippe Mikoyan <philippe.mikoyan@skat.systems>
Reviewed-by: Davidlohr Bueso <dbueso@suse.de>
Cc: Al Viro <viro@zeniv.linux.org.uk>
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 'LICENSES')
0 files changed, 0 insertions, 0 deletions