Page MenuHomeFreeBSD

bsdinstall: Stop loading cryptodev for ZFS installations
ClosedPublic

Authored by markj on Wed, May 8, 3:11 PM.
Tags
None
Referenced Files
F84106711: D45127.id.diff
Sun, May 19, 11:54 AM
Unknown Object (File)
Wed, May 15, 5:59 AM
Unknown Object (File)
Sat, May 11, 5:11 PM
Unknown Object (File)
Sat, May 11, 1:32 PM
Unknown Object (File)
Sat, May 11, 10:05 AM
Unknown Object (File)
Fri, May 10, 6:18 AM
Unknown Object (File)
Fri, May 10, 6:18 AM
Unknown Object (File)
Fri, May 10, 3:22 AM
Subscribers

Details

Summary
  • zfs doesn't actually depend on cryptodev, and most arm64 kernel configs include std.dev, which includes "device crypto" anyway.
  • This config works around a problem with kldxref, not with the loader, and this is believed to be fixed.
  • Loading cryptodev creates /dev/crypto, which gives unprivileged users access to the kernel's opencrypto framework. Very few applications need it, so we're needlessly increasing the kernel's surface area.

Thus, stop auto-loading cryptodev.

Diff Detail

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

Event Timeline

markj requested review of this revision.Wed, May 8, 3:11 PM
This revision is now accepted and ready to land.Wed, May 8, 3:16 PM

You might want to clarify the first bullet point in the commit message: the second part of the sentence seems like a non sequitur or a typo if the reader does not realize that zfs depends on crypto, which is different from cryptodev.