Skip to content

8391041: RISC-V: Fix out-of-bounds read in string_indexof_char intrinsic - #763

Open
RealFYang wants to merge 1 commit into
openjdk:masterfrom
openjdk-bots:backport-RealFYang-660dd42d-master
Open

8391041: RISC-V: Fix out-of-bounds read in string_indexof_char intrinsic#763
RealFYang wants to merge 1 commit into
openjdk:masterfrom
openjdk-bots:backport-RealFYang-660dd42d-master

Conversation

@RealFYang

@RealFYang RealFYang commented Aug 26, 2026

Copy link
Copy Markdown
Member

Hi all,

This pull request contains a backport of commit 660dd42d from the openjdk/jdk repository.

The commit being backported was authored by Chuanqi Zang on 26 Aug 2026 and was reviewed by Dingli Zhang and Fei Yang.

Thanks!



Progress

  • Change must not contain extraneous whitespace
  • Commit message must refer to an issue
  • JDK-8391041 needs maintainer approval

Issue

  • JDK-8391041: RISC-V: Fix out-of-bounds read in string_indexof_char intrinsic (Bug - P4 - Requested)

Reviewing

Using git

Checkout this PR locally:
$ git fetch https://git.openjdk.org/jdk25u-dev.git pull/763/head:pull/763
$ git checkout pull/763

Update a local copy of the PR:
$ git checkout pull/763
$ git pull https://git.openjdk.org/jdk25u-dev.git pull/763/head

Using Skara CLI tools

Checkout this PR locally:
$ git pr checkout 763

View PR using the GUI difftool:
$ git pr show -t 763

Using diff file

Download this PR as a diff file:
https://git.openjdk.org/jdk25u-dev/pull/763.diff

Using Webrev

Link to Webrev Comment

@bridgekeeper

bridgekeeper Bot commented Aug 26, 2026

Copy link
Copy Markdown

👋 Welcome back fyang! A progress list of the required criteria for merging this PR into master will be added to the body of your pull request. There are additional pull request commands available for use with this pull request.

@openjdk

openjdk Bot commented Aug 26, 2026

Copy link
Copy Markdown

❗ This change is not yet ready to be integrated.
See the Progress checklist in the description for automated requirements.

@openjdk openjdk Bot changed the title Backport 660dd42d7a5ceb863f2199552db530b6c20238fe 8391041: RISC-V: Fix out-of-bounds read in string_indexof_char intrinsic Aug 26, 2026
@openjdk

openjdk Bot commented Aug 26, 2026

Copy link
Copy Markdown

This backport pull request has now been updated with issue from the original commit.

@openjdk openjdk Bot added backport Port of a pull request already in a different code base clean Identical backport; no merge resolution required labels Aug 26, 2026
@RealFYang
RealFYang marked this pull request as ready for review August 27, 2026 15:05
@openjdk

openjdk Bot commented Aug 27, 2026

Copy link
Copy Markdown

⚠️ @RealFYang This change is now ready for you to apply for maintainer approval. This can be done directly in each associated issue or by using the /approval command.

@openjdk openjdk Bot added the rfr Pull request is ready for review label Aug 27, 2026
@RealFYang

Copy link
Copy Markdown
Member Author

/approval request jdk25u-dev repo bears the same issue. We should backport in order to fix the out-of-bound memory access issue in the string_indexof_char intrinsic. This is a RISC-V CPU specific change. Verified with tier1-3 tests on linux-riscv64 platform.

@openjdk

openjdk Bot commented Aug 27, 2026

Copy link
Copy Markdown

@RealFYang
8391041: The approval request has been created successfully.

@openjdk openjdk Bot added the approval Requires approval; will be removed when approval is received label Aug 27, 2026
@mlbridge

mlbridge Bot commented Aug 27, 2026

Copy link
Copy Markdown

Webrevs

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approval Requires approval; will be removed when approval is received backport Port of a pull request already in a different code base clean Identical backport; no merge resolution required rfr Pull request is ready for review

Development

Successfully merging this pull request may close these issues.

1 participant