Received: by 10.213.65.68 with SMTP id h4csp3825663imn; Tue, 10 Apr 2018 05:23:51 -0700 (PDT) X-Google-Smtp-Source: AIpwx49rVYCC2gmCnlO6sAVDs4Xukypq8Ew6Des3SKp9olMy73rnJuCi+sy3qe+bJVcXwRyDUIGK X-Received: by 2002:a17:902:6984:: with SMTP id l4-v6mr203665plk.61.1523363031007; Tue, 10 Apr 2018 05:23:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523363030; cv=none; d=google.com; s=arc-20160816; b=VOR0mK/N6XPsyDukU7muZa2LqkHdk5tdB4erPYdANzSITIzYFUBgoUjWSjSueG8Gxa sj89gi3nVhpfPXeCrLVVc8lhb61EkD79ADhqwfaGp1t24Ez43kaeqZDjGqEjcJZ72i0t wFfccTTkhDXIQj3a7Jcw/7teP+zWtudFrwH+zwIBgJeg1E6SL6nDFqqANNDp/2i1XGYk FlYH1Yw4W2G3iYjj8d3cGwZ/AN/gvCozafObtBA7i4fS8fOOe6QFezqfCptZcRBvPRTp Zij3uuFZlFWoCwEXEo0dqYxJpwxzwVZtM64fRFVj5z1znfsI7lcqWR/L7PPFp8Vi53DX jI7A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature :arc-authentication-results; bh=w1CbuYKoEqAEVaevb9SBV6wyrmqcKKun2ZOCo9L7JYk=; b=eGwr0qnrF3ra9rrGzpyoFH9Dt8kul745U+TV4IwTxjTYzDufFPCIRwJHvuutAUfbas 16//VkwcCCHtmqOJxafry4eZ6fhdjM/DdwDIW0IyiDQZTld/yVJ8ZyJXpeeCjFtMH7U8 epT9UOX6HvCAYICU4cVNZDh50rbZu2VxAN7btkaBMQK88GHrDtZHdYAIBtOq9OMG9MMV ExOJRalxX1L8ER3fIzqJ73z9FXZJPNwm/jb6s1SJQH8aCcC6lU1Zf5alPI0EqbxzBqXt 6z6EicvcPYjs9BWC99LiPSr+kyvFOReHxm3Z4Jsq47TU6z1Z+/xgTGs4cr06ntEIk84I UjpA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=cIjSuO4z; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q2si1986478pfh.196.2018.04.10.05.23.13; Tue, 10 Apr 2018 05:23:50 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=cIjSuO4z; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752914AbeDJMTH (ORCPT + 99 others); Tue, 10 Apr 2018 08:19:07 -0400 Received: from bombadil.infradead.org ([198.137.202.133]:46434 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752892AbeDJMTF (ORCPT ); Tue, 10 Apr 2018 08:19:05 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=In-Reply-To:Content-Transfer-Encoding :Content-Type:MIME-Version:References:Message-ID:Subject:Cc:To:From:Date: Sender:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help: List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=w1CbuYKoEqAEVaevb9SBV6wyrmqcKKun2ZOCo9L7JYk=; b=cIjSuO4zmi4oS5x8YaUyp0X8LF Y+/Jila05kQpC93oXlRy/teOD7+a3IPwB3RxeLk2hC/2eVXFKDj06gjFof9EUog7Tm++evlVflvOq V/00sOkWQDNlJ1LbSs1wppZel5UXEtlffgKHJM5XBFOhcFlpUkflrPUsJWhVl/fIytg47DOG4cQuI jyFpoiMXezbPlYDC6kpN1ZRMTtWBNNaeU7aPw6GTgoUZ/X+zG75EykhMeAfR6KOKFMZxTF/bNG1YN qAs5TvKzUX/v4/AoxDKaBfQs94gsaXQ4O2FnszTqc4Mxi5/5j5Vjsugi7FwTVBFvHGgC7CeMjmeG2 h/35oujQ==; Received: from willy by bombadil.infradead.org with local (Exim 4.90_1 #2 (Red Hat Linux)) id 1f5sEq-00069e-U4; Tue, 10 Apr 2018 12:19:04 +0000 Date: Tue, 10 Apr 2018 05:19:04 -0700 From: Matthew Wilcox To: =?utf-8?B?0JTQvNC40YLRgNC40Lkg0JvQtdC+0L3RgtGM0LXQsg==?= Cc: Michal Hocko , LKML , linux-mm@kvack.org, Vlastimil Babka Subject: Re: __GFP_LOW Message-ID: <20180410121904.GD22118@bombadil.infradead.org> References: <20180405153240.GO6312@dhcp22.suse.cz> <20180405161501.GD28128@bombadil.infradead.org> <20180405185444.GQ6312@dhcp22.suse.cz> <20180405201557.GA3666@bombadil.infradead.org> <20180406060953.GA8286@dhcp22.suse.cz> <20180408042709.GC32632@bombadil.infradead.org> <20180409073407.GD21835@dhcp22.suse.cz> <20180409155157.GC11756@bombadil.infradead.org> <20180409181400.GO21835@dhcp22.suse.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.9.2 (2017-12-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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.