8298343: "Could not confirm if TargetJDK is hardened." warning for SA tests on macosx-aarch64-debug#11619
8298343: "Could not confirm if TargetJDK is hardened." warning for SA tests on macosx-aarch64-debug#11619plummercj wants to merge 1 commit intoopenjdk:masterfrom
Conversation
|
/label serviceability |
|
👋 Welcome back cjplummer! A progress list of the required criteria for merging this PR into |
|
@plummercj |
|
@plummercj This change now passes all automated pre-integration checks. ℹ️ This project also has non-automated pre-integration requirements. Please see the file CONTRIBUTING.md for details. After integration, the commit message for the final commit will be: You can use pull request commands such as /summary, /contributor and /issue to adjust it as needed. At the time when this comment was updated there had been 4 new commits pushed to the
Please see this link for an up-to-date comparison between the source branch of this pull request and the ➡️ To integrate this PR with the above commit message to the |
|
Thank you Alex and Serguei. /integrate |
|
@plummercj Unknown command |
|
/integrate |
|
Going to push as commit 781a2e0.
Your commit was automatically rebased without conflicts. |
|
@plummercj Pushed as commit 781a2e0. 💡 You may see a message that your pull request was closed with unmerged commits. This can be safely ignored. |
In the log for most SA tests on macos-aarch64-debug, you will see something like:
The message at the end shouldn't be happening. The problem is in
Platform.isHardenedOSX(), which is searching for "flags=0x20002(adhoc,linker-signed)", but instead we are seeing "flags=0x2(adhoc)". This is due to JDK-8293550, which is now explicitly adding adhoc signing. Previously we just allowed the linker to just do the default adhoc signing, which is why you would also see the "linker-signed" flag. Since we explicitly do adhoc signing now, "linker-signed" is missing.The fix is to just allow either form. Since it is possible to build without the explicit adhoc signing, we still need to support the old form that includes "linker-signed".
There seems to be no adverse affects from this bug, other than seeing the above message, since the conclusion that the JDK is not hardened is the correct one.
Progress
Issue
Reviewers
Reviewing
Using
gitCheckout this PR locally:
$ git fetch https://git.openjdk.org/jdk pull/11619/head:pull/11619$ git checkout pull/11619Update a local copy of the PR:
$ git checkout pull/11619$ git pull https://git.openjdk.org/jdk pull/11619/headUsing Skara CLI tools
Checkout this PR locally:
$ git pr checkout 11619View PR using the GUI difftool:
$ git pr show -t 11619Using diff file
Download this PR as a diff file:
https://git.openjdk.org/jdk/pull/11619.diff