[ Sasha's backport helper bot ] Hi, The upstream commit SHA1 provided is correct: 0c7fcdb6d06cdf8b19b57c17605215b06afa864a WARNING: Author mismatch between patch and upstream commit: Backport author: Catherine Hoang <catherine.hoang@xxxxxxxxxx> Commit author: lei lu <llfamsec@xxxxxxxxx> Status in newer kernel trees: 6.12.y | Present (exact SHA1) 6.6.y | Not found Note: The patch differs from the upstream commit: --- 1: 0c7fcdb6d06c ! 1: 04b957ad4003 xfs: don't walk off the end of a directory data block @@ Metadata ## Commit message ## xfs: don't walk off the end of a directory data block + commit 0c7fcdb6d06cdf8b19b57c17605215b06afa864a upstream. + This adds sanity checks for xfs_dir2_data_unused and xfs_dir2_data_entry to make sure don't stray beyond valid memory region. Before patching, the loop simply checks that the start offset of the dup and dep is within the @@ Commit message Signed-off-by: lei lu <llfamsec@xxxxxxxxx> Reviewed-by: Darrick J. Wong <djwong@xxxxxxxxxx> Signed-off-by: Chandan Babu R <chandanbabu@xxxxxxxxxx> + Signed-off-by: Catherine Hoang <catherine.hoang@xxxxxxxxxx> + Acked-by: Darrick J. Wong <djwong@xxxxxxxxxx> ## fs/xfs/libxfs/xfs_dir2_data.c ## @@ fs/xfs/libxfs/xfs_dir2_data.c: __xfs_dir3_data_check( --- Results of testing on various branches: | Branch | Patch Apply | Build Test | |---------------------------|-------------|------------| | stable/linux-6.6.y | Success | Success |