Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754842AbcK1S2y (ORCPT ); Mon, 28 Nov 2016 13:28:54 -0500 Received: from mail-pg0-f65.google.com ([74.125.83.65]:34221 "EHLO mail-pg0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753896AbcK1S1n (ORCPT ); Mon, 28 Nov 2016 13:27:43 -0500 Message-ID: <1480357600.18162.74.camel@edumazet-glaptop3.roam.corp.google.com> Subject: Re: net/sctp: vmalloc allocation failure in sctp_setsockopt/xt_alloc_table_info From: Eric Dumazet To: Florian Westphal Cc: Neil Horman , Marcelo Ricardo Leitner , netdev , LKML , netfilter-devel@vger.kernel.org Date: Mon, 28 Nov 2016 10:26:40 -0800 In-Reply-To: <20161128180925.GF28510@breakpoint.cc> References: <20161128141340.GA29839@hmsreliant.think-freely.org> <20161128143931.GB29839@hmsreliant.think-freely.org> <20161128151312.GA13172@localhost.localdomain> <20161128174647.GC29839@hmsreliant.think-freely.org> <20161128174710.GE28510@breakpoint.cc> <20161128175626.GD29839@hmsreliant.think-freely.org> <20161128180925.GF28510@breakpoint.cc> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.10.4-0ubuntu2 Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 454 Lines: 15 On Mon, 2016-11-28 at 19:09 +0100, Florian Westphal wrote: > We should prevent OOM killer from running in first place (GFP_NORETRY should work). Make sure that a vmalloc(80000) will succeed, even if few pages need to be swapped out. Otherwise, some scripts using iptables will die while they where okay before ? I am not sure how GFP_NORETRY really works among different linux kernels. Maybe this flag has no effect for order-0 allocations anyway.