B Horn 18212f0648 kern/disk: Limit recursion depth
The grub_disk_read() may trigger other disk reads, e.g. via loopbacks.
This may lead to very deep recursion which can corrupt the heap. So, fix
the issue by limiting reads depth.

Reported-by: B Horn <b@horn.uk>
Signed-off-by: B Horn <b@horn.uk>
Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
2025-01-23 16:22:47 +01:00
..
2024-10-11 14:35:54 +02:00
2022-03-14 15:46:55 +01:00
2022-03-14 15:46:55 +01:00
2020-07-29 16:55:47 +02:00
2023-05-25 16:48:00 +02:00
2022-03-14 15:46:55 +01:00
2025-01-23 16:22:47 +01:00
2024-10-31 16:07:03 +01:00
2012-02-26 22:49:24 +01:00
2023-11-08 05:04:24 +01:00
2022-03-14 15:46:55 +01:00
2010-05-06 11:34:04 +05:30