[jdk21u-dev] Integrated: 8329995: Restricted access to `/proc` can cause JFR initialization to crash

Neethu Prasad duke at openjdk.org
Tue Jun 4 16:43:44 UTC 2024


On Fri, 31 May 2024 15:47:44 GMT, Neethu Prasad <duke at openjdk.org> wrote:

> Backport of JDK-8329995
> 
> The call to os::opendir("/proc") may return nulltptr if the /proc is not accessible due to restrictions placed by the SELinux. In that case the ProcessIterator will SIGSEG because it assumes the _dir, which is the variable storing the result of the os::opendir("/proc") call to be non-null.
> 
> The patch is missing regression test because it is very hard to simulate /proc not being accessible to the test process.
> 
> **Testing**
> All Tier 1, tier2, jdk_jfr, hotspot_gc tests passed.

This pull request has now been integrated.

Changeset: d87f5a39
Author:    Neethu Prasad <neethp at amazon.com>
Committer: Aleksey Shipilev <shade at openjdk.org>
URL:       https://git.openjdk.org/jdk21u-dev/commit/d87f5a39743af43a04ec9f716a885f15fe1a0e0c
Stats:     1 line in 1 file changed: 0 ins; 0 del; 1 mod

8329995: Restricted access to `/proc` can cause JFR initialization to crash

Backport-of: a92ad03946d296510c8c2ac18278608e8032b3f3

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

PR: https://git.openjdk.org/jdk21u-dev/pull/634


More information about the jdk-updates-dev mailing list