[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20160328.195457.1407210954449940457.davem@davemloft.net>
Date: Mon, 28 Mar 2016 19:54:57 -0400 (EDT)
From: David Miller <davem@...emloft.net>
To: eric.dumazet@...il.com
Cc: jengelh@...i.de, kadlec@...ckhole.kfki.hu, sploving1@...il.com,
pablo@...filter.org, kaber@...sh.net,
netfilter-devel@...r.kernel.org, netdev@...r.kernel.org
Subject: Re: BUG: net/netfilter: KASAN: stack-out-of-bounds in tcp_packet
From: Eric Dumazet <eric.dumazet@...il.com>
Date: Mon, 28 Mar 2016 13:51:46 -0700
> On Mon, 2016-03-28 at 13:46 -0700, Eric Dumazet wrote:
>
>> We have at least 384 bytes of padding in skb->head (this is struct
>> skb_shared_info).
>>
>> Whatever garbage we might read, current code is fine.
>>
>> We have to deal with a false positive here.
>
> Very similar to the one fixed in
> https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=10ec9472f05b45c94db3c854d22581a20b97db41
I don't see them as similar.
The current options code we are talking about here never references
past legitimate parts of the packet data. We always check 'length',
and we never access past the boundary it describes.
This was the entire point of my posting.
Talking about padding, rather than the logical correctness of the
code, is therefore a distraction I think :-)
Powered by blists - more mailing lists