pwru – A Networking Debugger Based on Linux Kernel and BPF

pwru - A Networking Debugger Based on Linux Kernel and BPF

In nearly a decade of our involvement in cloud-native network development, we have deeply realized that troubleshooting network issues, even in small environments, can turn into a nightmare. Much of the complexity arises from the Linux kernel itself—sending a single packet can involve dozens of kernel functions from different subsystems. Traditional tools like tcpdump often … Read more

Tencent Engineer Submits Patch to Linux Kernel Introducing Swap Table Architecture

Tencent Engineer Submits Patch to Linux Kernel Introducing Swap Table Architecture

Source: Reprinted with permission from OSC Open Source Community (ID: oschina2013) Recently, Tencent engineer Kairui Song submitted a new patch to the Linux kernel mailing list, proposing the introduction of a new architecture called Swap Table, which integrates swap cache, swap mapping, and swap allocator into a new backend infrastructure. According to reports, the latest … Read more

High-Risk Vulnerability Alert: Linux Kernel XFRM Double Free Vulnerability CVE-2025-38500

High-Risk Vulnerability Alert: Linux Kernel XFRM Double Free Vulnerability CVE-2025-38500

Vulnerability Description: In the XFRM interface, the collect_md attribute can only be set during device creation. Therefore, if change_link() is called on an interface of type collect_md, it should directly return a failure. However, the check that was originally intended to enforce this restriction is only performed when locate() returns xi, but locate() itself does … Read more

Linux102: Analysis of ramdisk.c in Linux Kernel 0.11

Linux102: Analysis of ramdisk.c in Linux Kernel 0.11

Public Account “Focus on Linux”, dedicated to Linux kernel development The Linux102 series will detail 102 files in version 0.11 of Linux. This article discusses the source code of the 45th file, <span>【Linux102】45-kernel/blk_drv/ramdisk.c</span>. 1. Main Function of ramdisk.c This is a memory virtual disk driver, written by Theodore Ts’o. It means that: If RAMDISK is … Read more

Strictness of Linux Kernel Maintainers

Strictness of Linux Kernel Maintainers

This article mainly introduces personal experiences in the community and some interesting anecdotes observed from subscription emails. # Krzysztof Wilczyński I have also been deeply affected by this maintainer, not just me, but also my colleagues in the company, and over 100 to 500 people in the community who have experienced patches being commented on … Read more

An Open Source Practical ‘Operating System Development Textbook’: Raspberry Pi OS

An Open Source Practical 'Operating System Development Textbook': Raspberry Pi OS

Recently, I’ve seen many friends asking, “I want to learn operating system development, but it’s so hard to get started!” Don’t worry, today I want to recommend a fantastic project—Raspberry Pi OS. It allows you to deeply understand the Linux kernel while getting hands-on experience with a “Hello, world!” on the Raspberry Pi. Let’s discuss … Read more

The Essence and Core Value of C++ Comments: Conveying Design Intent from the Perspective of the Linux Kernel

The Essence and Core Value of C++ Comments: Conveying Design Intent from the Perspective of the Linux Kernel

1. The Essence and Core Value of Comments Comments are non-executable text in source code meant for human reading, and their core value lies in enhancing code maintainability. In Linux kernel development, the principle of “comments should explain why, not how” is followed. For example, in the memory management module, developers might comment, “Using a … Read more

Analysis of the Basic Principles of Kprobe in the Linux Kernel

Analysis of the Basic Principles of Kprobe in the Linux Kernel

Kprobe is a powerful debugging and tracing tool in the Linux kernel that allows developers to dynamically insert breakpoints at almost any instruction in the kernel, enabling the collection of debugging and performance information without the need to reboot the system, modify the kernel source code, or recompile the kernel. In the previous article, Introduction … Read more

Detailed Explanation of the Linux Kernel Boot Process on Rockchip Platform

Detailed Explanation of the Linux Kernel Boot Process on Rockchip Platform

More content can be added to the Linux system knowledge base package (tutorials + videos + Q&A). Back to school season “Linux Driver Comprehensive Course” promotion. Table of Contents 1. Linux Kernel Boot Process Flowchart 2. Self-Extraction Phase 3. Kernel Entry Point 4. Assembly Phase 5. C Function Phase 6. Kernel Boot Scene 7. Executing … Read more

Design and Implementation of ELF File Signature Verification Mechanism in Linux Kernel (C/C++ Code Implementation)

Design and Implementation of ELF File Signature Verification Mechanism in Linux Kernel (C/C++ Code Implementation)

1. Introduction: Why is ELF Signature Verification Needed? In Linux systems, ELF (Executable and Linkable Format) is the core format for executable files and shared libraries. By default, the kernel only checks the format validity of ELF files (such as magic number and architecture matching), without verifying the integrity and legitimacy of the file’s source— … Read more