cvs commit: src/sys/fs/procfs procfs_dbregs.c procfs_fpregs.c procfs_regs.c src/sys/fs/pseudofs pseudofs_vnops.c src/sys/kern kern_subr.c src/sys/sys uio.h

Jacques Vidrine nectar at FreeBSD.org
Thu Oct 2 08:00:57 PDT 2003


nectar      2003/10/02 08:00:55 PDT

  FreeBSD src repository

  Modified files:
    sys/fs/procfs        procfs_dbregs.c procfs_fpregs.c 
                         procfs_regs.c 
    sys/fs/pseudofs      pseudofs_vnops.c 
    sys/kern             kern_subr.c 
    sys/sys              uio.h 
  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.
  
  Submitted by:   rwatson  (original uiomove_frombuf -- bugs are mine :-)
  Reported by:    Joost Pol <joost at pine.nl>  (integer underflows/overflows)
  
  Revision  Changes    Path
  1.23      +3 -15     src/sys/fs/procfs/procfs_dbregs.c
  1.29      +3 -15     src/sys/fs/procfs/procfs_fpregs.c
  1.28      +3 -15     src/sys/fs/procfs/procfs_regs.c
  1.42      +17 -15    src/sys/fs/pseudofs/pseudofs_vnops.c
  1.77      +23 -0     src/sys/kern/kern_subr.c
  1.28      +1 -0      src/sys/sys/uio.h


More information about the cvs-src mailing list