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)
Thu, Oct 16, 12:58 PM
Unknown Object (File)
Thu, Oct 9, 1:53 PM
Unknown Object (File)
Sat, Sep 27, 6:10 PM
Unknown Object (File)
Sat, Sep 27, 6:07 PM
Unknown Object (File)
Sat, Sep 27, 5:55 PM
Unknown Object (File)
Sat, Sep 27, 5:53 PM
Unknown Object (File)
Sat, Sep 27, 5:51 PM
Unknown Object (File)
Tue, Sep 23, 5:12 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

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