aboutsummaryrefslogtreecommitdiff
path: root/scripts/gcc-plugins/cyc_complexity_plugin.c
diff options
context:
space:
mode:
authorEric Dumazet <[email protected]>2016-11-09 16:04:46 -0800
committerDavid S. Miller <[email protected]>2016-11-12 23:41:53 -0500
commit34fad54c2537f7c99d07375e50cb30aa3c23bd83 (patch)
treea63fc00dc48c8673830e2930aed819ccfb2f9632 /scripts/gcc-plugins/cyc_complexity_plugin.c
parent79774d6bfacb40699ecd5a343e5d4ac5a9cdd173 (diff)
net: __skb_flow_dissect() must cap its return value
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 exit code in __skb_flow_dissect") Signed-off-by: Eric Dumazet <[email protected]> Reported-by: Yibin Yang <[email protected] Acked-by: Alexander Duyck <[email protected]> Acked-by: Willem de Bruijn <[email protected]> Acked-by: Alexei Starovoitov <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'scripts/gcc-plugins/cyc_complexity_plugin.c')
0 files changed, 0 insertions, 0 deletions