Re: [PATCH net] tcp: fix potential huge kmalloc() calls in TCP_REPAIR

2015-11-20 Thread David Miller
From: Eric Dumazet Date: Wed, 18 Nov 2015 21:03:33 -0800 > From: Eric Dumazet > > tcp_send_rcvq() is used for re-injecting data into tcp receive queue. > > Problems : > > - No check against size is performed, allowed user to fool kernel in > attempting very large memory allocations, eventua

Re: [PATCH net] tcp: fix potential huge kmalloc() calls in TCP_REPAIR

2015-11-19 Thread Eric Dumazet
On Thu, 2015-11-19 at 04:25 -0800, Eric Dumazet wrote: > On Thu, 2015-11-19 at 13:51 +0300, Pavel Emelyanov wrote: > > On 11/19/2015 08:03 AM, Eric Dumazet wrote: > > > From: Eric Dumazet > > > > > > tcp_send_rcvq() is used for re-injecting data into tcp receive queue. > > > > > > Problems : > >

Re: [PATCH net] tcp: fix potential huge kmalloc() calls in TCP_REPAIR

2015-11-19 Thread Eric Dumazet
On Thu, 2015-11-19 at 13:51 +0300, Pavel Emelyanov wrote: > On 11/19/2015 08:03 AM, Eric Dumazet wrote: > > From: Eric Dumazet > > > > tcp_send_rcvq() is used for re-injecting data into tcp receive queue. > > > > Problems : > > > > - No check against size is performed, allowed user to fool kern

Re: [PATCH net] tcp: fix potential huge kmalloc() calls in TCP_REPAIR

2015-11-19 Thread Pavel Emelyanov
On 11/19/2015 08:03 AM, Eric Dumazet wrote: > From: Eric Dumazet > > tcp_send_rcvq() is used for re-injecting data into tcp receive queue. > > Problems : > > - No check against size is performed, allowed user to fool kernel in > attempting very large memory allocations, eventually triggering

[PATCH net] tcp: fix potential huge kmalloc() calls in TCP_REPAIR

2015-11-18 Thread Eric Dumazet
From: Eric Dumazet tcp_send_rcvq() is used for re-injecting data into tcp receive queue. Problems : - No check against size is performed, allowed user to fool kernel in attempting very large memory allocations, eventually triggering OOM when memory is fragmented. - In case of fault during