Skip to content
Commit 2a32cebd authored by Al Viro's avatar Al Viro
Browse files

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: default avatarAl Viro <viro@zeniv.linux.org.uk>
parent f9dbd05b
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment