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:44:06 +0000 (09:44 +0200)
commit35637b59f6759d3c79d881490aaca2dc73173bf5
tree77aa2a5fdd7cd79275286319331514cd84110e89
parent26512e52106d8050bcf710e62badbcb120c34841
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