HomeFreeBSD

Fix an uninitialized data access (#16511)

Description

Fix an uninitialized data access (#16511)

zfs_acl_node_alloc allocates an uninitialized data buffer, but upstack
zfs_acl_chmod only partially initializes it. KMSAN reported that this
memory remained uninitialized at the point when it was read by
lzjb_compress, which suggests a possible kernel memory disclosure bug.

The full KMSAN warning may be found in the PR.
https://github.com/openzfs/zfs/pull/16511

Signed-off-by: Alan Somers <asomers@gmail.com>
Sponsored by: Axcient
Reviewed-by: Alexander Motin <mav@FreeBSD.org>
Reviewed-by: Tony Hutter <hutter2@llnl.gov>

Details

Provenance
asomersAuthored on Sep 10 2024, 4:08 PM
GitHub <noreply@github.com>Committed on Sep 10 2024, 4:08 PM
Parents
rG63253dbf4f86: zts-report: don't crash on non-UTF-8 chars in the log (#16497)
Branches
Unknown
Tags
Unknown