NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: kern/52239: Changing protections of already mmap'ed region can fail



On May 17,  5:25pm, gson%gson.org@localhost (Andreas Gustafsson) wrote:
-- Subject: kern/52239: Changing protections of already mmap'ed region can fa

This seems to fix it, but I am not sure if it is correct. But that does not
explain why it fails in the first place since there is plenty of memory
around. Chuq?

christos

Index: uvm_mmap.c
===================================================================
RCS file: /cvsroot/src/sys/uvm/uvm_mmap.c,v
retrieving revision 1.164
diff -u -u -r1.164 uvm_mmap.c
--- uvm_mmap.c	6 May 2017 21:34:52 -0000	1.164
+++ uvm_mmap.c	18 May 2017 02:28:52 -0000
@@ -909,7 +909,7 @@
 {
 	vaddr_t align = 0;
 	int error;
-	uvm_flag_t uvmflag = 0;
+	uvm_flag_t uvmflag = UVM_FLAG_WAITVA;
 
 	/*
 	 * check params


Home | Main Index | Thread Index | Old Index