Subject: kern/32667: LFS kernel panic
To: None <kern-bug-people@netbsd.org, gnats-admin@netbsd.org,>
From: None <ykomatsu@akaumigame.org>
List: netbsd-bugs
Date: 01/29/2006 23:15:00
>Number:         32667
>Category:       kern
>Synopsis:       LFS kernel panic
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Jan 29 23:15:00 +0000 2006
>Originator:     Yoshito Komatsu <ykomatsu@akaumigame.org>
>Release:        NetBSD 3.99.15
>Organization:
>Environment:
System: NetBSD sv9.ln.akaumigame.org 3.99.15 NetBSD 3.99.15 (GENERIC) #0: Thu Jan 26 09:04:29 UTC 2006 ykomatsu@sv9.ln.akaumigame.org:/usr/obj/sys/arch/i386/compile/GENERIC i386
Architecture: i386
Machine: i386
>Description:
        When I tried to use LFS on root partition,
        I got a kernel panic.
        I use NetBSD current i386 (GENERIC) 2006/01/28.

        First, I installed NetBSD on FFS partition temporarily.
        And I booted NetBSD from FFS partition
        and I made LFS partition and installed NetBSD
        into LFS partition.
        At that time, no kernel panic occurred.

        But when I was booting NetBSD from LFS partition,
        I always got a kernel panic.

        uvm_fault(0xc088a4c0, 0, 0, 2) -> 0xe
        kernel: supervisor trap page fault, code=0
        Stopped in pid 15.1 (ioflush) at        netbsd:getnewbuf+0xe7:  movl %edx,0(%
        eax)
        db>
        db> trace
        getnewbuf(0,0,0,0,c2f06000) at netbsd:getnewbuf+0xe7
        getblk(cc52df18,115e16,0,400,0) at netbsd:getblk+0x176
        lfs_writeinode(c2f06000,ccf63f68,cc52eed8,1,400) at netbsd:lfs_writeinode+0xf7
        lfs_segwrite(c2f08000,5,c080dce4,c2a1dd00,206) at netbsd:lfs_segwrite+0x24c
        lfs_sync(c2f08000,3,cc520f6c,cc52b7bc,ffffffff) at netbsd:lfs_sync+0x4f
        sync_fsync(ccefbf14,0,ccefbf3c,c0404aa4,c0650020) at netbsd:sync_fsync+0x8e
        VOP_FSYNC(ccf368a0,cc520f6c,8,0,0) at netbsd:VOP_FSYNC+0x4c
        sched_sync(cc52b7bc,961000,96a000,0,c0100321) at netbsd:sched_sync+0x1b3
        db>
        getnewbuf(0,0,0,0,c2f06000) at netbsd:getnewbuf+0xe7
        getblk(cc52df18,115e16,0,400,0) at netbsd:getblk+0x176
        lfs_writeinode(c2f06000,ccf63f68,cc52eed8,1,400) at netbsd:lfs_writeinode+0xf7
        lfs_segwrite(c2f08000,5,c080dce4,c2a1dd00,206) at netbsd:lfs_segwrite+0x24c
        lfs_sync(c2f08000,3,cc520f6c,cc52b7bc,ffffffff) at netbsd:lfs_sync+0x4f
        sync_fsync(ccefbf14,0,ccefbf3c,c0404aa4,c0650020) at netbsd:sync_fsync+0x8e
        VOP_FSYNC(ccf368a0,cc520f6c,8,0,0) at netbsd:VOP_FSYNC+0x4c
        sched_sync(cc52b7bc,961000,96a000,0,c0100321) at netbsd:sched_sync+0x1b3
        db>

        # cat /etc/fstab

        /dev/wd0a / lfs rw 0 0
        /dev/wd0b none swap sw 0 0
        /kern /kern kernfs rw 0 0
        #
>How-To-Repeat:
        Boot NetBSD from LFS partition.
>Fix:
        ...