]> www.infradead.org Git - users/hch/xfsprogs.git/commit
libxfs: implement some sanity checking for enormous rgcount
authorDarrick J. Wong <djwong@kernel.org>
Wed, 7 Aug 2024 23:04:39 +0000 (16:04 -0700)
committerDarrick J. Wong <djwong@kernel.org>
Sat, 10 Aug 2024 06:54:50 +0000 (23:54 -0700)
commitbc4c4949011d12ec421d7e18930e821a78cdcc78
tree709d4c007020a840a70436cdef535b1753028020
parent368f33290b1dfb6de2127128e66b8ec58f176a4f
libxfs: implement some sanity checking for enormous rgcount

Similar to what we do for suspiciously large sb_agcount values, if
someone tries to get libxfs to load a filesystem with a very large
realtime group count, let's do some basic checks of the rt device to
see if it's really that large.  If the read fails, only load the first
rtgroup and warn the user.

Signed-off-by: Darrick J. Wong <djwong@kernel.org>
libxfs/init.c