<feed xmlns='http://www.w3.org/2005/Atom'>
<title>src/sys/opencrypto/cryptodev.c, branch upstream/10.1.0</title>
<subtitle>FreeBSD source tree</subtitle>
<id>https://cgit-dev.freebsd.org/src/atom?h=upstream%2F10.1.0</id>
<link rel='self' href='https://cgit-dev.freebsd.org/src/atom?h=upstream%2F10.1.0'/>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/'/>
<updated>2013-08-15T07:54:31Z</updated>
<entry>
<title>Make sendfile() a method in the struct fileops.  Currently only</title>
<updated>2013-08-15T07:54:31Z</updated>
<author>
<name>Gleb Smirnoff</name>
<email>glebius@FreeBSD.org</email>
</author>
<published>2013-08-15T07:54:31Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=ca04d21d5fdff6e58af745766024088091fe3d90'/>
<id>urn:sha1:ca04d21d5fdff6e58af745766024088091fe3d90</id>
<content type='text'>
vnode backed file descriptors have this method implemented.

Reviewed by:	kib
Sponsored by:	Nginx, Inc.
Sponsored by:	Netflix
</content>
</entry>
<entry>
<title>Revert previous commit...</title>
<updated>2012-10-10T08:36:38Z</updated>
<author>
<name>Kevin Lo</name>
<email>kevlo@FreeBSD.org</email>
</author>
<published>2012-10-10T08:36:38Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=9823d52705ad71f19ef2205aa729547ac396e3eb'/>
<id>urn:sha1:9823d52705ad71f19ef2205aa729547ac396e3eb</id>
<content type='text'>
Pointyhat to:	kevlo (myself)
</content>
</entry>
<entry>
<title>Prefer NULL over 0 for pointers</title>
<updated>2012-10-09T08:27:40Z</updated>
<author>
<name>Kevin Lo</name>
<email>kevlo@FreeBSD.org</email>
</author>
<published>2012-10-09T08:27:40Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=a10cee30c94cf5944826d2a495e9cdf339dfbcc8'/>
<id>urn:sha1:a10cee30c94cf5944826d2a495e9cdf339dfbcc8</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Add the fo_chown and fo_chmod methods to struct fileops and use them</title>
<updated>2011-08-16T20:07:47Z</updated>
<author>
<name>Konstantin Belousov</name>
<email>kib@FreeBSD.org</email>
</author>
<published>2011-08-16T20:07:47Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=9c00bb9190391479885cfb14ed23fb7003d10109'/>
<id>urn:sha1:9c00bb9190391479885cfb14ed23fb7003d10109</id>
<content type='text'>
to implement fchown(2) and fchmod(2) support for several file types
that previously lacked it. Add MAC entries for chown/chmod done on
posix shared memory and (old) in-kernel posix semaphores.

Based on the submission by:	glebius
Reviewed by:	rwatson
Approved by:	re (bz)
</content>
</entry>
<entry>
<title>After the r219999 is merged to stable/8, rename fallocf(9) to falloc(9)</title>
<updated>2011-04-01T13:28:34Z</updated>
<author>
<name>Konstantin Belousov</name>
<email>kib@FreeBSD.org</email>
</author>
<published>2011-04-01T13:28:34Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=1fe80828e72af1c4f17f946eb8fe0d4070ae22c7'/>
<id>urn:sha1:1fe80828e72af1c4f17f946eb8fe0d4070ae22c7</id>
<content type='text'>
and remove the falloc() version that lacks flag argument. This is done
to reduce the KPI bloat.

Requested by:	jhb
X-MFC-note:	do not
</content>
</entry>
<entry>
<title>Add support for AES-XTS.</title>
<updated>2010-09-23T11:52:32Z</updated>
<author>
<name>Pawel Jakub Dawidek</name>
<email>pjd@FreeBSD.org</email>
</author>
<published>2010-09-23T11:52:32Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=d295bdee07c0ab099c53dc009bb7993b98ff54cd'/>
<id>urn:sha1:d295bdee07c0ab099c53dc009bb7993b98ff54cd</id>
<content type='text'>
Obtained from:	OpenBSD
MFC after:	1 week
</content>
</entry>
<entry>
<title>Fix typo in comment.</title>
<updated>2010-08-11T16:53:45Z</updated>
<author>
<name>John Baldwin</name>
<email>jhb@FreeBSD.org</email>
</author>
<published>2010-08-11T16:53:45Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=a920a976afbc916d539244b0906d98d2b16bac35'/>
<id>urn:sha1:a920a976afbc916d539244b0906d98d2b16bac35</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Add compat32 shims for opencrypto(4).</title>
<updated>2010-07-29T20:42:20Z</updated>
<author>
<name>Konstantin Belousov</name>
<email>kib@FreeBSD.org</email>
</author>
<published>2010-07-29T20:42:20Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=4782e51e145180f446f9ee80c071d9dc27a8d508'/>
<id>urn:sha1:4782e51e145180f446f9ee80c071d9dc27a8d508</id>
<content type='text'>
Reviewed by:	bz
MFC after:	3 weeks
</content>
</entry>
<entry>
<title>If crypto operation is finished with EAGAIN, don't repeat operation from</title>
<updated>2009-09-04T09:48:18Z</updated>
<author>
<name>Pawel Jakub Dawidek</name>
<email>pjd@FreeBSD.org</email>
</author>
<published>2009-09-04T09:48:18Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=f49861e1992c181766516d3f4a811f19fafa674a'/>
<id>urn:sha1:f49861e1992c181766516d3f4a811f19fafa674a</id>
<content type='text'>
the return context, but from the original context.
Before repeating operation clear DONE flag and error.

Reviewed by:	sam
Obtained from:	Wheel Sp. z o.o. (http://www.wheel.pl)
</content>
</entry>
<entry>
<title>Fix cryptodev UIO creation.</title>
<updated>2009-05-23T13:23:46Z</updated>
<author>
<name>Rafal Jaworowski</name>
<email>raj@FreeBSD.org</email>
</author>
<published>2009-05-23T13:23:46Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=ae184a6a7da0cbe989be569657448e1220839e86'/>
<id>urn:sha1:ae184a6a7da0cbe989be569657448e1220839e86</id>
<content type='text'>
Cryptodev uses UIO structure do get data from userspace and pass it to
cryptographic engines. Initially UIO size is equal to size of data passed to
engine, but if UIO is prepared for hash calculation an additional small space
is created to hold result of operation.

While creating space for the result, UIO I/O vector size is correctly
extended, but uio_resid field in UIO structure is not modified.

As bus_dma code uses uio_resid field to determine size of UIO DMA mapping,
resulting mapping hasn't correct size. This leads to a crash if all the
following conditions are met:

     1. Hardware cryptographic accelerator writes result of hash operation
        using DMA.
     2. Size of input data is less or equal than (n * PAGE_SIZE),
     3. Size of input data plus size of hash result is grather than
        (n * PAGE_SIZE, where n is the same as in point 2.

This patch fixes this problem by adding size of the extenstion to uio_resid
field in UIO structure.

Submitted by:	Piotr Ziecik kosmo ! semihalf dot com
Reviewed by:	philip
Obtained from:	Semihalf
</content>
</entry>
</feed>
