Page MenuHomeFreeBSD

Fix potential TOCTTOU bug in the geli tests
ClosedPublic

Authored by asomers on Dec 28 2017, 6:05 PM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Nov 6, 2:31 PM
Unknown Object (File)
Sat, Nov 1, 6:54 AM
Unknown Object (File)
Fri, Oct 31, 12:47 PM
Unknown Object (File)
Mon, Oct 27, 5:26 PM
Unknown Object (File)
Sun, Oct 26, 2:38 AM
Unknown Object (File)
Sat, Oct 25, 5:41 PM
Unknown Object (File)
Thu, Oct 23, 12:44 AM
Unknown Object (File)
Wed, Oct 22, 5:10 PM
Subscribers

Details

Summary

Fix potential TOCTTOU bug in the geli tests

This change mostly reverts r293436, which introduced the bug due to a belief
that geli(8) would allocate md(4) devices by itself. However, that belief is
incorrect. Instead of using linear probing to find available md(4) numbers,
it's best to use the existing attach_md function.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

This revision was not accepted when it landed; it landed in state Needs Review.Dec 29 2017, 4:06 PM
This revision was automatically updated to reflect the committed changes.