]> 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)
commit6791a04e4bf2e22920cd57798f3022dc192d0b4c
treea137e6d45738351525fba7e4852d55721214e88b
parentc255680baf922070112429eee67ab9f178540daa
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