🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: net.bugs.2bsd
Article #10

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

#10
From: ucbvaxdist2
Date: Sat, 12 Dec 1981 04:40
21 lines
921 bytes
	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
Technical Details
Message-ID: <anews.Aucbvax.5455>
Path: arc1-ca.pugleaf.net!utzoo!decvax!ucbvax!dist2

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!decvax!ucbvax!dist2
From: ucbvax!dist2
Newsgroups: net.bugs.2bsd
Subject: IMPORTANT FIX:  a bug in nami which may damage file systems
Date: Sat, 12 Dec 1981 04:40:22 +0000
Message-ID: <anews.Aucbvax.5455>