cvs commit: src/sys/kern kern_sysctl.c

Bruce M Simpson bms at FreeBSD.org
Sun Oct 5 02:37:48 PDT 2003


bms         2003/10/05 02:37:47 PDT

  FreeBSD src repository

  Modified files:
    sys/kern             kern_sysctl.c 
  Log:
  Fix a security problem in sysctl() the long way round.
  
  Use pre-emption detection to avoid the need for wiring a userland buffer
  when copying opaque data structures.
  
  sysctl_wire_old_buffer() is now a no-op. Other consumers of this
  API should use pre-emption detection to notice update collisions.
  
  vslock() and vsunlock() should no longer be called by any code
  and should be retired in subsequent commits.
  
  Discussed with: pete, phk
  MFC after:      1 week
  
  Revision  Changes    Path
  1.147     +14 -18    src/sys/kern/kern_sysctl.c


More information about the cvs-src mailing list