]> www.infradead.org Git - users/hch/xfsprogs.git/commit
libxfs: implement some sanity checking for enormous rgcount
authorDarrick J. Wong <djwong@kernel.org>
Wed, 3 Jul 2024 21:22:05 +0000 (14:22 -0700)
committerDarrick J. Wong <djwong@kernel.org>
Tue, 9 Jul 2024 22:37:15 +0000 (15:37 -0700)
commit7a1ac01ba3d452ecb349417e83610075bea560fe
treed1b4458323faafb530ca45e3ec3aa5c75a4eec98
parent252a0465bb4bdbefe55ed24677950a874611386f
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