From: Robert Peterson <rpeterso@redhat.com>
To: cluster-devel.redhat.com
Subject: [Cluster-devel] [PATCH] dlm: Fix uninitialised variable in receiving
Date: Tue, 13 Mar 2007 12:11:44 -0500 [thread overview]
Message-ID: <45F6DB50.4040805@redhat.com> (raw)
In-Reply-To: <45F6DA9D.7080206@redhat.com>
Patrick Caulfield wrote:
> The length of the second element of the kvec array was not initialised before
> being added to the first one. This could cause invalid lengths to be passed to
> kernel_recvmsg
>
> Signed-Off-By: Patrick Caulfield <pcaulfie@redhat.com>
>
>
> ------------------------------------------------------------------------
>
> diff --git a/fs/dlm/lowcomms-tcp.c b/fs/dlm/lowcomms-tcp.c
> index 07e0a12..9bfe7fb 100644
> --- a/fs/dlm/lowcomms-tcp.c
> +++ b/fs/dlm/lowcomms-tcp.c
> @@ -299,6 +299,7 @@ static int receive_from_sock(struct connection *con)
> */
> iov[0].iov_len = con->cb.base - cbuf_data(&con->cb);
> iov[0].iov_base = page_address(con->rx_page) + cbuf_data(&con->cb);
> + iov[1].iov_len = 0;
> nvec = 1;
>
> /*
ACK
This is a necessary fix.
Bob Peterson
Red Hat Cluster Suite
next prev parent reply other threads:[~2007-03-13 17:11 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-03-13 17:08 [Cluster-devel] [PATCH] dlm: Fix uninitialised variable in receiving Patrick Caulfield
2007-03-13 17:11 ` Robert Peterson [this message]
2007-03-13 17:34 ` Patrick Caulfield
2007-03-14 11:58 ` Steven Whitehouse
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=45F6DB50.4040805@redhat.com \
--to=rpeterso@redhat.com \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.