Skip to content

limit sk_filter trim to payload

Willem de Bruijn netdev 1 version In review

Get series with b4
b4 am 1468361937-102786-1-git-send-email-willemdebruijn.kernel@gmail.com

Versions newest first

  1. v1 Latest2 patches 3 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2rose: limit sk_filter trim to payloadinclude/linux/filter.h net/core/filter.c net/rose/rose_in.c+12 -71 reply
2/2dccp: limit sk_filter trim to payloadinclude/net/sock.h net/core/sock.c net/dccp/ipv4.c +1 more+13 -61 reply

Reviews trailers per patch

All 2 patches have a Reviewed-by or Acked-by.

PatchDaniel Borkmann
1/2A-b
2/2A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH net 0/2] limit sk_filter trim to payload

From: Willem de Bruijn <[email protected]>

Sockets can apply a filter to incoming packets to drop or trim them. Fix two codepaths that call skb_pull/__skb_pull after sk_filter without checking for packet length.

Reading beyond skb->tail after trimming happens in more codepaths, but safety of reading in the linear segment is based on minimum allocation size (MAX_HEADER, GRO_MAX_HEAD, ..).

Willem de Bruijn (2):
rose: limit sk_filter trim to payload
dccp: limit sk_filter trim to payload

 include/linux/filter.h |  6 +++++-
 include/net/sock.h     |  8 +++++++-
 net/core/filter.c      | 10 +++++-----
 net/core/sock.c        |  7 ++++---
 net/dccp/ipv4.c        |  2 +-
 net/dccp/ipv6.c        |  2 +-
 net/rose/rose_in.c     |  3 ++-
 7 files changed, 25 insertions(+), 13 deletions(-)
Signature · 1 line
2.8.0.rc3.226.g39d4020