On Thu, 2012-10-04 at 11:59 +0200, Erik Hugne wrote:
quoted
What guarantee do we have this cannot use all kernel memory ?
If sk->sk_rcvbuf is not an acceptable limit here, you must use a
different limit, but not infinity.
There is an implicit limit on how much data that can be buffered on each
socket, controlled by TIPC_FLOW_CONTROL_WIN.
This limit is:
TIPC_FLOW_CONTROL_WIN * 2 * TIPC_MAX_USER_MSG_SIZE
And this limit is tested _before_ queueing to backlog if socket is owned
by the user ?
You'll have to demonstrate this in the changelog.
Again, I dont think this patch is safe, we need an explicit limit.