git: kernel - Fix VM deadlock in optimized file read path

Matthew Dillon dillon at crater.dragonflybsd.org
Mon Jun 1 23:38:54 PDT 2015


commit efad0641c1e028d2533d32ce9dac1a97d0655888
Author: Charlie Root <root at apollo.backplane.com>
Date:   Mon Jun 1 18:17:30 2015 -0700

    kernel - Fix VM deadlock in optimized file read path
    
    * The optimized file read path can deadlock if the uiocopy or copyout
      operation requires a non-trivial VM fault.  Most cases were handled,
      but a MAP_ENTRY_NEEDS_COPY->vm_map_entry_shadow() path was not being
      handled.
    
    * Disallow the optimized path for the COW case.
    
    Reported-by: Sevan Janiyan

Summary of changes:
 sys/vm/vm_fault.c | 14 ++++++++++++--
 sys/vm/vm_map.c   | 10 ++++++++++
 sys/vm/vm_param.h |  1 +
 3 files changed, 23 insertions(+), 2 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/efad0641c1e028d2533d32ce9dac1a97d0655888


-- 
DragonFly BSD source repository


More information about the Commits mailing list