Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.kernel > #88197

Bug#1108294: kernel 6.12 breaks cgroup awareness of openjdk 21

Path csiph.com!weretis.net!feeder8.news.weretis.net!fu-berlin.de!bofh.it!news.nic.it!robomod
From Ben Hutchings <ben@decadent.org.uk>
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 <L2Zkt-e0c1-5@gated-at.bofh.it> (permalink)
References <L1sqB-d0on-1@gated-at.bofh.it> <L1XE6-dlPW-19@gated-at.bofh.it> <L1ZPz-dn7s-13@gated-at.bofh.it> <L1sqB-d0on-1@gated-at.bofh.it> <L1ZPz-dn7s-13@gated-at.bofh.it>
X-Mailbox-Line From debian-bugs-dist-request@lists.debian.org Sun Jun 29 12:25:11 2025
Old-Return-Path <debbugs@buxtehude.debian.org>
X-Spam-Flag NO
X-Spam-Score -4.199
Reply-To Ben Hutchings <ben@decadent.org.uk>, 1108294@bugs.debian.org
Resent-To debian-bugs-dist@lists.debian.org
Resent-Cc Debian Kernel Team <debian-kernel@lists.debian.org>
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 <debian-bugs-dist@lists.debian.org> archive/latest/1911850
List-ID <debian-bugs-dist.lists.debian.org>
List-URL <https://lists.debian.org/debian-bugs-dist/>
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> <f3af9699f81192e63f2a1ab9c780332cb34e69b8.camel@decadent.org.uk> <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

Cross-posted to 2 groups.

Show key headers only | View raw


[Multipart message — attachments visible in raw view] - view raw

On Thu, 2025-06-26 at 20:40 +0200, Harald Dunkel wrote:
> Ben Hutchings wrote:
> > 
> > Thank you for bringing this to our attention.
> > 
> > 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.
> > 
> 
> 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.
> > 
> 
> 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.

-- 
Ben Hutchings
Quantity is no substitute for quality, but it's the only one we've got.

Back to linux.debian.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Bug#1108294: kernel 6.12 breaks cgroup awareness of openjdk 21 Harald Dunkel <harri@afaics.de> - 2025-06-25 09:10 +0200
  Bug#1108294: kernel 6.12 breaks cgroup awareness of openjdk 21 Ben Hutchings <ben@decadent.org.uk> - 2025-06-26 18:30 +0200
    Bug#1108294: kernel 6.12 breaks cgroup awareness of openjdk 21 Ben Hutchings <ben@decadent.org.uk> - 2025-06-26 19:20 +0200
      Bug#1108294: kernel 6.12 breaks cgroup awareness of openjdk 21 Ben Hutchings <ben@decadent.org.uk> - 2025-07-09 00:50 +0200
        Bug#1108294: kernel 6.12 breaks cgroup awareness of openjdk 21 Ben Hutchings <ben@decadent.org.uk> - 2025-07-09 14:00 +0200
    Bug#1108294: kernel 6.12 breaks cgroup awareness of openjdk 21 Harald Dunkel <harri@afaics.de> - 2025-06-26 20:50 +0200
      Bug#1108294: kernel 6.12 breaks cgroup awareness of openjdk 21 Ben Hutchings <ben@decadent.org.uk> - 2025-06-29 14:30 +0200
  Bug#1108294: kernel 6.12 breaks cgroup awareness of openjdk 21 Ben Hutchings <ben@decadent.org.uk> - 2025-06-26 18:50 +0200
  Bug#1108294: kernel 6.12 breaks cgroup awareness of openjdk 21 Bastian Blank <waldi@debian.org> - 2025-06-26 20:30 +0200
  Processed: Re: kernel 6.12 breaks cgroup awareness of openjdk 21 "Debian Bug Tracking System" <owner@bugs.debian.org> - 2025-07-09 00:50 +0200
  Bug#1108294: marked as done (kernel 6.12 breaks cgroup awareness  of openjdk 21) "Debian Bug Tracking System" <owner@bugs.debian.org> - 2025-07-11 09:10 +0200
  Bug#1108294: [PATCH 4/4] cgroup: Do not report unavailable v1 controllers in /proc/cgroups Harald Dunkel <harri@afaics.de> - 2025-07-14 08:30 +0200
  Bug#1108294: [PATCH 4/4] cgroup: Do not report unavailable v1 controllers in /proc/cgroups Harald Dunkel <harald.dunkel@aixigo.com> - 2025-07-21 10:00 +0200
    Bug#1108294: [PATCH 4/4] cgroup: Do not report unavailable v1 controllers in /proc/cgroups Salvatore Bonaccorso <carnil@debian.org> - 2025-07-27 17:00 +0200
  Bug#1108294: 洗澡最危险 寒冬“10大易猝死行为”曝光 Alan Zhou <avianrobles359@gmail.com> - 2025-09-19 03:20 +0200

csiph-web