Page MenuHomeFreeBSD

zfs: avoid disclosing uninitialized data in various zil functions
Needs ReviewPublic

Authored by chs on Thu, Sep 24, 12:09 AM.
Tags
None
Referenced Files
F175966616: D59951.diff
Wed, Oct 14, 8:57 PM
F175958970: D59951.diff
Wed, Oct 14, 7:16 PM
Unknown Object (File)
Tue, Oct 13, 1:00 PM
Unknown Object (File)
Sat, Oct 10, 7:01 PM
Unknown Object (File)
Fri, Oct 9, 9:52 PM
Unknown Object (File)
Thu, Oct 8, 8:49 AM
Unknown Object (File)
Mon, Oct 5, 10:17 AM
Unknown Object (File)
Mon, Oct 5, 12:35 AM
Subscribers

Details

Summary

Fully initialize all structures that are later written to the ZIL.
Found with KMSAN.

Sponsored by: Netflix
Assisted-By: Claude Code - Opus 5 (1M context)

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 77235
Build 74118: arc lint + arc unit

Event Timeline

chs requested review of this revision.Thu, Sep 24, 12:09 AM

I honestly don't know if this is correct (it looks good and the code matches the comments). You'll want to get this upstreamed to openzfs though.
Added allanjude@, mav@ and mm@ since they know this code better than I.