From owner-cvs-sys Fri Jun 5 20:08:26 1998 Return-Path: Received: (from daemon@localhost) by hub.freebsd.org (8.8.8/8.8.8) id UAA11118 for cvs-sys-outgoing; Fri, 5 Jun 1998 20:08:26 -0700 (PDT) (envelope-from owner-cvs-sys) Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id UAA11023; Fri, 5 Jun 1998 20:07:58 -0700 (PDT) (envelope-from bde@FreeBSD.org) From: Bruce Evans Received: (from bde@localhost) by freefall.freebsd.org (8.8.8/8.8.5) id UAA06484; Fri, 5 Jun 1998 20:06:58 -0700 (PDT) Date: Fri, 5 Jun 1998 20:06:58 -0700 (PDT) Message-Id: <199806060306.UAA06484@freefall.freebsd.org> To: cvs-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG, cvs-sys@FreeBSD.ORG Subject: cvs commit: src/sys/kern subr_diskslice.c Sender: owner-cvs-sys@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk bde 1998/06/05 20:06:57 PDT Modified files: sys/kern subr_diskslice.c Log: Don't attempt to copy the whole slices "struct" for DIOCGSLICEINFO. The slices "struct" isn't really a struct; we allocate only part of it in the fully dangerously dedicated case. Since the "struct" is malloced, the page beyond it may not be mapped, so attempts to copy it would crash. This problem became larger when the full struct was bloated from < 1K to > 3K by the addition of (mostly unused) DEVFS tokens some time before 2.2.0 was released. Revision Changes Path 1.46 +3 -2 src/sys/kern/subr_diskslice.c