diff options
author | Alexander Bluhm <bluhm@cvs.openbsd.org> | 2018-12-17 16:47:00 +0000 |
---|---|---|
committer | Alexander Bluhm <bluhm@cvs.openbsd.org> | 2018-12-17 16:47:00 +0000 |
commit | 9c28878c4a41ff463fc86fca534c1d7473360b79 (patch) | |
tree | a360ad84be0d5700216855bb9588990f7e089d8c /sys/dev/wscons | |
parent | 3f2c84b601c3b92663db94d7335a0917edcffdff (diff) |
When using MSG_WAITALL, soreceive() can sleep while processing the
receive buffer of a stream socket. Then a new pair of control and
data mbuf can be appended to the mbuf queue. In this case, terminate
the loop with a short read to prevent a panic. Userland should
read the control message with the next system call.
OK claudio@ deraadt@
Diffstat (limited to 'sys/dev/wscons')
0 files changed, 0 insertions, 0 deletions