News for hackers. Stuff that matters.
Re:Java4Shell: RCE in OpenJDK when processing Base64 by drum55 on Tuesday November 17, 2026 @05:08PM (#50538933)
They aren’t wrong that we should be deleting more support and removing more features. The idea that the linux kernel by default builds support for all sorts of ancient systems nobody has ever heard of is absurd.
Re:Java4Shell: RCE in OpenJDK when processing Base64 by eru on Tuesday November 17, 2026 @06:56PM (#50539991)
You can use the kernel config to remove these things.
Re:Java4Shell: RCE in OpenJDK when processing Base64 by Gigachad on Tuesday November 17, 2026 @07:23PM (#50540239)
The kernel already dynamically loads kernel modules based on hardware it's running on so most of the junk isn't loaded. But for the stuff you can't dynamically load, it's a tradeoff between stripping the kernel down and supporting the most hardware.

Maybe distros could provide two builds, one for modern hardware only and one for maximum compatibility.

Re:Java4Shell: RCE in OpenJDK when processing Base64 by cheeze on Tuesday November 17, 2026 @11:57PM (#50542058)
Back in the day, I used to build windows XP as stripped down as possible. Maybe something like that is possible? Distro installer determines what hardware you're running, then only includes what is absolutely necessary?

More annoying the first time you plug in that USB DAC or whatnot, but would reduce the attack surface heavily.

Who am I kidding... someone is going to comment that Dolphin Linux has supported this since 2013.

Re:Java4Shell: RCE in OpenJDK when processing Base64 by Gigachad on Wednesday November 18, 2026 @12:30AM (#50542244)
You have to compile the kernel to change the included features. You can certainly do that and some people have been running stripped back kernels for a long time but you can imagine why mainstream distros don’t make you do that.

Before recently kernel security was relatively acceptable.

Re:Java4Shell: RCE in OpenJDK when processing Base64 by nly on Wednesday November 18, 2026 @04:27AM (#50543972)
That wouldn't work, because one day you dist-upgrade and your machine doesn't boot
Re:Java4Shell: RCE in OpenJDK when processing Base64 by rustyhancock on Wednesday November 18, 2026 @06:29AM (#50544987)
Back in the mid-2000s I regularly simply built a kernel to match what I was running daily, and kept a stock generic kernel.

I started it in freebsd and later on Linux.

I'm not quite sure why I stopped the practice if I'm honest probably because generic felt good enough at some point and I forgot. Probably because my peripheral use became more chaotic.

That and most of the benefit is RAM footprint which stopped mattering.

Re:Java4Shell: RCE in OpenJDK when processing Base64 by AuthAuth on Tuesday November 17, 2026 @07:47PM (#50540404)
Its time to come home to Gentoo
Re:Java4Shell: RCE in OpenJDK when processing Base64 by drum55 on Tuesday November 17, 2026 @09:51PM (#50541254)
I used to use gentoo but menuconfig with a billion options really isn’t that fun
Re:Java4Shell: RCE in OpenJDK when processing Base64 by exabrial on Tuesday November 17, 2026 @09:46PM (#50541227)
I think there are plenty of distros that do that in fact! I think most regular linux distros try to be as helpful as possible
Re:Java4Shell: RCE in OpenJDK when processing Base64 by kenferry on Wednesday November 18, 2026 @02:53AM (#50543117)
Quite a lot of pushback for trying to remove things.

See https://news.ycombinator.com/item?id=50371408