summaryrefslogtreecommitdiff
path: root/drivers/usb/host/ehci-st.c
diff options
context:
space:
mode:
authorWillem de Bruijn <willemb@google.com>2017-02-03 18:20:48 -0500
committerDavid S. Miller <davem@davemloft.net>2017-02-06 22:41:27 -0500
commite1edab87faf6ca30cd137e0795bc73aa9a9a22ec (patch)
tree6bed425132b0eb1c3808a012ad5f81799df0d78c /drivers/usb/host/ehci-st.c
parentccf7abb93af09ad0868ae9033d1ca8108bdaec82 (diff)
tun: read vnet_hdr_sz once
When IFF_VNET_HDR is enabled, a virtio_net header must precede data. Data length is verified to be greater than or equal to expected header length tun->vnet_hdr_sz before copying. Read this value once and cache locally, as it can be updated between the test and use (TOCTOU). Signed-off-by: Willem de Bruijn <willemb@google.com> Reported-by: Dmitry Vyukov <dvyukov@google.com> CC: Eric Dumazet <edumazet@google.com> Acked-by: Eric Dumazet <edumazet@google.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/usb/host/ehci-st.c')
0 files changed, 0 insertions, 0 deletions
dge?h=nds-private-remove&id=1f90c7f3470580e24da25f6a6c1fb480ed9371ac'>bridge: modify bridge and port to have often accessed fields in one cache lineNikolay Aleksandrov1-23/+20 2017-02-06net: remove ndo_neigh_{construct, destroy} from stacked devicesIdo Schimmel1-2/+0 2017-02-03Merge git://git.kernel.org/pub/scm/linux/kernel/git/pablo/nf-nextDavid S. Miller3-32/+49 2017-02-03bridge: vlan dst_metadata hooks in ingress and egress pathsRoopa Prabhu6-2/+82 2017-02-03bridge: per vlan dst_metadata netlink supportRoopa Prabhu7-48/+641 2017-02-02netfilter: allow logging from non-init namespacesMichal Kubeček1-1/+1