grub/grub-core/osdep/linux
Mihai Moldovan 5b9308aff0 osdep/linux: Convert partition start to disk sector length
When reading data off a disk, sector values are based on the disk sector
length.

Within grub_util_fd_open_device(), the start of the partition was taken
directly from grub's partition information structure, which uses the
internal sector length (currently 512b), but never transformed to the
disk's sector length.

Subsequent calculations were all wrong for devices that have a diverging
sector length and the functions eventually skipped to the wrong stream
location, reading invalid data.

Signed-off-by: Mihai Moldovan <ionic@ionic.de>
Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
2018-09-27 14:53:32 +02:00
..
blocklist.c linux/blocklist: Fix memory leak. 2015-01-26 09:50:58 +01:00
emunet.c Split emunet into platform-dependent and GRUB-binding parts. Keep 2013-10-15 11:55:20 +02:00
getroot.c osdep/linux: handle autofs entries in /proc/self/mountinfo 2017-01-24 20:05:19 +03:00
hostdisk.c osdep/linux: Convert partition start to disk sector length 2018-09-27 14:53:32 +02:00
ofpath.c sparc64: Limit nvme of_path_of_nvme to just SPARC 2018-03-05 14:38:07 +01:00
platform.c Recognize EFI platform even in case of mismatch between Linux and EFI. 2015-03-27 14:51:51 +01:00