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
The following reply was made to PR kern/52239; it has been noted by GNATS.
From: christos%zoulas.com@localhost (Christos Zoulas)
To: gnats-bugs%NetBSD.org@localhost, kern-bug-people%netbsd.org@localhost,
gnats-admin%netbsd.org@localhost, netbsd-bugs%netbsd.org@localhost
Cc: chuq%netbsd.org@localhost
Subject: Re: kern/52239: Changing protections of already mmap'ed region can fail
Date: Wed, 17 May 2017 22:32:17 -0400
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