CVSROOT: /cvs
Module name: src
Changes by: [email protected] 2016/07/21 08:31:29
Modified files:
sys/kern : Tag: OPENBSD_5_8 uipc_socket.c
sys/netinet : Tag: OPENBSD_5_8 tcp_output.c
sys/sys : Tag: OPENBSD_5_8 mbuf.h
Log message:
I forgot to commit the 5.8 version of the splice fix.
Reminded by Florian Riehm
backport splice loop fix:
On localhost a user program may create a socket splicing loop.
After writing data into this loop, it was spinning forever causing
a kernel hang. Detect the loop by counting how often the same mbuf
is spliced. If that happens 128 times, assume that there is a loop
and abort the splicing with ELOOP.
Bug found by tedu@; OK tedu@ millert@ benno@