[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <47FF6A8D.30705@trash.net>
Date: Fri, 11 Apr 2008 15:41:33 +0200
From: Patrick McHardy <kaber@...sh.net>
To: "David S. Miller" <davem@...emloft.net>
CC: Arnaldo Carvalho de Melo <acme@...hat.com>, dccp@...r.kernel.org,
Linux Netdev List <netdev@...r.kernel.org>
Subject: Re: [DCCP]: Fix skb->cb conflicts with IP
Arnaldo Carvalho de Melo wrote:
> Em Fri, Apr 04, 2008 at 02:13:16PM +0200, Patrick McHardy escreveu:
>
>> commit eced67957ee99f7b5fafdc73a58bcd037a1789b2
>> Author: Patrick McHardy <kaber@...sh.net>
>> Date: Fri Apr 4 14:10:23 2008 +0200
>>
>> [DCCP]: Fix skb->cb conflicts with IP
>>
>> dev_queue_xmit() and the other IP output functions expect to get a skb
>> with clear or properly initialized skb->cb. Unlike TCP and UDP, the
>> dccp_skb_cb doesn't contain a struct inet_skb_parm at the beginning,
>> so the DCCP-specific data is interpreted by the IP output functions.
>> This can cause false negatives for the conditional POST_ROUTING hook
>> invocation, making the packet bypass the hook.
>>
>> Add a inet_skb_parm/inet6_skb_parm union to the beginning of
>> dccp_skb_cb to avoid clashes. Also add a BUILD_BUG_ON to make
>> sure it fits in the cb.
>>
>> Signed-off-by: Patrick McHardy <kaber@...sh.net>
>
> Thanks Patrick,
>
> Acked-by: Arnaldo Carvalho de Melo <acme@...hat.com>
Dave, I'm not sure whether you've missed this or expect it
to go through Arnaldo, just want to make sure it doesn't
get missed because of a misunderstanding :)
View attachment "x" of type "text/plain" (1774 bytes)
Powered by blists - more mailing lists