projects
/
GitHub
/
MotorolaMobilityLLC
/
kernel-slsi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a1a051b
)
[PATCH] aoe [1/8]: zero packet data after skb allocation
author
Ed L. Cashin
<ecashin@coraid.com>
Thu, 19 Jan 2006 17:37:24 +0000
(12:37 -0500)
committer
Greg Kroah-Hartman
<gregkh@suse.de>
Fri, 24 Mar 2006 06:01:55 +0000
(22:01 -0800)
Zero the data in new socket buffers to prevent leaking information.
Signed-off-by: "Ed L. Cashin" <ecashin@coraid.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/block/aoe/aoecmd.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/block/aoe/aoecmd.c
b/drivers/block/aoe/aoecmd.c
index 326ca3876b685f9243aafbea06cfd43c00b654a0..4ab01ce5cf361b73b98e50b5f83a32b4d10afc07 100644
(file)
--- a/
drivers/block/aoe/aoecmd.c
+++ b/
drivers/block/aoe/aoecmd.c
@@
-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