r/LinuxTeck • u/Candid_Athlete_8317 • 2d ago
Would you upgrade a stable Linux kernel just because it reached EOL?
Would you upgrade a stable Linux kernel just because it reached EOL?
There’s an interesting challenge in Linux system administration: keeping systems secure without breaking applications that have been running reliably for years.
The 5.10 and 5.15 stable kernel series have reached EOL, and users are being advised to move to newer kernel series.
But enterprise environments aren't always that simple.
Some organizations depend on older kernels because of hardware compatibility, legacy applications, certification requirements, or expensive migration processes. Enterprise distributions may also maintain older kernel versions with selected security fixes backported.
So here's where I'd like to hear different opinions:
Would you upgrade to a newer kernel as soon as the current series reaches EOL, or keep the existing kernel if your vendor continues providing security updates?
I'm particularly interested in experiences from people managing production Linux servers.
4
u/feudalle 1d ago
Internet facing production, yeah. With ai finding 20 year old bugs all the time, its nit much of a choice. Internal only production maybe. Personal stuff, i dont bother unless I have s need. Im sure I have a mini pc with ubuntu 2011 somewhere still.
4
u/fuldigor42 1d ago
No kernel without security updates on enterprise level
If it really can’t be updated they need a risk plan.
2
u/bufandatl 2d ago
Depends. If you use an Enterprise Linux like RedHat and the version of that is still in support there is no need since RedHat backports almost all security fixes from newer kernels. That’s why you pay them.
Alternatively AlmaLinux and Rocky Linux which try to be as close as possible or even binary compatible with Red Hat will have similar benefits but for free (they welcome donations though).
If you are on a more fluid distribution like Fedora I would upgrade to the next release version sooner rather than later.
If a distribution offers a newer kernel in the currently running version then also switching to the newer one could be beneficial.
But starting to compile my own kernel just because the Distro doesn’t support it yet I only would do on my dev machine never on prod. Too much hassle to be honest.
2
u/Only-Stable3973 1d ago
Clone it for a VM so that you can run all your upgrades in to test everything before pulling the trigger.
2
u/kbeezie 1d ago
If my hardware supported it, and they're not backporting security, yes.
If they're still backporting security, no.
1
u/verdigris2014 2d ago
i’m not a professional but i run a home network. i suspect most of us like to upgrade to the latest but i scratch the itch with a personal workstation then keep everything else on debian stable. if i upgrade a kernel then i need a reboot and i don’t like to reboot
1
u/st0ut717 1d ago
This isn’t up for debate the stupid shall be punished
1
u/kiklop74 1d ago
If your server is exposed to public internet and you can upgrade kernel - you should. Otherwise it depends.
1
u/KC2RGW 1d ago
If you are competent, the entity of that single system is irrelevant. Patching/updating and rebooting should not be anything other than routine.
1
u/moritz12d 1d ago
From my experience as former Gentoo-user I don't wait until a kernel has reached EOL. The Gentoo installation guide recommends downloading a binary kernel first to ensure a stable system, before proceeding to compile and integrate your own custom kernel. I currently use Manjaro and have several kernels installed; I rely on "meta" packages to keep receiving the latest kernel versions. Although the LTS (Long-Term Support) kernel is supposedly more stable, I have actually had better experiences with the more recent kernels. Many applications expect up-to-date kernels; waiting too long can lead to instability, as patches are actively developed for the latest kernels. It is also uncertain whether patches will continue to be applied once a kernel reaches its end-of-life (EOL).
1
u/LH314159 1d ago
Yes.
If your Linux server is not connected to the Internet, then your exposure it limited and as such your old system could stay static. I've had a Linux server that went 4 years between reboots and that was a power failure. But I also had replacement hardware on the shelf.
But with that said, if you can upgrade, you should. The drivers and software are always evolving. When you have to replace a drive, driver, software, or anything, it will run into compatibility issues. Doing small regular upgrades of your servers is so SO much easier. That's why we have maintenance windows. To do patches and upgrades before EOL.
Examples? The old print server that died. Then the client found out how critical this was for their workflow. Where do you get a new Vesa SCSI card? Or the dev webserver that couldn't have the php patched because of the forgotten custom software that required that one quirky version. Fixing these issues always comes as a panic. And having production down for a week while you find an old XP box and hope you can stitch it together is not fun, but it pays well.
1
u/ant2ne 1d ago
Every enterprise environment I've worked patches to the latest supported kernel of the given distro. (usually RHELish). That is going to be the most stable and the most secure and the one the vendor will support. If you run into an issue and have to call support, the first thing they will want you to do is update. The enterprise should avoid hitting EOL.
1
u/ih-shah-may-ehl 1d ago
This is why companies have support contracts with OS vendors.
1
u/VancouverDom 1d ago edited 1d ago
AI slop 🤖
I see that this person is a top poster. Does that mean that this subreddit is mainly AI slop?
edit: yes, it is.
1
u/Antonio-MTS 1d ago
Very depends on what kind of the Linux systems are those where the kernel EOL. Whether they're exposed to the Internet, what apps run ...
1
u/gravelpi 1d ago
For anything I'm worried about being stable, I usually follow these two rules:
So no, I wouldn't upgrade an EoL kernel version because I expect that the distro is taking care of that via patches or tested upgrades. If they're not, I need to find another distro that does what I need (or upgrade to the newer version of the current distro). If I run into issues with a piece of software, I'd run it in a container if there wasn't a supported distro, or if I really had to, a fairly isolated VM.
1
u/jeffrey_f 1d ago
There is no blanket answer to that.
In a production environment, not until this move has gone through complete testing.
For my several laptops/desktops? I'd try on one and it if seems ok, I'd let it ride on the rest of them.
1
u/aclostael 1d ago
If theres no CVEs or security shits to worry about and no one else (dev, qa, security, etc) want to touch whats in it then sure, imma leave that ancient stuff in its place
1
u/kleinmatic 1d ago
In the AI exploit era I wouldn’t use an EOL kernel for anything that isn’t airgapped.
If you’re using some old hardware or some networking protocol that lost mainline support there’s almost certainly some kernel mod for it being maintained. There’s still very decent DECnet support despite being dropped from the kernel in 2022.
0
u/Beginning_Earth_9702 1d ago
Although I am capable of building the linux kernel, I have not done so in over a decade. I get my kernel from my distro and build my auto build my custom extensions in DKMS. So I would keep using the supported vendor kernel. (Just because the kernel maintainers have EOLed a kernel version does not necessarily mean the OS vendor has done so.)
Although, every specific use case is dependent on what the system is actually be used for. For desktop/personal use anything close to EOL has long since become so long in the tooth before then. For some of what you are talking about, "hardware compatibility, legacy applications, certification requirements" I'd be running whatever is officially supported by my enterprise support contract as to stay in a supported configuration.
I also keep my work loads separate from my hardware though. Containers when I can, VMs when I can't. This keeps these issue separated; my applications runs on whatever OS is supported by the application. Hardware runs on whatever is supposed by the hardware.