OSDN Git Service

Check pages are readable after mprotect for SEGV_ACCERR diagnosis
authorHiroshi Yamauchi <yamauchi@google.com>
Mon, 8 Feb 2016 22:18:21 +0000 (14:18 -0800)
committerHiroshi Yamauchi <yamauchi@google.com>
Tue, 9 Feb 2016 02:05:52 +0000 (18:05 -0800)
commit6edb9aecdbe8b31f7ae1d35f21d013631337a424
tree531c7ddd624695102d5c4dfc73e7d6c4160a365c
parente4ddacdb1f0798e084b9ce2de7acac797f2c0a75
Check pages are readable after mprotect for SEGV_ACCERR diagnosis

We have a suspected mprotect issue where we see seg faults after pages
are mprotected with PROT_READ|PROT_WRITE with the SS collector on
host. This change attempts to see if earlier reads would cause faults
similarly.

Bug: 19894268

Change-Id: I041a663c6b55b747120915f73a0db5f566744ed8
runtime/gc/heap.cc
runtime/mem_map.cc
runtime/mem_map.h