Re: Question about mprotect

2025-01-20 Thread Corinna Vinschen
Hi Ken, On Jan 18 15:58, Ken Brown wrote: > Hi Corinna, > > I'm puzzled by the code at mmap.cc:1294 starting with if (!in_mapped). If we > get there and in_mapped is false, then the pages in the mprotect call don't > meet any mmap_record. Why do we continue after that? Is there some case > wher

Question about mprotect

2025-01-18 Thread Ken Brown
Hi Corinna, I'm puzzled by the code at mmap.cc:1294 starting with if (!in_mapped). If we get there and in_mapped is false, then the pages in the mprotect call don't meet any mmap_record. Why do we continue after that? Is there some case where a user program would expect mprotect to succeed o