public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: OGAWA Hirofumi <hirofumi@mail.parknet.co.jp>
To: Alexander Griesser <tuxx@aon.at>
Cc: "Mario 'BitKoenig' Holbe" <Mario.Holbe@RZ.TU-Ilmenau.DE>,
	linux-kernel@vger.kernel.org
Subject: Re: vfat: attempt to access beyond end of device
Date: 14 Jul 2001 00:13:40 +0900	[thread overview]
Message-ID: <87y9pslv4r.fsf@devron.myhome.or.jp> (raw)
In-Reply-To: <20010712141653.A483@c239-1.fem.tu-ilmenau.de> <87hewi2bgh.fsf@devron.myhome.or.jp> <20010712231830.A17654@aon.at>
In-Reply-To: <20010712231830.A17654@aon.at>

Hi,

Alexander Griesser <tuxx@aon.at> writes:

> When I try to write new files on it, I get:
> kernel: attempt to access beyond end of device
> kernel: 16:01: rw=0, want=2081231810, limit=80035798
> 
> According to his Problewm:
> Shouldn't an "int" be enough?
> 
> 2^31 = 2147483648
> And he "wants": 2081231810
> 
> Should do, or did I miss something?

kernel: attempt to access beyond end of device
kernel: 16:01: rw=0, want=2081231810, limit=80035798
kernel: dev = 16:01, ino = -2120058812
                           ^^^^^^^^^^^^
kernel: Filesystem panic (dev 16:01).

i_pos is -2120058812.

    fat_write_inode()
        i_pos = -2120058812;                      /* -2120058812 */
        fat_bread(sb, i_pos >> 4);                /* -132503676 */
    ...
    getblk()
        blocknr = block;                          /* 4162463620 */
    ...
    submit_bh()
        bh->b_rsector = bh->b_blocknr * count;
    generic_make_request()
        unsigned long sector = bh->b_rsector;

        printk(KERN_INFO "%s: rw=%d, want=%ld, limit=%d\n",
               kdevname(bh->b_rdev), rw,
               (sector + count)>>1, minorsize);   /* 2081231810 */

Thanks.
-- 
OGAWA Hirofumi <hirofumi@mail.parknet.co.jp>


      reply	other threads:[~2001-07-13 15:14 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-07-12 12:16 vfat: attempt to access beyond end of device Mario 'BitKoenig' Holbe
2001-07-12 19:29 ` OGAWA Hirofumi
2001-07-12 21:18   ` Alexander Griesser
2001-07-13 15:13     ` OGAWA Hirofumi [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=87y9pslv4r.fsf@devron.myhome.or.jp \
    --to=hirofumi@mail.parknet.co.jp \
    --cc=Mario.Holbe@RZ.TU-Ilmenau.DE \
    --cc=linux-kernel@vger.kernel.org \
    --cc=tuxx@aon.at \
    /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