[<prev] [next>] [day] [month] [year] [list]
Message-ID: <20180410121904.GD22118@bombadil.infradead.org>
Date: Tue, 10 Apr 2018 05:19:04 -0700
From: Matthew Wilcox <willy@...radead.org>
To: Дмитрий Леонтьев
<dm.leontiev7@...il.com>
Cc: Michal Hocko <mhocko@...nel.org>,
LKML <linux-kernel@...r.kernel.org>, linux-mm@...ck.org,
Vlastimil Babka <vbabka@...e.cz>
Subject: Re: __GFP_LOW
On Tue, Apr 10, 2018 at 03:12:37PM +0300, Дмитрий Леонтьев wrote:
> First, I've noticed the network drivers were allocating memory in interrupt
> handlers. That sounds strange to me, because as far as I know, this
> behaviour is discouraged and may lead to DDOS attack.
Linux supports allocating memory in interrupt context. We also support
allocating memory while holding locks.
Doing it any other way would require the network stack to preallocate
all of the memory it's going to use. You can pop over to the netdev
mailing list and ask them to stop this behaviour, but I don't think
they'll be very sympathetic.
Powered by blists - more mailing lists