From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Miller Subject: Re: [PATCH net 0/3] Some sockopt optlen fixes Date: Wed, 10 Jan 2018 14:53:41 -0500 (EST) Message-ID: <20180110.145341.1475369360355738032.davem@davemloft.net> References: Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: netdev@vger.kernel.org, linux-sctp@vger.kernel.org, nhorman@tuxdriver.com, vyasevich@gmail.com, haliu@redhat.com To: marcelo.leitner@gmail.com Return-path: Received: from shards.monkeyblade.net ([184.105.139.130]:54250 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751238AbeAJTxn (ORCPT ); Wed, 10 Jan 2018 14:53:43 -0500 In-Reply-To: Sender: netdev-owner@vger.kernel.org List-ID: From: Marcelo Ricardo Leitner Date: Mon, 8 Jan 2018 19:02:26 -0200 > Hangbin Liu reported that some SCTP sockopt are allowing the user to get > the kernel to allocate really large buffers by not having a ceiling on > optlen. > > This patchset address this issue (in patch 2), replace an GFP_ATOMIC > that isn't needed and avoid calculating the option size multiple times > in some setsockopt. Series applied, thank you.