Re: [PATCH net-next] tcp: fastopen: limit max_qlen

2015-10-22 Thread David Miller
From: Eric Dumazet Date: Tue, 20 Oct 2015 13:17:40 -0700 > From: Eric Dumazet > > Allowing an application to set whatever limit for > the list of recently RST fastopen sessions [1] is not wise, > as it open ways to deplete kernel memory. > > Cap the user provided limit by somaxconn sysctl, > l

[PATCH net-next] tcp: fastopen: limit max_qlen

2015-10-20 Thread Eric Dumazet
From: Eric Dumazet Allowing an application to set whatever limit for the list of recently RST fastopen sessions [1] is not wise, as it open ways to deplete kernel memory. Cap the user provided limit by somaxconn sysctl, like listen() backlog. [1] https://tools.ietf.org/html/rfc7413#section-5.1