From: Torsten Hilbrich <torsten.hilbrich@secunet.com>
To: Jeff Moyer <jmoyer@redhat.com>
Cc: linux-ext4@vger.kernel.org, LKML <linux-kernel@vger.kernel.org>,
	Jens Axboe <jaxboe@fusionio.com>, Nick Piggin <npiggin@kernel.dk>
Subject: Re: Kernel 3.3.8 breaks accidental ext3 mount of extended partition
Date: Wed, 20 Jun 2012 08:14:01 +0200	[thread overview]
Message-ID: <4FE16A29.9050508@secunet.com> (raw)
In-Reply-To: <x49ehpbjiyp.fsf@segfault.boston.devel.redhat.com>
Am 19.06.2012 19:43, schrieb Jeff Moyer:
[...]
> diff --git a/fs/buffer.c b/fs/buffer.c
> index 838a9cf..769b30b 100644
> --- a/fs/buffer.c
> +++ b/fs/buffer.c
> @@ -930,7 +930,7 @@ init_page_buffers(struct page *page, struct block_device *bdev,
>  			bh->b_blocknr = block;
>  			if (uptodate)
>  				set_buffer_uptodate(bh);
> -			if (block < end_block)
> +			if (block <= end_block)
>  				set_buffer_mapped(bh);
>  		}
>  		block++;
I can confirm that this patch fixes the problem for my test case too.
Here is the kernel output when performing the mount operation:
attempt to access beyond end of device
sda4: rw=0, want=4, limit=2
EXT3-fs (sda4): error: unable to read superblock
	Torsten
next prev parent reply	other threads:[~2012-06-20  6:14 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-06-18  5:59 Kernel 3.3.8 breaks accidental ext3 mount of extended partition Torsten Hilbrich
2012-06-18 19:03 ` Jeff Moyer
2012-06-19  5:59   ` Torsten Hilbrich
2012-06-19 17:43     ` Jeff Moyer
2012-06-20  6:14       ` Torsten Hilbrich [this message]
2012-06-22  0:12       ` Jan Kara
2012-06-22 12:33         ` Jeff Moyer
2012-06-20 12:18   ` Marcos Mello
2012-06-25 11:34 ` Richard W.M. Jones
2012-06-25 16:38   ` Jeff Moyer
2012-06-25 16:58     ` Richard W.M. Jones
2012-06-25 19:32     ` Richard W.M. Jones
2012-06-25 20:04       ` Jeff Moyer
2012-06-26  6:07     ` Torsten Hilbrich
2012-06-26 13:02       ` Jeff Moyer
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=4FE16A29.9050508@secunet.com \
    --to=torsten.hilbrich@secunet.com \
    --cc=jaxboe@fusionio.com \
    --cc=jmoyer@redhat.com \
    --cc=linux-ext4@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=npiggin@kernel.dk \
    /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).