Page MenuHomeFreeBSD

LinuxKPI: implement memzero_explicit()
ClosedPublic

Authored by bz on Apr 2 2024, 9:59 AM.
Tags
None
Referenced Files
F147784485: D44586.id136428.diff
Fri, Mar 13, 3:28 PM
F147783583: D44586.id136428.diff
Fri, Mar 13, 3:20 PM
Unknown Object (File)
Sun, Mar 8, 7:30 PM
Unknown Object (File)
Thu, Mar 5, 3:16 PM
Unknown Object (File)
Thu, Mar 5, 2:04 AM
Unknown Object (File)
Mon, Feb 23, 5:33 PM
Unknown Object (File)
Mon, Feb 23, 5:33 PM
Unknown Object (File)
Feb 10 2026, 11:41 PM
Subscribers

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

bz requested review of this revision.Apr 2 2024, 9:59 AM

as an aside we should really add memset_explicit to libc and libkern

This revision is now accepted and ready to land.Apr 2 2024, 12:09 PM

You made me have a look; grep -r HAVE_EXPLICIT_BZERO seems to be a pattern which reveals a few more implementations in the tree; we should probably make sure if we migrate this into more general code to make sure we set the appropriate #defines for the various kernel code bits to switch to the one common implementation then; I'll leave it for someone who can better drive this at this point.

This revision was automatically updated to reflect the committed changes.