• NeilBrown's avatar
    knfsd: Use a spinlock to protect sk_info_authunix · bd862252
    NeilBrown authored
    sk_info_authunix is not being protected properly so the object that
    it points to can be cache_put twice, leading to corruption.
    
    We borrow svsk->sk_defer_lock to provide the protection.  We should probably
    rename that lock to have a more generic name - later.
    
    Thanks to Gabriel for reporting this.
    
    Cc: Greg Banks <gnb@melbourne.sgi.com>
    Cc: Gabriel Barazer <gabriel@oxeva.fr>
    Signed-off-by: default avatarNeil Brown <neilb@suse.de>
    Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
    bd862252
svcauth_unix.c 13.7 KB