opnsense-src/tests/sys
Vincenzo Maffione e2a431a0ff netmap: fix copyin/copyout of nmreq options list
The previous code unsuccesfully attempted to report a precise error for
each option in the user list. Moreover, commit 253b2ec199 broke some
ctrl-api-test (see https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=260547).

With this patch we bail out as soon as an unrecoverable error is detected and
we properly check for copy boundaries. EOPNOTSUPP no longer immediately
returns an error, so that any other option in the list may be examined
by the caller code and a precise report of the (un)supported options can
be returned to the user.

With this patch, all ctrl-api-test unit tests pass again.

PR:			260547
Submitted by:		giuseppe.lettieri@unipi.it
Reviewed by:		vmaffione
MFC after:		14 days
2023-03-21 23:23:18 +00:00
..
acl tests/sys/acl: Add ATF C test for newly added acl_* functions. 2021-08-27 11:52:21 +03:00
aio Reap dead code in lio_kqueue_test and aio_kqueue_test 2022-07-24 09:31:40 -06:00
audit Extend the length of dirpath to fix failure in kyua test 2022-04-12 09:23:56 -07:00
auditpipe Do a sweep and remove most WARNS=6 settings 2020-10-01 01:10:51 +00:00
capsicum Fix MK_TESTS build with MK_ASAN/MK_UBSAN 2021-08-02 14:33:24 +01:00
cddl zfs tests: stop writing to arbitrary devices 2022-11-11 14:43:47 -06:00
common pf tests: properly destroy renamed interfaces 2023-01-16 07:23:07 +01:00
devrandom Do a sweep and remove most WARNS=6 settings 2020-10-01 01:10:51 +00:00
fifo Avoid hard-coding pipe buffer sizes in the pipe and fifo kqueue tests. 2020-05-20 17:48:18 +00:00
file path_test: Verify that operations on unlinked files work 2022-04-18 17:55:24 -04:00
fs tarfs: Fix backtracking during node creation. 2023-03-16 11:31:22 +00:00
geom Skip sys.geom.class.multipath.failloop.failloop if dtrace fails to run 2022-03-08 18:12:40 +08:00
kern ktls: Fix interlocking between ktls_enable_rx() and listen(2) 2023-03-21 16:04:00 -04:00
kqueue kqueue tests: Simplify the test runner 2022-05-24 20:17:41 -04:00
mac Resolve conflict between the fusefs(5) and mac_bsdextended(4) tests 2020-05-02 20:14:59 +00:00
mqueue Do a sweep and remove most WARNS=6 settings 2020-10-01 01:10:51 +00:00
net tun tests: Fix cleanup definitions 2023-03-16 13:27:24 -04:00
netgraph netgraph tests: Serialize 2023-03-18 16:57:11 -04:00
netinet carp tests: unicast tests (IPv6) 2023-03-20 14:37:09 +01:00
netinet6 testing: improve python vnet wrapper. 2022-12-29 19:59:11 +00:00
netipsec netipsec tests: Serialize 2023-03-20 12:21:17 -04:00
netlink netlink: fix capped uncapped ack handling in snl(3). 2023-03-18 11:35:56 +00:00
netmap netmap: fix copyin/copyout of nmreq options list 2023-03-21 23:23:18 +00:00
netpfil pf tests: try to trigger locking issues in pfsync_timeout() 2023-03-20 16:39:14 +01:00
opencrypto test/sys/opencrypto: Fix NIST KAT parser iterator 2022-10-06 16:42:31 +02:00
pjdfstest Do a sweep and remove most WARNS=6 settings 2020-10-01 01:10:51 +00:00
posixshm posixshm tests: Correct page size index checks 2023-03-03 11:16:51 -05:00
ses tests/sys/ses: Use ANSI C definition for has_ses. 2022-02-01 13:25:47 -08:00
sys rb_tree: test rank balance 2022-09-07 21:40:05 -05:00
vfs tests/sys/vfs/lookup_cap_dotdot: No longer aborts after ATF update 2021-02-04 17:57:27 +00:00
vm shared_shadow_inval_test: fix copy-pasto in error message 2022-08-24 13:03:11 -05:00
vmm vmm: Add credential to cdev object 2021-08-18 13:41:33 -04:00
Makefile netlink: connect netlink tests to the build 2022-12-16 12:02:50 +00:00
Makefile.depend DIRDEPS_BUILD: Connect MK_TESTS. 2016-03-09 22:46:01 +00:00
Makefile.inc Do a sweep and remove most WARNS=6 settings 2020-10-01 01:10:51 +00:00