From mboxrd@z Thu Jan 1 00:00:00 1970 From: Patrick McHardy Subject: Re: [PATCH 1/2] Fix computation of allocated size for netlink skb. Date: Tue, 04 Mar 2008 15:57:23 +0100 Message-ID: <47CD6353.8040208@trash.net> References: <1204623963-10600-1-git-send-email-eric@inl.fr> <1204623963-10600-2-git-send-email-eric@inl.fr> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit Cc: netfilter-devel@vger.kernel.org To: Eric Leblond Return-path: Received: from viefep18-int.chello.at ([213.46.255.22]:63811 "EHLO viefep19-int.chello.at" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1763805AbYCDO51 (ORCPT ); Tue, 4 Mar 2008 09:57:27 -0500 In-Reply-To: <1204623963-10600-2-git-send-email-eric@inl.fr> Sender: netfilter-devel-owner@vger.kernel.org List-ID: Eric Leblond wrote: > Size of the netlink skb was wrongly computed because the formula was using > NLMSG_ALIGN instead of NLMSG_SPACE. NLMSG_ALIGN does not add the room for > netlink header as NLMSG_SPACE does. This was causing a failure of message > building in some cases. > > On my test system, all messages for packets in range [8*k+41, 8*k+48] where k > is an integer were invalid and the corresponding packets were dropped. Applied, thanks.