| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
| |
Check that the expected domain(9) families all handle the socket option
correctly and do proper bounds checks. This would catch bugs as fixed
in (r230938,)r230981.
Sponsored by: Cisco Systems, Inc.
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
- While here, make this compile and work on non-i386:
- Use CMSG_SPACE(), CMSG_LEN(), and CMSG_FIRSTHDR() instead of ignoring
padding between 'struct cmsghdr' and control message payloads.
- Don't initialize the control message before calling recvmsg().
Instead, check that we get a valid control message on return from
recvmsg().
- Use errx() instead of err() for some errors that don't report failures
that set errno.
Requested by: kib (1)
|
|
|
|
| |
This allows to specify selected file system and not only /tmp/.
|
|
|
|
|
| |
Requested and reviewed by: rwatson
MFC after: 1 week
|
|
|
|
|
| |
Submitted by: Mikolaj Golub <to.my.trociny at gmail.com>
MFC after: 3 days
|
|
|
|
|
|
|
|
|
|
|
|
| |
improperly from one of two instances of close(2) being called
simultaneously on both ends of a connected UNIX domain socket. The test
tool is slightly tweaked to improve failure modes, and while often does
trigger the problem, doesn't do so consistently due to the nature of the
race.
PR: kern/144061
Submitted by: Mikolaj Golub <to.my.trociny@gmail.com>
MFC after: 3 days
|
|
|
|
|
|
|
| |
- fix some nearby style bugs
- include Makefile.inc where it makes sense and reduces duplication
Approved by: ed (co-mentor)
|
| |
|
|
|
|
|
|
|
|
| |
TAP format.
Add a checksum to verify that the data hasn't been corrupted between
being read from disk and being received.
Approved by: rrs (mentor)
|
|
|
|
| |
Sponsored by: Google
|
|
|
|
|
| |
does.
- Use %z to printf a size_t to fix compile on 64-bit platforms.
|
|
|
|
| |
non-blocking, EINPROGRESS is an acceptable result from connect().
|
|
|
|
|
| |
returns success for various socket types. It's easy to imagine this
being enhanced to validate the returned data, but...
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
- Process (a) is blocked in read on a socket waiting on data.
- Process (b) is blocked in shutdown() on a socket waiting on (a).
- Process (c) delivers a signal to (b) interrupting its wait.
When the signal is delivered, the kernel panics as sblock() fails in
sorflush(). Even if it didn't panic, shutdown() would block potentially
indefinitely waiting for recv() to succeeded. Fixes to follow.
Reported by: Jos Backus <jos at catnook dot com>
|
|
|
|
|
| |
run from single-user mode, as they look at global open file and inflight
descriptor counts to check for leaks.
|
|
|
|
|
|
|
| |
on socket buffers is interruptible or not, which detacts the regression I
introduced recently in 7-CURRENT (spotted by alfred). This test passes
in older -CURRENT, and with the as-yet uncommitted sx_xlock_sig and
sblock fix patches.
|
| |
|
| |
|
|
|
|
| |
The correct format specifier for ssize_t is %zd.
|
|
|
|
| |
than a page size and nbytes=0.
|
|
|
|
|
|
| |
- Close the new file objects created during socketpair() if the copyout of
the new file descriptors fails.
- Add a test to the socketpair regression test for this edge case.
|
|
|
|
| |
sys/kern/uipc_syscall.c.
|
|
|
|
|
|
|
| |
non-blocking connect later using select(). This case didn't trigger on
my UP test box, but did on Peter's SMP test box.
Spotted by: peter
|
|
|
|
|
|
|
|
|
|
|
| |
various types, as well as pipes and fifos for good measure. RELENG_6
currently passes all of these tests, but 7-CURRENT fails 0-byte writes
and sends on all stream socket types (and fifos, as they are based on
stream sockets).
Bumped into by: peter
Diagnosed by: jhb
Problem of: andre
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
mbuf is dropped, to preserve the invariant in the PR_ADDR case.
Add a regression test to detect this condition, but do not hook it
up to the build for now.
PR: kern/38495
Submitted by: James Juran
Reviewed by: sam, rwatson
Obtained from: NetBSD
MFC after: 2 weeks
|
|
|
|
|
|
|
| |
nature of implied connect via sendto(). Oddly, uipc_usrreq.c implements
this for stream sockets, but doesn't set the flag in its protocol
definition so that it can actually be used. As such, the stream test is
implemented but doesn't run for now.
|
| |
|
|
|
|
|
|
|
|
| |
o If something is wrong with options, then output short usage help message.
o Output errstr returned from strtonum(3).
PR: bin/98141
Submitted by: Andrey Simonenko
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
data passing for unix domain sockets, stream and datagram.
There are 15 tests:
Test/Type of socket STREAM DGRAM
----------------------------------------------------------------------
Sending, receiving cmsgcred 1 6
Receiving sockcred (listening socket has LOCAL_CREDS) 2 n/a
Receiving sockcred (accepted socket has LOCAL_CREDS) 3 n/a
Receiving sockcred n/a 7
Sending cmsgcred, receiving sockcred 4 8
Sending, receiving timestamp 5 9
Sending, receiving cmsgcred (no control data) 10 13
Sending cmsgcred, receiving sockcred (no control data) 11 14
Sending, receiving timestamp (no control data) 12 15
Currently we pass 8 tests. All the rest marked as TODO.
PR: kern/90800
Submitted by: Andrey Simonenko
|
|
|
|
|
|
| |
test binary.
Reported by: maxim
|
|
|
|
|
| |
lengths of headers and data and makes sure it receives about the right
number of bytes.
|
|
|
|
|
| |
and confirms that only SOCK_RAW works with socket(), and nothing works
with socketpair().
|
|
|
|
|
| |
socket() and socketpair() of SOCK_STREAM and SOCK_DGRAM types. It
also confirms that SOCK_RAW fails.
|
| |
|
|
|
|
| |
file descriptor passing. These tests are not all currently passed.
|
|
|
|
|
|
|
|
| |
creation and at time of update using an additional call to listen().
This test also exercises SO_LISTENQLIMIT, a forthcoming socket option
that allows the retrieval (but not setting) of the queue limit.
Discussed with: andre
|
| |
|
|
|
|
| |
shutdown-on-non connected socket test, kern/84761.
|
|
|
|
|
|
|
|
|
|
| |
o getsockopt(SO_ACCEPTFILTER) always returns success on listen socket
even we didn't install accept filter on the socket.
o Fix these bugs and add regression tests for them.
Submitted by: Igor Sysoev [1]
Reviewed by: alfred
MFC after: 2 weeks
|
|
|
|
| |
Update copyright.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
intended to verify that SIGPIPE is delivered to a process writing or
sending on a socket that has been shut down for write. If available,
SO_NOSIGPIPE is also tested.
This regression test is currently passed by RELENG_4, but not by HEAD or
RELENG_5, due to a bug in the write() code for sockets. SO_NOSIGPIPE is not
present in RELENG_4, however, so is not tested there.
Reported by: Mikko Tyolajarvi <mbsd at pacbell dot net>
PR: 78478
|
|
|
|
|
|
| |
bind()/connect() system calls, which is intended to confirm that the
right successes and errors occur when rendezvousing via the file system
name space.
|
|
|
|
|
|
| |
settings can override local ones.
Pointed out by: ru
|
|
|
|
|
| |
already associated datagram unix domain socket by issuing connect() system
call.
|
|
|
|
| |
OK'ed by: core
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
understood by Perl's Test::Harness module and prove(1) commands.
Update README to describe the new protocol. The work's broken down into
two main sets of changes.
First, update the existing test programs (shell scripts and C programs)
to produce output in the ok/not ok format, and to, where possible, also
produce a header describing the number of tests that are expected to be
run.
Second, provide the .t files that actually run the tests. In some cases
these are copies of, or very similar too, scripts that already existed.
I've kept the old scripts around so that it's possible to verify that
behaviour under this new system (in terms of whether or not a test fails)
is identical to the behaviour under the old system.
Add a TODO file.
|
|
|
|
|
|
|
|
| |
performs a non-blocking connect from another socket, and then closes
the listen socket rather than accepting. This is intended to
exercise the close path in which connections are aborted due to a
close on the listen socket while the connection is in the listen
queue.
|
|
|
|
| |
any fake value.
|