cvs commit: src/sys/kern

Matthew Dillon dillon at crater.dragonflybsd.org
Sat Nov 20 12:35:54 PST 2004


dillon      2004/11/20 12:35:33 PST

DragonFly src repository

  Modified files:
    sys/kern             uipc_syscalls.c 
  Log:
  sendfile() was seriously broken.  It was calling vm_page_free() without
  busying the underlying page, causing a panic on kernels compiled with
  INVARIANTS and potentially corrupting data on kernels compiles without
  INVARIANTS.  Change the calls to vm_page_try_to_free().
  
  Symtoms: system crash when Apache2 tries to use sendfile() to send large files.
  Reported-by: Jedi/Sector One <j at xxxxxxxxxxxx>
  
  Revision  Changes    Path
  1.45      +5 -13     src/sys/kern/uipc_syscalls.c


http://www.dragonflybsd.org/cvsweb/src/sys/kern/uipc_syscalls.c.diff?r1=1.44&r2=1.45&f=u





More information about the Commits mailing list