Subject: kern/28712: ext2fs hang on mount after fsck
To: None <kern-bug-people@netbsd.org, gnats-admin@netbsd.org,>
From: None <joff@embeddedARM.com>
List: netbsd-bugs
Date: 12/19/2004 16:30:00
>Number:         28712
>Category:       kern
>Synopsis:       ext2fs hang on mount after fsck
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Dec 19 16:30:00 +0000 2004
>Originator:     Jesse Off
>Release:        2.99.11
>Organization:
Technologic Systems
>Environment:
>Description:
Mounting ext2fs as root filesystem, fsck_ext2fs hangs after "MARKING FILESYSTEM CLEAN" in the mount syscall.

trace: pid 25 at 0xc2d4aba8
netbsd:mi_switch+0x10
        scp=0xc02a9c98 rlv=0xc02a9634 (netbsd:ltsleep+0x3a8)
        rsp=0xc2d4abac rfp=0xc2d4abe0
        r10=0x00000000 r9=0xc0388698
        r8=0x00000004 r7=0xc113ae14 r6=0xc2d38004 r5=0x00000000
        r4=0xc2c5c554
netbsd:ltsleep+0x10
        scp=0xc02a929c rlv=0xc02daa54 (netbsd:vinvalbuf+0x234)
        rsp=0xc2d4abe4 rfp=0xc2d4ac60
        r10=0xc2d38004 r9=0x00000000
        r8=0x00000000 r7=0xc23c4000 r6=0xc2c8d000 r5=0x00000000
        r4=0x00000000
netbsd:vinvalbuf+0x10
        scp=0xc02da830 rlv=0xc0259444 (netbsd:ext2fs_reload+0x324)
        rsp=0xc2d4ac64 rfp=0xc2d4ace0
        r10=0x00000000 r9=0xc2d11c94
        r8=0xc112a000 r7=0xc2c8d000 r6=0x000007e8 r5=0xc112fee0
        r4=0x0001b307
netbsd:ext2fs_reload+0x10
        scp=0xc0259130 rlv=0xc02590dc (netbsd:ext2fs_mount+0x4d8)
        rsp=0xc2d4ace4 rfp=0xc2d4adb8
        r10=0xc1128400 r9=0xc2d38004
        r8=0xc2c8d0a8 r7=0x00000000 r6=0xc2d4adf4 r5=0xc112e000
        r4=0xbfffe568
netbsd:ext2fs_mount+0x10
        scp=0xc0258c14 rlv=0xc02de3e8 (netbsd:sys_mount+0x218)
        rsp=0xc2d4adbc rfp=0xc2d4aee0
        r10=0x00005001 r9=0xc2d4adf4
        r8=0xc2c8d0a8 r7=0xc112e000 r6=0xc2d38004 r5=0xc2d4afb8
        r4=0x00000000
netbsd:sys_mount+0x10
        scp=0xc02de1e0 rlv=0xc0327ac4 (netbsd:syscall_plain+0x150)
        rsp=0xc2d4aee4 rfp=0xc2d4af60
        r10=0x00000004 r9=0x00000000
        r8=0xc2c5c554 r7=0xc039a758 r6=0xc2d4afb4 r5=0x00000004
        r4=0xefa00015
netbsd:syscall_plain+0x10
        scp=0xc0327984 rlv=0xc0327900 (netbsd:swi_handler+0x84)
        rsp=0xc2d4af64 rfp=0xc2d4afb0
        r10=0x0001d898 r9=0x00000000
        r8=0x00000001 r7=0xc041500c r6=0xc2d38004 r5=0x00000000
        r4=0xc2c5c554
netbsd:swi_handler+0x10
        scp=0xc032788c rlv=0xc032ab3c (netbsd:swi_entry+0x28)
        rsp=0xc2d4afb4 rfp=0xbfffeeb4
        r8=0x00037456 r7=0x0001d8b8
        r6=0x0001d938 r5=0x0001d1a4 r4=0x0003f0a4
>How-To-Repeat:
Make an ext2fs root filesystem dirty by unmounting uncleanly, and reboot.  fsck_ext2fs hangs forever doing a vinvalbuf()
>Fix:
unknown