[crac] RFR: Reseed NativePRNG on checkpoint restore [v4]
abakhtin at openjdk.java.net
Fri Jan 28 13:00:36 UTC 2022
On Fri, 28 Jan 2022 12:54:27 GMT, Alexey Bakhtin <abakhtin at openjdk.org> wrote:
>> NativePRNG should be re-seeded during checkpoint/restore because it uses SHA1PRNG secure random for additional seed. It is seeded at initialization, so it is not re-seeded automatically during checkpoint/restore
>> Also, the internal buffer should be cleared at the checkpoint.
> Alexey Bakhtin has updated the pull request incrementally with one additional commit since the last revision:
> Revert Checkpoint/RestoreException changes
After additional discussions, it was decided to revert these changes and use checked CheckpointException.
JDKResources can throw another RuntimeExceptions like IllegalStateException if required to indicate a failure during checkpoint/restore. All exceptions are processed in the AbstractContextImpl.beforeCheckpoint(), restore resources and throw ChecpointException to the user with the real cause.
More information about the crac-dev