fs/xfs: Fix grub_xfs_iterate_dir return value in case of failure
authorEgor Ignatov <egori@altlinux.org>
Thu, 23 Jan 2025 17:44:14 +0000 (20:44 +0300)
committerFelix Zielcke <fzielcke@z-51.de>
Wed, 11 Jun 2025 15:42:34 +0000 (17:42 +0200)
commit1d5fed3a96f57e3da0c4e4bc40a6f4a5486983a0
tree9710ddbe05809644ec4b5fc0dd6cae25903da818
parenteb2f76b77405ff0805e9744d25095bc215e38803
fs/xfs: Fix grub_xfs_iterate_dir return value in case of failure

Commit ef7850c757 introduced multiple boundary checks in grub_xfs_iterate_dir()
but handled the error incorrectly returning error code instead of 0.

Also change the error message so that it doesn't match the message
in grub_xfs_read_inode().

Fixes: ef7850c757 (fs/xfs: Fix issues found while fuzzing the XFS filesystem)
Signed-off-by: Egor Ignatov <egori@altlinux.org>
Gbp-Pq: Topic cve-2025-jan
Gbp-Pq: Name fs-xfs-Fix-grub_xfs_iterate_dir-return-value-in-case-of-f.patch
grub-core/fs/xfs.c