]> git.baikalelectronics.ru Git - kernel.git/commit
Fix races around the access to ->s_options
authorAl Viro <viro@zeniv.linux.org.uk>
Fri, 8 May 2009 20:05:57 +0000 (16:05 -0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Sat, 9 May 2009 14:51:34 +0000 (10:51 -0400)
commit8f1cfc20a3e7f8595a9c55a1e05d11547a93d7c3
tree0ad94849a7bc3e97cd19978005d1898c8bb44b36
parentf0044bd160e8d4223f2d52c5e5f675f7cf0db05f
Fix races around the access to ->s_options

Put generic_show_options read access to s_options under rcu_read_lock,
split save_mount_options() into "we are setting it the first time"
(uses in foo_fill_super()) and "we are relacing and freeing the old one",
synchronize_rcu() before kfree() in the latter.

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
drivers/isdn/capi/capifs.c
fs/affs/super.c
fs/afs/super.c
fs/hpfs/super.c
fs/namespace.c
fs/reiserfs/super.c
include/linux/fs.h