Path: csiph.com!weretis.net!feeder8.news.weretis.net!fu-berlin.de!bofh.it!news.nic.it!robomod From: Ben Hutchings Newsgroups: linux.debian.bugs.dist,linux.debian.kernel Subject: Bug#1108294: kernel 6.12 breaks cgroup awareness of openjdk 21 Date: Sun, 29 Jun 2025 14:30:01 +0200 Message-ID: References: X-Mailbox-Line: From debian-bugs-dist-request@lists.debian.org Sun Jun 29 12:25:11 2025 Old-Return-Path: X-Spam-Flag: NO X-Spam-Score: -4.199 Reply-To: Ben Hutchings , 1108294@bugs.debian.org Resent-To: debian-bugs-dist@lists.debian.org Resent-Cc: Debian Kernel Team X-Debian-Pr-Message: followup 1108294 X-Debian-Pr-Package: src:linux X-Debian-Pr-Source: linux Content-Type: multipart/signed; micalg="pgp-sha512"; protocol="application/pgp-signature"; boundary="=-Yz2D+Jx76i4KEI9zyJW4" User-Agent: Evolution 3.56.1-1 MIME-Version: 1.0 X-Sa-Exim-Connect-IP: 2a02:578:851f:1502:391e:c5f5:10e2:b9a3 X-Sa-Exim-Mail-From: ben@decadent.org.uk X-Sa-Exim-Scanned: No (on maynard); SAEximRunCond expanded to false X-Debian-Message: from BTS X-Mailing-List: archive/latest/1911850 List-ID: List-URL: Approved: robomod@news.nic.it Lines: 62 Organization: linux.* mail to news gateway Sender: robomod@news.nic.it X-Original-Date: Sun, 29 Jun 2025 14:23:18 +0200 X-Original-Message-ID: <96bb3aea20100d19185581b6762294b7446f62f5.camel@decadent.org.uk> X-Original-References: <87tt44jpor.fsf@tweety.afaics.de> <23507178-766a-81ef-4769-64039a4a4be3@afaics.de> <87tt44jpor.fsf@tweety.afaics.de> <23507178-766a-81ef-4769-64039a4a4be3@afaics.de> Xref: csiph.com linux.debian.bugs.dist:1251387 linux.debian.kernel:88197 --=-Yz2D+Jx76i4KEI9zyJW4 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Thu, 2025-06-26 at 20:40 +0200, Harald Dunkel wrote: > Ben Hutchings wrote: > >=20 > > Thank you for bringing this to our attention. > >=20 > > I don't think it makes sense for us to re-enable cgroups v1, given that > > it has been deprecated for so long and OpenJDK itself can use v2. > >=20 >=20 > You are right, it's been deprecated for quite some time, and this is > clearly a bug in openjdk, but currently there is no better version of > JDK21. I am not sure what you mean by "OpenJDK itself can use v2". OpenJDK (from v11 onwards) appears to use v2 of the cgroups API if available, and only mistakenly relied on /proc/cgroups for detection of which controllers are enabled. > > I will look into whether we can instead provide only a /proc/cgroups > > file, which seems to be all that OpenJDK actually needed. > >=20 >=20 > How is this supposed to work? Since we are talking about the host system > here you cannot know how /proc was mounted in the container, which > Container framework is involved, or whether the container is based on > Debian at all. We have to assume that /proc/cgroups and cgroupfs are exposed to the container, otherwise none of this detection could have worked before... Ben. --=20 Ben Hutchings Quantity is no substitute for quality, but it's the only one we've got. --=-Yz2D+Jx76i4KEI9zyJW4 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEErCspvTSmr92z9o8157/I7JWGEQkFAmhhMDYACgkQ57/I7JWG EQlhWQ//TYX8mQmGi/z40Ac1DSU0SfNPuWJO3Y9a1vv3sDdLDdnCDPW9UHPBrrha nI1kQ3Z3Nqlqn33ia7OS5t21D88A3ia4UFD8N1IWX0y6St2hKyb5TTfwBazdniMR 67ZhRN5oVaHjK/Ky87H+nvVXiJbTpSfSSgiW0DMmsYcUa58wKSCybkL7xzEVYDWn lTMRfv3W0kNcIfaVdiV9GWKjlcwS0z4r8SkEp6lD7h9QNqWiBg3YS26m/NyBNHSh QoBIj/Q6IAtKLYydVpacSnwjk+AQ3OSw291lkaxIjPqrNCjiOyXI0Gi1Nnes2rWe g9N8C+xvoBb/0i0EKFWsOeENz5dxBh4y1yotANNH+pUs9UPyUcfGIgpWQoNSZnBO BynzwDm75AS1kI3b+uL3LyiaJEfekpuOH+fXMUxItqLO+yMKSvs1pXhhMUX5WdEg 9G+AVleHBjAZJtHuh8Gme3Sbg0gc0Yb5AHEUw0cneo+FwKvABM3GpUjqYsPGs3y8 /SCJxA6PCL02DjFgoBIF/1+3/ISjoxEgGD6rXDE5yE5P8/7LBIl9hVBYSHr2Knw6 tcL0AtPz69/YnDIMsSrxLSc8VkuGiaU9QskFYMqHpw/UfJFO3DQ7PC//rlePkEx/ yhime8Rdx8B1ZNI3ylnFFVZU9mM60uVjoQ7ID6+uS8YahIifxi4= =aP1B -----END PGP SIGNATURE----- --=-Yz2D+Jx76i4KEI9zyJW4--