summaryrefslogtreecommitdiffstats
path: root/kernel
diff options
context:
space:
mode:
authorPhilippe Mikoyan2018-02-07 00:40:49 +0100
committerLinus Torvalds2018-02-07 03:32:46 +0100
commit87ad4b0d853e8a65d6002f4e7bd3dce4ae3a52da (patch)
treec1e7faec69a13a77606fd6e8c9578080ffe531e1 /kernel
parentlib/ubsan: remove returns-nonnull-attribute checks (diff)
downloadkernel-qcow2-linux-87ad4b0d853e8a65d6002f4e7bd3dce4ae3a52da.tar.gz
kernel-qcow2-linux-87ad4b0d853e8a65d6002f4e7bd3dce4ae3a52da.tar.xz
kernel-qcow2-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 'kernel')
0 files changed, 0 insertions, 0 deletions