CVSROOT: /cvs Module name: src Changes by: t...@cvs.openbsd.org 2016/07/13 20:56:16
Modified files: sys/kern : Tag: OPENBSD_5_9 uipc_mbuf.c uipc_socket.c sys/netinet : Tag: OPENBSD_5_9 tcp_output.c sys/sys : Tag: OPENBSD_5_9 mbuf.h Log message: 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@