ext4: lock the xattr block before checksuming it
authorTheodore Ts'o <tytso@mit.edu>
Sat, 25 Mar 2017 21:22:47 +0000 (17:22 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 30 Mar 2017 07:41:25 +0000 (09:41 +0200)
commit9a9dc3ec7ce1e31d1e4f553885fd35fbaf207d23
treedd2cd8b0522f1b44d1d792bbc69ddfd38345743d
parentf572ba9a713894c38749dbb0e8933a03296fe2ec
ext4: lock the xattr block before checksuming it

commit dac7a4b4b1f664934e8b713f529b629f67db313c upstream.

We must lock the xattr block before calculating or verifying the
checksum in order to avoid spurious checksum failures.

https://bugzilla.kernel.org/show_bug.cgi?id=193661

Reported-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/ext4/xattr.c