xfs: check for unknown v5 feature bits in superblock write verifier
authorDarrick J. Wong <darrick.wong@oracle.com>
Mon, 30 Jul 2018 23:45:35 +0000 (16:45 -0700)
committerDarrick J. Wong <darrick.wong@oracle.com>
Tue, 31 Jul 2018 20:18:09 +0000 (13:18 -0700)
commit9e037cb7972fab5a9f55bca4ebe6e4dbf7e160bc
tree1951998f734e0a99b5a351e9b41edff82fe34bc1
parent69775fd15dc78e0547af45fb3e375d5423cb21b1
xfs: check for unknown v5 feature bits in superblock write verifier

Make sure we never try to write the superblock with unknown feature bits
set.  We checked those at mount time, so if they're set now then memory
is corrupt.

Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Eric Sandeen <sandeen@redhat.com>
fs/xfs/libxfs/xfs_sb.c