[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20120402.001429.145178038621256162.davem@davemloft.net>
Date: Mon, 02 Apr 2012 00:14:29 -0400 (EDT)
From: David Miller <davem@...emloft.net>
To: eric.dumazet@...il.com
Cc: xiaosuo@...il.com, kaber@...sh.net, pablo@...filter.org,
netfilter-devel@...r.kernel.org, netdev@...r.kernel.org
Subject: Re: [PATCH] net: check the length of the data before dereferencing
it
From: Eric Dumazet <eric.dumazet@...il.com>
Date: Mon, 02 Apr 2012 05:58:25 +0200
> On Sun, 2012-04-01 at 23:55 -0400, David Miller wrote:
>> From: Eric Dumazet <eric.dumazet@...il.com>
>> Date: Mon, 02 Apr 2012 05:45:45 +0200
>>
>> > Usually not a problem since we have many bytes after our head.
>>
>> We always have bytes after the head, it's guarenteed, and whether it's
>> garbage bytes or skb_shared_info() it simply doesn't matter.
>
> Then you have to add a kmemcheck_something() to make this clear and
> avoid possible warnings.
That's perfectly fine and would document the situation. And we can
add a similar annotation to the two other nearly identical pieces of
code in net/netfilter/nf_conntrack_proto_tcp.c
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists