Re: [PATCH net] inet: frag: enforce memory limits earlier

2018-07-31 Thread David Miller
From: Eric Dumazet Date: Mon, 30 Jul 2018 20:09:11 -0700 > We currently check current frags memory usage only when > a new frag queue is created. This allows attackers to first > consume the memory budget (default : 4 MB) creating thousands > of frag queues, then sending tiny skbs to exceed high_

Re: [PATCH net] inet: frag: enforce memory limits earlier

2018-07-31 Thread Florian Westphal
Jann Horn wrote: > On Tue, Jul 31, 2018 at 7:54 AM Florian Westphal wrote: > > > > Eric Dumazet wrote: > > > We currently check current frags memory usage only when > > > a new frag queue is created. This allows attackers to first > > > consume the memory budget (default : 4 MB) creating thousan

Re: [PATCH net] inet: frag: enforce memory limits earlier

2018-07-31 Thread Jann Horn
On Tue, Jul 31, 2018 at 7:54 AM Florian Westphal wrote: > > Eric Dumazet wrote: > > We currently check current frags memory usage only when > > a new frag queue is created. This allows attackers to first > > consume the memory budget (default : 4 MB) creating thousands > > of frag queues, then se

Re: [PATCH net] inet: frag: enforce memory limits earlier

2018-07-30 Thread Florian Westphal
Eric Dumazet wrote: > We currently check current frags memory usage only when > a new frag queue is created. This allows attackers to first > consume the memory budget (default : 4 MB) creating thousands > of frag queues, then sending tiny skbs to exceed high_thresh > limit by 2 to 3 order of magn

[PATCH net] inet: frag: enforce memory limits earlier

2018-07-30 Thread Eric Dumazet
We currently check current frags memory usage only when a new frag queue is created. This allows attackers to first consume the memory budget (default : 4 MB) creating thousands of frag queues, then sending tiny skbs to exceed high_thresh limit by 2 to 3 order of magnitude. Note that before commit