Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 25 Mar 2011 16:38:10 +0000 (UTC)
From:      Konstantin Belousov <kib@FreeBSD.org>
To:        cvs-src-old@freebsd.org
Subject:   cvs commit: src/sys/vm vm_fault.c
Message-ID:  <201103251638.p2PGcPYY033393@repoman.freebsd.org>

index | next in thread | raw e-mail

kib         2011-03-25 16:38:10 UTC

  FreeBSD src repository

  Modified files:
    sys/vm               vm_fault.c 
  Log:
  SVN rev 220001 on 2011-03-25 16:38:10Z by kib
  
  Handle the corner case in vm_fault_quick_hold_pages().
  
  If supplied length is zero, and user address is invalid, function
  might return -1, due to the truncation and rounding of the address.
  The callers interpret the situation as EFAULT. Instead of handling
  the zero length in caller, filter it in vm_fault_quick_hold_pages().
  
  Sponsored by:   The FreeBSD Foundation
  Reviewed by:    alc
  
  Revision  Changes    Path
  1.289     +2 -0      src/sys/vm/vm_fault.c


help

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201103251638.p2PGcPYY033393>