summaryrefslogtreecommitdiff
path: root/drivers/pcmcia
diff options
context:
space:
mode:
authorAlain Knaff <alain@knaff.lu>2008-11-11 01:08:08 (GMT)
committerAl Viro <viro@zeniv.linux.org.uk>2009-01-05 16:53:07 (GMT)
commit5b6f1eb97d462a45be3b30759758b5fdbb562c8c (patch)
treee8f664c34dde71b95955f57caad3093581be87ef /drivers/pcmcia
parent7d3b56ba37a95f1f370f50258ed3954c304c524b (diff)
downloadlinux-fsl-qoriq-5b6f1eb97d462a45be3b30759758b5fdbb562c8c.tar.xz
vfs: lseek(fd, 0, SEEK_CUR) race condition
This patch fixes a race condition in lseek. While it is expected that unpredictable behaviour may result while repositioning the offset of a file descriptor concurrently with reading/writing to the same file descriptor, this should not happen when merely *reading* the file descriptor's offset. Unfortunately, the only portable way in Unix to read a file descriptor's offset is lseek(fd, 0, SEEK_CUR); however executing this concurrently with read/write may mess up the position. [with fixes from akpm] Signed-off-by: Alain Knaff <alain@knaff.lu> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'drivers/pcmcia')
0 files changed, 0 insertions, 0 deletions