Re: RFR: 8284855: Update needed to Cleaners added to jdk.crypto.cryptoki [v3]

2022-04-15 Thread Xue-Lei Andrew Fan
On Fri, 15 Apr 2022 18:48:33 GMT, Brent Christian wrote: >>> CleanerFactory is in java.base module, and does not export to >>> jdk.crypto.cryptoki module. I'm not sure if adding modules dependency is >>> good or not. > > It seems fine to me to export the common Cleaner to

Re: RFR: 8284855: Update needed to Cleaners added to jdk.crypto.cryptoki [v6]

2022-04-15 Thread Xue-Lei Andrew Fan
> This is an effort to fix a problem introduced in the fix for > [JDK-8284368](https://bugs.openjdk.java.net/browse/JDK-8284368), which > replaced the finalizers in jdk.crypto.cryptoki with Cleaners. However, there > is a problem with the code changes. The Runnables registered with Cleaner >

Re: RFR: 8284855: Update needed to Cleaners added to jdk.crypto.cryptoki [v5]

2022-04-15 Thread Xue-Lei Andrew Fan
On Fri, 15 Apr 2022 17:51:43 GMT, Valerie Peng wrote: >> Xue-Lei Andrew Fan has updated the pull request incrementally with one >> additional commit since the last revision: >> >> add a reference to the clean up method > > src/jdk.crypto.cryptoki/unix/native/libj2pkcs11/p11_md.c line 274: >

Re: RFR: 8284855: Update needed to Cleaners added to jdk.crypto.cryptoki [v5]

2022-04-15 Thread Xue-Lei Andrew Fan
On Fri, 15 Apr 2022 17:44:08 GMT, Valerie Peng wrote: >> Xue-Lei Andrew Fan has updated the pull request incrementally with one >> additional commit since the last revision: >> >> add a reference to the clean up method > > src/jdk.crypto.cryptoki/unix/native/libj2pkcs11/p11_md.c line 265: >

Command line flag to disable finalizers.

2022-04-15 Thread Peter Firmstone
To securely instrument access controls onto public Java API, we need to have the ability to disable finalizers, to prevent finalizer attacks from circumventing access controls. Since finalizers are planned for removal, as soon as finalizers are officially deprecated, I propose a command line

Re: RFR: JDK-8284112 Minor cleanup could be done in javax.crypto [v3]

2022-04-15 Thread Mark Powers
> JDK-8284112 Minor cleanup could be done in javax.crypto Mark Powers has updated the pull request incrementally with one additional commit since the last revision: cleanup - Changes: - all: https://git.openjdk.java.net/jdk/pull/8214/files - new:

Re: RFR: 8284553: Deprecate the DEFAULT static field of OAEPParameterSpec [v2]

2022-04-15 Thread Valerie Peng
On Wed, 13 Apr 2022 19:27:00 GMT, Valerie Peng wrote: >> This trivial change is to deprecate the DEFAULT static field of >> OAEPParameterSpec class. Wordings are mostly the same as the previous >> PSSParameterSpec deprecation change. Rest are just minor code re-factoring. >> >> The CSR will

Re: RFR: 8284855: Update needed to Cleaners added to jdk.crypto.cryptoki [v3]

2022-04-15 Thread Brent Christian
On Fri, 15 Apr 2022 15:00:18 GMT, Xue-Lei Andrew Fan wrote: > > CleanerFactory is in java.base module, and does not export to > > jdk.crypto.cryptoki module. I'm not sure if adding modules dependency is > > good or not. It seems fine to me to export the common Cleaner to

Re: RFR: 8284893: Fix typos in java.base

2022-04-15 Thread Sean Mullan
On Thu, 14 Apr 2022 20:16:21 GMT, Bradford Wetmore wrote: >> I ran `codespell` on the `src/java.base` directory, and accepted those >> changes where it indeed discovered real typos. >> >> (Due to false positives this can unfortunately not be run automatically) >> >> The majority of fixes are

Re: RFR: 8284855: Update needed to Cleaners added to jdk.crypto.cryptoki [v5]

2022-04-15 Thread Valerie Peng
On Fri, 15 Apr 2022 15:50:19 GMT, Xue-Lei Andrew Fan wrote: >> This is an effort to fix a problem introduced in the fix for >> [JDK-8284368](https://bugs.openjdk.java.net/browse/JDK-8284368), which >> replaced the finalizers in jdk.crypto.cryptoki with Cleaners. However, >> there is a

Re: RFR: 8284855: Update needed to Cleaners added to jdk.crypto.cryptoki [v5]

2022-04-15 Thread Valerie Peng
On Fri, 15 Apr 2022 15:50:19 GMT, Xue-Lei Andrew Fan wrote: >> This is an effort to fix a problem introduced in the fix for >> [JDK-8284368](https://bugs.openjdk.java.net/browse/JDK-8284368), which >> replaced the finalizers in jdk.crypto.cryptoki with Cleaners. However, >> there is a

Re: RFR: 8209038: Clarify the javadoc of Cipher.getParameters() [v2]

2022-04-15 Thread Sean Mullan
On Wed, 13 Apr 2022 22:04:03 GMT, Valerie Peng wrote: >> Anyone can help review this javadoc update? The main change is the wording >> for the method javadoc of >> Cipher.getParameters()/CipherSpi.engineGetParameters(). The original wording >> is somewhat restrictive and request is to broaden

Re: RFR: 8284855: Update needed to Cleaners added to jdk.crypto.cryptoki [v5]

2022-04-15 Thread Xue-Lei Andrew Fan
> This is an effort to fix a problem introduced in the fix for > [JDK-8284368](https://bugs.openjdk.java.net/browse/JDK-8284368), which > replaced the finalizers in jdk.crypto.cryptoki with Cleaners. However, there > is a problem with the code changes. The Runnables registered with Cleaner >

Re: RFR: 8284855: Update needed to Cleaners added to jdk.crypto.cryptoki [v4]

2022-04-15 Thread Xue-Lei Andrew Fan
On Fri, 15 Apr 2022 15:23:33 GMT, Roger Riggs wrote: >> Xue-Lei Andrew Fan has updated the pull request incrementally with one >> additional commit since the last revision: >> >> more update on replace lambda > > src/jdk.crypto.cryptoki/share/classes/sun/security/pkcs11/wrapper/PKCS11.java

Re: RFR: 8284855: Update needed to Cleaners added to jdk.crypto.cryptoki [v4]

2022-04-15 Thread Roger Riggs
On Fri, 15 Apr 2022 15:04:20 GMT, Xue-Lei Andrew Fan wrote: >> This is an effort to fix a problem introduced in the fix for >> [JDK-8284368](https://bugs.openjdk.java.net/browse/JDK-8284368), which >> replaced the finalizers in jdk.crypto.cryptoki with Cleaners. However, >> there is a

Re: RFR: 8284855: Update needed to Cleaners added to jdk.crypto.cryptoki [v4]

2022-04-15 Thread Daniel Fuchs
On Fri, 15 Apr 2022 15:04:20 GMT, Xue-Lei Andrew Fan wrote: >> This is an effort to fix a problem introduced in the fix for >> [JDK-8284368](https://bugs.openjdk.java.net/browse/JDK-8284368), which >> replaced the finalizers in jdk.crypto.cryptoki with Cleaners. However, >> there is a

Re: RFR: 8284855: Update needed to Cleaners added to jdk.crypto.cryptoki [v2]

2022-04-15 Thread Xue-Lei Andrew Fan
On Thu, 14 Apr 2022 22:32:23 GMT, Brent Christian wrote: > Can a test case be included? The classes updated are not public. I'm still looking for the way to expose the reference of them. - PR: https://git.openjdk.java.net/jdk/pull/8248

Re: RFR: 8284855: Update needed to Cleaners added to jdk.crypto.cryptoki [v3]

2022-04-15 Thread Xue-Lei Andrew Fan
On Fri, 15 Apr 2022 08:25:40 GMT, Daniel Fuchs wrote: >> Xue-Lei Andrew Fan has updated the pull request incrementally with one >> additional commit since the last revision: >> >> Don't use lambda in cleaner > > src/jdk.crypto.cryptoki/share/classes/sun/security/pkcs11/P11KeyStore.java >

Re: RFR: 8284855: Update needed to Cleaners added to jdk.crypto.cryptoki [v3]

2022-04-15 Thread Xue-Lei Andrew Fan
On Fri, 15 Apr 2022 13:32:10 GMT, altrisi wrote: > Can't this use `CleanerFactory.cleaner()` and reuse the common Cleaner > instead of having its own? CleanerFactory is in java.base module, and does not export to jdk.crypto.cryptoki module. I'm not sure if adding modules dependency is good

Re: RFR: 8284855: Update needed to Cleaners added to jdk.crypto.cryptoki [v4]

2022-04-15 Thread Xue-Lei Andrew Fan
> This is an effort to fix a problem introduced in the fix for > [JDK-8284368](https://bugs.openjdk.java.net/browse/JDK-8284368), which > replaced the finalizers in jdk.crypto.cryptoki with Cleaners. However, there > is a problem with the code changes. The Runnables registered with Cleaner >

Re: RFR: 8284855: Update needed to Cleaners added to jdk.crypto.cryptoki [v3]

2022-04-15 Thread altrisi
On Fri, 15 Apr 2022 07:20:42 GMT, Xue-Lei Andrew Fan wrote: >> This is an effort to fix a problem introduced in the fix for >> [JDK-8284368](https://bugs.openjdk.java.net/browse/JDK-8284368), which >> replaced the finalizers in jdk.crypto.cryptoki with Cleaners. However, >> there is a

Re: RFR: 8284893: Fix typos in java.base

2022-04-15 Thread Alan Bateman
On Thu, 14 Apr 2022 19:07:09 GMT, Magnus Ihse Bursie wrote: > I ran `codespell` on the `src/java.base` directory, and accepted those > changes where it indeed discovered real typos. > > (Due to false positives this can unfortunately not be run automatically) > > The majority of fixes are in

Re: RFR: 8284893: Fix typos in java.base

2022-04-15 Thread Pavel Rappo
On Fri, 15 Apr 2022 11:25:09 GMT, Pavel Rappo wrote: >> I ran `codespell` on the `src/java.base` directory, and accepted those >> changes where it indeed discovered real typos. >> >> (Due to false positives this can unfortunately not be run automatically) >> >> The majority of fixes are in

Re: RFR: 8284893: Fix typos in java.base

2022-04-15 Thread Pavel Rappo
On Thu, 14 Apr 2022 19:07:09 GMT, Magnus Ihse Bursie wrote: > I ran `codespell` on the `src/java.base` directory, and accepted those > changes where it indeed discovered real typos. > > (Due to false positives this can unfortunately not be run automatically) > > The majority of fixes are in

Re: RFR: 8284855: Update needed to Cleaners added to jdk.crypto.cryptoki [v3]

2022-04-15 Thread Daniel Fuchs
On Fri, 15 Apr 2022 07:20:42 GMT, Xue-Lei Andrew Fan wrote: >> This is an effort to fix a problem introduced in the fix for >> [JDK-8284368](https://bugs.openjdk.java.net/browse/JDK-8284368), which >> replaced the finalizers in jdk.crypto.cryptoki with Cleaners. However, >> there is a

Re: RFR: 8284893: Fix typos in java.base

2022-04-15 Thread Andrey Turbanov
On Thu, 14 Apr 2022 19:07:09 GMT, Magnus Ihse Bursie wrote: > I ran `codespell` on the `src/java.base` directory, and accepted those > changes where it indeed discovered real typos. > > (Due to false positives this can unfortunately not be run automatically) > > The majority of fixes are in

Re: RFR: JDK-6782021: It is not possible to read local computer certificates with the SunMSCAPI provider

2022-04-15 Thread Markus KARG
On Tue, 12 Apr 2022 19:03:40 GMT, Mat Carter wrote: > On Windows you can now access the local machine keystores using the strings > "Windows-MY-LOCALMACHINE" and "Windows-ROOT-LOCALMACHINE"; note the > application requires admin privileges. > > "Windows-MY" and "Windows-ROOT" remain

Re: RFR: 8284855: Update needed to Cleaners added to jdk.crypto.cryptoki [v3]

2022-04-15 Thread Xue-Lei Andrew Fan
> This is an effort to fix a problem introduced in the fix for > [JDK-8284368](https://bugs.openjdk.java.net/browse/JDK-8284368), which > replaced the finalizers in jdk.crypto.cryptoki with Cleaners. However, there > is a problem with the code changes. The Runnables registered with Cleaner >