2006-01-03 21:29:35

by Ed L. Cashin

[permalink] [raw]
Subject: [PATCH 2.6.15-rc7] aoe [1/7]: zero packet data after skb allocation

Signed-off-by: "Ed L. Cashin" <[email protected]>

Zero the data in new socket buffers to prevent leaking information.

Index: 2.6.15-rc7-aoe/drivers/block/aoe/aoecmd.c
===================================================================
--- 2.6.15-rc7-aoe.orig/drivers/block/aoe/aoecmd.c 2006-01-02 13:35:13.000000000 -0500
+++ 2.6.15-rc7-aoe/drivers/block/aoe/aoecmd.c 2006-01-02 13:35:13.000000000 -0500
@@ -28,6 +28,7 @@
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


--
Ed L. Cashin <[email protected]>