Re: [PATCH 0/2] xfs: fix potential integer overflow in sort comparators

From: Carlos Maiolino

Date: Tue Apr 07 2026 - 09:47:08 EST


On Sat, 28 Mar 2026 17:34:08 +0000, Yuto Ohnuki wrote:
> Several sort comparators in XFS subtract two uint32_t values and
> return the result as int, which can overflow when the difference
> exceeds INT_MAX.
>
> Use cmp_int() instead, as was done in commit 362c49098086
> ("xfs: fix integer overflow in bmap intent sort comparator").
>
> [...]

Applied to for-next, thanks!

[1/2] xfs: fix integer overflow in deferred intent sort comparators
commit: 59e586d7dc7813910abe20a8281bbc3f1360e08e
[2/2] xfs: fix integer overflow in busy extent sort comparator
commit: 553a13e2076d64774910d597977a17022625763d

Best regards,
--
Carlos Maiolino <cem@xxxxxxxxxx>