Clang Thread Safety Checks Begin Uncovering Bugs In The Linux Kernel

Posted to the Linux kernel mailing list this week were two competing solutions for new LLVM Clang capability / thread safety analysis to the Linux kernel. Two developers had separately been working on implementations for the Linux kernel to make use of Clang's "-Wthread-safety" functionality. Ultimately the upstream kernel will likely settle upon the superior or unified solution while already making use of these new checks is uncovering Linux kernel bugs...

Feb 8, 2025 - 17:20
 0
Clang Thread Safety Checks Begin Uncovering Bugs In The Linux Kernel
Posted to the Linux kernel mailing list this week were two competing solutions for new LLVM Clang capability / thread safety analysis to the Linux kernel. Two developers had separately been working on implementations for the Linux kernel to make use of Clang's "-Wthread-safety" functionality. Ultimately the upstream kernel will likely settle upon the superior or unified solution while already making use of these new checks is uncovering Linux kernel bugs...