Page MenuHomeFreeBSD

random(4): Fix a regression in short AES mode reads
ClosedPublic

Authored by cem on Jun 18 2019, 6:35 PM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Dec 13, 8:42 PM
Unknown Object (File)
Thu, Dec 5, 5:43 PM
Unknown Object (File)
Thu, Dec 5, 1:01 PM
Unknown Object (File)
Thu, Dec 5, 12:54 AM
Unknown Object (File)
Oct 29 2024, 1:56 AM
Unknown Object (File)
Oct 27 2024, 1:47 PM
Unknown Object (File)
Oct 19 2024, 10:22 AM
Unknown Object (File)
Oct 15 2024, 2:39 AM
Subscribers

Details

Summary

In r349154, random device reads of size < 16 bytes (AES block size) were
accidentally broken to loop forever. Correct the loop condition for small
reads.

Reported by: pho

Test Plan
$ dd if=/dev/random bs=1 count=1 of=/dev/null
...
(should exit promptly)

Diff Detail

Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 24921
Build 23646: arc lint + arc unit