IMPORTANT FIX: a bug in nami which may damage file systems

utzoo!decvax!ucbvax!dist2 utzoo!decvax!ucbvax!dist2
Sat Dec 12 04:40:22 AEST 1981


	The qcopy routine of nami.c sets i_count to 250 if it exceeds
255.  This ultimately causes the quota node to be deallocated at a
time when there are still valid pointers to it.  A later attempt to
change the node will cause the first block pointer of some other inode
to be incremented or decremented.  The fixes are:

	diff kernel/sys/sys/nami.c.old kernel/sys/sys/nami.c
	358,359d357
	< 	if (++(qp->i_count) == 0)
	< 		qp->i_count = 250;

	diff kernel/include/sys/inode.h.old kernel/include/sys/inode.h
	37c37
	< 	char	i_count;	/* reference count */
	---
	> 	int	i_count;	/* reference count */


These changes should be made to all tapes written before 12/12/81.

			Carl



More information about the Comp.bugs.2bsd mailing list