r/linuxquestions • • 6h ago

Could you clarify a few nuances regarding kernel versioning?

Hi,

I am Arch linux user

I've been following the releases of various kernel versions recently, and I feel like I've gotten a little confused.

As I understand it, version 7.4 is currently being prepared for release, work is also underway on version 7.3, the LTS version is 6.18, and development on version 7.5 is already in progress. Is that correct?

There seem to be quite a few kernel versions in development, and I don't fully understand how the release schedule works.

I'm also very curious about how new kernel versions are tested. At what point do we consider a particular version to have passed testing and be ready for release to end users? Does some of the testing responsibility fall directly on users?

3 Upvotes

5 comments sorted by

10

u/SuAlfons 6h ago

what does kernel.org say about this?

3

u/SirGlass 6h ago

Its sort of like any software development you sort of have alpha , betas and stable

7.3 is the latest stable kernel , 7.4 is sort of in development and in theory little new features should be added and just fixing bugs or testing those features

7.5 is sort of in development and new features can be added

The older ones 7.3 and 6.18 do not normally receive new features just bug fixes

the first two numbers are really meaningless just a convention however going from 7.3 to 7.4 means there can be new drivers, new features added into the kernel , going from 7.3.3 to 7.3.4 usually is just bug fixes

Going from 7.XX to 8.XX is nothing special , its just the same as going from 7.3 to 7.4 linus has said usually around version 20 of a branches he updates it so around 7.21 the next one could be 8.0 however there is nothing really special about the new branches

2

u/Sert1991 5h ago edited 5h ago

The current stables version is 7.3.8, i.e the recommended version if you're going to install the kernel from kernel.org and compile it yourself.
They also offer LTS versions which are older versions but still supported for security fixes, like the ones marked [longterm] on kernel.org

The one marked as [mainline] with RC in the version, currently 7.4.-RC5, is the next stable kernel release in development. RC means the features are frozen and it's in bugfix mode before it's stabilized, currently the 5th version.

The one marked as [linuxnext] is the continuous development branch where new features are added and big changes are done.

Basically, once 7.4 is stabilized, it will be released as 7.4 [mainline] then from 7.4.1 onwards it will be the [stable] release. Sometimes A version of the current stable will go into [longterm].
Next, a snapshot of [linuxnext] will be feature frozen and becomes the next release candidate, i.e 7.5-RC1

But you only need to care about this if you install your own kernel from kernel.org or use a distro which follows upstream versions like Gentoo does(keeps a stable from the [longterm] branches but offers the current [stable] in their unstable repo, to make it more confusing :P )

The majority of distros, will keep their own kernel version and backport security fixes to it as they come out, so the user doesn't have to worry about those versions.

I'll use my distro, Gentoo again as an example: i ntheir stable branch they use a version of 6.18, but as soon as security fixes that effect that version come out in newer kernel versions, the devs will make a patch and backport that fix to 6.18, that way the user can stay on 6.18 and still get security updates.

I personally compile my own kernel and always install the latest [stable] on kernel.org, gentoo is usually very quick to add it to their repos with the gentoo needed patches, and it's only a few hours apart.

1

u/_Lost-In-The-Weeds_ 5h ago

So as a tree grows the center trunk is continuously growing upwards. That is the head of development. The next Linux version.

From this central trunk branches sprout,  And they grow continuously outwards, even as the trunk continues up.  that is kernel releases. Usually no features are added but there are continual bug fixes and security updates as long as that branch is maintained.

Eventually the lower branches get shaded by upper branches and it no longer makes sense to have them so the tree let's them die. Unmaintained kernel versions.

 Only the most successful largest sun filled branches survive longer, these are LTS kernels.

1

u/wosmo 5h ago

I think it's important to remember that not all "work" on the kernel is equal, or has the same end-goal. So it's not so much "we're working on four branches", it's "not all branches are the right place for most work to go".

When a branch is heading towards a release, we tend to have "freezes" so that the only work that can enter that branch, is work that advances the goal of releasing it. So if Bob is working on a new driver, that isn't progressing the release - if anything, it's detracting from it. So that can skip the frozen branch, and go in the next branch.

"freeze" is a weird term because it makes it sound like it's fixed in place, and it rarely is. Think of it more as a car that has a turn ahead, so it needs to be slowing down now. Anyone who still wants to go full speed, should be in a car that isn't turning off.

With that;

  • LTS; previous stables, that still see support.
  • 7.3; stable/released, still sees updates because being on a release branch doesn't mean you don't need security updates.
  • 7.4; Some variation of "frozen" where you don't want to accept unnecessary changes
  • 7.5; (not exactly 7.5, more "stuff here won't see a release branch before 7.5") Where changes that don't meet the freeze go.

These last two will change depending on where in the release cycle you are. The closer you get to release, the more strict you need to be.