aboutsummaryrefslogtreecommitdiff
path: root/lib/debugobjects.c
diff options
context:
space:
mode:
authorEric Dumazet <[email protected]>2018-01-18 19:59:19 -0800
committerDavid S. Miller <[email protected]>2018-01-22 16:00:05 -0500
commit7c68d1a6b4db9012790af7ac0f0fdc0d2083422a (patch)
tree080fa20981e54ee032dc59e2e80a925f9d7c4dd7 /lib/debugobjects.c
parent18b0affaf40cf5f320258d28f7069dfff76da184 (diff)
net: qdisc_pkt_len_init() should be more robust
Without proper validation of DODGY packets, we might very well feed qdisc_pkt_len_init() with invalid GSO packets. tcp_hdrlen() might access out-of-bound data, so let's use skb_header_pointer() and proper checks. Whole story is described in commit d0c081b49137 ("flow_dissector: properly cap thoff field") We have the goal of validating DODGY packets earlier in the stack, so we might very well revert this fix in the future. Signed-off-by: Eric Dumazet <[email protected]> Cc: Willem de Bruijn <[email protected]> Cc: Jason Wang <[email protected]> Reported-by: [email protected] Acked-by: Jason Wang <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'lib/debugobjects.c')
0 files changed, 0 insertions, 0 deletions