RFR: 8309667: TLS handshake fails because of ConcurrentModificationException in PKCS12KeyStore.engineGetEntry

Weijun Wang weijun at openjdk.org
Fri Jun 16 02:00:40 UTC 2023


The `attributes` field inside the `PKCS12KeyStore.Entry` class might be modified and retrieved at the same time. Make it concurrent.

The test uses some reflection to get this field and try updating it in multiple threads.

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

Commit messages:
 - chmod a-x
 - the fix

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

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



More information about the security-dev mailing list