]> git.baikalelectronics.ru Git - kernel.git/commit
[JFFS2] Fix race in setting file attributes
authorDmitry Bazhenov <atrey@emcraft.com>
Fri, 5 May 2006 21:46:49 +0000 (22:46 +0100)
committerDavid Woodhouse <dwmw2@infradead.org>
Fri, 5 May 2006 21:46:49 +0000 (22:46 +0100)
commit6733ef6df7d62f8bb6cbcc0032e8acec0c99d033
tree6991cf489ef3fa040309c2e715e02d61632fa7d4
parent16ec8fa689fe5b6fb50859f28cbb7149a3542a9a
[JFFS2] Fix race in setting file attributes

It seems like there is a potential race in the function jffs2_do_setattr()
in the case when attributes of a symlink are updated. The symlink metadata
is read without having f->sem locked.

The following patch should fix the race.

Signed-off-by: Dmitry Bazhenov <atrey@emcraft.com>
Signed-off-by: David Woodhouse <dwmw2@infradead.org>
fs/jffs2/fs.c