]> git.ipfire.org Git - thirdparty/util-linux.git/commit
libblkid/minix: Sanity check superblock s_state for v 1 and 2
authorNate Clark <nate@neworld.us>
Wed, 4 Jan 2017 20:21:17 +0000 (15:21 -0500)
committerKarel Zak <kzak@redhat.com>
Tue, 17 Jan 2017 15:03:01 +0000 (16:03 +0100)
commit59810c31888d04ba4244c19dc4998b844bf3b69a
tree83b515aec66687081307c01068fe244b33834d43
parentfb8683291e6d71d3f5e27fdda1076b616bc2a32f
libblkid/minix: Sanity check superblock s_state for v 1 and 2

Swap devices with specific values in the uuid can look like minix
devices to blkid. Add an extra check to make sure the state of the
filesystem has valid state flags.

A couple of offending swap uuids include:
35f1f264-137f-471a-bc85-acc9f4bc04a3
35f1f264-7f13-471a-bc85-acc9f4bc04a3
35f1f264-138f-471a-bc85-acc9f4bc04a3
35f1f264-8f13-471a-bc85-acc9f4bc04a3

Without this change a swap device with any of those uuids would be
detected as minix and swap by blkid.

Signed-off-by: Nate Clark <nate@neworld.us>
libblkid/src/superblocks/minix.c