HomeFreeBSD

Use explicit_bzero() when cleaning values out of the kernel environment.

Description

Use explicit_bzero() when cleaning values out of the kernel environment.

Sometimes the values contain geli passphrases being communicated from
loader(8) to the kernel, and some day the compiler may decide to start
eliding calls to memset() for a pointer which is not dereferenced again
before being passed to free().

Details

Provenance
ianAuthored on
Parents
rS332394: rw: whack avoidable re-reads in try_upgrade
Branches
Unknown
Tags
Unknown