ref: 49411b2ca15b94b6631fd54d2576c5aeff63eb67
parent: 2149600d129944f60cbc858bc669193af0523409
author: cinap_lenrek <[email protected]>
date: Mon Aug 26 23:48:51 EDT 2019
kernel: catch execution read fault on SG_NOEXEC segment (for mips)
--- a/sys/src/9/sgi/faultmips.c
+++ b/sys/src/9/sgi/faultmips.c
@@ -196,7 +196,7 @@
/* print("fault: %s code %d va %#p pc %#p r31 %#lux tlbvirt %#lux\n",
up->text, code, ur->badvaddr, ur->pc, ur->r31, tlbvirt());/**/
- if (Debug && ckfaultstuck(ur, read, code) || fault(addr, read) == 0)
+ if (Debug && ckfaultstuck(ur, read, code) || fault(addr, ur->pc, read) == 0)
return;
if(user) {