Kernel formal methods mailing list?
Hi Folks,
I've tried to include folk who are known to be working on formal verification for the Linux kernel. Apologies if I've missed anyone and please forward as appropriate.
Several Linux kernel developers & researchers have been experimenting with formal methods in recent times, I think largely due to the potential of LLMs to lower some of the costs and barriers to entry.
Examples I'm aware of include a presentation by Corinn Tiffany at LPC on her work with XArray [1], and Christian Brauner's linux-formal repo [2].
I've been experimenting with formal verification as part of a hypervisor research project [3] (which is admittedly not the kernel).
I'm interested in learning from what others are doing in this area, and sharing potentially useful findings, especially in terms of identifying _practical_ approaches for verification of low-level systems code.
I suspect there's a lot that can be done on smaller scale, well-defined projects, by developers who don't necessarily have specific expertise in formal methods, but have deep expertise in the target subsystem.
Thoughts? Would it be worth setting up a mailing list?
[1] https://lpc.events/event/20/contributions/2540/
[2] https://github.com/brauner/linux-formal
[3] https://github.com/orgs/beryllium-project/repositories (WIP review snapshot)
Signature · 2 lines
James Morris <[email protected]>
Hi James,
Adding Palina Tolmach (CTO, Runtime Verification) and Andrey Klaus to Cc.
Great idea, +1 for the mailing list.
We have a prototype deterministic (non-LLM) C to Lean 4 translator aimed at low-level C, with the Linux kernel as the main target, including threads and mutexes. Andrey Klaus is working on it. The generated Lean stays close to the source and is executable. Coverage of real-world C is still limited. Proving the translation equivalent to the C source should be possible, but is a separate research effort.
We also use a C -> Rust -> Aeneas -> Lean 4 path, checked against the C by differential fuzzing. We tried it on UVC [1], Binder [2] and the userns ID mapping [3]; the last one produced the uid_map range patch Christian applied. On the io_uring cBPF filter validator [4] it found a CONNECT filter bypass, fixed in aa5d5f8e5023 [5].
Looking forward to the list.
[1] https://github.com/runtimeverification/kernel-c-to-rust-spike
https://runtimeverification.com/blog/hardening-linux-c-code-a-rewrite-and-verify-loop
[2] https://github.com/runtimeverification/kernel-rust-verification-spike
[3] https://github.com/runtimeverification/linux-isolation-spike
[4] https://github.com/runtimeverification/linux-cbpf-spike
[5] https://lore.kernel.org/io-uring/[email protected]/
[6] https://github.com/runtimeverification/kernel-rust-coverage-map
[7] https://arxiv.org/abs/2605.30106 (AIMACS / CAV 2026)
Natasha
Quoted 20 lines · James Morris
Hi Folks,
I've tried to include folk who are known to be working on formal verification for the Linux kernel. Apologies if I've missed anyone and please forward as appropriate.
Several Linux kernel developers & researchers have been experimenting with formal methods in recent times, I think largely due to the potential of LLMs to lower some of the costs and barriers to entry.
Examples I'm aware of include a presentation by Corinn Tiffany at LPC on her work with XArray [1], and Christian Brauner's linux-formal repo [2].
I've been experimenting with formal verification as part of a hypervisor research project [3] (which is admittedly not the kernel).
I'm interested in learning from what others are doing in this area, and sharing potentially useful findings, especially in terms of identifying _practical_ approaches for verification of low-level systems code.
Quoted 5 lines
I suspect there's a lot that can be done on smaller scale, well-defined projects, by developers who don't necessarily have specific expertise in formal methods, but have deep expertise in the target subsystem.
Thoughts? Would it be worth setting up a mailing list?
Sure, what's one more list for us to be on :)
Quoted 4 lines · James Morris
I'm interested in learning from what others are doing in this area, and sharing potentially useful findings, especially in terms of identifying _practical_ approaches for verification of low-level systems code.
I have been trying Aeneas (Rust -> Lean 4 in particular), which still needs work for low-level/kernel/unsafe development (which is coming, from what I am told), but it can already be useful for a subset of safe Rust (and ideally single-crate).
I agree there are things that subsystems would probably start doing "locally" first, i.e. picking different approaches depending on their needs.
And, yeah, LLMs definitely are playing a role in making this way more cost-effective and thus popular :)
Cheers,
Miguel
Quoted 20 lines · James Morris
Hi Folks,
I've tried to include folk who are known to be working on formal verification for the Linux kernel. Apologies if I've missed anyone and please forward as appropriate.
Several Linux kernel developers & researchers have been experimenting with formal methods in recent times, I think largely due to the potential of LLMs to lower some of the costs and barriers to entry.
Examples I'm aware of include a presentation by Corinn Tiffany at LPC on her work with XArray [1], and Christian Brauner's linux-formal repo [2].
I've been experimenting with formal verification as part of a hypervisor research project [3] (which is admittedly not the kernel).
I'm interested in learning from what others are doing in this area, and sharing potentially useful findings, especially in terms of identifying _practical_ approaches for verification of low-level systems code.
Quoted 5 lines
I suspect there's a lot that can be done on smaller scale, well-defined projects, by developers who don't necessarily have specific expertise in formal methods, but have deep expertise in the target subsystem.
Thoughts? Would it be worth setting up a mailing list?
We do have (low-traffic) [email protected], though that was intended to be specific to the Linux kernel memory model and its formal-verification tooling.
Thanx, Paul
Quoted 9 lines
[1] https://lpc.events/event/20/contributions/2540/
[2] https://github.com/brauner/linux-formal
[3] https://github.com/orgs/beryllium-project/repositories (WIP review snapshot)Signature · 2 lines
James Morris <[email protected]>
Quoted 5 lines · Paul E. McKenney
Quoted 1 line
Thoughts? Would it be worth setting up a mailing list?
We do have (low-traffic) [email protected], though that was intended to be specific to the Linux kernel memory model and its formal-verification tooling.
That's a possibility. Would the mm folk there would want to keep it domain-focused?
Signature · 2 lines
James Morris <[email protected]>
Quoted 2 lines · James Morris
That's a possibility. Would the mm folk there would want to keep it domain-focused?
I think linux-formal would be clearer, even if LKMM uses formal methods.
Especially if one subscribes to both and uses filters/tagging in their email client and/or wants to pay more attention to one more than the other.
Cheers,
Miguel
Quoted 9 lines · James Morris
Quoted 5 lines · Paul E. McKenney
Quoted 1 line
Thoughts? Would it be worth setting up a mailing list?
We do have (low-traffic) [email protected], though that was intended to be specific to the Linux kernel memory model and its formal-verification tooling.
That's a possibility. Would the mm folk there would want to keep it domain-focused?
On second thought, I have to agree with Miguel, so I suggest instead subscribing [email protected] to the list.
But it could be a good fallback in case the Powers That Be object to creating a new email list. ;-)
Thanx, Paul
Quoted 9 lines · Paul E. McKenney
Quoted 8 lines · James Morris
Quoted 5 lines · Paul E. McKenney
Quoted 1 line
Thoughts? Would it be worth setting up a mailing list?
We do have (low-traffic) [email protected], though that was intended to be specific to the Linux kernel memory model and its formal-verification tooling.
Quoted 7 lines
Quoted 1 line
That's a possibility. Would the mm folk there would want to keep it domain-focused?
On second thought, I have to agree with Miguel, so I suggest instead subscribing [email protected] to the list.
But it could be a good fallback in case the Powers That Be object to creating a new email list. ;-)
Ok, helpdesk email sent, adding all who responded as requested owners.
Signature · 2 lines
James Morris <[email protected]>
From Chris @ LF:
Quoted 14 lines
Hi all,
This list is now operational
address: [email protected]
archive: https://lore.kernel.org/formal/any issues or queries, please reach out to [email protected]
Chris Hoy Poy
Senior Systems Engineer
Core Projects
The Linux Foundation
Perth, Western Australia (GMT:+8)
Signature · 2 lines
James Morris <[email protected]>
Quoted 9 lines · James Morris
Quoted 9 lines
From Chris @ LF:
Hi all,
This list is now operational
address: [email protected]
archive: https://lore.kernel.org/formal/
Quoted 7 lines
Quoted 7 lines
any issues or queries, please reach out to [email protected]
Chris Hoy Poy
Senior Systems Engineer
Core Projects
The Linux Foundation
Perth, Western Australia (GMT:+8)
Very good, and thank you all!
Thanx, Paul
Quoted 12 lines · Paul E. McKenney
Quoted 11 lines · James Morris
Quoted 11 lines
From Chris @ LF:
Hi all,
This list is now operational
address: [email protected]
archive: https://lore.kernel.org/formal/any issues or queries, please reach out to [email protected]
Quoted 8 lines
Quoted 5 lines
Quoted 5 lines
Chris Hoy Poy
Senior Systems Engineer
Core Projects
The Linux Foundation
Perth, Western Australia (GMT:+8)Very good, and thank you all!
FWIW, it seems that list owners need to subscribe.
Signature · 2 lines
James Morris <[email protected]>
Quoted 20 lines · James Morris
Quoted 18 lines · Paul E. McKenney
Quoted 16 lines · James Morris
Quoted 16 lines
From Chris @ LF:
Hi all,
This list is now operational
address: [email protected]
archive: https://lore.kernel.org/formal/any issues or queries, please reach out to [email protected]
Chris Hoy Poy
Senior Systems Engineer
Core Projects
The Linux Foundation
Perth, Western Australia (GMT:+8)
Quoted 4 lines
Quoted 2 lines
Very good, and thank you all!
FWIW, it seems that list owners need to subscribe.
Thanks for the reminder :)
Quoted 7 lines
--
James Morris
<[email protected]>