projects
/
grub2.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a607112
)
fs/xfs: Handle root inode read failure in grub_xfs_mount
author
Egor Ignatov
<egori@altlinux.org>
Thu, 23 Jan 2025 17:44:13 +0000
(20:44 +0300)
committer
Felix Zielcke
<fzielcke@z-51.de>
Wed, 11 Jun 2025 15:42:34 +0000
(17:42 +0200)
Signed-off-by: Egor Ignatov <egori@altlinux.org>
Gbp-Pq: Topic cve-2025-jan
Gbp-Pq: Name fs-xfs-Handle-root-inode-read-failure-in-grub_xfs_mount.patch
grub-core/fs/xfs.c
patch
|
blob
|
history
diff --git
a/grub-core/fs/xfs.c
b/grub-core/fs/xfs.c
index 28a34299690e768e56507e5767e8f7d404f98f0f..59bdee5f9c06dac2c7206436753661fea59d4aaf 100644
(file)
--- a/
grub-core/fs/xfs.c
+++ b/
grub-core/fs/xfs.c
@@
-1086,6
+1086,8
@@
grub_xfs_mount (grub_disk_t disk)
grub_cpu_to_be64(data->sblock.rootino));
grub_xfs_read_inode (data, data->diropen.ino, &data->diropen.inode);
+ if (grub_errno)
+ goto fail;
return data;
fail: