summaryrefslogtreecommitdiff
path: root/sys/ufs
diff options
context:
space:
mode:
authorPedro Martelletto <pedro@cvs.openbsd.org>2007-04-23 10:18:31 +0000
committerPedro Martelletto <pedro@cvs.openbsd.org>2007-04-23 10:18:31 +0000
commita8d23536a47053c6796654fde2dc56415a49c7b9 (patch)
tree3aebd3ba0c95eb609aef1f00d1ae5762d0078e3b /sys/ufs
parent36bca77f437c4b4c34d922559b78c02e05542848 (diff)
Remove 'cg_space' from 'struct cg'. Due to the alignment on 64-bit
architectures, CGSIZE() was returning something sligthly over one block. The 'new' fsck would round this value up to a fragment boundary, and end up trying to access memory beyond allocated space. From mickey@, okay pedro@, millert@ and otto@.
Diffstat (limited to 'sys/ufs')
-rw-r--r--sys/ufs/ffs/fs.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/ufs/ffs/fs.h b/sys/ufs/ffs/fs.h
index 23c6b548e4c..545b7f15d72 100644
--- a/sys/ufs/ffs/fs.h
+++ b/sys/ufs/ffs/fs.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: fs.h,v 1.28 2007/04/20 16:30:31 millert Exp $ */
+/* $OpenBSD: fs.h,v 1.29 2007/04/23 10:18:30 pedro Exp $ */
/* $NetBSD: fs.h,v 1.6 1995/04/12 21:21:02 mycroft Exp $ */
/*
@@ -397,7 +397,6 @@ struct cg {
int32_t cg_sparecon32[3]; /* reserved for future use */
int64_t cg_ffs2_time; /* time last written */
int64_t cg_sparecon64[3]; /* reserved for future use */
- u_int8_t cg_space[1]; /* space for cylinder group maps */
/* actually longer */
};