summaryrefslogtreecommitdiffstats
path: root/mm/filemap.c
diff options
context:
space:
mode:
authorAlain Knaff <alain@knaff.lu>2008-11-11 02:08:08 +0100
committerAl Viro <viro@zeniv.linux.org.uk>2009-01-05 17:53:07 +0100
commit5b6f1eb97d462a45be3b30759758b5fdbb562c8c (patch)
treee8f664c34dde71b95955f57caad3093581be87ef /mm/filemap.c
parentMerge branch 'cpus4096-for-linus-3' of git://git.kernel.org/pub/scm/linux/ker... (diff)
downloadlinux-5b6f1eb97d462a45be3b30759758b5fdbb562c8c.tar.xz
linux-5b6f1eb97d462a45be3b30759758b5fdbb562c8c.zip
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 'mm/filemap.c')
0 files changed, 0 insertions, 0 deletions