Thread (8 messages) 8 messages, 3 authors, 2012-10-04

Re: [PATCH] tipc: flow control should not account for sk_rcvbuf

flat view

From: Eric Dumazet <hidden>
Date: 2012-10-04 10:26:06

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.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help