提交 50bba752 编写于 作者: E Ed L. Cashin 提交者: Greg Kroah-Hartman

[PATCH] aoe [1/8]: zero packet data after skb allocation

Zero the data in new socket buffers to prevent leaking information.
Signed-off-by: N"Ed L. Cashin" <ecashin@coraid.com>
Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
上级 a1a051b1
......@@ -28,6 +28,7 @@ new_skb(struct net_device *if_dev, ulong len)
skb->protocol = __constant_htons(ETH_P_AOE);
skb->priority = 0;
skb_put(skb, len);
memset(skb->head, 0, len);
skb->next = skb->prev = NULL;
/* tell the network layer not to perform IP checksums
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册