From: Steven Whitehouse <swhiteho@redhat.com>
To: cluster-devel.redhat.com
Subject: [Cluster-devel] [GFS2 PATCH] GFS2: Fix infinite loop in rbm_find
Date: Wed, 12 Sep 2012 15:16:05 +0100 [thread overview]
Message-ID: <1347459365.2715.8.camel@menhir> (raw)
In-Reply-To: <1168313838.14135115.1347457231752.JavaMail.root@redhat.com>
Hi,
Now in the -nmw git tree. Thanks,
Steve.
On Wed, 2012-09-12 at 09:40 -0400, Bob Peterson wrote:
> Hi,
>
> This patch fixes an infinite loop in gfs2_rbm_find that was introduced
> by the previous patch. The problem occurred when the length was less
> than 3 but the rbm block was byte-aligned, causing it to improperly
> return a extent length of zero, which caused it to spin.
>
> Regards,
>
> Bob Peterson
> Red Hat File Systems
>
> Signed-off-by: Bob Peterson <rpeterso@redhat.com>
> ---
> fs/gfs2/rgrp.c | 1 +
> 1 files changed, 1 insertions(+), 0 deletions(-)
>
> diff --git a/fs/gfs2/rgrp.c b/fs/gfs2/rgrp.c
> index b933cdc..3cc402c 100644
> --- a/fs/gfs2/rgrp.c
> +++ b/fs/gfs2/rgrp.c
> @@ -329,6 +329,7 @@ static u32 gfs2_free_extlen(const struct gfs2_rbm *rrbm, u32 len)
> gfs2_unaligned_extlen(&rbm, 4 - n_unaligned, &len))
> goto out;
>
> + n_unaligned = len & 3;
> /* Start is now byte aligned */
> while (len > 3) {
> start = rbm.bi->bi_bh->b_data;
>
prev parent reply other threads:[~2012-09-12 14:16 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <9895789.14119266.1347456793090.JavaMail.root@redhat.com>
2012-09-12 13:40 ` [Cluster-devel] [GFS2 PATCH] GFS2: Fix infinite loop in rbm_find Bob Peterson
2012-09-12 14:16 ` Steven Whitehouse [this message]
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=1347459365.2715.8.camel@menhir \
--to=swhiteho@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).