• Al Viro's avatar
    Fix races around the access to ->s_options · 2a32cebd
    Al Viro authored
    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>
    2a32cebd
capifs.c 5 KB