<feed xmlns='http://www.w3.org/2005/Atom'>
<title>src-test2/sys/dev/random/randomdev_soft.c, branch release/6.1.0_cvs</title>
<subtitle>FreeBSD source tree</subtitle>
<id>https://cgit-dev.freebsd.org/src-test2/atom?h=release%2F6.1.0_cvs</id>
<link rel='self' href='https://cgit-dev.freebsd.org/src-test2/atom?h=release%2F6.1.0_cvs'/>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/'/>
<updated>2006-02-08T05:58:17Z</updated>
<entry>
<title>MFC:</title>
<updated>2006-02-08T05:58:17Z</updated>
<author>
<name>Paul Saab</name>
<email>ps@FreeBSD.org</email>
</author>
<published>2006-02-08T05:58:17Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=1e2be7eaab67cd541228131d8dd7c38312bbf701'/>
<id>urn:sha1:1e2be7eaab67cd541228131d8dd7c38312bbf701</id>
<content type='text'>
Remove GIANT from device random.

Approved by:	re (scottl)
</content>
</entry>
<entry>
<title>Revert to the more correct array size, and correct a KASSERT to</title>
<updated>2005-03-29T11:08:45Z</updated>
<author>
<name>Mark Murray</name>
<email>markm@FreeBSD.org</email>
</author>
<published>2005-03-29T11:08:45Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=3a0323d92f29bd5a20dc60de017964326d9111d6'/>
<id>urn:sha1:3a0323d92f29bd5a20dc60de017964326d9111d6</id>
<content type='text'>
only allow proper values. ENTROPYSOURCE is a maxval+1, not an
allowable number.

Suggested loose protons in the solution:	phk
Prefers to keep the pH close to seven:		markm
</content>
</entry>
<entry>
<title>Fix off-by-one (too little!) array size problem.</title>
<updated>2005-03-18T07:13:35Z</updated>
<author>
<name>Poul-Henning Kamp</name>
<email>phk@FreeBSD.org</email>
</author>
<published>2005-03-18T07:13:35Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=f7e6cbd933cafe20568561761a54ea72fd68f0b5'/>
<id>urn:sha1:f7e6cbd933cafe20568561761a54ea72fd68f0b5</id>
<content type='text'>
Detected by:	Coverity (ID#661)
</content>
</entry>
<entry>
<title>Check O_NONBLOCK not IO_NDELAY.</title>
<updated>2004-12-22T17:29:37Z</updated>
<author>
<name>Poul-Henning Kamp</name>
<email>phk@FreeBSD.org</email>
</author>
<published>2004-12-22T17:29:37Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=4c4a94cefeed0bc69827ae4d43f07ff375f7537b'/>
<id>urn:sha1:4c4a94cefeed0bc69827ae4d43f07ff375f7537b</id>
<content type='text'>
Don't include vnode.h
</content>
</entry>
<entry>
<title>Don't change the priority to PUSER when sleeping, just keep the current</title>
<updated>2004-11-05T20:15:06Z</updated>
<author>
<name>John Baldwin</name>
<email>jhb@FreeBSD.org</email>
</author>
<published>2004-11-05T20:15:06Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=6ac27fe1e672525584a599491321f250481bceef'/>
<id>urn:sha1:6ac27fe1e672525584a599491321f250481bceef</id>
<content type='text'>
priority.
</content>
</entry>
<entry>
<title>(1) Move from O(n) list copies to O(1) list concatenation, which is</title>
<updated>2004-11-03T10:02:50Z</updated>
<author>
<name>Robert Watson</name>
<email>rwatson@FreeBSD.org</email>
</author>
<published>2004-11-03T10:02:50Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=b899bc84c5dcdd5282a40283fc7c2fce5f81d5c2'/>
<id>urn:sha1:b899bc84c5dcdd5282a40283fc7c2fce5f81d5c2</id>
<content type='text'>
    supported for STAILQ via STAILQ_CONCAT().

(2) Maintain a count of the number of entries in the thread-local entropy
    fifo so that we can keep the other fifo counts in synch.

MFC after:	3 weeks
MFC with:	randomdev_soft.c revisions 1.5 and 1.6
Suggested by:   jhb (1)
</content>
</entry>
<entry>
<title>Assert that the entropy source category provided by a caller submitting</title>
<updated>2004-10-12T14:57:14Z</updated>
<author>
<name>Robert Watson</name>
<email>rwatson@FreeBSD.org</email>
</author>
<published>2004-10-12T14:57:14Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=f5c3a745029ef47abbb8a584b05cebb3973696b1'/>
<id>urn:sha1:f5c3a745029ef47abbb8a584b05cebb3973696b1</id>
<content type='text'>
entropy is valid, as an invalid source will cause dereferencing of an
array of queues to an incorrect memory location.
</content>
</entry>
<entry>
<title>Modify entropy harvesting locking strategy:</title>
<updated>2004-10-09T22:04:13Z</updated>
<author>
<name>Robert Watson</name>
<email>rwatson@FreeBSD.org</email>
</author>
<published>2004-10-09T22:04:13Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=a28ce935d9503eb47cb82ad643fdb99ef7df8312'/>
<id>urn:sha1:a28ce935d9503eb47cb82ad643fdb99ef7df8312</id>
<content type='text'>
- Trade off granularity to reduce overhead, since the current model
  doesn't appear to reduce contention substantially: move to a single
  harvest mutex protecting harvesting queues, rather than one mutex
  per source plus a mutex for the free list.

- Reduce mutex operations in a harvesting event to 2 from 4, and
  maintain lockless read to avoid mutex operations if the queue is
  full.

- When reaping harvested entries from the queue, move all entries from
  the queue at once, and when done with them, insert them all into a
  thread-local queue for processing; then insert them all into the
  empty fifo at once.  This reduces O(4n) mutex operations to O(2)
  mutex operations per wakeup.

In the future, we may want to look at re-introducing granularity,
although perhaps at the granularity of the source rather than the
source class; both the new and old strategies would cause contention
between different instances of the same source (i.e., multiple
network interfaces).

Reviewed by:	markm
</content>
</entry>
<entry>
<title>Perform a lockless read to test whether an entropy havesting fifo is</title>
<updated>2004-08-11T03:33:32Z</updated>
<author>
<name>Robert Watson</name>
<email>rwatson@FreeBSD.org</email>
</author>
<published>2004-08-11T03:33:32Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=38c9c1708b198018ba6ddfae9ab7e1ebaeed050c'/>
<id>urn:sha1:38c9c1708b198018ba6ddfae9ab7e1ebaeed050c</id>
<content type='text'>
full, avoiding the cost of mutex operations if it is.  We re-test
once the mutex is acquired to make sure it's still true before doing
the -modify-write part of the read-modify-write.  Note that due to
the maximum fifo depth being pretty deep, this is unlikely to improve
harvesting performance yet.

Approved by:	markm
</content>
</entry>
<entry>
<title>Start the entropy device insecure/unblocked. I'll be handing over</title>
<updated>2004-07-18T09:07:58Z</updated>
<author>
<name>Mark Murray</name>
<email>markm@FreeBSD.org</email>
</author>
<published>2004-07-18T09:07:58Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=587d5fc63b5ff4d566419b897a56b2fff92dfd34'/>
<id>urn:sha1:587d5fc63b5ff4d566419b897a56b2fff92dfd34</id>
<content type='text'>
responsibility for critical randomness requirements (like sshd)
to rc.d/*

Requested by: many
</content>
</entry>
</feed>
