]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
xfs: fix off-by-one error when calling xchk_xref_has_rt_owner
authorDarrick J. Wong <djwong@kernel.org>
Tue, 14 Jul 2026 06:06:28 +0000 (23:06 -0700)
committerCarlos Maiolino <cem@kernel.org>
Tue, 14 Jul 2026 09:01:47 +0000 (11:01 +0200)
commit5d72a68f2007ba2a968d6bf47dba3f4620bd182e
treeea5484efcacb16250c0ed970fb40ae908d838bc5
parent540ddc626245f12f56326ee0c1601f71ebb41d64
xfs: fix off-by-one error when calling xchk_xref_has_rt_owner

LOLLM noticed an off-by-one error when computing the length of the
rtrmap to cross-check.

Cc: stable@vger.kernel.org # v6.14
Fixes: 037a44d8277adf ("xfs: cross-reference the realtime rmapbt")
Signed-off-by: "Darrick J. Wong" <djwong@kernel.org>
Assisted-by: LOLLM # finding obvious bugs
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Carlos Maiolino <cem@kernel.org>
fs/xfs/scrub/rtbitmap.c