]> git.baikalelectronics.ru Git - kernel.git/commit
xfs: strengthen rtalloc query range checks
authorDarrick J. Wong <darrick.wong@oracle.com>
Thu, 31 May 2018 16:07:21 +0000 (09:07 -0700)
committerDarrick J. Wong <darrick.wong@oracle.com>
Fri, 1 Jun 2018 16:00:16 +0000 (09:00 -0700)
commit291789846c443d48ca2143c3bd6dc7fe869e93fd
treea137e6d45738351525fba7e4852d55721214e88b
parent8cec9e618ba3352155b89c79cecdf9138e60ae82
xfs: strengthen rtalloc query range checks

Strengthen the rtalloc range query checks to make sure that the keys do
not run off the end of the realtime device inappropriately.  Note that
the query range functions require units of rt extents, not blocks,
despite the type name.

Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Allison Henderson <allison.henderson@oracle.com>
Reviewed-by: Bill O'Donnell <billodo@redhat.com>
fs/xfs/libxfs/xfs_rtbitmap.c