<feed xmlns='http://www.w3.org/2005/Atom'>
<title>src/sys/dev/beri, branch release/12.3.0</title>
<subtitle>FreeBSD source tree</subtitle>
<id>https://cgit-dev.freebsd.org/src/atom?h=release%2F12.3.0</id>
<link rel='self' href='https://cgit-dev.freebsd.org/src/atom?h=release%2F12.3.0'/>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/'/>
<updated>2019-03-23T23:43:33Z</updated>
<entry>
<title>MFC r343998:</title>
<updated>2019-03-23T23:43:33Z</updated>
<author>
<name>Oleksandr Tymoshenko</name>
<email>gonzo@FreeBSD.org</email>
</author>
<published>2019-03-23T23:43:33Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=6e7984cf48a12a46592d378ef3e1d22e1cc13327'/>
<id>urn:sha1:6e7984cf48a12a46592d378ef3e1d22e1cc13327</id>
<content type='text'>
Fix off-by-one error in BERI virtio driver

The hardcoded ident is exactly 20 bytes long but sprintf adds terminating zero,
so there is one byte written out of array bounds.As a fix use strncpy it
appends \0 only if space allows and its behavior matches virtio spec:

When VIRTIO_BLK_T_GET_ID is issued, the device identifier, up to 20 bytes, is
written to the buffer. The identifier should be interpreted as an ascii string.
It is terminated with \0, unless it is exactly 20 bytes long.

PR:		202298
Reviewed by:	br
Differential Revision:	https://reviews.freebsd.org/D18852
</content>
</entry>
<entry>
<title>Revert r327828, r327949, r327953, r328016-r328026, r328041:</title>
<updated>2018-01-21T15:42:36Z</updated>
<author>
<name>Pedro F. Giffuni</name>
<email>pfg@FreeBSD.org</email>
</author>
<published>2018-01-21T15:42:36Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=ac2fffa4b74cd83963f0d462c379c7f50eeabf20'/>
<id>urn:sha1:ac2fffa4b74cd83963f0d462c379c7f50eeabf20</id>
<content type='text'>
Uses of mallocarray(9).

The use of mallocarray(9) has rocketed the required swap to build FreeBSD.
This is likely caused by the allocation size attributes which put extra pressure
on the compiler.

Given that most of these checks are superfluous we have to choose better
where to use mallocarray(9). We still have more uses of mallocarray(9) but
hopefully this is enough to bring swap usage to a reasonable level.

Reported by:	wosch
PR:		225197
</content>
</entry>
<entry>
<title>dev: make some use of mallocarray(9).</title>
<updated>2018-01-13T22:30:30Z</updated>
<author>
<name>Pedro F. Giffuni</name>
<email>pfg@FreeBSD.org</email>
</author>
<published>2018-01-13T22:30:30Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=26c1d774b55c4db79bca772941883244986e6f44'/>
<id>urn:sha1:26c1d774b55c4db79bca772941883244986e6f44</id>
<content type='text'>
Focus on code where we are doing multiplications within malloc(9). None of
these is likely to overflow, however the change is still useful as some
static checkers can benefit from the allocation attributes we use for
mallocarray.

This initial sweep only covers malloc(9) calls with M_NOWAIT. No good
reason but I started doing the changes before r327796 and at that time it
was convenient to make sure the sorrounding code could handle NULL values.
</content>
</entry>
<entry>
<title>sys/dev: Replace zero with NULL for pointers.</title>
<updated>2017-02-20T03:43:12Z</updated>
<author>
<name>Pedro F. Giffuni</name>
<email>pfg@FreeBSD.org</email>
</author>
<published>2017-02-20T03:43:12Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=4d24901ac9131267fd188c5e1ee19a219847238a'/>
<id>urn:sha1:4d24901ac9131267fd188c5e1ee19a219847238a</id>
<content type='text'>
Makes things easier to read, plus architectures may set NULL to something
different than zero.

Found with:	devel/coccinelle
MFC after:	3 weeks
</content>
</entry>
<entry>
<title>Allow BERI virtio-platform code to operate with no PIO devices specified.</title>
<updated>2015-07-03T14:27:28Z</updated>
<author>
<name>Ruslan Bukin</name>
<email>br@FreeBSD.org</email>
</author>
<published>2015-07-03T14:27:28Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=4934834d6bc1ed05e246daa216cd169ddc60ff0e'/>
<id>urn:sha1:4934834d6bc1ed05e246daa216cd169ddc60ff0e</id>
<content type='text'>
We will use it with Bluespec simulator of CHERI processor for invalidating
caches only.
</content>
</entry>
<entry>
<title>o Switch to use non-mergeable RX buffers to avoid mbuf adjustment needs</title>
<updated>2015-01-05T16:43:22Z</updated>
<author>
<name>Ruslan Bukin</name>
<email>br@FreeBSD.org</email>
</author>
<published>2015-01-05T16:43:22Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=1aac28e753967c1154100cd3d344deaf89d038f7'/>
<id>urn:sha1:1aac28e753967c1154100cd3d344deaf89d038f7</id>
<content type='text'>
o Operate with copy of iov as we expect later it was not modified
</content>
</entry>
<entry>
<title>Do not configure Altera PIO device on ARM startup.</title>
<updated>2015-01-04T23:14:04Z</updated>
<author>
<name>Ruslan Bukin</name>
<email>br@FreeBSD.org</email>
</author>
<published>2015-01-04T23:14:04Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=2499610b9add5038e21e1f69d42e60f739f8823c'/>
<id>urn:sha1:2499610b9add5038e21e1f69d42e60f739f8823c</id>
<content type='text'>
PIO is a device implemented in soft-core and becomes
available after flashing FPGA only.
</content>
</entry>
<entry>
<title>Remove dev/virtio/virtio.h include from BERI VirtIO</title>
<updated>2014-12-29T00:35:44Z</updated>
<author>
<name>Bryan Venteicher</name>
<email>bryanv@FreeBSD.org</email>
</author>
<published>2014-12-29T00:35:44Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=f83577167c89aff02b68c7c9022006cb45a30df1'/>
<id>urn:sha1:f83577167c89aff02b68c7c9022006cb45a30df1</id>
<content type='text'>
This header file contains prototypes and defines that only make
sense to the guest VirtIO device drivers.

Reviewed by:	br
</content>
</entry>
<entry>
<title>Eliminate a "cast discards qualifiers" warning when building with gcc.</title>
<updated>2014-12-21T21:24:19Z</updated>
<author>
<name>Ian Lepore</name>
<email>ian@FreeBSD.org</email>
</author>
<published>2014-12-21T21:24:19Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=734ba86366e6617f3fd62b5a5f1c9edde7093b1d'/>
<id>urn:sha1:734ba86366e6617f3fd62b5a5f1c9edde7093b1d</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Add virtio bus 'poll' method allowing us to inform backend we are</title>
<updated>2014-12-12T11:19:10Z</updated>
<author>
<name>Ruslan Bukin</name>
<email>br@FreeBSD.org</email>
</author>
<published>2014-12-12T11:19:10Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=156b97fa1f4366966b8cb50be6e720a58e50e959'/>
<id>urn:sha1:156b97fa1f4366966b8cb50be6e720a58e50e959</id>
<content type='text'>
going to poll virtqueue.

Use on BERI soft-core to invalidate cpu caches.

Reviewed by:	bryanv
Sponsored by:	DARPA, AFRL
</content>
</entry>
</feed>
