Rewriting the Linux Kernel in Rust? The Ambitious Project ‘moss’

Rewriting the Linux Kernel in Rust? The Ambitious Project 'moss'

Rewriting the Linux Kernel in Rust? The Ambitious Project ‘moss’ “Writing an operating system? Isn’t that Linus’s territory?”“Can Rust write a kernel? Aren’t you afraid of unsafe code blowing you up?”“Linux compatibility? You mean it can run BusyBox and that’s considered compatible?” Hold on, today we won’t boast or make empty promises; instead, let’s take … Read more

Google’s Real-World Testing Shows Rust Reduces Android Memory Vulnerability Rate by 1000 Times Compared to C/C++!

Google's Real-World Testing Shows Rust Reduces Android Memory Vulnerability Rate by 1000 Times Compared to C/C++!

Source: CSDN (ID: CSDNnews) In recent years, Rust has become a rather controversial programming language. On one hand, many U.S. government agencies have publicly called for a shift away from C/C++ towards memory-safe programming languages like Rust. At the same time, major companies are competing to embrace Rust, emphasizing that it allows for writing safer … Read more

Google Officially Announces: Rust Makes a Significant Contribution! Android Memory Safety Vulnerabilities Drop Below 20% for the First Time!

Google Officially Announces: Rust Makes a Significant Contribution! Android Memory Safety Vulnerabilities Drop Below 20% for the First Time!

Introduction Brothers, those of us in IT, especially those of us working at the low level and in systems, who hasn’t been tormented by memory issues in C/C++? Buffer overflows, dangling pointers, Use-After-Free… … at best, they cause program crashes, and at worst, they create security vulnerabilities that can be exploited by hackers with a … Read more

One Compilation, Three Seconds to Crash: How I Exposed Memory Safety with Rust

One Compilation, Three Seconds to Crash: How I Exposed Memory Safety with Rust

💥 It is said that Rust bids farewell to segmentation faults forever, yet I encountered a <span>cargo build</span> crash with SIGSEGV just 3 seconds later.Memory safety? Yes, but it only guarantees “safety” without ensuring “correctness”.Today, this post will dissect the three UB monsters I created with Rust, along with a troubleshooting toolbox, which I recommend … Read more

Rust Language Helps Android Memory Safety Vulnerabilities Drop Below 20% for the First Time

Rust Language Helps Android Memory Safety Vulnerabilities Drop Below 20% for the First Time

Google has disclosed that due to the ongoing adoption of the Rust programming language in the Android system, the number of memory safety vulnerabilities has dropped below 20% of the total vulnerabilities for the first time.“We chose Rust for safety reasons, as it has achieved a 1000-fold reduction in memory safety vulnerability density compared to … Read more

FreeRTOS-rust: A Powerful Tool Perfectly Combining Rust’s Safety with FreeRTOS’s Real-Time Capabilities

In recent years, the Rust programming language has gained increasing attention in the embedded systems field due to its memory safety and high performance. However, efficiently using a Real-Time Operating System (RTOS) in Rust remains a challenge. FreeRTOS-rust has emerged to provide developers with a simple and user-friendly way to seamlessly integrate Rust with the … Read more

CS110L Learning Notes (Part 4): Concurrency Programming in Rust

Introduction In the previous summary of the CS110L course, we have seen how Rust builds a solid memory safety fortress in a single-threaded environment through its Ownership and Borrowing system. However, such scenarios are rare in modern systems programming. To fully utilize the performance of multi-core processors and handle I/O-intensive tasks such as network requests, … Read more

From Python to Rust: A Developer’s Journey of Performance Awakening

From Python to Rust: A Developer’s Journey of Performance Awakening Introduction As a developer, have you ever found yourself deeply immersed in the gentle embrace of Python? Its concise syntax, rich libraries, and rapid development efficiency seem to solve all problems. However, when your project starts handling gigabytes of data and your API faces high … Read more

How the Rust Borrow Checker Saved Our On-Call Nights

Introduction Have you ever experienced the agony of being woken up at 3 AM by a production environment crash? Does the helplessness of staring at core dump files, trying to guess which thread freed memory still in use by another thread, drive you crazy? This article shares a real case: how a payment processing service … Read more