Skip to contentSkip to conversation

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

PATCH New Ed L. Cashin 1 participant 1 message Jan 19, 2006

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

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

These eight patches supercede the seven aoe patches sent on January third for the 2.6.15-rc7 kernel. A bug existed in the Jan. 3 set of patches where the retransmit timer for an AoE device AoE timer could be added twice. That bug has been fixed in this set of patches.

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

drivers/block/aoe/aoecmd.c +1 -0
diff -upr 2.6.15-git9-orig/drivers/block/aoe/aoecmd.c 2.6.15-git9-aoe/drivers/block/aoe/aoecmd.c
@@ -28,6 +28,7 @@ new_skb(struct net_device *if_dev, ulong
 		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
Signature · 1 line
  "Ed L. Cashin" <[email protected]>