aboutsummaryrefslogtreecommitdiff
path: root/scripts/checkstack.pl
diff options
context:
space:
mode:
authorWillem de Bruijn <willemb@google.com>2017-02-03 18:20:48 -0500
committerMister Oyster <oysterized@gmail.com>2017-07-04 12:11:27 +0200
commiteb9da50e79c1e422d6b6176e6669072966a13068 (patch)
treec92b9c6d08620ba2bdc01595819d5382dcd8c1a4 /scripts/checkstack.pl
parent010679ee634b86e532db3302aa2085735f30aedf (diff)
tun: read vnet_hdr_sz once
commit e1edab87faf6ca30cd137e0795bc73aa9a9a22ec upstream. 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). [js] we have TUN_VNET_HDR in 3.12 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> Signed-off-by: Jiri Slaby <jslaby@suse.cz> [wt: s/READ_ONCE/ACCESS_ONCE] Signed-off-by: Willy Tarreau <w@1wt.eu>
Diffstat (limited to 'scripts/checkstack.pl')
0 files changed, 0 insertions, 0 deletions