History log of /freebsd-head/lib/libnv/tests/nv_tests.cc
Revision Date Author Comments
f5961d3ce57e9c6941ce66435588f3c33464570a 29-May-2017 ngie <ngie@FreeBSD.org> :nvlist_unpack__duplicate_key : check the result of nvlist_pack(3)

This fixes a potential NULL pointer dereference.

MFC after: 3 days
Reported by: Coverity
CID: 1362051
Sponsored by: Dell EMC Isilon
00d578928eca75be320b36d37543a7e2a4f9fbdb 27-May-2016 grehan <grehan@FreeBSD.org> Create branch for bhyve graphics import.
fded02003e724b80208f48e3cbc0eddcc31f4767 31-Dec-2015 ngie <ngie@FreeBSD.org> MFC nv(3) and part of nv(9) to stable/10

This includes the following revisions from head:

r258065,r258594,r259430,r260222,r261407,r261408,r263479,r264021,r266351,
r269603,r271026,r271027,r271028,r271241,r271578,r271579,r271847,r272102,
r272843,r273752,r277920,r277921,r277925,r277926,r277927,r279421,r279422,
r279423,r279424,r279425,r279426,r279427,r279428,r279429,r279430,r279431,
r279432,r279434,r279435,r279436,r279438,r279439,r279440,r279760,r282122,
r282254,r282257,r282304,r282312,r285339,r288340

This change reverts stable/10@r282122 and stable/10@r288340, and re-MFCs the
series again (r282122, r285339, and r288340).

More changes are pending to nv(9)/pci(4) after further review/work. Please see
the Phabricator review for more details (both https://reviews.freebsd.org/D4232
and https://reviews.freebsd.org/D4249 ).

- Tested with:
-- Booting VMware Fusion 8.1.0 running on a Haswell Apple Macbook Pro
-- Booting a Haswell machine with zfs and running some stress workloads with
VirtualBox guests
-- make tinderbox
-- kyua test -k /usr/tests/lib/libnv

Differential Revision: https://reviews.freebsd.org/D4249 (part of a larger diff)
Relnotes: yes
Reviewed by: oshogbo (implicit), sbruno (implicit)
Submitted by: Kevin Bowling <kevin.bowling@kev009.com>
Sponsored by: EMC / Isilon Storage Division
55d95276339dc90b68f6b9108bbaeeca1fff715e 02-Jul-2015 oshogbo <oshogbo@FreeBSD.org> Let the nv.h and dnv.h includes be only in sys directory.

Change consumers to include those files from sys.
Add duplicated files to ObsoleteFiles.

Approved by: pjd (mentor)
d04625185d1c7db2c2b13a174fc578db514d6ef0 02-May-2015 oshogbo <oshogbo@FreeBSD.org> Add test case for unpack with diffrent flags.

Approved by: pjd (mentor)
cf66982b37ec7230cc55175c994e05c6176e8e22 02-May-2015 oshogbo <oshogbo@FreeBSD.org> Approved, oprócz użycie RESTORE_ERRNO() do ustawiania errno.

Change the nvlist_recv() function to take additional argument that
specifies flags expected on the received nvlist. Receiving a nvlist with
different set of flags than the ones we expect might lead to undefined
behaviour, which might be potentially dangerous.

Update consumers of this and related functions and update the tests.

Approved by: pjd (mentor)

Update man page for nvlist_unpack, nvlist_recv, nvlist_xfer, cap_recv_nvlist
and cap_xfer_nvlist.

Reviewed by: AllanJude
Approved by: pjd (mentor)
3b1c9e8c4d1e3a4e15c6d915a194fbb0745be968 29-Apr-2015 oshogbo <oshogbo@FreeBSD.org> Remove the use of nvlist_.*[fv] functions from tests.

Approved by: pjd (mentor)
96f62b87a8330b4d580a8b2c483ca25bf80a3217 08-Mar-2015 dim <dim@FreeBSD.org> Fix lib/libnv tests compilation with -std=c++11, by adding appropriate
casts for NULL to invocations of the ATF_REQUIER_EQ() macro.

Reviewed by: rstone, jmmv
Differential Revision: https://reviews.freebsd.org/D2027
c121268609b05f08ec7f8153493c83bde7dade51 01-Mar-2015 rstone <rstone@FreeBSD.org> Fix build of nv_tests.cc

nv_tests.cc managed to get two copies of several functions due to me
applying a patch in an unclean working tree. My kingdom for an
"svn clean" command.

MFC after: 1 month
X-MFC-With: r279424
87cea7c74794d913e54f5fe0793ced6c67b288ff 01-Mar-2015 rstone <rstone@FreeBSD.org> Prevent creation of an invalid nvlist

If an nvlist is set as a child of another nvlist with
nvlist_move_nvlist then fail the operation and set the parent
nvlist to the error state.

Differential Revision: https://reviews.freebsd.org/D1880
Reviewers: jfv
MFC after: 1 month
Sponsored by: Sandvine Inc
8c5d4c9ca27df87867fa8736af38f34923b1be9f 01-Mar-2015 rstone <rstone@FreeBSD.org> Add function to force an nvlist into the error state

Add an nvlist_set_error() function that can be used to force an
nvlist into the error state. This is useful both for writing
tests and for writing APIs that use nvlists internally.

Differential Revision: https://reviews.freebsd.org/D1878
Reviewed by: pjd, jfv
MFC After: 1 month
Sponsored by: Sandvine Inc.
3fdab28a2a38a370d7e6c8b09fd1c33b78410cc3 01-Mar-2015 rstone <rstone@FreeBSD.org> Add tests for nvlist_free* functions

Differential Revision: https://reviews.freebsd.org/D1874
Reviewed by: jfv, pjd
MFC after: 1 month
Sponsored by: Sandvine Inc.
242db076f53494f58e053d73d1d59f6c4936f6f8 01-Mar-2015 rstone <rstone@FreeBSD.org> Add tests for nvlist_take_*

Differential Revision: https://reviews.freebsd.org/D1873
Reviewed by: jfv, pjd
MFC after: 1 month
Sponsored by: Sandvine Inc.
7f5e639dadb23ae585a4942227590d680feb9ec6 01-Mar-2015 rstone <rstone@FreeBSD.org> Add test cases for nvlist_move_*

Differential Revision: https://reviews.freebsd.org/D1872
Reviewed by: jfv, pjd
MFC after: 1 month
Sponsored by: Sandvine Inc.
71abcff092a3edfe4e0082e16d563f1313284868 01-Mar-2015 rstone <rstone@FreeBSD.org> Add tests for nvlist_pack/unpack

Differential Revision: https://reviews.freebsd.org/D1871
Reviewed by: jfv, pjd
MFC after: 1 month
Sponsored by: Sandvine Inc.
955949873cab608b77c285a698d3aefe459db345 01-Mar-2015 rstone <rstone@FreeBSD.org> Add tests for nvlist_clone

Differential Revision: https://reviews.freebsd.org/D1870
Reviewed by: pjd, jfv
MFC after: 1 month
Sponsored by: Sandvine Inc
98bbc635e5259aae8ef4119efc0bc255fa762790 01-Mar-2015 rstone <rstone@FreeBSD.org> Tests of basic nvlist add functions

Differential Revision: https://reviews.freebsd.org/D1869
Reviewed by: jfv, pjd
MFC after: 1 month
Sponsored by: Sandvine Inc.