[lilliput-jdk17u:lilliput] RFR: 8310427: [Lilliput/JDK17] Protect from running broken JFR and JVMTI code with compact headers

Aleksey Shipilev shade at openjdk.org
Wed Jun 21 14:24:38 UTC 2023


We have at least two things missing in 17u to make Lilliput safe: [JDK-8283710](https://bugs.openjdk.org/browse/JDK-8283710) and [JDK-8275415](https://bugs.openjdk.org/browse/JDK-8275415). Backporting those things is intrusive and could take a while. Meanwhile, we need to protect user code from entering those paths when compact headers are enabled.

Additional testing:
 - [x] Linux x86_64 fastdebug, `jdk/jfr`, `UCOH` disabled by default; some pre-existing failures
 - [x] Linux x86_64 fastdebug, `jdk/jfr`, `+UCOH`
 - [x] Linux x86_64 fastdebug `serviceability/jvmti`, `UCOH` disabled by default
 - [x] Linux x86_64 fastdebug `serviceability/jvmti`, `+UCOH`
 - [x] Linux x86_64 fastdebug `vmTestbase/nsk/jvmti`, `UCOH` disabled by default
 - [x] Linux x86_64 fastdebug `vmTestbase/nsk/jvmti`, `+UCOH`

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

Commit messages:
 - Touchups after merge
 - Merge branch 'lilliput' into JDK-8310427-jfr-jvmti-broken
 - Mention proper bug IDs in problem list
 - Add problemlists
 - Fix

Changes: https://git.openjdk.org/lilliput-jdk17u/pull/35/files
 Webrev: https://webrevs.openjdk.org/?repo=lilliput-jdk17u&pr=35&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8310427
  Stats: 84 lines in 4 files changed: 80 ins; 0 del; 4 mod
  Patch: https://git.openjdk.org/lilliput-jdk17u/pull/35.diff
  Fetch: git fetch https://git.openjdk.org/lilliput-jdk17u.git pull/35/head:pull/35

PR: https://git.openjdk.org/lilliput-jdk17u/pull/35


More information about the lilliput-dev mailing list