RFR: 8295264: Fix PaX check on RISC-V

Ludovic Henry luhenry at openjdk.org
Thu Oct 13 07:56:52 UTC 2022


On Linux RISC-V, PROT_WRITE doesn't imply PROT_READ [1]

The fix is to pass PROT_READ|PROT_WRITE. That matches all other calls to mmap in hotspot.

[1] https://lkml.org/lkml/2022/9/8/1066

-------------

Commit messages:
 - 8295264: Fix PaX check on RISC-V

Changes: https://git.openjdk.org/jdk/pull/10690/files
 Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=10690&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8295264
  Stats: 2 lines in 1 file changed: 0 ins; 0 del; 2 mod
  Patch: https://git.openjdk.org/jdk/pull/10690.diff
  Fetch: git fetch https://git.openjdk.org/jdk pull/10690/head:pull/10690

PR: https://git.openjdk.org/jdk/pull/10690


More information about the hotspot-runtime-dev mailing list