All of lore.kernel.org
 help / color / mirror / Atom feed
* [CHECKER] crash + fsck cause file systems to contain loops (msdos and vfat, 2.6.11)
@ 2005-03-12 10:29 Junfeng Yang
  2005-03-12 10:41 ` Andrew Morton
  0 siblings, 1 reply; 7+ messages in thread
From: Junfeng Yang @ 2005-03-12 10:29 UTC (permalink / raw)
  To: chaffee; +Cc: mc, Linux Kernel Mailing List


Hi,

We are from the Stanford Checker team and are currently developing a file
system checker call FiSC.  FiSC mainly focuses on finding crash-recovery
errors.  We applied it to FiSC and found a serious error where crash then
recovery cause the file system to contain loops.

To reproduce the warning, download and run our test cases at

http://fisc.stanford.edu/bug7/crash.c (for msdos)
http://fisc.stanford.edu/bug10/crash.c (for vfat)

you can also find the crashed disk images in the corresponding
directories.

We are not sure if these are bugs or not.  Your
confirmations/clarifications on this are well appreciated.

-Junfeng


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [CHECKER] crash + fsck cause file systems to contain loops (msdos and vfat, 2.6.11)
  2005-03-12 10:29 [CHECKER] crash + fsck cause file systems to contain loops (msdos and vfat, 2.6.11) Junfeng Yang
@ 2005-03-12 10:41 ` Andrew Morton
  2005-03-12 11:21   ` Junfeng Yang
  0 siblings, 1 reply; 7+ messages in thread
From: Andrew Morton @ 2005-03-12 10:41 UTC (permalink / raw)
  To: Junfeng Yang; +Cc: chaffee, mc, linux-kernel, OGAWA Hirofumi

Junfeng Yang <yjf@stanford.edu> wrote:
>
> We are from the Stanford Checker team and are currently developing a file
>  system checker call FiSC.  FiSC mainly focuses on finding crash-recovery
>  errors.  We applied it to FiSC and found a serious error where crash then
>  recovery cause the file system to contain loops.
> 
>  To reproduce the warning, download and run our test cases at
> 
>  http://fisc.stanford.edu/bug7/crash.c (for msdos)
>  http://fisc.stanford.edu/bug10/crash.c (for vfat)
> 
>  you can also find the crashed disk images in the corresponding
>  directories.
> 
>  We are not sure if these are bugs or not.  Your
>  confirmations/clarifications on this are well appreciated.

Linus's current tree includes support for `mount -o sync' on the msdos and
vfat filesystems.


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [CHECKER] crash + fsck cause file systems to contain loops (msdos and vfat, 2.6.11)
  2005-03-12 10:41 ` Andrew Morton
@ 2005-03-12 11:21   ` Junfeng Yang
  2005-03-12 14:28     ` OGAWA Hirofumi
  0 siblings, 1 reply; 7+ messages in thread
From: Junfeng Yang @ 2005-03-12 11:21 UTC (permalink / raw)
  To: Andrew Morton; +Cc: chaffee, mc, linux-kernel, OGAWA Hirofumi

> Linus's current tree includes support for `mount -o sync' on the msdos and
> vfat filesystems.

Thanks Andrew.  I can just do a bk clone from
http://linux.bkbits.net/linux-2.6 to get Linus's current tree, right?

The warning reported here doesn't need mount -o sync to trigger though.
A simple crash on a default mounted FS can usually cause the FS loop.

(Also, I realized I made many typos in my report --- this implies I'm
tired and should probably get some sleep :)


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [CHECKER] crash + fsck cause file systems to contain loops (msdos and vfat, 2.6.11)
  2005-03-12 11:21   ` Junfeng Yang
@ 2005-03-12 14:28     ` OGAWA Hirofumi
  2005-03-13  5:53       ` Junfeng Yang
  0 siblings, 1 reply; 7+ messages in thread
From: OGAWA Hirofumi @ 2005-03-12 14:28 UTC (permalink / raw)
  To: Junfeng Yang; +Cc: Andrew Morton, chaffee, mc, linux-kernel

Junfeng Yang <yjf@stanford.edu> writes:

>> Linus's current tree includes support for `mount -o sync' on the msdos and
>> vfat filesystems.
>
> Thanks Andrew.  I can just do a bk clone from
> http://linux.bkbits.net/linux-2.6 to get Linus's current tree, right?
>
> The warning reported here doesn't need mount -o sync to trigger though.
> A simple crash on a default mounted FS can usually cause the FS loop.
>
> (Also, I realized I made many typos in my report --- this implies I'm
> tired and should probably get some sleep :)

Interesting.

$ /devel/linux/works/fatfs/fatfstools/dosfstools-2.10/dosfsck/dosfsck -a bug10/crash.img
dosfsck 2.10, 22 Sep 2003, FAT32, LFN
/0006
  Directory does not have any cluster  ("." and "..").
  Dropping it.
Reclaimed 3 unused clusters (6144 bytes) in 3 chains.
Performing changes.
crash.img: 8 files, 3/8167 clusters

My fixed dosfsck found the above corruption in bug10/crash.img (bug7
has same corruption). And probably you can see root directory via 0006
directory, I guess your testing tree didn't have my patches yet (seems
old behavior).

BTW, what mount options did you use?

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

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [CHECKER] crash + fsck cause file systems to contain loops (msdos and vfat, 2.6.11)
  2005-03-12 14:28     ` OGAWA Hirofumi
@ 2005-03-13  5:53       ` Junfeng Yang
  2005-03-13 11:52         ` OGAWA Hirofumi
  2005-03-13 13:45         ` OGAWA Hirofumi
  0 siblings, 2 replies; 7+ messages in thread
From: Junfeng Yang @ 2005-03-13  5:53 UTC (permalink / raw)
  To: OGAWA Hirofumi; +Cc: Andrew Morton, chaffee, mc, Linux Kernel Mailing List

> Interesting.
>
> $ /devel/linux/works/fatfs/fatfstools/dosfstools-2.10/dosfsck/dosfsck -a bug10/crash.img
> dosfsck 2.10, 22 Sep 2003, FAT32, LFN
> /0006
>   Directory does not have any cluster  ("." and "..").
>   Dropping it.
> Reclaimed 3 unused clusters (6144 bytes) in 3 chains.
> Performing changes.
> crash.img: 8 files, 3/8167 clusters
>
> My fixed dosfsck found the above corruption in bug10/crash.img (bug7
> has same corruption). And probably you can see root directory via 0006
> directory, I guess your testing tree didn't have my patches yet (seems
> old behavior).

I'm using dosfsck 2.10, 22 Sep 2003, FAT32, LFN, and yes, I do see root
directory after I run dosfsck on the crashed disk image.  I'm checking
2.6.11.  By "your testing tree didn't have my patches yet", you mean you
have the patch but haven't made it public?  This "testing tree" is the
Linux source tree?  Can you be a little bit more specific?

> BTW, what mount options did you use?

I just used default mount.  mount -t msdos source target
no -o

Thanks,
-Junfeng


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [CHECKER] crash + fsck cause file systems to contain loops (msdos and vfat, 2.6.11)
  2005-03-13  5:53       ` Junfeng Yang
@ 2005-03-13 11:52         ` OGAWA Hirofumi
  2005-03-13 13:45         ` OGAWA Hirofumi
  1 sibling, 0 replies; 7+ messages in thread
From: OGAWA Hirofumi @ 2005-03-13 11:52 UTC (permalink / raw)
  To: Junfeng Yang; +Cc: Andrew Morton, chaffee, mc, Linux Kernel Mailing List

Junfeng Yang <yjf@stanford.edu> writes:

> I'm using dosfsck 2.10, 22 Sep 2003, FAT32, LFN, and yes,
> I do see root directory after I run dosfsck on the crashed disk
> image.

You can download fixed version of dosfsck at

  http://user.parknet.co.jp/hirofumi/tmp/fatfsprogs.tar.bz2

(vanilla dosfsck-2.10 doesn't fix this corruption.)

> I'm checking 2.6.11.  By "your testing tree didn't have my
> patches yet", you mean you have the patch but haven't made it
> public?

No. My patches was merged to linus tree at 2 or 3 days ago (merged
after 2.6.11 release).  So, I guessed your tree didn't have my patches
yet.

> This "testing tree" is the Linux source tree? 

Yes.

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

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [CHECKER] crash + fsck cause file systems to contain loops (msdos and vfat, 2.6.11)
  2005-03-13  5:53       ` Junfeng Yang
  2005-03-13 11:52         ` OGAWA Hirofumi
@ 2005-03-13 13:45         ` OGAWA Hirofumi
  1 sibling, 0 replies; 7+ messages in thread
From: OGAWA Hirofumi @ 2005-03-13 13:45 UTC (permalink / raw)
  To: Junfeng Yang; +Cc: Andrew Morton, chaffee, mc, Linux Kernel Mailing List

Junfeng Yang <yjf@stanford.edu> writes:

> Can you be a little bit more specific?

Please try

kernel:
  http://www.kernel.org/pub/linux/kernel/v2.6/linux-2.6.11.tar.gz
                       +
  http://www.kernel.org/pub/linux/kernel/v2.6/snapshots/patch-2.6.11-bk7.bz2
  or later

dosfstools:
  http://user.parknet.co.jp/hirofumi/tmp/fatfsprogs.tar.bz2

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

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2005-03-13 13:45 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-03-12 10:29 [CHECKER] crash + fsck cause file systems to contain loops (msdos and vfat, 2.6.11) Junfeng Yang
2005-03-12 10:41 ` Andrew Morton
2005-03-12 11:21   ` Junfeng Yang
2005-03-12 14:28     ` OGAWA Hirofumi
2005-03-13  5:53       ` Junfeng Yang
2005-03-13 11:52         ` OGAWA Hirofumi
2005-03-13 13:45         ` OGAWA Hirofumi

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.