]> git.ipfire.org Git - thirdparty/util-linux.git/commit
libblkid: zfs: fix unaligned memory access on SPARC
authorAmeer Hamza <ahamza@ixsystems.com>
Mon, 2 Feb 2026 16:16:50 +0000 (21:16 +0500)
committerAmeer Hamza <ahamza@ixsystems.com>
Mon, 2 Feb 2026 16:16:50 +0000 (21:16 +0500)
commit1c3d5d37ceb55ba329e54656c741b6b562e1f04c
tree902e0f7dbbff3763df7f4c1d5c54253576e1c431
parent2c1bb35c2b22542039063e8fd55c7494f14bb24f
libblkid: zfs: fix unaligned memory access on SPARC

SPARC requires aligned memory access for uint32_t values. The ZFS code
was directly dereferencing uint32_t pointers that could be unaligned due
to XDR encoding, causing SIGBUS crashes. Introduce copy_be32_to_cpu()
helper using memcpy to safely read from potentially unaligned memory.

Addresses: https://github.com/util-linux/util-linux/issues/4010

Signed-off-by: Ameer Hamza <ahamza@ixsystems.com>
libblkid/src/superblocks/zfs.c