From: NeilBrown Date: Tue, 17 Apr 2007 05:53:25 +0000 (-0700) Subject: knfsd: use a spinlock to protect sk_info_authunix X-Git-Tag: v2.6.21~69 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=30f3deeee81cf22546da1b0b89a937bb991dea23;p=pandora-kernel.git knfsd: use a spinlock to protect sk_info_authunix 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 Cc: Gabriel Barazer Signed-off-by: Neil Brown Cc: Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed