From: Willem de Bruijn <will...@google.com> Tuntap devices allow concurrent use and update of field vnet_hdr_sz. Read the field once to avoid TOCTOU.
Willem de Bruijn (2): tun: read vnet_hdr_sz once macvtap: read vnet_hdr_size once drivers/net/macvtap.c | 4 ++-- drivers/net/tun.c | 10 ++++++---- 2 files changed, 8 insertions(+), 6 deletions(-) -- 2.11.0.483.g087da7b7c-goog