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
F106794536: D13666.id37181.diff
Sun, Jan 5, 12:29 PM
Unknown Object (File)
Fri, Jan 3, 1:31 PM
Unknown Object (File)
Nov 28 2024, 2:57 AM
Unknown Object (File)
Nov 24 2024, 2:49 PM
Unknown Object (File)
Nov 20 2024, 11:45 AM
Unknown Object (File)
Nov 11 2024, 10:31 AM
Unknown Object (File)
Nov 8 2024, 6:18 PM
Unknown Object (File)
Oct 29 2024, 11:46 AM
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 Passed
Unit
No Test Coverage
Build Status
Buildable 13900
Build 14104: arc lint + arc unit

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.