From: "Ed L. Cashin" <ecashin@coraid.com>
To: linux-kernel@vger.kernel.org
Cc: ecashin@coraid.com, Greg K-H <greg@kroah.com>
Subject: [PATCH 2.6.15-rc7] aoe [1/7]: zero packet data after skb allocation
Date: Tue, 03 Jan 2006 16:05:03 -0500 [thread overview]
Message-ID: <87hd8l2fb4.fsf@coraid.com> (raw)
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>
next reply other threads:[~2006-01-03 21:29 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-01-03 21:05 Ed L. Cashin [this message]
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87hd8l2fb4.fsf@coraid.com \
--to=ecashin@coraid.com \
--cc=greg@kroah.com \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox