泰晓科技 -- 聚焦 Linux - 追本溯源,见微知著!
网站地址:https://tinylab.org

泰晓RISC-V实验箱,不会吃灰,开箱即用
请稍侯

泰晓资讯·9月 / 第三期 / 2021

unicornx 创作于 2021/09/16

“泰晓资讯”,广泛报道 “Linux/开源” 业界资讯。欢迎广大读者投递相关资讯来源和素材,本站将进一步收集整理后发布给大家。

Linux 内核最新消息

https://lkml.org/lkml/2021/9/12/310

经过忙碌的两周合并工作后,本周初如期发布了 Linux 5.15-rc1 版本的测试版内核。在此合并期间,内核发生了许多更改。其中一些亮点包括增加了新的 NTFS 文件系统驱动程序 - Paragon NTFS3;在内核中实现了一个 SMB3 文件服务器 - KSMBD、可选择性地支持在上下文切换期间实现 L1d 缓存刷新;继续开发引导内核运行在 Apple M1 上;许多针对 AMD 的改进以及初步实现针对 Intel 的 DG2/Alchemist 和 XeHP 独立显卡的 bring-up 工作,以及许多其他对新硬件的支持。

Linus 先生对 Linux 5.15-rc1 的评价是:"So 5.15 isn't shaping up to be a particularly large release, at least in number of commits. At only just over 10k non-merge commits, this is in fact the smallest rc1 we have had in the 5.x series. We're usually hovering in the 12-14k commit range. That said, counting commits isn't necessarily the best measure, and that might be particularly true this time around. We have a few new subsystems, with NTFSv3 and ksmbd standing out. And as a result, when you look at the stats on a "lines changed" basis, 5.15-rc1 ends up looking much more middle-of-the-road. It still doesn't look like a particularly _big_ merge window, but also not remotely the smallest one." 所以看上去 5.15 并不是一个特别大的版本,至少从提交数量上来看,在 5.x 系列中这也是最小的一个 rc1 版本。

让我们继续关注 Linux 5.15 的 rc 版本发布和测试状态吧,5.15 的稳定版本估计在 11 月会发布。

https://www.kernel.org/

分支类型版本发布时间
mainline:5.15-rc12021-09-12
stable:5.14.42021-09-15
stable:5.13.172021-09-15
longterm:5.10.652021-09-15
longterm:5.4.1462021-09-15
longterm:4.19.2062021-09-03
longterm:4.14.2462021-09-03
longterm:4.9.2822021-09-03
longterm:4.4.2832021-09-03
linux-next:next-202109152021-09-15

关键词: Linux

近期 Linux 内核的重要补丁(节选)

Architecture-specific

Core kernel

Memory management

关键词: Linux

Linux 5.15 升级了对 GCC 编译器版本的要求

While Linux 5.15-rc1 was released on Sunday with its many changes, landing on Monday was a late change to raise the baseline GCC version requirement for building the Linux kernel.

当前的 Linux 内核支持使用最早为 4.9 版本的 GCC 进行构建,从 5.15 开始这个要求被提升到 GCC 5.1。针对 AArch64 的构建早已要求需要至少 GCC 5.1 的版本,而目前的这个要求则普及到所有其他架构。

除了对那些仍然在非常旧的 Linux 企业发行版上进行构建的人之外,这个改变的影响应该不大。GCC 5.1 是 2015 年发布的 GNU 编译器版本。所以这个要求意味着在构建最新的内核时,你需要使用一个发布年龄不超过六年的编译器版本。

通过放弃对 GCC 5 之前的编译器支持,Linux 能够不再理会 GCC 4.9 才有的的一些编译器警告从而删除那些特定于 GCC 4 的一些 workaround 的代码。实际上,放弃 GCC 5.1 之前的支持意味着删除了大约 350 行代码,并降低了验证旧编译器支持的维护负担。

Linux 创建者 Linus Torvalds 在 2014 年将 GCC 4.9 称为 “pure and utter crap”,所以现在他可能很高兴看到从内核中删除了这种支持。

除了消除旧的兼容性问题和处理编译器的烦恼之外,迁移到 GCC 5.1 最低版本确实意味着 Linux 内核未来可以潜在地从使用 C89(对应 GNU89)切换到 C11(对应 GNU11),但当前还未就此事对主线进行更改。

新闻出处,“Linux 5.15 Raises Its GCC Compiler Version Requirement”: https://www.phoronix.com/scan.php?page=news_item&px=Linux-5.15-Raising-GCC

关键词: Linux, GCC

Linux 5.15 中 RISC-V 进一步扩大栈地址随机的范围

In addition to the RISC-V changes merged last week for the Linux 5.15 kernel, a second batch of patches was merged this weekend.

在 Linux 5.15 内核的第二个合并窗口期间 RISC-V 又合并了一批新的补丁,其中值得注意的是有关扩展栈随机化地址空间的修改。到目前为止,针对 RISC-V 架构,栈随机化的地址空间大小仅为 8 MiB,而整个 Linux 5.15 中针对其他所有的架构,正在试图将其扩大到 1 GiB。 针对 RISC-V 64 位 (RV64) 所进行的这项扩展地址空间大小的工作使得 RISC-V 也赶上了 x86/x86_64 和 AArch64 架构在这方面的工作进度。

详细的完整代码提交列表可以参阅这里:http://lkml.iu.edu/hypermail/linux/kernel/2109.0/03784.html

新闻出处,“RISC-V Gets Expanded Stack Randomization With Linux 5.15” https://www.phoronix.com/scan.php?page=news_item&px=RISC-V-Better-Stack-Rand

关键词: Linux,RISC-V

SLUB 做出改进,适配实时 Linux (PREEMPT_RT)

One of the nice low-level improvements we’ve seen with Linux 5.15 is a number of pieces falling into place in the quest of upstreaming the real-time (RT) patches for Linux. The latest merge makes SLUB RT-compatible.

我们在 Linux 5.15 中看到一些不错的底层基础改进,其中之一是有关 SLUB 的修改,使其更加支持 Linux 的实时化(Real-Time)。

Linux 5.15 针对 Real-Time 的一项重大修改是合并了 PREEMPT_RT 的 Locking 相关代码,虽然距离将 PREEMPT_RT 的工作全部 upstream 还有一段时间,但这绝对是一个重要的里程碑。在此基础上更多的内核代码将继续进行调整以使其能更好地兼容内核的 Real-Time 特性。

上周合并窗口期间 Linux 的 SLUB 内存管理代码合并了针对 RT 的支持。SLUB 内存分配代码现在被认为是 “fully PREEMPT_RT compatible”。到目前为止,并没有发现这项合并会为 RT 或非 RT 配置下的内核引入任何可能的 performance regressions,除了在 RT 开关打开后由于使用 RT mutex 可能会对系统的吞吐量性能带来一些影响,但这也是实时内核所追求的可抢占特性所必须付出的代价。正如提交的 commit 中所指出的,"This series was initially inspired by Mel's pcplist local_lock rewrite, and also interest to better understand SLUB's locking and the new primitives and RT variants and implications. It makes SLUB compatible with PREEMPT_RT and generally more preemption-friendly, apparently without significant regressions, as the fast paths are not affected."

新闻出处,“SLUB Adapted To Be Real-Time Linux Compatible (PREEMPT_RT)”: https://www.phoronix.com/scan.php?page=news_item&px=SLUB-Linux-RT-Compatible

关键词: Linux,SLUB,PREEMPT_RT

有关 Linux 内核中对 Rust 支持的最新进展

While the Rust programming language support for usage within the kernel isn’t landing for the Linux 5.15 merge window ending this weekend, that effort remains ongoing. A status update on the effort was shared this week about Rust usage for the Linux kernel.

虽然上周末结束的 Linux 5.15 合并窗口并未支持 Rust 编程语言在内核中的使用,但这项工作仍在进行中。Miguel Ojeda 作为参与 Rust for Linux 工作的主要开发人员之一,目前正在与 Google 合作进行这项工作,他在本周的线上 Linaro Connect 会议上介绍了这项工作。

目前已经开发了用于添加 Rust 的基础设施支持和至少一个虚拟驱动程序的 RFC 补丁,但到目前为止,这项工作还没有落地。但现在的问题仅在于它何时落地而不是是否会落地的问题了。

对上周五的演讲感兴趣的人可以访问 观看 Linaro Virtual Connect 2021 秋季会议的技术视频,相关的 PDF 幻灯片在这里:<https://static.linaro.org/connect/lvc21f/presentations/LVC21F-317.pdf>。

新闻出处,“The Latest Progress On Rust For The Linux Kernel” https://www.phoronix.com/scan.php?page=news_item&px=Rust-Linux-Kernel-Linaro-2021

关键词: Linux,Rust

Ubuntu 18.04.6 LTS 发布

Ubuntu 18.04.6 LTS is coming as an unscheduled point release. While Ubuntu 20.04 is out as the latest and greatest long-term support release, Ubuntu 18.04.6 is coming since the existing 18.04 installation media has broke. Due to key revocations, existing Ubuntu 18.04 installation media is having issues and thus Canonical has decided to spin Ubuntu 18.04.6 LTS to offer up bootable media for anyone still making use of this LTS-1 platform.

Ubuntu 18.04.5 LTS 在一年前作为 “Bionic Beaver” 的最后一个计划发布版本发布,但一个紧急问题导致 Canonical 又为这个大版本发布了一个新的小版本升级 18.04.6。Ubuntu 18.04.6 将专注于 Ubuntu Desktop 和 Ubuntu Server,而针对 Ubuntu Core 暂时还未列入计划。

更多信息可以在发行公告(https://lists.ubuntu.com/archives/ubuntu-announce/2021-September/000272.html)和发行版的发行说明(https://wiki.ubuntu.com/BionicBeaver/ReleaseNotes)中找到。

新闻出处,“Ubuntu 18.04.6 LTS Special Being Prepared To Deal With Unbootable Media” https://www.phoronix.com/scan.php?page=news_item&px=Ubuntu-18.04.6-LTS-Coming

关键词: Ubuntu

联系我们

资讯内容部分来自 “LWN.net“。如果您对某些 LWN 文章感兴趣(譬如希望获得全文翻译的)请扫描二维码加微信联系我们:

tinylab wechat



Read Album:

Read Related:

Read Latest: