[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20170203232049.38982-1-willemdebruijn.kernel@gmail.com>
Date: Fri, 3 Feb 2017 18:20:47 -0500
From: Willem de Bruijn <willemdebruijn.kernel@...il.com>
To: netdev@...r.kernel.org
Cc: davem@...emloft.net, Willem de Bruijn <willemb@...gle.com>
Subject: [PATCH net 0/2] read vnet_hdr_sz once
From: Willem de Bruijn <willemb@...gle.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
Powered by blists - more mailing lists