From mboxrd@z Thu Jan 1 00:00:00 1970 From: Pablo Neira Ayuso Subject: Re: [PATCH 1/3] netfilter: nf_log: account for size of NLMSG_DONE attribute Date: Fri, 24 Oct 2014 14:30:27 +0200 Message-ID: <20141024123027.GA4587@salvia> References: <1414053368-29037-1-git-send-email-fw@strlen.de> <1414053368-29037-2-git-send-email-fw@strlen.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: netfilter-devel@vger.kernel.org To: Florian Westphal Return-path: Received: from mail.us.es ([193.147.175.20]:40838 "EHLO mail.us.es" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756640AbaJXM24 (ORCPT ); Fri, 24 Oct 2014 08:28:56 -0400 Content-Disposition: inline In-Reply-To: <1414053368-29037-2-git-send-email-fw@strlen.de> Sender: netfilter-devel-owner@vger.kernel.org List-ID: On Thu, Oct 23, 2014 at 10:36:06AM +0200, Florian Westphal wrote: > We currently neither account for the nlattr size, nor do we consider > the size of the trailing NLMSG_DONE when allocating nlmsg skb. > > This can result in nflog to stop working, as __nfulnl_send() re-tries > sending forever if it failed to append NLMSG_DONE (which will never > work if buffer is not large enough). Applied, thanks.