DragonFly BSD
DragonFly commits List (threaded) for 2003-10
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

cvs commit: src/sys/kern kern_subr.c src/sys/sys uio.h src/sys/vfs/procfs procfs_dbregs.c procfs_fpregs.c procfs_regs.c procfs_rlimit.c procfs_status.c


From: David Rhodus <drhodus@xxxxxxxxxxxxxxxxxxxxxxx>
Date: Thu, 2 Oct 2003 12:21:07 -0700 (PDT)

drhodus     2003/10/02 12:21:07 PDT

  Modified files:
    sys/kern             kern_subr.c 
    sys/sys              uio.h 
    sys/vfs/procfs       procfs_dbregs.c procfs_fpregs.c 
                         procfs_regs.c procfs_rlimit.c 
                         procfs_status.c 
  Log:
   Introduce a uiomove_frombuf helper routine that handles computing and
   validating the offset within a given memory buffer before handing the
   real work off to uiomove(9).
  
   Use uiomove_frombuf in procfs to correct several issues with
   integer arithmetic that could result in underflows/overflows.  As a
   side-effect, the code is significantly simplified.
  
   Add additional sanity checks when computing a memory allocation size
   in pfs_read.
  
   Reported by:    Joost Pol <joost@xxxxxxx>  (integer underflows/overflows)
   Originated from: FreeBSD
  
  Revision  Changes    Path
  1.11      +23 -0     src/sys/kern/kern_subr.c
  1.5       +1 -0      src/sys/sys/uio.h
  1.5       +2 -6      src/sys/vfs/procfs/procfs_dbregs.c
  1.5       +2 -6      src/sys/vfs/procfs/procfs_fpregs.c
  1.5       +1 -4      src/sys/vfs/procfs/procfs_regs.c
  1.4       +1 -2      src/sys/vfs/procfs/procfs_rlimit.c
  1.5       +2 -2      src/sys/vfs/procfs/procfs_status.c




[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]