summaryrefslogtreecommitdiff
path: root/scripts/gdb/linux/vmalloc.py
diff options
context:
space:
mode:
authorDarrick J. Wong <djwong@kernel.org>2023-06-30 03:39:43 +0300
committerDarrick J. Wong <djwong@kernel.org>2023-07-02 19:26:18 +0300
commit7975aba19cba4eba7ff60410f9294c90edc96dcf (patch)
tree0429047ba9982fdab04f3ba41ebe2dc40b98efa3 /scripts/gdb/linux/vmalloc.py
parent63ef7a35912dd743cabd65d5bb95891625c0dd46 (diff)
downloadlinux-7975aba19cba4eba7ff60410f9294c90edc96dcf.tar.xz
xfs: fix integer overflows in the fsmap rtbitmap and logdev backends
It's not correct to use the rmap irec structure to hold query key information to query the rtbitmap because the realtime volume can be longer than 2^32 fsblocks in length. Because the rt volume doesn't have allocation groups, introduce a daddr-based record filtering algorithm and compute the rtextent values using 64-bit variables. The same problem exists in the external log device fsmap implementation, so use the same solution to fix it too. After this patch, all the code that touches info->low and info->high under xfs_getfsmap_logdev and __xfs_getfsmap_rtdev are unnecessary. Cleaning this up will be done in subsequent patches. Fixes: 4c934c7dd60c ("xfs: report realtime space information via the rtbitmap") Signed-off-by: Darrick J. Wong <djwong@kernel.org> Reviewed-by: Dave Chinner <dchinner@redhat.com>
Diffstat (limited to 'scripts/gdb/linux/vmalloc.py')
0 files changed, 0 insertions, 0 deletions