freebsd-dev/tests/sys
Alan Somers 5e63333052 fusefs: Fix some bugs regarding the size of the LISTXATTR list
* A small error in r338152 let to the returned size always being exactly
  eight bytes too large.

* The FUSE_LISTXATTR operation works like Linux's listxattr(2): if the
  caller does not provide enough space, then the server should return ERANGE
  rather than return a truncated list.  That's true even though in FUSE's
  case the kernel doesn't provide space to the client at all; it simply
  requests a maximum size for the list.  We previously weren't handling the
  case where the server returns ERANGE even though the kernel requested as
  much size as the server had told us it needs; that can happen due to a
  race.

* We also need to ensure that a pathological server that always returns
  ERANGE no matter what size we request in FUSE_LISTXATTR won't cause an
  infinite loop in the kernel.  As of this commit, it will instead cause an
  infinite loop that exits and enters the kernel on each iteration, allowing
  signals to be processed.

Reviewed by:	cem
MFC after:	2 weeks
Sponsored by:	The FreeBSD Foundation
Differential Revision:	https://reviews.freebsd.org/D21287
2019-08-28 04:19:37 +00:00
..
acl Add a very basic regression test for setfacl -R with NFSv4 ACLs. 2018-10-26 21:20:04 +00:00
aio
audit Fix and simplify code by using ATF_REQUIRE_FEATURE macro 2019-04-01 14:21:32 +00:00
auditpipe
capsicum Integrate capsicum-test into the FreeBSD test suite 2019-04-01 21:24:50 +00:00
cddl Remove duplicate ${PACKAGE}FILES+= cleanup.ksh line 2019-03-16 03:37:47 +00:00
common tests: Move common (vnet) test functions into a common file 2019-03-04 18:15:06 +00:00
devrandom random(4): Fortuna: allow increased concurrency 2019-06-17 20:29:13 +00:00
fifo
file
fs fusefs: Fix some bugs regarding the size of the LISTXATTR list 2019-08-28 04:19:37 +00:00
geom Remove tests for the deprecated algorithms in r348206 2019-05-31 04:29:29 +00:00
kern mips: hide regnum definitions behind _KERNEL/_WANT_MIPS_REGNUM 2019-08-22 21:43:21 +00:00
kqueue Temporarily skip flakey test cases 2018-12-06 09:22:35 +00:00
mac
mqueue
net Add test cases for epair 2019-06-13 05:05:58 +00:00
netinet Skip sys.netinet.socket_afinet.socket_afinet_bind_zero temporarily because it 2019-06-23 19:37:12 +00:00
netipsec ipsec tests: Skip if ipsec.ko is not loaded 2019-05-16 02:18:57 +00:00
netmap netmap: add test cases for multiple host rings 2019-04-13 12:50:47 +00:00
netpfil Fix failure test cases after r351423 due to ping6(8) options changed 2019-08-24 01:28:39 +00:00
opencrypto tests/sys/opencrypto: enable armv8crypto on aarch64 2019-08-10 15:53:42 +00:00
pjdfstest
posixshm tests: shm_open(2): Verify FD_CLOEXEC 2019-08-25 02:38:45 +00:00
sys Fix build on 32 bit archs. 2019-08-27 13:55:45 +00:00
vfs
vm Add a few regression tests for mlock(2). 2019-05-01 15:28:23 +00:00
Makefile random(4): Add regression tests for uint128 implementation, Chacha CTR 2019-06-17 14:59:45 +00:00
Makefile.depend
Makefile.inc