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

基于泰晓RISC-V实验箱的Linux公开课
请稍侯

泰晓资讯·2 月 / 第二期 / 2024

unicornx 创作于 2024/02/22

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

Linux 内核最新消息

Linus Torvalds 本周发布了 Linux 6.8-rc5,这是 6.8 版本内核的最新每周测试版本。

Linux 6.8-rc5 主要集成了过去一周的问题修复和常规更改。值得一提的是一个文档相关的更改,该文档是一份指南,它规范了在处理 CVE 安全漏洞以及发布过程中的注意事项。由于 Linux 内核项目现在是 Linux 中发现的漏洞的 CVE Numbering Authority(CVA),因此已经发布了一份关于 Linux 内核的 CVE 处理指南,以明确详细说明该过程。有兴趣的人可以通过此 CVE 文档页面找到 Linux CVE 文档: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/diff/Documentation/process/cve.rst?id=5928d411557ec5d53832cdd39fc443704a3e5b77

摘录了 Linus Torvalds 在 6.8-rc5 公告中所写的说明如下:

“Ho humm.. Absolutely nothing stands out here, although I do wish things should have calmed down a bit more at this point in the release process.

But while there’s a bit more changes here than I would have wished for, there’s not anything big or scary going on that I can see: just small things all over. In fact, a fair chunk of the changes are in the selftests, not kernel code itself (mainly kvm, but also some continued work on the networking side). The documentation subdirectory also stands out a bit, although that’s at least partly due to Greg having worked on the whole CVE process and documenting that. … Anyway, I think (and hope) we’ll start seeing things calm down, and the next few rc’s are smaller.

Please commence testing,

Linus”

看上去 6.8 接下来的几个 RC 应该不会有什么太大的问题了,稳定的 6.8 版本预计将于 3 月发布。

https://www.kernel.org/ updated by 2024/2/22

分支类型版本发布时间
mainline6.8-rc52024-02-18
stable6.7.52024-02-16
longterm6.6.172024-02-16
longterm6.1.782024-02-16
longterm5.15.1482024-01-25
longterm5.10.2092024-01-25
longterm5.4.2682024-01-25
longterm4.19.3062024-01-25
linux-nextnext-202402212024-02-21

关键词: Linux

Linux Atomic Console 补丁发布第三版

Posted on Sunday was the third iteration of the patches working toward the threaded/atomic non-blocking console “NBCON” support that is known to be one of the last blockers to sort out before the remainder of the Linux real-time “RT” patches can be upstreamed.

刚刚过去的周日社区收到了针对线程/原子非阻塞控制台 “NBCON” 支持补丁的第三个迭代版本,众所周知,这个补丁是目前所剩余的,为数不多的几个阻碍 Linux 实时 “RT” 补丁被上游主线接收的改动中的一个。

在过去两年左右的时间里,Linux 开发人员一直致力于改造控制台,对其实现线程化支持,因为这是实现 Linux RT 所必需的。这次提交的第三次迭代版本,致力于实现控制台打印功能的原子化操作。

不过,当前的补丁系列并不包括线程化打印和 NBCON 驱动程序,因为它们将由单独的补丁系列发送。此次更新的补丁系列的改动包括:使用 CPU 状态而不是跟踪 per-CPU 的 emergency nesting,重命名各种函数,更好地处理 CPU 的 emergency mode,改进旧控制台处理、NBCON flushing 更改、文档改进和其他更改。

有兴趣的人可以在内核邮件列表上找到组成这个 printk 补丁系列的 26 个补丁。希望在 2024 年,我们将看到 NBCON 控制台支持得到解决,理想情况下,最终看到 Linux 的实时 (RT) 支持被合入主线。

新闻出处,“Third Version Of Linux Atomic Console Support Posted”: https://www.phoronix.com/news/Linux-Threaded-Atomic-Console-3

关键词: Linux, RT

Linux 6.9 允许使用 Clang 链接时间优化构建 RISC-V 内核

Adding to the list of features slated for the upcoming Linux 6.9 cycle is allowing RISC-V kernel builds to be compiled with Clang Link-Time Optimizations (LTO) enabled.

在下一个即将到来的 Linux 6.9 中,增加了一个新功能,允许在采用 Clang 对 RISC-V 内核进行构建时启用 Link-Time Optimizations(LTO)技术。这可以增强生成的二进制文件的性能和大小,包括对生成二进制文件的布局进行优化。注意要启用 LTO 支持,需要使用 LLVM Clang 14.0 或更高版本(尤其是 LLD 14+ 链接器)。

这个补丁目前已经在 RISC-V 的 “for-next” Git 分支中,支持传统的 LTO 功能以及 Clang 的 ThinLTO 模式,以实现更具可扩展性和增量性的方法。Linux 6.9 合并窗口将于 3 月开放,而稳定版本的 6.9 内核将在今年年中左右发布。

内核对于 LTO 这个特性的支持,最初在是在 x86_64 上添加了用于 Linux 内核的 Clang LTO,时间应该是在 2021 年的 Linux 5.12。

新闻出处,“Linux 6.9 To Allow RISC-V Kernel Builds With Clang Link-Time Optimizations”: https://www.phoronix.com/news/RISC-V-With-Clang-LTO-Linux-6.9

关键词: Linux, Clang, LTO, RISC-V

Linux 6.9 中针对 AArch64 上的 Rust 内核支持已准备好

The 64-bit Arm (AArch64) little-endian kernel will be ready to support the Rust kernel code with the upcoming Linux 6.9 cycle.

64 位 Arm (AArch64) little-endian 内核已准备好在即将到来的 Linux 6.9 中支持采用 Rust 编写内核代码。

这个补丁已经在 “next/rust-for-arm64” 中,补丁的提交说明摘录如下:

“This commit provides the build flags for Rust for AArch64. The core Rust support already in the kernel does the rest. This enables the PAC ret and BTI options in the Rust build flags to match the options that are used when building C.

AArch64 现在是继 x86_64(包括 x86_64 用户模式)和 LoongArch 之后,第三个宣布在 Linux 内核中支持 Rust 开发的体系架构。

到目前为止,Rust for Linux 内核的大部分支持都是关于基础设施的,包括各种示例代码。在 Linux 6.8 中,现在有一个 Rust 编写的网络 PHY 驱动程序,尽管它是现有 C 驱动程序的移植版本。另外我们还可以看到其他采用 Rust 编写的内核驱动版本仍在开发过程中,譬如 Rust 版本的 Apple Silicon SGX DRM 驱动程序等。

新闻出处,“Rust Kernel Support On AArch64 Ready To Go For Linux 6.9”: https://www.phoronix.com/news/Linux-6.9-AArch64-Rust-Support

关键词: Linux, Rust, AArch64

Linux 6.9 中将支持对休眠采用 LZ4 压缩从而加速唤醒时间

In development the past several months has been patches to allow changing the compression algorithm used by the hibernation images of the Linux kernel while preserving the system memory contents. With using LZ4 yields faster system restore times from hibernation than the current de facto compression algorithm used of LZO. This work is now queued for introduction in Linux 6.9.

社区中目前在从事一项开发工作,该项工作已经经历了好几个月,以及多个补丁版本,该补丁允许我们选择使用 LZ4 压缩算法在 Linux 内核休眠时将内存数据导出并压缩存放到硬盘中。使用 LZ4 后,系统从休眠状态恢复的时间比当前使用的 LZO 压缩算法时更快。这项工作现在正在等待被 Linux 6.9 中合入。

从事这项工作的人是来自高通的工程师,他使用通用内核加密的 API,以便可以选择使用 LZ4。休眠压缩格式可以在启动时更改,例如使用“hib_compression=lz4”选项。工程师发现,使用 LZ4 后恢复时间为约 3.8 秒,而同等条件下使用 LZO 的恢复时间约为 4.4 秒。

如果用户比较关注系统休眠的节能问题,这些补丁将会有积极的意义。在 Linux 6.9 合并窗口于 3 月开放之前,该补丁已经进入 Linux 电源管理子系统的 “linux-next” 分支中。在配置中 LZO 仍然保留为默认压缩算法,但如果我们启用了新的 CONFIG_HIBERNATION_COMP_LZ4 选项构建内核则会被 LZ4 替换。

新闻出处,“LZ4 Compression For Hibernation Images Queued For Linux 6.9: Faster Restore Times”: https://www.phoronix.com/news/LZ4-Hibernate-Queued-6.9

关键词: Linux, LZ4, Hibernation

Google 投资 100 万美元提高 Rust 和 C++ 互操作性

Google is announcing today they are contributing $1M USD to the Rust Foundation to focus on enhancing interoperability between the C++ and Rust programming languages.

Google 今天宣布,他们将向 Rust 基金会捐赠 100 万美元,专注于增强 C++ 和 Rust 编程语言之间的互操作性。

谷歌的 100 万美元捐款将作为新的 C++/Rust 互操作性工作来资助新的 “Interop Initiative”。

Google 希望这一举措将使拥有大量 C++ 代码库的大型组织更容易逐步过渡到 Rust 编程语言。Rust 开发人员将探索新的方法来提供现有 C++ 代码和 Rust 代码之间的无缝互操作性。

该倡议的第一项工作将是起草一份工作范围提案,以便开始与利益相关者讨论他们应该关注哪些方面来推动互操作性。这笔钱可能会用于围绕构建系统集成的额外招聘和资源配置,可能的基于 AI 的 C++ 到 Rust 的转换以及其他支出。

更多内容可以访问 https://security.googleblog.com/2024/02/improving-interoperability-between-rust-and-c.html

新闻出处,“Google Making $1M USD Investment To Improve Rust & C++ Interoperability”: https://www.phoronix.com/news/Google-Rust-Better-CPP-Interop

关键词: Google, Rust, C++

Mold 链接器的最新进展

When it comes to open-source compiler toolchain components and more broadly often unsung heroes in the low-level open-source space, one of the most interesting successes in recent years has been the Mold linker that has proven itself a viable alternative to GNU ld and Gold or LLVM’s lld linkers. Mold is already in great shape and typically proving itself well while moving ahead they are working toward kernel/embedded programming support as one of the last grounds to tackle.

当谈到开源编译器工具链组件时,近年来最有趣的成功之一是 Mold linker,它已被证明是 GNU ld 和 Gold 或 LLVM 的 lld 链接器的可行替代品。Mold 进展很不错,同时,其正在努力支持内核和嵌入式开发,这也是它目前还没有完全支持的工作之一。

Rui Ueyama 是 Mold 的首席开发人员,他同时也创建了 LLVM 的 lld。本月初他在布鲁塞尔举办的 FOSDEM 2024 上展示了 Mold 链接器的最新进展。他介绍了这个自由软件项目的成功及其许多里程碑,并展望了未来。目前看上去对于内核开发和嵌入式编程开发领域,Mold 还有很大的发展空间,Rui 打算为 Mold 补上这个短板。

那些想要了解更多关于 Mold 及其相对于其他开源链接器的成功的人可以访问 FOSDEM.org 上提供的视频录像 https://fosdem.org/2024/schedule/event/fosdem-2024-2606-can-the-mold-linker-be-usr-bin-ld-/

新闻出处,“The Mold Linker Is Great & Set To Become Even Better”: https://www.phoronix.com/news/Mold-Linker-FOSDEM-2024

关键词: Mold

联系我们

欢迎扫描二维码加微信联系我们:

tinylab wechat



Read Album:

Read Related:

Read Latest: