Subject: kern/24809: wrong ffs superblock used
To: None <gnats-bugs@gnats.netbsd.org>
From: Juergen Hannken-Illjes <hannken@eis.cs.tu-bs.de>
List: netbsd-bugs
Date: 03/16/2004 20:26:11
>Number:         24809
>Category:       kern
>Synopsis:       A 64k/8k ffs file system uses the wrong super block
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Mar 16 19:27:00 UTC 2004
>Closed-Date:
>Last-Modified:
>Originator:     Juergen Hannken-Illjes
>Release:        NetBSD 1.6ZK
>Organization:
	
>Environment:
	
	
System: NetBSD watcher 1.6ZK NetBSD 1.6ZK (LOCAL) #1: Wed Mar 10 13:37:03 MET 2004 hannken@watcher:/build/local/obj/sys/arch/i386/compile/LOCAL i386
Architecture: i386
Machine: i386
>Description:
	Create a ffs file system with 64k blocks, 8k frags. See how the kernel
	reads the 1st alternate super block instead of the super block.
	The 1st alternate is at block 128 which is also the super block
	address for UFS2.

	These userland utilities might be affected (grep SBLOCKSEARCH ...):

	distrib/utils/sysinst/label.c
	sbin/badsect/badsect.c
	sbin/clri/clri.c
	sbin/dump/ffs_inode.c
	sbin/fsck_ffs/setup.c
	sbin/fsirand/fsirand.c
	sbin/newfs/mkfs.c
	sbin/tunefs/tunefs.c
	sbin/cgdconfig/cgdconfig.c
	sbin/resize_ffs/resize_ffs.c
	sys/arch/x68k/stand/boot_ufs/readufs_ffs.c
	sys/lib/libsa/ufs.c
	sys/ufs/ffs/ffs_vfsops.c
	sys/ufs/ffs/fs.h
	usr.sbin/dumpfs/dumpfs.c
	usr.sbin/quot/quot.c
	usr.sbin/quotacheck/quotacheck.c
	usr.sbin/installboot/ffs.c
	
>How-To-Repeat:
	
>Fix:
	
>Release-Note:
>Audit-Trail:
>Unformatted: