aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/qlogic/qed/qed_spq.c
diff options
context:
space:
mode:
authorDaniel Borkmann <daniel@iogearbox.net>2016-07-25 18:06:12 +0200
committerDavid S. Miller <davem@davemloft.net>2016-07-25 21:40:33 -0700
commitba66bbe5480a012108958a71cff88b23dce84956 (patch)
tree1896547dcd8bc441534f7ce2ca3b21f4911ec920 /drivers/net/ethernet/qlogic/qed/qed_spq.c
parentcaif-hsi: Remove deprecated create_singlethread_workqueue (diff)
downloadlinux-dev-ba66bbe5480a012108958a71cff88b23dce84956.tar.xz
linux-dev-ba66bbe5480a012108958a71cff88b23dce84956.zip
udp: use sk_filter_trim_cap for udp{,6}_queue_rcv_skb
After a612769774a3 ("udp: prevent bugcheck if filter truncates packet too much"), there followed various other fixes for similar cases such as f4979fcea7fd ("rose: limit sk_filter trim to payload"). Latter introduced a new helper sk_filter_trim_cap(), where we can pass the trim limit directly to the socket filter handling. Make use of it here as well with sizeof(struct udphdr) as lower cap limit and drop the extra skb->len test in UDP's input path. Signed-off-by: Daniel Borkmann <daniel@iogearbox.net> Cc: Willem de Bruijn <willemb@google.com> Acked-by: Willem de Bruijn <willemb@google.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions