Leading items
Welcome to the LWN.net Weekly Edition for October 29, 2026
This edition contains the following feature content:
- Python's experimental JIT to be removed: after much discussion, the JIT work will be moved out of C Python main.
- The end of __get_user() and __put_user(): a large patch series directly from Linus Torvalds to perform some long-delayed cleanup.
- Guidelines for panics in kernel code: a discussion on when Rust code is allowed to panic, and how it should do error handling.
- Rust features in the future: a look at some in-progress Rust features, such as a smarter borrow checker.
- The campaign to push Northstar into Linux distributions: maintainers are not eager to include a vibe-coded web browser in distribution repositories.
- The first part of the 7.4 merge window: noteworthy changes coming to the next kernel release.
- Seeking smaller kernel stacks: one possible path to reducing memory usage.
This week's edition also includes these inner pages:
- Brief items: Brief news items from throughout the community.
- Announcements: Newsletters, conferences, security updates, patches, and more.
Please enjoy this week's edition, and, as always, thank you for supporting LWN.net.
Python's experimental JIT to be removed
Python's experimental just-in-time (JIT) compiler, which was added to CPython in 2024 for the 3.13 release, is on its way out. In June, the Python steering council announced that it was pausing work on the JIT in CPython's main branch until there was an accepted Python Enhancement Proposal (PEP) that addressed concerns about maintenance, compatibility, and set clear success metrics as well as a timeline for completion. After creating PEP 836 ("JIT Go Brrr: The Path to a Supported JIT Compiler for CPython") to try to meet the council's request, and after months of discussion, the JIT maintainers have withdrawn the PEP. For now, it appears that development on the once-promising project has come to an end.
The JIT was added to CPython by Brandt Bucher in early 2024. Generally, such a major feature would be expected to land only after the council had approved a standards-track PEP. Bucher had given a talk (YouTube video, slides) about the JIT at a Python core developer sprint, and announced his intent to merge the feature—but he had not taken the step of authoring or submitting a PEP for its approval. He was prodded into doing so by steering council member Thomas Wouters, who was also serving as the release manager for Python 3.13.
Bucher and Savannah Ostrowski drafted PEP 744 ("JIT Compilation"), which was an informational PEP—meaning it only provides information to the Python community and does not represent formal consensus to proceed on a feature or project. LWN covered the discussion of PEP 744 in April 2024, and later covered Bucher's talk on the JIT at PyCon US 2024, as well as the follow-up talk at PyCon US 2025.
PEP it up
Work on the JIT had been proceeding on the basis of PEP 744 until this
June, when the council had put forward its formal request for the JIT maintainers to
create a standards-track PEP. One might wonder, as
Antoine Pitrou did, why the council had decided that it was time to speak up
and ask for a new PEP. Wouters said
that there was no "single triggering event for this request
", but that
the council had been discussing the topic for a while and indicated that it was
looking to ensure the JIT work did not interfere with other projects. "There's been work
trying to get the JIT to play nice with instrumentation, debugging, and
profiling. There's also external JITs (like CinderX), JIT-adjacent things (like
Numba and PyTorch's compile), and discussions about a tier 3 JIT.
" The
council had waited until after the Python 3.15 beta release "to be clear
that we're OK with the status quo for 3.15
".
The council asked for a PEP that would make the case for the JIT "as a supported,
non-experimental part of CPython: its guarantees, its maintenance commitments,
and its impact on redistributors
". The council set a deadline of six months
for the PEP to be submitted and accepted; failing that, the council would
require the JIT code to be removed from the CPython main branch.
Bucher, Ostrowski, and Ken Jin drafted PEP 836 and published it on the Python forum for community feedback on July 3. It generated quite a bit of discussion, some favorable and some critical. One of the key themes in the comments, such as this one by Wouters, and this comment by Mark Shannon, was that the draft felt like it should be two separate PEPs. Shannon, for example, thought that the PEP should only cover goals for accepting the JIT work and felt that it should leave out implementation details. There were also quite a few calls for additional information.
Bucher pushed
back a bit on the suggestion that it should be two PEPs, and Ostrowski defended
the structure of the PEP as it was. "Outlining goals like we have in the PEP
without being able to share the plan and everything we've thought through
alongside it would make me uncomfortable. To me, goals without plans behind them
aren't really goals at all.
"
When we last looked at this
topic in September, the discussion about the PEP had slowed down without a
commitment to develop new PEPs or a formal statement from the council. The last
word from the council at that time, in the form of a summary
of its August 6 meeting, was that it had met with the PEP authors and
was "discussing the state of the PEP and whether it answered the questions
the SC asked in its request for a PEP
".
Experimentation in main
On September 21, Wouters posted
a statement from the steering council, minus Ostrowski (who is currently a
member of the steering council but did not participate since she is a co-author
of the PEP), that summarized its position. The statement
said that PEP did answer all of the questions that were highlighted in the
council's request, "although perhaps some less convincingly than
others
".
The council wished to make clear that it was not looking for the criteria that the JIT should meet to be a supported feature, or whether it should be considered such. Instead, the council was evaluating whether the JIT should continue as an experiment in CPython's main branch.
Part of the problem with allowing experimentation in main is the lack of unified design, and the uncertainty that core developers, package maintainers and users face as the experimentation changes behaviours and API surfaces.
The council said that the PEP was not specific enough about support plans, performance
criteria, and too vague or too optimistic about a number of other areas. The
statement included a ten-point list of items that the council wanted "to see
either spelled out in the PEP, or at least discussed and rejected
". The
council's list expressed concerns ranging from memory impact to security. For
example, on the topic of platform parity, the council wanted to ensure that the
JIT was designed to be easily adopted for new platforms. It wanted assurance
that the JIT's design would not be tied to specific platform or require
platform-specific knowledge to maintain.
Another area that the council called out was user impact. It said that the
PEP was "overly optimistic
" about user-visible differences with the JIT
enabled. There were many cases where users depend on idiosyncrasies in the
interpreter design, "as we've seen with other Python implementations or even
just between major Python versions
", and it wanted clarification on how
those differences would be handled. Would they be considered bugs, how would
situations be handled if a difference in behavior was unavoidable, and so
on.
Security was "an underserved area in the PEP
", according to the
council; it suggested that a discussion with the Python security response
team was in order and that a security review should be part of the criteria
for supported status as well.
PEP 836 specified a compatibility
review milestone to correspond with the first Python 3.17 release
candidate—which would be expected sometime in August 2028—that
would involve running the test suites of the top PyPI packages to see if the JIT
broke them. The council wanted that timeline moved up significantly. "We
think that's way, way too late, and the compatibility review should be an
ongoing and continuous process starting as soon as possible
".
The council also worried about the JIT's design decisions being made
"without critical review by the larger group of developers ultimately
responsible for [CPython] development, maintenance and support
". The bottom
line, it said, was that PEP 836 "mostly answers the questions we
asked
" with no missing pieces, but it wanted more discussion on those topics
so it could "gauge community support and consensus before we're asked to
pronounce on this PEP
".
Jin replied a few days later to thank the council for its detailed feedback and said that the group would work on its suggestions.
Withdrawn
After some consideration, it appears, the PEP's authors have decided not to continue pursing the council's approval. On October 19, Ostrowski (who is also release manager for Python 3.16 and 3.17) announced that the PEP was being withdrawn:
The Steering Council rightly sets a high bar for a proposal of this scope, and we don't feel we have the personal bandwidth to carry the current version forward. We continue to believe in the technical direction outlined in the PEP, including free-threaded support and a method-based frontend, and remain optimistic about the JIT's potential in CPython. We'll make the reference implementation available and link it from the withdrawn PEP so others who are interested can explore and build on that.
Barry Scott asked
if that meant that work on the JIT was stopped. Brett Cannon replied
that the work would be stopped in the main repository, but it would be up to the
community whether the work would continue elsewhere. Dunc Graham suggested
that there might be time for an alternative PEP to be submitted before the
council's deadline. Cannon said
that was not likely, "as all the people actively driving the JIT were either
authors on that PEP or contributors to it
".
With the PEP withdrawn, the JIT will likely be removed from CPython main fairly soon to ensure that any problems caused by its removal can be addressed early in the Python 3.16 development cycle. It is unclear whether the original drivers of the JIT work intend to continue working on it at all, or if it will simply be left for others to pick up if there is enough community interest. I have emailed the PEP authors for clarification, but have not yet received a reply.
The end of __get_user() and __put_user()
Linus Torvalds rarely writes significant amounts of kernel code these days, so the merging of a 48-part patch series from him is an unusual event. This series, destined for the 7.4 kernel release, performs some long-delayed kernel cleanup by removing a couple of the primitives used to access user-space memory from the kernel. What was once a best practice has long been superseded, but it can take time for such changes to work their way through a body of code this large.Kernel code often must access data that lies in user space; these operations must, of course, be done carefully. When the kernel is acting on behalf of a user-space process, it must not perform any accesses that the process itself cannot do. For this reason, the primitives for user-space access have been carefully written with a number of rules about their use.
For accesses to individual variables, the kernel has long provided get_user() and put_user(). They are macros that vary their behavior based on the type of the pointer passed to them; a get_user() call that is given a char * pointer will perform a single-byte read, while use of an int * pointer will result in a wider operation. These macros check that the provided address lies in the user-space portion of the address space; the kernel also handles any hardware-generated faults indicating that the given address is not accessible. Like many kernel functions, get_user() and put_user() will return zero if the access succeeds, and an error code otherwise. Callers are expected to check that return value and, beyond doubt, all kernel code diligently does so.
These functions perform the above-described checking for every call; if a kernel function must, say, access three fields from a structure, there will be three sets of access checks performed. Only the first of those three checks is actually necessary; if it passes, the other two will as well. To optimize those patterns, the kernel provides two variants of the user-space access functions — __get_user() and __put_user() — that perform less checking. Kernel code can check the base pointer of the structure with a call to access_ok(), then safely use the non-checking access functions thereafter.
As Torvalds points out in the merge log, though, this pattern has long been less than optimal. When it was first established, the checking performed by get_user() and put_user() was a significant part of the cost of the operation. Since then, the checking has been made cheaper, and the access itself has become more expensive. Specifically, most CPUs of interest have long since incorporated some form of supervisor-mode access prevention (SMAP), which prevents the kernel from accessing user-space memory at all. SMAP can defend the system against a variety of kernel bugs and exploits, but it also has a minor downside, in that it prevents the kernel from doing vital work as well. One must make some sacrifices for security.
Users, being stubborn, tend to find that sacrifice to be more than they are willing to make. Instead, the kernel must disable SMAP prior to each user-space access, and re-enable it afterward; that turns out to be an expensive pair of operations. Since __get_user() and __put_user() must manipulate SMAP in this way, they are not actually cheaper than the fully checked variants. The way to accelerate multiple accesses in the modern world is to disable SMAP once at the beginning, then re-enable it after all of the operations have been executed. So, for example, read access to user space can be enabled with user_read_access_begin(), and disabled again with user_read_access_end(). Naturally, code must take extra care to call user_read_access_end() when it is done accessing user-space memory, even if it exits via an error path, or the system will be left in an insecure state. Just as naturally, that sort of failure has happened more than once.
More recently, the scoped resource-management primitives were added to ensure that the necessary cleanup happens in this type of situation. Thomas Gleixner added a set of scope guards for user-space access to the 6.18 kernel in 2025. So the way a multiple-access situation should be coded now looks like:
scoped_user_read_access(ptr, label) {
unsafe_get_user(dest1, ptr->field1, label);
/* ... */
unsafe_get_user(destN, ptr->fieldN, label);
}
Here, ptr is the base pointer for the user-space accesses, which will be checked at the beginning; label is a label within the function that will be jumped to should any of the accesses fail. The compiler ensures that the kernel's read access to user space will be disabled when control exits this block of code, no matter how that exit comes about, so it is no longer possible to leave user-space access enabled by mistake. unsafe_get_user() (which is, of course, undocumented) performs the actual access, again jumping to label if something goes wrong.
In the end, there is no reason to keep __get_user() and __put_user() around — except for the inconvenient fact that they are still used in a number of places in the kernel. The purpose of Torvalds's series is to change all of those call sites. In some cases, such as this one, the calls are changed to plain get_user() and put_user(); in others, such as in the signal code, the scoped pattern is used instead. That gets rid of most of the call sites.
As described in the merge log, though, there are some places where these functions are used in more subtle ways. For example, some code used them to access kernel-space addresses because the fault handling they provide was needed. There is a function, get_kernel_nofault(), that does this job properly, so patches like this one convert the code to use it. In other cases, the code should really have been disabling faults rather than relying on these functions to handle them; patches like this one clean those up. Finally, there are a number of places in the kernel that need to dereference a pointer that might be in either user or kernel space. Cleaning those up is a bit more complicated; see this patch for an example.
The end result of all this work is that no code that is built for x86 kernels uses __get_user() or __put_user() anymore, so this patch removes them entirely for that architecture. Those functions remain for some other architectures though; in the case of 64-bit Arm, they never provided different behavior in the first place, so there is no rush to get rid of them. Out-of-tree modules that use those functions will have to be adjusted, of course.
Perhaps needless to say, Torvalds
did not do this work just because he was struck with a desire to get his
hands dirty with low-level code again. He is, of course, using an LLM
"as a glorified coccinelle script
" to get this work done in all of
the necessary spots. For better or worse, these tools are increasingly
being used by kernel developers at all skill levels as they work to make
the kernel better.
Guidelines for panics in kernel code
Alexandre Courbot spends most of his time working on the kernel doing code reviews. Recently, he's been wondering about what the standards should be for when Rust code is allowed to panic, and how it should do error handling more generally. Unlike many of the other talks at Kangrejos 2026, his talk was not presenting some existing work, but rather hoping to solicit opinions on the topic from the assembled Rust for Linux developers. He brought along a collection of tricky cases that he had run into recently to prompt discussion.
There is a "ladder of desirability
" in how to handle errors, Courbot
said. The best case is code that cannot fail, which people should try to
write whenever possible. Below that are failures that are checked for at compile
time, subdivided into those that are guaranteed to be caught, and those that
will be caught on a best-effort basis. Next are run-time checks using
Result and, as a last resort, panicking. He then gave small examples
of each of these, to ensure everyone was on the same page.
Generally, kernel developers and reviewers want code to be as high on that ladder as possible. For example, something that came up in doing code review of the Nova driver was how to represent the state of a virtual GPU (vGPU). The code originally used a structure that had a count of virtual functions (a virtual device with its own PCI memory space) and a flag for whether the vGPU was enabled. That led to a lot of run-time checks to ensure that the count was never zero when the vGPU was enabled. Rewriting that code as a Rust enumeration completely eliminated those run-time checks, since invalid states weren't possible to represent anymore—an example of the highest rung on the ladder.
struct VgpuState {
enabled: bool,
total_vfs: u16,
}
became:
enum VgpuState {
Disabled,
Enabled {
total_vfs: NonZero<u16>,
},
}
Compile-time checks are used throughout the kernel's Rust code, often in the form of build_assert!() (which checks that some code is optimized out of the final build) or static_assert!() (which checks that some condition always holds). Run-time checks using the Result type are also used frequently in Rust code.
The least desirable kind of error handling in Rust is panicking. It's used in two scenarios, he said: when something happening is definitely a bug, and when the programmer believes that a case will not happen. There is only one mention of panics in the kernel's Rust coding guidelines, and it just says that it is preferable to use Result, advice that developers do not always follow.
Each panic is a potential landmine, Courbot said. Linus Torvalds is strongly against bugs that make it possible to crash the kernel. Even the panics used for impossible cases, which the compiler can often optimize away, burden the reader of the code with needing to think about the panic when they change nearby code. Ard Biesheuvel said that panics are baked into the Rust language, and that it would not be possible to completely eliminate them. Courbot conceded the point that eliminating every single panic would be difficult, but still thought that reducing the number of panics in the code was desirable.
He then presented the first of his real-life examples, and asked what people thought the correct guideline should be. There is a udelay() function that takes an amount of time to sleep in microseconds, but it is considered a bug to call it with a timeout longer than an architecture-specific constant:
/// ... it is considered a bug to call this function with an out-of-range
/// value.
pub fn udelay(delta: Delta) {
debug_assert!(delta.as_nanos() >= 0);
debug_assert!(delta <= MAX_UDELAY_DELTA);
let delay = min(max(delta.as_nanos(), 0), MAX_UDELAY_DELTA);
...
}
In this case, the code clamped the provided delta to lie in the correct range and proceeded. But there are alternatives: the code could return a Result type, forcing the caller to check for EINVAL; the code could use a restrictive type to enforce that the provided delay is not too big; or the code could be changed to accept larger delays and just call the udelay() function on the C side multiple times.
Miguel Ojeda pointed out that what the code had been implemented to do (clamping the input and continuing anyway) was another general error-handling option that Courbot had not previously listed. In the Rust world, that kind of design is referred to as "erroneous behavior", he explained. It's an operation that is an error; it is still bad, but it has defined semantics instead of doing something unsafe. Another example of that in the kernel's Rust bindings is how the code handles errors outside the valid errno range: any error codes that are too big are turned into EINVAL when crossing the C-to-Rust boundary. It's still a bug, but it has a defined, safe behavior.
Courbot agreed that erroneous behavior was a good approach, at least in this case; it's what he had ended up recommending during code review. But there was another superficially similar case where erroneous behavior was not a good design choice. In this code, from the Rust binder driver, an argument is added to a "death list" to track some resources that need to be cleaned up when a driver exits. Just like before, calling the function with an invalid argument is an error:
pub(crate) fn add_death(&self, death: ...) {
assert!(
core::ptr::eq(self, &**death.node),
"attempt to add NodeDeath to the wrong death list"
)
}
Specifically, if the caller tries to add a NodeDeath structure to the wrong list, the resources in question would be cleaned up at the wrong time. So, there's no clear erroneous-but-safe behavior that can be introduced here, Courbot said. Benno Lossin questioned why the code couldn't just skip inserting the NodeDeath pointer into the list and return. Courbot supposed that would work, but it would leave the Rust binder in a weird state, which is not ideal. Gary Guo agreed, noting that the Android developers would probably prefer for the system to die if anything were to go wrong.
Courbot suggested that the function could return a Result, but that
would lead to somewhat pointless error handling. Or, the function could be
marked unsafe and proceed without the check, but that's not a clearly better
solution either.
Ojeda thought that this was a case where a panic was acceptable: "If you're
the maintainer, and you want to crash, that's fine
". Cases like this are
exactly what he had in mind when he wrote in the coding guidelines that it is
sometimes permissible to panic.
Courbot's next example was a panic that was conditionally compiled based on Kconfig settings. One of the maintainers of the kernel's Rust bitmap implementation added a bitmap_assert_return!() macro that is equivalent to assert!() if CONFIG_RUST_BITMAP_HARDENED is set, and otherwise just prints an error and returns when the condition does not hold. It is used to check that the provided index of a bit within the bitmap is less than the bitmap's allocated length.
Ojeda noted that he was not sure whether he should fight about this or not, when
he was reviewing the patch set. He could maybe see the argument for having a
global Kconfig setting for the whole kernel, but he wasn't sure he approved of
having separate Kconfig entries for every subsystem. Biesheuvel asked: "How
on Earth is the author of the bitmap library abstraction going to decide on the
policy of when it is right to panic or not?
"
Courbot agreed that it was a good question, and asked the kernel maintainers whether they thought that this code was wrong. Ojeda, Andreas Hindborg, and Greg Kroah-Hartman all agreed that it should be fixed. Kroah-Hartman noted that in this case, the Rust code was a faithful translation of the C code, which does the same thing. Guo thought the cases weren't analogous, because the C version of the structure had undefined behavior if used with an invalid index. Ultimately, the consensus seemed to be that conditionally panicking based on a per-subsystem Kconfig was wrong, but that this specific case was minimally acceptable because it was mimicking the existing C code.
Macros are not the only way to have conditional panic behavior. Courbot shared an example of a function that panics differently depending on how it is invoked:
impl Hertz {
const GHZ_TO_HZ: c_ulong = 1_000_000_000;
pub const fn from_ghz(ghz: c_ulong) -> Self {
Self(ghz * Self::GHZ_TO_HZ)
}
}
If from_ghz() is called at compile time (which is possible because it is a const function) with a value that causes arithmetic overflow, it results in a build error. When called at run time, it causes a panic. The function could be redefined to return a Result, or to have some other documented behavior when given an invalid argument, but Courbot didn't want to suppress the build error: getting a build error when something is incorrect is a good thing. There could be two versions of the function, one const and one non-const, Ojeda suggested, but he wasn't enthusiastic about the prospect.
Guo said that in his opinion, it should be fine for Rust code to panic when equivalent C code has undefined behavior. After all, if the component was being written in C, the compiler would be allowed to turn that undefined behavior into a panic. In this specific case, though, he thought that having erroneous behavior, such as safely wrapping or saturating the multiplication, would be fine. Courbot pointed out that this code could also be triggered by user space, and wondered if that changed anyone's minds, but it did not appear to do so.
Alice Ryhl called this example an easy case. The harder cases, in her opinion,
are cases like indexing into a dynamically sized type, something that Courbot
agreed with. Daniel Almieda asked whether
some future way to mark a function as being panic-free would help with this case.
Ojeda did not
think that it would, because this function can panic. He said that a
call to build_assert!() could potentially be used, though. Courbot responded:
"build_assert!() sounds like the right solution to many problems,
and then you start receiving zero-day notifications.
" He did not elaborate
on why, but it seems likely that he was referring to the fact that
build_assert!() relies on the optimizer, and so can have unpredictable
behavior.
Guo suggested using a macro that implements something like a pattern type, in advance of Rust adding support for pattern types. That led to an extended discussion about the usability of custom types in this situation. At the end of the discussion, people were less in agreement than before, with Rhyl noting that she did not believe that there is a single answer to the dilemma Courbot was proposing. Courbot accepted that, but still wanted some kind of guidance on how to make the decision.
There is also the problem that many panics are not obvious when reviewing code. He had looked at the Nova driver, and found that of 170 places where the code could panic, 140 were related to arithmetic overflow or underflow. All of those should be entirely avoidable, he said, with enough care and attention. Some of the arithmetic-related panics come from functions that have been inlined from the core crate, however, and he acknowledged that those would be a lot harder to fix.
One place in particular that bothered him was code that converted between null-terminated strings and Rust strings (which use an explicit length, instead). That code generated an overflow check for the calculated string length, even though a string occupying all of virtual memory would mean the system has larger problems. That's an example of a place where it is obvious to a human that the check is not needed, but since the generated overflow check is invisible, nobody had bothered to optimize it. Ryhl said she would accept a pull request from Courbot to fix that in the Rust standard library.
At that point, Courbot had run out of examples, so he attempted to summarize where that discussion stood. Everyone had agreed that dealing with errors at compile time was better than dealing with them at run time, and that reachable panics should be bugs. The kernel developers had agreed on little else.
Ojeda said that he thought the exact choice of when a panic is acceptable should be up to individual maintainers, but that generally he thinks drivers should have to justify potential panics more carefully than core code. Courbot thought that any code called from a device driver should probably not panic. Kent Overstreet cautioned against applying any rules too strictly, noting that people attempting to comply with strict requirements could mess the code up more than just accepting the occasional bit of messy code. Guo broadly agreed, saying that he thought it was a bad idea to try to eliminate panics completely. He would prefer self-contained components to be able to panic when given incorrect inputs, rather than pushing complexity onto calling code by returning a Result.
The word "self-contained" was the most important aspect of that, Courbot said.
If a component is self-contained, then it can be acceptable to panic, he said.
Ojeda added that many components aren't self-contained "with respect to
time
", and that panics can be hard for normal users to notice, report, and
diagnose.
At that point, the session ran out of time with no further agreement. There have been no updates to the Rust coding guidelines in the kernel since the conference. There were clearly some aspects of Rust coding style that the developers agreed on, but articulating those aspects as concrete guidelines may be a difficult task.
[ Thanks to the Linux Foundation, LWN's travel sponsor, for assistance with traveling to Kangrejos. ]
Rust features in the future
There are several Rust features that kernel developers have been hoping to stabilize, but Josh Triplett wanted to describe all of the other features that the Rust project is currently working on. He spoke about the topic at Kangrejos 2026, leaving the assembled kernel developers with several ideas about how to use these upcoming Rust features in the kernel. The features included refinements to the type system, small syntax improvements, and a smarter borrow checker.
Triplett began by cautioning that these features were works in progress, some
more than others. "That means that you have more opportunity to shape how
things work out,
" he said. He encouraged anyone interested in working on or
further developing the features to get in touch with him. Even just letting the
Rust developers know which features would solve a real problem in the kernel
would help with prioritization.
The first feature that he wanted to highlight was view types: a way to borrow only part of a structure. The borrow checker forbids having both a mutable reference and any other references to a structure at the same time, with one exception: within the body of a function, it is able to notice when a mutable reference is only used to access a subset of the fields of a structure. In that case, the other fields can be non-mutably referenced without causing a borrow-checking error. The problem with that is that it makes it hard to break up complicated functions into smaller pieces, because that would require the borrow checker to reason about per-field access across multiple functions, which it cannot do.
This is a real frustration that people have with the language, Triplett said. It almost caused him to bounce off of Rust when he first encountered it. View types provide a solution, by allowing a function's signature to declare exactly which fields of a structure it touches. The syntax for doing so is still to be decided; the current work is focused on making it work with the type system.
Miguel Ojeda said that the kernel would probably want view types, but hadn't requested it explicitly because it was already on the roadmap at that point. Andreas Hindborg asked what the expected time frame for view types was. Jana Dönszelmann said that there was currently only one person working on it, but that they were trying to obtain funding to make it a full-time effort. She guessed that prototypes of the feature would be available in the next year.
The next feature that Triplett wanted to discuss was also an extension to the type system. Pattern types are an additional way to encode program invariants using the type system. In many ways, it is a generalization of Rust's existing NonZero and NonNull types. A pattern type allows the programmer to say that a value has a particular type and, in addition, matches some pattern. For example, a valid error number could be restricted to fall between zero and 4096, while still having the layout and ABI behavior of a u32.
type Errno = u32 is 0..4096;
This is not an unprecedented feature, although it is not particularly common. Ada and LiquidHaskell both offer the same kind of refinement as part of the type system. Rust's implementation is available in nightly versions of the language, but it hasn't been integrated into the standard library, and probably needs some help to be made properly useful.
Hindborg asked whether this would be a way to implement alignment niches for pointer tagging — that is, a way to automatically use the low bits of a pointer to store additional information. Pattern types alone don't give that ability, Triplett answered. They do allow the compiler to use the invalid values of a type as a niche, as the NonZero types do today, but there's currently no pattern to indicate that a number is always divisible by some alignment. That could be added in the future; it just won't be part of the first version of pattern types.
Kent Overstreet asked whether the current syntax for pattern types would be flexible enough to accommodate alignment niches if they are eventually added. Triplett said that he did not have an exact syntax in mind for alignment patterns, but that any syntax for patterns that is added to the language would work with pattern types. He suggested that adding patterns for matching certain bit layouts was probably the right approach.
Alastair Francis wanted to know whether operations on pattern types involved run-time checks. If one defines a nanosecond type, and it goes over one billion, what happens? Just because u32 implements Add, Triplett said, does not mean that u32 is 0..1_000_000_000 implements Add. The compiler treats them as distinct types. So, practically, one cannot add anything to a pattern type without first coercing it to the more general integer type. Converting a normal integer back to a pattern-refined integer requires an explicit check, so the programmer will have to handle the error case.
A much bigger potential change to the type system is the introduction of either
linear types or
unforgettable types, two closely related ideas that are still in the
speculative planning stage. The core concept behind both is that it should be
possible to create types that are impossible to implicitly drop. That is as far
as linear types go, but unforgettable types would also forbid leaking memory
containing them using std::mem::forget(). This would
allow programmers to make types representing a database transaction, for
example, that must be committed or aborted instead of forgotten about. "It
sounds like it should be easy,
" Triplett said, but the feature turns out to
pose complications for other parts of the language.
For example, panicking with an unforgettable type on the stack is unsafe, so the language needs some way to ensure that a section of code can't panic. That was once blocked on some improvements to the trait solver, but work on the new trait solver is progressing again. Triplett thought this feature was probably useful for the kernel, which Ojeda agreed with.
Turbofishing
Moving away from type-system details, Triplett brought up the problem of using Rust's turbofish operator (::<>) on Into::into(), which is used to infallibly convert from one type to another, when that is possible. When calling a method that takes a generic type parameter, the programmer can specify the parameter explicitly by writing ::<SomeType>. That syntax is referred to as a "turbofish" as a tongue-in-cheek reference to the way that it looks a bit like a fish with a big tail.
The problem is that one of the most common situations in which one might want to specify a type explicitly is when converting from one type to another using the Into trait. Unfortunately, that trait is not written correctly to allow the turbofish operator to be used. The turbofish only works to specify type arguments that are passed to a given function or method; into() has no type arguments, instead relying on the generic type arguments of the trait that it is defined in, Into.
There is a clever fix for this that only involves changes to the standard library, Triplett said. The library team is hoping to make the change in the next Rust edition. Gary Guo asked about a few alternative approaches, such as type ascription. Triplett explained that they had tried many of those, but found the solutions less straightforward than they seemed.
Another improvement to the language's usability is a proposed infix pattern-matching operator. Rust has some support for pattern matching inside conditionals, but that can result in having to read the condition in an awkward order, Triplett explained. For example, this code matches the pattern Some(x) against the result of func().await, and then continues with the rest of the conditional, requiring the programmer to scan back and forth in order to read it:
while let Some(x) = func().await && x.some_condition() { ... }
Adding inline pattern matching would let programmers write everything from left to right, and eliminate a lot of small helper functions such as .is_none() in favor of a single consistent syntax:
while func().await is Some(x) && x.some_condition() { ... }
The proposed operator would work in any place that expects a boolean. There is an ongoing language experiment to try the concept out, but a future edition of Rust will be needed to change the syntax, since the parsing is not backward compatible. Tomáš Šedovič asked whether that meant the matches!() macro would no longer be useful. Triplett said that it would be kept for backward compatibility, but agreed it would see less use.
Guo asked whether the new syntax would be transformed inside the compiler to something
like the current if let or while let syntax. Triplett said no
— the new operator works in more contexts, so it will be transformed to a construct
that is legal in any location that expects a boolean. Guo asked where the
bindings introduced by the pattern would be in scope. "Anywhere you can be
sure that the result is true,
" Triplett said. Some people have discussed
using patterns to bind two values to the same variable, but that is
not yet planned. Guo remarked that the new operator sounded like a general
postfix match, which Triplett agreed with.
Triplett was excited for this feature because he believes it will reduce the number of helper functions that an average language-learner will need to understand; instead, they can learn this single feature and use it everywhere, which makes the language more consistent and easy to learn. The Rust developers can't always simplify the language like that, Triplett said, but it's good when they can.
Borrowing a cup of sugar
Another feature that should make the language easier to learn is Polonius, the new borrow checker. In Rust 1.0, scope was decided entirely lexically: everything lived until the end of the block in which it was declared. That turned out to be unintuitive, so a rewrite of the borrow checker introduced non-lexical lifetimes, where a lifetime can end just after the last reference to a variable, instead of at the end of the scope.
That helps some, but there are still situations where the borrow checker will reject a program that any human can tell is valid. This comes up particularly often in the context of loops, but can occur anywhere that control flow influences which references are effectively no longer used. For example, returning from the middle of a loop can confuse the current borrow checker about whether a reference is retained in the next loop iteration.
Polonius fixes that problem, by tracking how borrowing interacts with the flow
of control. It is still not perfect, but it "fixes a lot of things that made
people say 'Wait, that didn't work before?', which we love,
" Triplett said.
Polonius has been in development for years, but it is finally enabled on nightly
versions of the compiler. The main work needed to stabilize it is eliminating a
few performance regressions.
Triplett asked whether the kernel had been tested with Polonius, and Ojeda said that it was tested with both stable and nightly versions of the compiler, so the kernel should work fine with Polonius. It probably can't be turned on unconditionally for all kernel code until the minimum supported Rust version is increased, however, since the version in older compilers has bugs that have since been fixed.
Macro functions
A more complex potential feature is compile-time execution, inspired by Zig's comptime. Rust's existing const functions can run at either compile time or run time, Triplett explained. That is convenient, but it means that they cannot access compiler APIs that don't exist at run time. If there were a new type of function that was only allowed to run at compile time, the language could add a compile-time reflection API.
Ojeda asked whether comptime functions were like const evaluation in C++. Triplett said that it was similar, but that the Rust team was taking more inspiration from Zig. Overstreet asked whether this would make Rust compilation a multi-phase process, as it is in other languages with rich macro systems, such as Scheme. There is a plan in place to handle that, Triplett said. The Rust compiler already uses a query-based system that should support arbitrary phases in theory, but the prototype comptime functions would avoid adding too much complexity for the first few versions.
Once comptime functions are available, that would open up the possibility of a new macro system. Rather than needing to write procedural macros as part of a separate crate, macros could potentially be implemented directly beside the code that uses them. This could simplify the creation of macros, since it would no longer be necessary to use a separate language (as declarative macros do) or a separate compilation unit (as procedural macros do). The idea of revamping the macro system is still just an idea for now, however. Triplett said that compile-time-only functions, which are currently being prototyped, will need to be ready before proper discussion of a new macro system can start.
Having run through much of his time, Triplett ended with a handful of small features. The last noteworthy one was the addition of a syntax for guaranteed tail calls, which are useful for implementing interpreters and some recursive algorithms. The one aspect that makes the feature non-trivial is the interaction with Rust's automatic resource cleanup. I asked whether the Rust developers intended to implement tail recursion modulo cons (allowing the called function to do a small amount of work from the calling function, so that more calls count as tail calls), and Triplett said that he wasn't aware of any current plans, but thought it made sense as an optimization.
Other future features include a way to indicate that functions don't panic, a #[const_continue] attribute to optimize match operations inside a loop, and full const generics — but Triplett didn't have time to go into detail on any of them. Instead, he encouraged people to reach out to him if they had additional questions, or if they were interested in helping to bring these features to Rust.
[ Thanks to the Linux Foundation, LWN's travel sponsor, for assistance in getting to Kangrejos. ]
The campaign to push Northstar into Linux distributions
There is not a broad selection of mature, open-source web-browser engines for Linux users. Most of the browsers available for Linux are based on one of just three projects: Chromium's Blink, Firefox's Gecko, or WebKit. A new entrant would generally be seen as a welcome alternative, but the recent campaign to push one of the LLM-written Nordstjernen browsers into Debian and Arch Linux has raised some questions about the project's development and security processes.
About Nordstjernen
The Nordstjernen project appeared early in 2026; it shipped a 1.0.0 release of its
namesake browser on June 5. However, the release announcement makes mention
of several pre-1.0 releases dating back to late May that seem to have been
scrubbed from GitHub. According to the announcement, the browser engine "is
about 88,000 lines of C written by Claude and Codex [...] small enough for one
person to read and audit end-to-end"
. The development of the browsers seems
to be driven almost entirely by Andreas Røsdal (and LLMs), though there are a
handful of commits attributed to others in the various repositories.
Nordstjernen has a somewhat confusing dual-license scheme. The announcement specifies that it is released under the Nordstjernen Source License v1.0, a non-free custom license that prohibits "competing use", and converts to the MIT license after 10 years. The License.md file in the repository, however, states that the browser is available under the custom license or GPLv3.
Since the Nordstjernen browser was released, two others have followed: Northstar and Southstar. The
Northstar browser, licensed solely under GPLv3, is billed as "the minimalist
sibling of Nordstjernen: a single-window, single-page, single-process desktop
browser
" that leaves out tabs, per-tab rendering, WebGL, and
WebGPU. According to the site, it shares the browser engine with Nordstjernen,
but it also claims that Northstar was written from scratch. Southstar is
described as a Rust version of Nordstjernen, and it carries the same
dual-license scheme.
Please package
Røsdal opened an intent to
package (ITP) bug with Debian on July 23, looking for a sponsor to help
him in getting Northstar into Debian. He reasoned it would be useful for Debian
because the other browsers shipped by the distribution are Blink, Gecko, or
WebKit derivatives; including Northstar would help support "genuine browser
engine diversity
". He is not a Debian maintainer or developer, so he cannot
push a package into Debian on his own. He did state that he intended to maintain
the package long-term, and said that his packages were verified to build for unstable and the upcoming Debian 14 ("forky")
release.
The bug was updated
by Jérémy Lal in October, apparently after Røsdal had lobbied Lal and others
directly by email to include Northstar in Debian. (Why Lal and the others were
chosen specifically is unclear.) Lal provided some positive
feedback but noted "it might be a good idea to not target next debian stable,
given the youngness of this browser
". Røsdal replied
the same day to "pray and beg
" for inclusion of one of the Nordstjernen
browsers in the next stable Debian release.
If the Northstar browser is included in Debian Linux, I will do my utmost to make the browser successful and ensure it works well in Debian, and I will make sure that the Debian project and Debian contributors like you, and the four of you in particular, will be rewarded.
He did not elaborate on the nature of the promised reward, but did mention
that he had applied to the NLnet Restack fund which is meant "to
help deliver, mature and scale operational internet commons across the
technology stack
". Røsdal also made the claim that Nordstjernen, now at about
245,000 lines of C code, would be easy to audit. He suggested that Debian focus
on packaging Nordstjernen, as it was more mature, but use the English name
Northstar.
Gard Spreemann said
that the project's Git repository cast doubt on the easy-to-audit claim. He calculated that
there were 2,623,722 insertions and 1,527,351 deletions over the lifetime of the
repository. "I struggle to reconcile your goal of 'more maintainable, ease of
review and audit' with ~160k lines of code being added and ~100k being removed
per person per month.
"
After some back-and-forth, Spreemann asked
Røsdal: "Is the code of Nordstjernen reviewed (by the human beings who
are responsible for the project), or is it not?
" He added that it was
unlikely any Debian developer would agree to maintain a package with so much
churn without the people responsible even looking at the code. "This is
insane, and nothing more than a toy or an experiment, certainly not a fit for
Debian by a mile.
"
Røsdal ignored
the question about human code review and replied that he would appreciate
feedback from someone else: "Preferably from someone who actually works on
real software development in 2026, someone with education in computer science,
also considering that software development has changed with the introduction of
AI llms
".
To the list
On October 18, Røsdal appealed to the debian-devel mailing list to accept one of the Nordstjernen browsers into Debian. Andrey Rakhmatullin asked if the plan was for Røsdal to do the packaging himself or if he wanted others to do it. Røsdal replied that he planned to do it, but he expected frequent releases and would be open to help from the Debian community to help package all the variants of the browser.
Marc Haber responded to
the thread to clarify something he felt was often misunderstood by authors
who just want their program in Debian: "You cannot fix a security issue in
Debian stable by just uploading the new version of your program, you need to
[build] a patch that only fixes the security issue while keeping everything else
in the package at the state it was in at the release of the respective Debian
stable.
" That would require a supported version for at least three
years. None of Røsdal's responses to the thread seem to acknowledge the need for
a version with long-term support and security backports.
The request to package the browser also spawned a discussion around the
licensing for the browsers. For example, Andrei Ionuţ Ştefan asked
if Røsdal had reviewed the LLM-generated output to ensure that there was no
verbatim reproduction of copyrighted code from the training data. Spreemann said that it seemed doubtful
that Røsdal could claim copyright if he was not even reviewing the majority of
the code generated by LLMs. After a few exchanges, Røsdal said
that each improvement to the browsers had been small, incremental changes where
he had verified the results afterward. "It's like an artist painting a painting, one
stroke at a time.
"
The overarching question of whether LLM output is copyrightable, or how much
human input is necessary for it to be so, remains unanswered. Ted Ts'o observed that
participants in the discussion seemed to be looking for the threshold of
human-generated code to allow a project to be copyrighted. "If 99% of the
code is human-generated, and 1% LLM-generated or public domain code, can we
consider the entire code base under the GPL license? What if it's 60% / 40%?
What if it's 99% LLM or public domain, and 1% human-generated GPLv2
changes?
" He doubted that Debian would be able to answer the question of how
much code had to be generated by a human to be copyrightable, but he hoped
that if Debian created a policy requiring a certain percentage to be
human-generated that the Linux kernel would pass muster.
Security
After briefly weighing in about licensing, Ts'o (who is employed by Google) followed up on Northstar's security. He had run an experiment using one of Google's frontier models to see if Northstar adhered to its security policy, and if there seemed to be any deliberate backdoors. The 15-page report produced by the LLM claimed a number of discrepancies between the project's claimed security model and its actual code, as well as a number of critical security flaws.
The report says that the LLM found no backdoors; however, it identified undocumented environment hooks that automatically load extensions, silently grant webcam access to all sites, and more. It also noted that, for example, the pack-appimage.sh script would download and execute unverified binaries. The script has since been updated to pin build tools to fixed releases and verify their SHA-256 sums before executing them. In total, the report lists eight critical and eight high-severity vulnerabilities. In his reply to the bug summarizing his findings, he said he would not recommend that any user depend on Northstar if they care about their security.
He also suggested that the Northstar project consider rescinding its no-AI policy, which had
been added to the project's README on October 22. The project now claims
that the Northstar browser is being developed without AI starting in
October 2026. "Contributions — code, documentation, translations, issues
and pull requests — must be written by people, not generated by AI coding
assistants, large language models or similar tools.
" However, there have
been more than 70 commits that list Claude Opus 5.5 as co-author since
that date.
Initially, Røsdal thanked
Ts'o for his findings and said he would welcome a follow-up security review to
verify that the issues had been addressed. However, he replied
again to the thread to say he thought Ts'o was biased because he works for
Google. "Therefore in my opinion the Nordstjernen web browser was not given a
fair chance by the Debian community, and I will focus on other Linux
distributions which does not have Google-/corporate-biases like Debian does in
this instance.
"
Off to Arch
On October 24, Røsdal contacted the Arch Linux project via the aur-general list, which is for discussion about the Arch User Repostory (AUR). Typically, users can upload packages to the AUR without much oversight. However, new user registration has been turned off most of the year since it was subject to sustained attacks attempting to spread malware to unsuspecting Arch Linux users. Thus, Røsdal would have to receive assistance to create an account and upload packages to AUR—at least for the time being. It is unclear when registration will be re-enabled for the AUR.
After some discussion, some of it in favor of a new entrant to the browser
ecosystem, Edmund Lodewijks brought
up Røsdal's attempt to convince Debian to include Northstar. He cautioned
against packaging the browser. Røsdal claimed
that all of the issues raised in the report Ts'o generated were resolved. He
reiterated his complaint that Northstar had not been given a fair evaluation,
and said that while Claude had been used to develop the browsers "we will
transition [Northstar] to be maintained in the traditional way
".
Jelle van der Waa replied
that browsers are complex pieces of software with big security and privacy
concerns; users should not trust a young project for such things. He suggested
that Røsdal continue development, get a good security review, and demonstrate
that he could maintain the browser over the long term. "Maybe then people might be
interested in packaging it in the AUR but for now I can only strongly
recommend against it
".
Status
It does not appear that Northstar will be appearing in the AUR or Debian repositories anytime soon. Whether Røsdal will adhere to the stated no-AI policy also remains to be seen; thus far it does not seem that Claude has made its last contribution to the browser.
Since the XZ backdoor, distribution developers are also likely to consider an over-eager maintainer lobbying for a new project's inclusion to be something of a red flag. A browser project that has less than six months development history and no community to speak of is, in a word, suspicious. Røsdal's motives may well be entirely benign, but it is hard to blame Debian and Arch maintainers for being cautious.
In fairness to Røsdal and Northstar, it is not as if the established browser projects are without security concerns of their own. For instance, Debian issued a security advisory (DSA-6577-1) for the chromium package in Debian 13 on October 22: it addressed 363 CVEs. The previous advisory for chromium (DSA-6562-1) which was sent on October 15, listed a mere 37 CVEs. The Chromium project is also notoriously difficult to package, with quite a bit of churn of its own.
Firefox 159, released on October 27, listed more than 100 high-impact vulnerabilities including 72 use-after-free flaws and five privilege-escalation flaws. Chromium and Firefox, however, do have a much larger set of developers working on them and quite a few people scrutinizing the projects' code.
There is clearly interest in a new browser project that is based on a new open-source browser engine. Many of us are watching the Servo project, for example, with great interest. However, an entirely or mostly vibe-coded browser project that is largely driven by a single developer is not something that seems likely to gain traction among Linux users who care about privacy, security, or stability.
The first part of the 7.4 merge window
Since the merge window for 7.4 opened, there have been 6,753 non-merge changesets pulled into the mainline repository. Many more are expected, especially given the possibility that this merge window will be extended to three weeks. Still, even this initial set brought in a number of new features, in addition to the continued general cleanups and security fixes that the kernel has seen recently.
The most important changes included in this release were:
Architecture-specific
- Alpha now supports a number of different optional architecture features, such as gcov instrumentation and an additional page-table bit. These changes should make Alpha considerably more consistent with other architectures and more performant, although there is still no new Alpha hardware being produced. There has also been a fix for software floating-point emulation, which should make Alpha floating-point code more consistent across different hardware configurations.
- Arm no longer supports supersection mappings, which are a way to group multiple PMD-level huge pages into one unit. When they were enabled, they took several bits in hardware addresses, which could lead to problems for platforms with only 36 bits for physical memory addresses. Since there are no known users, removing it was judged simpler than trying to free additional bits in the address representation.
- User-mode Linux can now be used to test NOMMU configurations. User-mode Linux is a useful way to run kernel code in an ordinary process, typically for testing, but it has only been useful for testing kernel configurations that make use of an emulated memory-management unit (MMU). Now, the parts of the kernel that required that have been made optional, so user-mode Linux can be used to test embedded configurations that lack a MMU.
Core kernel
- A new CLOSE_RANGE_EXCEPT flag allows close_range() to close all file descriptors outside a chosen window, which should make it easier to control which file descriptors are shared with a child process. The CLOSE_RANGE_CLOEXEC_ONLY flag can be used to restrict closures in a range to operate only on close-on-exec file descriptors. Closing a range of files is also now synchronous, which reduces the number of atomic operations needed to empty the file descriptor table when a process exits, and makes the code for handling kernel threads less complicated.
- Kernel configurations now support additional shortcuts for defining string, integer, and hexadecimal settings. Corresponding shortcuts for defining boolean and tristate settings have existed for some time, so this addition makes the config language a little more consistent.
- Using sysfs to bind and unbind devices from a driver now marks the kernel as tainted, since this was originally intended as a debugging interface. The change was motivated by a number of fuzzing reports about kernel problems caused by binding devices to the wrong drivers. Only root is able to do that, but users still probably shouldn't rely on the ability.
- Sched_ext schedulers can now preempt running CPUs lazily, part of the long-running work to enable lazy preemption. Sched_ext schedulers can also now support handling proxy execution thanks to a new set of hooks. That patch set attracted some discussion before it was merged. Work on making nested sub-schedulers more feature-complete is also continuing.
- Core dumps sent over sockets now made have continuous ranges of zeros compressed, drastically cutting down on the number of bytes that must be sent, and slightly changing the socket format. Core-dump servers can also use new options to get more information about the specific thread responding to a request for a core dump.
Filesystems and block I/O
- Support for BFS, the filesystem that UnixWare devices use for their boot partitions, has been removed. The filesystem is not believed to have any users, and there is no particular reason to access these boot partitions from Linux, so hopefully it will not be missed.
- The iomap subsystem now uses lazy bounce buffering for reads with a hardware checksum, such as those used by XFS. Bounce buffering (allocating a separate buffer in the kernel and copying data from user space into it before sending it to the storage hardware) is needed to protect against concurrent modification by user space. For hardware that supports checksumming blocks as they are written, the kernel can now detect concurrent modification afterward. For the common case, where user-space doesn't tamper with the buffer as it is written, this lets the kernel safely skip allocating the bounce buffer and copying the data into it. If a modification is detected, the code falls back to using a bounce buffer as usual.
- The Btrfs filesystem has a new set of backup root options that can specify which backup root slot to use. These should not normally be needed, but could make recovering from filesystem corruption slightly less of a headache.
- EROFS filesystems that are mounted multiple times from the same backing file now share a superblock, resulting in lower memory usage.
Hardware support
- Clock: Renesas RZ/N1 timers.
- GPIO and pin control: ROHM BD73800 PMIC GPIO controllers, Axiado AX3005 SGPIO controllers, Analog Devices AD7768 GPIO controllers, R-Car X5H (R8A78000) controllers, and Tegra 268 GPIO controllers.
- Industrial I/O: Nuvoton MA35D1 microprocessors, Qualcomm QPIC SNAND v2 controllers, Renesas R-Car Gen5 devices, Realtek RTD1625 SoCs, Synaptics SL2610 I2C controllers, UltraRISC DP1000 I2C controllers, and Novatek NT72676 I2C controllers.
- Interrupt chips: Annapurna Labs FICs and Qualcomm Purwa SoC interrupt chips.
- Miscellaneous: MediaTek MT8167 and MT8127 watchdogs, T8140 watchdogs, Exynos 5515 watchdogs, Qualcomm SDM670 and IPQ9650 APCS mailboxes, Apple M4 and A18 Pro processors, Google Laguna Tensor G5 processors, Qualcomm SM8950, SM8975, Glymur, Shikra, and IPQ5424 processors, Exynos5515 mobile processors, Tegra264 SoCs, Tegra410 SoCs, R8A774A3 SoCs, and MT8167 SoCs.
- Networking: SVEthLANa Ethernet interfaces for Atari SuperVidel FPGA expansion cards, Meta Platforms NICs, X-Powers AC200/AC300 Fast Ethernet PHYs, Qualcomm IPQ5424 Ethernet NICs, RK4568 SGMII NICs, Alwinner H616 EMAC1 NICs, UltraRISC DP1000 NICs, Qualcomm sa8255p NICs, Microchip KSZ8995XA/KS8995XA Ethernet switches, Realtek RTL8261CE_CG and RTL8261D_VM Ethernet PHYs, Realtek RTL8723BS WiFi chips, Mediatek MT7928 Bluetooth chips, Qualcomm QCC2072 Bluetooth chips, and Synaptics 4384 Bluetooth chips.
- Power management: IPQ9650 CPU frequency controllers, Foxconn WCN7850 power sequencing sensors, Maxim MAX20024 SMPS converters, MPS MPQ4210 buck-boost controllers, Nexperia NEX10000UB dual-output LCD bias power supplies, MP8864 synchronous step-down converters, Qualcomm SM7250, Kuno, and MSM8952 power domains, and Renesas r8a774a3 SYSC power domains.
- Storage: Altera Agilex5 SD6HC cards, Cadence SD6HC cards, MSM8952 SD cards, and Allwinner B288 SD cards.
- Thermal: Google GS101 sensors, Renesas RZ/G3L sensors, Qualcomm MSM8952 TSENS sensors, and Qualcomm PMAU0102 Master BandGap temperature monitors.
Miscellaneous
- binfmt_misc no longer accepts arbitrary delimiters; users will have to stick to punctuation. This is another case of a feature that is not believed to have any users, but that was turning up a disproportionate number of bug reports.
- A new OPEN_TREE_DROP_MNTNS_MOUNTS flag has been added to open_tree() to work around problems with opening new mount namespaces inside containers. Mount namespaces are not allowed to form a loop; this is enforced by ensuring that older mount namespaces cannot be mounted below newer ones. When creating a container with a new mount namespace, this leads to problems with trying to expose a host directory that already contains a mount from a mount namespace. The new flag drops those mounts from the view of the mounted tree, avoiding the loop.
Networking
- The TCP ROCCET congestion-control algorithm is now supported. ROCCET is based on CUBIC, but has improved performance when running over a cellular network. Specifically, it should cause less bufferbloat than CUBIC does.
Security-related
- Detection of page mappings that were both writable and executable in the kernel was broken on x86, and has now been fixed.
- Eric Biggers has moved many of the architecture-specific AES implementations into the common crypto library, making the library faster and reducing algorithm duplication. SipHash was also moved.
- There are new security-module hooks for dealing with namespaces.
- Landlock can now use those hooks to restrict capabilities and namespaces.
- Keyrings no longer leak kernel addresses, which means they can no longer be used to defeat kernel address-space layout randomization (KASLR). Since the leak was only visible to local users, the patch was not considered a huge problem, but it's still nice to have fixed.
Virtualization and containers
- A new performance governor for virtual machines that takes into account time stolen by other guests has been added.
Internal kernel changes
- Christian Brauner fixed a number of bugs surrounding the interaction of core dumps and signals by building a TLA+ model of the relevant parts of the kernel.
- LLMs are now pointed at the documentation more aggressively. Perhaps now they will reliably read it.
- Rust code can use new configfs bindings.
- Linus Torvalds has completely removed __{get,put}_user() in favor of more modern interfaces. This article gives more detail on the scope and nature of the change.
- It is now possible to call call_srcu() from any kernel context.
- Support for safe self-referential structures in pin_init has been merged.
- New kmalloc_obj*()-style type-based allocation APIs for devm_kmalloc() provide safer allocations.
- A set of seq_buf helpers that was subject to much discussion has been merged as part of a larger cleanup of seq_buf and related code.
There are still 11,461 non-merge changesets waiting in linux-next, almost all of which can be expected to appear in a pull request before this merge window closes. Expect additional updates on changes for the 7.4 kernel to follow.
Seeking smaller kernel stacks
Memory has always been a scarce resource in computing systems, but the problem seems to have worsened recently. In particular, the worldwide shortage of memory chips has led to a renewed focus by systems developers on reducing memory usage. During the memory-management microconference at the 2026 Linux Plumbers Conference, Will Deacon discussed one specific consumer of memory that is being re-examined: kernel stacks.On 64-bit Arm and x86 systems, each thread has its own kernel stack that consumes 16KB of non-pageable memory. That may not seem like much memory, but some systems run with large numbers of threads; Android devices, for example, may host 2-3,000 system threads, and thousands more for running apps, adding up to 5,000 threads on an idle device. The result can be many megabytes of memory tied up in kernel stacks — memory that might well be put to better uses. Cloud environments have a similar problem; a data center can host millions of threads, leading to petabytes of memory use for kernel stacks over a large fleet of systems. This memory is highly underutilized, but overflowing the kernel stack is fatal for the system involved.
The 16KB size appears to have been arrived at almost by chance. When the
64-bit Arm architecture was merged for the 3.7 release in 2012, it had an
8KB stack; Deacon was unable to say just how that number was determined.
In March 2013, GCC 4.8 was released with proper Arm64 support. Shortly
thereafter, with the 3.11 kernel release in July 2013, the kernel-stack
size was increased to 16KB. Again, he is not entirely sure why; he is
unable to find any mailing-list discussion where that change was discussed.
The commit making
that change says simply that the change is "needed because of the
failures encountered when running SpecWeb benchmark test
".
In the 3.16 release, the x86 architecture followed suit, justifying the
change by saying that Arm64 had already done it. In this case, the
relevant commit
notes that "the problem is exacerbated by certain gcc versions that seem
to generate much bigger stack frames
". (This change was covered here at the time). In the 2016 4.5 release, the
Arm architecture gained per-CPU interrupt stacks; that change Deacon said, may
have resolved many stack-overflow problems by taking stack usage for
interrupt handling off of the per-thread stacks. The 4.14 release moved to
virtually mapped kernel stacks, which bring
a number of advantages but also force kernel stacks to be aligned
to 32KB.
In 2024, Pasha Tatashin proposed
dynamic allocation of kernel stacks as a way of saving memory. Deacon
described the idea as "scary
"; it implies that memory allocation can
happen at any location in the kernel, which can lead to all kinds of
surprises. This idea was
resurrected earlier this year, but did not gain much traction.
At the end of this history, we have billions of Android devices, all of which could benefit from more efficient use of memory. There are vendors that have responded to this problem with out-of-tree dynamic-stack implementations, but those are hard to ship, because they cannot be implemented on top of the generic kernel image with vendor hooks. Thus, there is even more interest than usual in solving this problem in the mainline kernel.
As an experiment, Deacon built a kernel with 8KB stacks and ran a whole set of tests, all of which passed — almost. There is a memory-pressure test that fails with such kernels. He has managed to crash these kernels in a few other ways; when that happens, direct reclaim (the kernel deciding it needs to reclaim memory to satisfy an allocation for some unrelated task) is almost always involved. A kernel built with a 4KB stack will not boot at all.
Compilers play a role in kernel-stack usage. GCC 4.9 added a --fconserve-stack option that is used by the kernel. Clang has a few known problem areas; work is underway to improve them.
Deacon concluded by saying that there has been some recent work to try to address this problem. Deacon has a patch series creating a dedicated exception stack to take some of the pressure off the per-thread stacks. This series from Mostafa Saleh allows the stack size to be set on the kernel's command line; that makes it possible to run with 12KB stacks now. Suren Baghdasaryan has been working on patches to move direct reclaim to a dedicated worker thread; that, Deacon said, might make it possible to set the stack size to 8KB. Linus Walleij has been looking at the dynamic-stack patches again, but worries that they can never really be made to be robust. And David Stevens has an RFC series that allows the kernel to reclaim memory from the stacks of blocked tasks.
Peter Zijlstra pointed out that the freezer exists, and that it could be used to safely reclaim memory used for kernel stacks. Matthew Wilcox said that it would be useful to have a generic feature in the kernel that would put the running thread onto a new stack. The XFS filesystem, he said, sometimes pushes work to a worker thread to avoid excessive stack use, but that confuses the lockdep locking checker; being able to cleanly switch the running thread to a new stack would be a lot nicer. Zijlstra said that feature will be relatively straightforward to implement, on x86 systems at least.
Arnd Bergmann has been working on this problem as well; most stack overflows, he said, result from direct reclaim invoked by memory allocations from user context. He has been running systems set to emit a warning when stack usage exceeds 1.25KB, and it works fine most of the time. Rust code, which is more stack-intensive, tends to blow through that limit, though, and there is no stack-usage checker for that code. Sanitizers can also cause problems. Zijlstra said that people running systems with sanitizers can deal with any problems themselves; Bergmann said that he agreed, but that the Android team does not.
Bergmann suggested simply having memory-allocation functions like kmalloc() hand off direct-reclaim work to a worker thread. Baghdasaryan answered, though, that this approach would lead to problems with priorities, CPU affinity, and more. It would be simpler, he said, to just switch stacks.
At the end of the session's time, Kyril Shutsemau said that he has been working on systems that run with 64KB pages; on those systems, stack space is severely underutilized. He was wondering whether it would be possible to allocate kernel stacks from the slab allocator, which would allow setting their size independently of the system's page size. Deacon replied that the system really needs guard pages to prevent stack overruns from stomping on unrelated data, and the slab allocator does not provide those. Stack canaries are not sufficient, since they only detect overruns after the fact, but cannot prevent them.
The session ended without any clear conclusions, but it would not be surprising to see some sort of stack-switching mechanism posted to the lists in the near future.
[Thanks to the Linux Foundation, LWN's travel sponsor, for supporting my travel to this event.]
Page editor: Joe Brockmeier
Next page:
Brief items>>
