public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 2.6.15-rc7] aoe [1/7]: zero packet data after skb allocation
@ 2006-01-03 21:05 Ed L. Cashin
  2006-01-03 21:07 ` [PATCH 2.6.15-rc7] aoe [2/7]: support dynamic resizing of AoE devices Ed L. Cashin
                   ` (5 more replies)
  0 siblings, 6 replies; 11+ messages in thread
From: Ed L. Cashin @ 2006-01-03 21:05 UTC (permalink / raw)
  To: linux-kernel; +Cc: ecashin, Greg K-H

Signed-off-by: "Ed L. Cashin" <ecashin@coraid.com>

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 <ecashin@coraid.com>


^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2006-01-05 16:35 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-01-03 21:05 [PATCH 2.6.15-rc7] aoe [1/7]: zero packet data after skb allocation Ed L. Cashin
2006-01-03 21:07 ` [PATCH 2.6.15-rc7] aoe [2/7]: support dynamic resizing of AoE devices Ed L. Cashin
2006-01-03 21:07 ` [PATCH 2.6.15-rc7] aoe [3/7]: increase allowed outstanding packets Ed L. Cashin
2006-01-03 21:08 ` [PATCH 2.6.15-rc7] aoe [4/7]: use less confusing driver name Ed L. Cashin
2006-01-04  6:02   ` Coywolf Qi Hunt
2006-01-04 16:31     ` Ed L Cashin
2006-01-05  0:50       ` Coywolf Qi Hunt
2006-01-05 16:35         ` Ed L Cashin
2006-01-03 21:08 ` [PATCH 2.6.15-rc7] aoe [5/7]: allow network interface migration on packet retransmit Ed L. Cashin
2006-01-03 21:08 ` [PATCH 2.6.15-rc7] aoe [6/7]: update device information on last close Ed L. Cashin
2006-01-03 21:08 ` [PATCH 2.6.15-rc7] aoe [7/7]: update driver version number Ed L. Cashin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox