Bug 10987

Summary: kernel panic on halt
Product: File System Reporter: Oliver Pinter (oliver.pntr)
Component: XFSAssignee: XFS Guru (xfs-masters)
Status: CLOSED PATCH_ALREADY_AVAILABLE    
Severity: normal CC: alan, bunk
Priority: P1    
Hardware: All   
OS: Linux   
Kernel Version: 2.6.26-rc7 Subsystem:
Regression: Yes Bisected commit-id:

Description Oliver Pinter 2008-06-26 06:04:02 UTC
Latest working kernel version: 2.6.24
Earliest failing kernel version: 2.6.25
Distribution: Debian Lenny
Hardware Environment: i386
Software Environment: GCC-4.3.1 (Debian 4.3.1-2)
Problem Description:

this problem came out on two machines, there is debian on all two however

v2.6.25:
http://students.zipernowsky.hu/~oliverp/upload/xfs_error/dsc00775.jpg
 http://students.zipernowsky.hu/~oliverp/upload/xfs_error/dsc00776.jpg
 http://students.zipernowsky.hu/~oliverp/upload/xfs_error/dsc00777.jpg
 http://students.zipernowsky.hu/~oliverp/upload/xfs_error/dsc00778.jpg
 http://students.zipernowsky.hu/~oliverp/upload/xfs_error/dsc00779.jpg
 http://students.zipernowsky.hu/~oliverp/upload/xfs_error/dsc00780.jpg
 http://students.zipernowsky.hu/~oliverp/upload/xfs_error/dsc00781.jpg

v2.6.26-rc7:
http://students.zipernowsky.hu/~oliverp/upload/xfs_error_2.6.26/dsc00807.jpg
 http://students.zipernowsky.hu/~oliverp/upload/xfs_error_2.6.26/dsc00808.jpg
 http://students.zipernowsky.hu/~oliverp/upload/xfs_error_2.6.26/dsc00809.jpg
 http://students.zipernowsky.hu/~oliverp/upload/xfs_error_2.6.26/dsc00810.jpg
 http://students.zipernowsky.hu/~oliverp/upload/xfs_error_2.6.26/dsc00811.jpg

Steps to reproduce:
only type init 0 or halt, and in remount fs ro init script paniced the kernel

this is the snip of the script:
        MOUNT_FORCE_OPT=
        [ "$(uname -s)" = "GNU/kFreeBSD" ] && MOUNT_FORCE_OPT=-f
        # This:
        #     mount -n -o remount,ro /
        # will act on a bind mount of / if there is one.
        # See #339023 and the comment in checkroot.sh
        mount    $MOUNT_FORCE_OPT -n -o remount,ro -t dummytype dummydev / 2>/dev/null \
        || mount $MOUNT_FORCE_OPT -n -o remount,ro              dummydev / 2>/dev/null \
        || mount $MOUNT_FORCE_OPT -n -o remount,ro                       /
        ES=$?
        [ "$VERBOSE" = no ] || log_action_end_msg $ES
}
Comment 2 Timothy Shimmin 2008-06-26 23:23:48 UTC
As already noted, Dave (dgc) replied about vfs fix for this:
http://lkml.org/lkml/2008/3/7/356

For SGI record, this was discovered in sgi-bug#983728,
sgi-bug#981671 and were rejected with vfs fix in 2.6.26-rc1.

--Tim