diff options
author | Guillaume Nault <gnault@redhat.com> | 2021-08-06 17:52:06 +0200 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2021-08-09 15:37:43 -0700 |
commit | 143a8526ab5fd4f8a0c4fe2a9cb28c181dc5a95f (patch) | |
tree | 9d2766c631ccc95b0ddd4103e80dbe46f1cf9e66 /drivers/media/pci/ngene/ngene.h | |
parent | d6e712aa7e6a3d5a9633f4bcbe2237f3edc292bd (diff) |
bareudp: Fix invalid read beyond skb's linear data
Data beyond the UDP header might not be part of the skb's linear data.
Use skb_copy_bits() instead of direct access to skb->data+X, so that
we read the correct bytes even on a fragmented skb.
Fixes: 4b5f67232d95 ("net: Special handling for IP & MPLS.")
Signed-off-by: Guillaume Nault <gnault@redhat.com>
Link: https://lore.kernel.org/r/7741c46545c6ef02e70c80a9b32814b22d9616b3.1628264975.git.gnault@redhat.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'drivers/media/pci/ngene/ngene.h')
0 files changed, 0 insertions, 0 deletions