Re: [PATCH net] net: __skb_flow_dissect() must cap its return value

2016-11-12 Thread David Miller
From: Eric Dumazet Date: Wed, 09 Nov 2016 16:04:46 -0800 > From: Eric Dumazet > > After Tom patch, thoff field could point past the end of the buffer, > this could fool some callers. > > If an skb was provided, skb->len should be the upper limit. >

[PATCH net] net: __skb_flow_dissect() must cap its return value

2016-11-09 Thread Eric Dumazet
From: Eric Dumazet After Tom patch, thoff field could point past the end of the buffer, this could fool some callers. If an skb was provided, skb->len should be the upper limit. If not, hlen is supposed to be the upper limit. Fixes: a6e544b0a88b ("flow_dissector: Jump to