<feed xmlns='http://www.w3.org/2005/Atom'>
<title>src/sys/opencrypto/cryptodev.c, branch release/6.0.0_cvs</title>
<subtitle>FreeBSD source tree</subtitle>
<id>https://cgit-dev.freebsd.org/src/atom?h=release%2F6.0.0_cvs</id>
<link rel='self' href='https://cgit-dev.freebsd.org/src/atom?h=release%2F6.0.0_cvs'/>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/'/>
<updated>2005-11-03T00:35:26Z</updated>
<entry>
<title>This commit was manufactured by cvs2svn to create tag</title>
<updated>2005-11-03T00:35:26Z</updated>
<author>
<name>cvs2svn</name>
<email>cvs2svn@FreeBSD.org</email>
</author>
<published>2005-11-03T00:35:26Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=3640cb54210edbb7edbf1b12ef0127ecfcea967d'/>
<id>urn:sha1:3640cb54210edbb7edbf1b12ef0127ecfcea967d</id>
<content type='text'>
'RELENG_6_0_0_RELEASE'.

This commit was manufactured to restore the state of the 6.0-RELEASE image.
</content>
</entry>
<entry>
<title>MFC:	sys/opencrypto/cryptodev.c	1.26</title>
<updated>2005-08-19T12:04:19Z</updated>
<author>
<name>Pawel Jakub Dawidek</name>
<email>pjd@FreeBSD.org</email>
</author>
<published>2005-08-19T12:04:19Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=378f5074ac334f801b1ff8b3ff84969d7b33cf77'/>
<id>urn:sha1:378f5074ac334f801b1ff8b3ff84969d7b33cf77</id>
<content type='text'>
Fix bogus check. It was possible to panic the kernel by giving 0 length.
This is actually a local DoS, as every user can use /dev/crypto if there
is crypto hardware in the system and cryptodev.ko is loaded (or compiled
into the kernel).

Reported by:    Mike Tancsa &lt;mike@sentex.net&gt;
Security:	Local DoS on systems with crypto HW and with /dev/crypto available
Approved by:	re (kensmith)
</content>
</entry>
<entry>
<title>Use dynamic major number allocation.</title>
<updated>2005-02-27T22:11:02Z</updated>
<author>
<name>Poul-Henning Kamp</name>
<email>phk@FreeBSD.org</email>
</author>
<published>2005-02-27T22:11:02Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=78b7c8d68dac914c611a79fa69f09344d4897bdb'/>
<id>urn:sha1:78b7c8d68dac914c611a79fa69f09344d4897bdb</id>
<content type='text'>
</content>
</entry>
<entry>
<title>/* -&gt; /*- for license, minor formatting changes</title>
<updated>2005-01-07T02:29:27Z</updated>
<author>
<name>Warner Losh</name>
<email>imp@FreeBSD.org</email>
</author>
<published>2005-01-07T02:29:27Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=60727d8b86294910d41cbda1a50a855ea0537449'/>
<id>urn:sha1:60727d8b86294910d41cbda1a50a855ea0537449</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Push Giant down through ioctl.</title>
<updated>2004-11-17T09:09:55Z</updated>
<author>
<name>Poul-Henning Kamp</name>
<email>phk@FreeBSD.org</email>
</author>
<published>2004-11-17T09:09:55Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=a0fbccc9e7e76341ed2e8313175195d0a17a3d86'/>
<id>urn:sha1:a0fbccc9e7e76341ed2e8313175195d0a17a3d86</id>
<content type='text'>
Don't grab Giant in the upper syscall/wrapper code

NET_LOCK_GIANT in the socket code (sockets/fifos).

mtx_lock(&amp;Giant) in the vnode code.

mtx_lock(&amp;Giant) in the opencrypto code.  (This may actually not be
needed, but better safe than sorry).

Devfs grabs Giant if the driver is marked as needing Giant.
</content>
</entry>
<entry>
<title>Don't acquire Giant in cryptof_close(), as the code is intended to be</title>
<updated>2004-08-10T03:26:17Z</updated>
<author>
<name>Robert Watson</name>
<email>rwatson@FreeBSD.org</email>
</author>
<published>2004-08-10T03:26:17Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=d7aed12f45ea6c7ea042fa623a06519dda21895b'/>
<id>urn:sha1:d7aed12f45ea6c7ea042fa623a06519dda21895b</id>
<content type='text'>
able to run MPsafe (and appears to be MPsafe).

Discussed with (some time ago):	sam
</content>
</entry>
<entry>
<title>Push acquisition of Giant from fdrop_closed() into fo_close() so that</title>
<updated>2004-07-22T18:35:43Z</updated>
<author>
<name>Robert Watson</name>
<email>rwatson@FreeBSD.org</email>
</author>
<published>2004-07-22T18:35:43Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=1c1ce9253fb52a3befc1c6179e57c8ce2dfd5187'/>
<id>urn:sha1:1c1ce9253fb52a3befc1c6179e57c8ce2dfd5187</id>
<content type='text'>
individual file object implementations can optionally acquire Giant if
they require it:

- soo_close(): depends on debug.mpsafenet
- pipe_close(): Giant not acquired
- kqueue_close(): Giant required
- vn_close(): Giant required
- cryptof_close(): Giant required (conservative)

Notes:

  Giant is still acquired in close() even when closing MPSAFE objects
  due to kqueue requiring Giant in the calling closef() code.
  Microbenchmarks indicate that this removal of Giant cuts 3%-3% off
  of pipe create/destroy pairs from user space with SMP compiled into
  the kernel.

  The cryptodev and opencrypto code appears MPSAFE, but I'm unable to
  test it extensively and so have left Giant over fo_close().  It can
  probably be removed given some testing and review.
</content>
</entry>
<entry>
<title>Do the dreaded s/dev_t/struct cdev */</title>
<updated>2004-06-16T09:47:26Z</updated>
<author>
<name>Poul-Henning Kamp</name>
<email>phk@FreeBSD.org</email>
</author>
<published>2004-06-16T09:47:26Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=89c9c53da05197f657dfe8e0bdda6941a2e9a0d4'/>
<id>urn:sha1:89c9c53da05197f657dfe8e0bdda6941a2e9a0d4</id>
<content type='text'>
Bump __FreeBSD_version accordingly.
</content>
</entry>
<entry>
<title>add missing #include &lt;sys/module.h&gt;</title>
<updated>2004-05-30T20:27:19Z</updated>
<author>
<name>Poul-Henning Kamp</name>
<email>phk@FreeBSD.org</email>
</author>
<published>2004-05-30T20:27:19Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=5dba30f15ae1cec2dcdc19be3f3efa0331755f42'/>
<id>urn:sha1:5dba30f15ae1cec2dcdc19be3f3efa0331755f42</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Device megapatch 4/6:</title>
<updated>2004-02-21T21:10:55Z</updated>
<author>
<name>Poul-Henning Kamp</name>
<email>phk@FreeBSD.org</email>
</author>
<published>2004-02-21T21:10:55Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=dc08ffec870569914f44bcf26aa838310e343764'/>
<id>urn:sha1:dc08ffec870569914f44bcf26aa838310e343764</id>
<content type='text'>
Introduce d_version field in struct cdevsw, this must always be
initialized to D_VERSION.

Flip sense of D_NOGIANT flag to D_NEEDGIANT, this involves removing
four D_NOGIANT flags and adding 145 D_NEEDGIANT flags.
</content>
</entry>
</feed>
