Fix a deadlock in mprotect()
authorBarret Rhoden <brho@cs.berkeley.edu>
Fri, 2 Jun 2017 00:19:48 +0000 (20:19 -0400)
committerBarret Rhoden <brho@cs.berkeley.edu>
Tue, 6 Jun 2017 19:48:12 +0000 (15:48 -0400)
commit7b615f8cae78e327bbdb2391eb16e26441d36a8e
tree09c599febee1546b7f2d027ca93b486b76dfbe99
parent6bac2c6699bebf017ed37c8662c75529babe8596
Fix a deadlock in mprotect()

We wouldn't make forward progress if you tried to mprotect() a region
that already had those protections.

Signed-off-by: Barret Rhoden <brho@cs.berkeley.edu>
kern/src/mm.c