diff options
author | Miklos Szeredi <mszeredi@suse.cz> | 2008-04-30 00:54:45 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2008-04-30 08:29:51 -0700 |
commit | 5559b8f4d1f630b8614b6c8e13b8bf6c9c45d7d7 (patch) | |
tree | 69db92193c0b27a493334ec1ecad456e75c8e257 /kernel/kgdb.c | |
parent | b48badf013018ef2aa4a46416454bdb18f77fb01 (diff) | |
download | op-kernel-dev-5559b8f4d1f630b8614b6c8e13b8bf6c9c45d7d7.zip op-kernel-dev-5559b8f4d1f630b8614b6c8e13b8bf6c9c45d7d7.tar.gz |
fuse: fix race in llseek
Fuse doesn't use i_mutex to protect setting i_size, and so
generic_file_llseek() can be racy: it doesn't use i_size_read().
So do a fuse specific llseek method, which does use i_size_read().
[akpm@linux-foundation.org: make `retval' loff_t]
Signed-off-by: Miklos Szeredi <mszeredi@suse.cz>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'kernel/kgdb.c')
0 files changed, 0 insertions, 0 deletions