Why did you release still in use "outdated" Linux kernel?

Check the Linux kernel version used by your system , you will find all likelihood, according to information provided by the official website of the Linux kernel, the kernel version has reached the end of life (EOL) a.

Once a software has reached end of life, then it means that it will never get bug fixes and maintained.

This will naturally lead to a series of questions: Why do I use a Linux distribution has reached the end of life of the kernel it? This has no security risk? My system still safe?

The following will answer these questions one by one.

to sum up

Maintenance and upstream kernel of your distribution kernel maintenance are two different concepts.

For example, according to the official website of the Linux kernel, Linux kernel version 4.15 may have reached the end of life, but until April 2023, Ubuntu 18.04 long-term maintenance releases will continue to use this version, and transplanted back through security patches and bug fixes to provide maintenance.

Check the Linux kernel version, and whether the end of life

First, check the Linux kernel version of your system you are using:

uname -r

I am using Ubuntu 18.04, Linux kernel version of the output is as follows:

abhishek@itsfoss:~$ uname -r
5.0.0-37-generic

Next, go to the  Linux kernel's official website on to see what Linux kernel version is still in maintenance state. On the home page you can see the information.

You see the version of the kernel state should look like this:

Linux kernel state

If your kernel version is not listed in the official website home page on the kernel, it shows that the release has reached the end of life.

It can be seen 5.0 kernel versions not in the list, which shows that the kernel version is no longer maintained. In fact, the version in  June 2019 has reached the end of life .

Unfortunately, Linux kernel life cycle no rules to follow. Not to say that conventional stable kernel release can get X month maintenance, long-term maintenance release (LTS) can be maintained Y years. No such thing.

根据实际需求,可能会存在内核的多个 LTS 版本,其使用寿命终期各不相同。在这个页面上可以查到这些 LTS 版本的相关信息,包括计划的使用寿命终期。

那么问题来了:既然 Linux 内核官网上明确表示 5.0 版本的内核已经达到了使用寿命终期,Ubuntu 为什么还在提供这个内核版本呢?

你的发行版使用的 Linux 内核已经达到了使用寿命终期,但是没关系!

你是否想过,为什么 Ubuntu/Debian/Fedora 等发行版被称为 Linux “发行版”?这是因为,它们“发行” Linux 内核。

这些发行版会对 Linux 内核进行不同的修改,并添加各种 GUI 元素(包括桌面环境、显示服务器等)以及软件,然后再呈现给用户。

按照通常的工作流,Linux 发行版会选择一个内核,提供给其用户,然后在接下来的几个月、几年中,甚至是达到内核的使用寿命终期之后,仍然会继续使用该内核。

这样能够保障安全吗?其实是可以的,因为 发行版会通过向后移植全部的重要修补来维护内核

换句话说,你的 Linux 发行版会确保 Linux 内核没有漏洞和 bug,并且已经通过向后移植获得了重要的新特性。在“过时的旧版本 Linux 内核”上,其实有着数以千计的改动。

如果 Linux 内核网站上说某个内核版本已经达到了使用寿命终期,那么就意味着 Linux 内核的核心维护团队不会再对该内核版本进行升级和打补丁了。

但与此同时,Debian/Ubuntu 或者其他发行版的开发者们会继续工作,通过从(由内核核心团队维护的)更新的内核版本中迁移相关的修改,维持这个老版本的生命力。

重点在于,即使你的发行版看上去是在使用一个已经过时的 Linux 内核,其实该内核也得到了良好的维护,并非是真的过时了。

你是否应该使用最新的稳定内核版本?

新的 Linux 内核稳定版本每隔 2 到 3 个月发布一次,有不少用户跃跃欲试。

实话说,除非有十分充分的理由,否则不应该使用最新版本的稳定内核。你使用的发行版并不会提供这个选项,你也不能指望通过在键盘上敲出 sudo apt give-me-the-latest-stable-kernel 解决问题。

此外,手动安装主流 Linux 内核版本本身就是一个挑战。即使安装成功,之后每次发布 bug 修复的时候,负责更新内核的就会是你了。此外,当新内核达到使用寿命终期之后,你就有责任将它升级到更新的内核版本了。和常规的 Ubuntu 更新不同,内核升级无法通过 apt upgrade 完成。

同样需要记住的是,切换到主流内核之后,可能就无法使用你的发行版提供的一些驱动程序和补丁了。

正如 Greg Kroah-Hartman所言,“你能使用的最好的内核,就是别人在维护的内核。”除了你的 Linux 发行版之外,又有谁更胜任这份工作呢!

希望你对这个主题已经有了更好的理解。下回发现你的系统正在使用的内核版本已经达到使用寿命终期的时候,希望你不会感到惊慌失措。

欢迎在下面的评论区中留下你的疑问或建议。

 

译自:itsfoss.com   作者: Abhishek Prakash
翻译:LCTT https://linux.cn/article-11791-1.html   译者: chen ni

Guess you like

Origin www.oschina.net/news/112917/why-distros-use-old-kernel