[ Sasha's backport helper bot ]
Hi,
The upstream commit SHA1 provided is correct: 6d2db12d56a389b3e8efa236976f8dc3a8ae00f0
WARNING: Author mismatch between patch and upstream commit: Backport author: Catherine Hoangcatherine.hoang@oracle.com Commit author: Christoph Hellwighch@lst.de
Status in newer kernel trees: 6.13.y | Present (exact SHA1) 6.12.y | Present (exact SHA1) 6.6.y | Not found
Note: The patch differs from the upstream commit: --- 1: 6d2db12d56a38 ! 1: 89e660ba4da80 xfs: assert a valid limit in xfs_rtfind_forw @@ Metadata ## Commit message ## xfs: assert a valid limit in xfs_rtfind_forw
+ commit 6d2db12d56a389b3e8efa236976f8dc3a8ae00f0 upstream. + Protect against developers passing stupid limits when refactoring the RT code once again.
Signed-off-by: Christoph Hellwig hch@lst.de Reviewed-by: Darrick J. Wong djwong@kernel.org Signed-off-by: Darrick J. Wong djwong@kernel.org + Signed-off-by: Catherine Hoang catherine.hoang@oracle.com + Acked-by: Darrick J. Wong djwong@kernel.org
## fs/xfs/libxfs/xfs_rtbitmap.c ## @@ fs/xfs/libxfs/xfs_rtbitmap.c: xfs_rtfind_forw( - xfs_rtword_t incore; - unsigned int word; /* word number in the buffer */ + xfs_rtword_t wdiff; /* difference from wanted value */ + int word; /* word number in the buffer */
+ ASSERT(start <= limit); + ---
Results of testing on various branches:
| Branch | Patch Apply | Build Test | |---------------------------|-------------|------------| | stable/linux-6.6.y | Success | Failed |
Build Errors: Build error for stable/linux-6.6.y: ssh: connect to host 192.168.1.58 port 22: No route to host