cvs commit: src/sys/kern sys_pipe.c

Matthew Dillon dillon at crater.dragonflybsd.org
Tue May 11 15:49:56 PDT 2004


dillon      2004/05/11 15:48:53 PDT

DragonFly src repository

  Modified files:
    sys/kern             sys_pipe.c 
  Log:
  Fix a bug in sys/pipe.c.  xio_init_ubuf() might not be able to load up the
  requested number of bytes even if the request is limited to XIO_INTERNAL_SIZE
  if the user buffer base is not page-aligned.  XIO will set xio_bytes to the
  actual size of the buffer.
  
  Note that this bug was never exercised due to the 64KB pipe kmem buffer size
  limit, so it could not have been the cause of recent problems.
  
  Use kmem_alloc_nofault() instead of kmem_alloc_pageable() for the kmem
  reservation.  This is more correct but should have no actual effect on
  the system.
  
  Revision  Changes    Path
  1.21      +4 -4      src/sys/kern/sys_pipe.c


http://www.dragonflybsd.org/cvsweb/src/sys/kern/sys_pipe.c.diff?r1=1.20&r2=1.21&f=h





More information about the Commits mailing list