mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-06 21:24:29 +00:00
6b0ddd1fbc
'log2blksz' in blk_desc structure must always be initialized, otherwise
it will cause a lot of weird failures in file operations.
For example, fs_set_blk_dev[_with_part]() examines a block device against
every file system with its probe function. In particular, ext4 file
system's ext4_probe() will calls fs_devread() to fetch a super block.
If log2blksz is 0, the actual 'read' size, i.e. block_len >> log2blksz, is
much bigger than a buffer's size, and it can end up with memory corruption.
Signed-off-by: AKASHI Takahiro <takahiro.akashi@linaro.org>
Fixes:
|
||
---|---|---|
.. | ||
Kconfig | ||
Makefile | ||
virtio-uclass.c | ||
virtio_blk.c | ||
virtio_blk.h | ||
virtio_mmio.c | ||
virtio_mmio.h | ||
virtio_net.c | ||
virtio_net.h | ||
virtio_pci.h | ||
virtio_pci_legacy.c | ||
virtio_pci_modern.c | ||
virtio_ring.c | ||
virtio_rng.c | ||
virtio_sandbox.c |