• Al Viro's avatar
    afs: fix sget() races, close leak on umount · dde194a6
    Al Viro authored
    * set ->s_fs_info in set() callback passed to sget()
    * allocate the thing and set it up enough for afs_test_super() before
    making it visible
    * have it freed in ->kill_sb() (current tree simply leaks it)
    * have ->put_super() leave ->s_fs_info->volume alone; it's too early for
    dropping it; do that from ->kill_sb() after having called kill_anon_super().
    Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
    dde194a6
super.c 12.3 KB