[Bug 253574] buffers passed to efi readblocks needs to be block aligned on arm.

[email protected]
Newsgroups gmane.os.freebsd.devel.arm
Message-ID <[email protected]/bugzilla/>
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=253574

            Bug ID: 253574
           Summary: buffers passed to efi readblocks needs to be block
                    aligned on arm.
           Product: Base System
           Version: 12.2-RELEASE
          Hardware: arm
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: arm
          Assignee: [email protected]
          Reporter: [email protected]

in stand/efi/boot1/ufs_module.c init_dev allocates a buffer and calls dskread
which passes the buffer to the efi entry readblocks from u-booot.
Likewise in stand/efi/libsa/ufsread.c there are calls to dskread.
according to
https://gitlab.denx.de/u-boot/u-boot/-/commit/f59f0825e8b9fdeb8abe43ffd10c5119ca1a032f
as of f59f0825 lib/efi_loader/efi_disk.c checks for block alignment of the
buffer passed to readblocks.

on my armv7 system u-boot insists on 512 byte alignment.

The blocks allocated in init_dev and fsread should be block aligned.

There probably exists a similar problem in zfs_module.c

-- 
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-arm
To unsubscribe, send any mail to "[email protected]"
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.