Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 2 Sep 2007 09:59:33 +0000 (UTC)
From:      Robert Watson <rwatson@FreeBSD.org>
To:        src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   cvs commit: src/sys/kern kern_sysctl.c
Message-ID:  <200709020959.l829xYGo077991@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
rwatson     2007-09-02 09:59:33 UTC

  FreeBSD src repository

  Modified files:
    sys/kern             kern_sysctl.c 
  Log:
  In userland_sysctl(), call useracc() with the actual newlen value to be
  used, rather than the one passed via 'req', which may not reflect a
  rewrite.  This call to useracc() is redundant to validation performed by
  later copyin()/copyout() calls, so there isn't a security issue here,
  but this could technically lead to excessive validation of addresses if
  the length in newlen is shorter than req.newlen.
  
  Approved by:    re (kensmith)
  Reviewed by:    jhb
  Submitted by:   Constantine A. Murenin <cnst+freebsd@bugmail.mojo.ru>
  Sponsored by:   Google Summer of Code 2007
  
  Revision  Changes    Path
  1.177     +1 -1      src/sys/kern/kern_sysctl.c



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