path: root/net/ieee802154
diff options
authorHerbert Xu <herbert@gondor.apana.org.au>2014-11-07 21:27:09 +0800
committerDavid S. Miller <davem@davemloft.net>2014-11-10 14:25:35 -0500
commitc008ba5bdc9fa830e1a349b20b0be5a137bdef7a (patch)
treedb116a813dd808850455b36ba1c5e34b523a251e /net/ieee802154
parent32b5913a931fd753faf3d4e1124b2bc2edb364da (diff)
ipv4: Avoid reading user iov twice after raw_probe_proto_opt
Ever since raw_probe_proto_opt was added it had the problem of causing the user iov to be read twice, once during the probe for the protocol header and once again in ip_append_data. This is a potential security problem since it means that whatever we're probing may be invalid. This patch plugs the hole by firstly advancing the iov so we don't read the same spot again, and secondly saving what we read the first time around for use by ip_append_data. Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ieee802154')
0 files changed, 0 insertions, 0 deletions

Privacy Policy