Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 5 Jun 1998 20:06:58 -0700 (PDT)
From:      Bruce Evans <bde@FreeBSD.ORG>
To:        cvs-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG, cvs-sys@FreeBSD.ORG
Subject:   cvs commit: src/sys/kern subr_diskslice.c
Message-ID:  <199806060306.UAA06484@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199806060306.UAA06484>