On Wed, 18 Nov 2026 19:05:50 GMT, Shawn Emery <[email protected]> wrote:

>> Volodymyr Paprotski has updated the pull request incrementally with one 
>> additional commit since the last revision:
>> 
>>   comments from Vladimir
>
> src/hotspot/cpu/x86/stubGenerator_x86_64_aes.cpp line 589:
> 
>> 587:     // Buy and align stack
>> 588:     __ push_ppx(rbp);
>> 589:     __ movq(rbp, rsp);
> 
> For key spillage; resetting rbp here could potentially cause stack walkers to 
> read register data as the return address, corrupting stack traces.  rbp was 
> already set with enter() and could be used to restore rsp by calculating the 
> saved-register slots before restoring said registers.

hmm, didn't realize that was the pattern. Fixed now, thanks!

> test/hotspot/jtreg/compiler/codegen/aes/TestAESCTR.java line 82:
> 
>> 80:                 // test the usedCtr path, force update() + doFinal()
>> 81:                 System.setProperty("lastChunkSize", "7");
>> 82:                 System.setProperty("encInputOffset ", "1");
> 
> There is a trailing space in the `encInputOffset` property so only doFinal() 
> will be called instead of the intended `update()` and followed by `doFinal()`.

oh! thanks, done

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

PR Review Comment: https://git.openjdk.org/jdk/pull/33128#discussion_r4621460681
PR Review Comment: https://git.openjdk.org/jdk/pull/33128#discussion_r4621452370

Reply via email to