]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commit
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)
committerTim Gardner <tim.gardner@canonical.com>
Tue, 28 Mar 2017 20:17:54 +0000 (14:17 -0600)
commit68263c2d2d807f7a486fff8a65fab34d08586649
tree45672ab7b24c63b81edcfbf299ae1acbd1f5ea96
parentde82fb99b78c1c28b0993ce7be2f7676b47b6f81
ext4: lock the xattr block before checksuming it

BugLink: http://bugs.launchpad.net/bugs/1658633
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>
Cc: stable@vger.kernel.org
(cherry picked from commit dac7a4b4b1f664934e8b713f529b629f67db313c)
Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
Signed-off-by: Colin King <colin.king@canonical.com>
fs/ext4/xattr.c