ext4: always initialize the crc32c checksum driver
authorTheodore Ts'o <tytso@mit.edu>
Fri, 30 Mar 2018 02:10:31 +0000 (22:10 -0400)
committerBen Hutchings <ben@decadent.org.uk>
Thu, 19 Apr 2018 10:13:03 +0000 (11:13 +0100)
commita40aefc0a7122bbb7b5ec07e3fc5388b16f6621b
tree216b2d72456d7eed3dec8b3b7ec88c2f2329960a
parentf551db601d103371f9ca6caf48c95f1be8a39b01
ext4: always initialize the crc32c checksum driver

The extended attribute code now uses the crc32c checksum for hashing
purposes, so we should just always always initialize it.  We also want
to prevent NULL pointer dereferences if one of the metadata checksum
features is enabled after the file sytsem is originally mounted.

This issue has been assigned CVE-2018-1094.

https://bugzilla.kernel.org/show_bug.cgi?id=199183
https://bugzilla.redhat.com/show_bug.cgi?id=1560788

Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Cc: stable@vger.kernel.org
Gbp-Pq: Topic bugfix/all
Gbp-Pq: Name ext4-always-initialize-the-crc32c-checksum-driver.patch
fs/ext4/super.c