From: Jan Kara Date: Thu, 21 May 2015 14:05:56 +0000 (+0200) Subject: xfs: Correctly lock inode when removing suid and file capabilities X-Git-Tag: omap-for-v4.2/fixes-rc1^2~6^2~18 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a6de82cab123beaf9406024943caa0242f0618b0;p=pandora-kernel.git xfs: Correctly lock inode when removing suid and file capabilities Currently XFS calls file_remove_privs() without holding i_mutex. This is wrong because that function can end up messing with file permissions and file capabilities stored in xattrs for which we need i_mutex held. Fix the problem by grabbing iolock exclusively when we will need to change anything in permissions / xattrs. Reviewed-by: Dave Chinner Signed-off-by: Jan Kara Signed-off-by: Al Viro --- Reading git-diff-tree failed