diff options
author | Alain Knaff <alain@knaff.lu> | 2008-11-11 02:08:08 +0100 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2009-01-05 17:53:07 +0100 |
commit | 5b6f1eb97d462a45be3b30759758b5fdbb562c8c (patch) | |
tree | e8f664c34dde71b95955f57caad3093581be87ef /Documentation/SecurityBugs | |
parent | Merge branch 'cpus4096-for-linus-3' of git://git.kernel.org/pub/scm/linux/ker... (diff) | |
download | linux-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 'Documentation/SecurityBugs')
0 files changed, 0 insertions, 0 deletions