mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH 2.6.15-git9] aoe [1/8]: zero packet data after skb allocation
@ 2006-01-19 17:37 Ed L. Cashin
  0 siblings, 0 replies; 2+ messages in thread
From: Ed L. Cashin @ 2006-01-19 17:37 UTC (permalink / raw)
  To: linux-kernel; +Cc: ecashin, Greg K-H

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.


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

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

diff -upr 2.6.15-git9-orig/drivers/block/aoe/aoecmd.c 2.6.15-git9-aoe/drivers/block/aoe/aoecmd.c
--- 2.6.15-git9-orig/drivers/block/aoe/aoecmd.c	2006-01-18 13:22:49.000000000 -0500
+++ 2.6.15-git9-aoe/drivers/block/aoe/aoecmd.c	2006-01-18 13:48:53.000000000 -0500
@@ -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


-- 
  "Ed L. Cashin" <ecashin@coraid.com>

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

* Re: [PATCH 2.6.15-git9] aoe [1/8]: zero packet data after skb allocation
       [not found] <1d5bd928255f552b12b1b329c92257bb@coraid.com>
@ 2006-01-19 22:43 ` Greg KH
  0 siblings, 0 replies; 2+ messages in thread
From: Greg KH @ 2006-01-19 22:43 UTC (permalink / raw)
  To: Ed L. Cashin; +Cc: linux-kernel

On Thu, Jan 19, 2006 at 12:37:24PM -0500, Ed L. Cashin wrote:
> 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.

Ok, now I got them all, sorry about that, slow email system here...

greg k-h

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

end of thread, other threads:[~2006-01-19 22:43 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-01-19 17:37 [PATCH 2.6.15-git9] aoe [1/8]: zero packet data after skb allocation Ed L. Cashin
     [not found] <1d5bd928255f552b12b1b329c92257bb@coraid.com>
2006-01-19 22:43 ` Greg KH

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

Powered by JetHome