Marco Elver

53 posts

Marco Elver banner
Marco Elver

Marco Elver

@maelver

Build reliable systems. Tweets about: Open source & Linux kernel. Opinions are my own.

Katılım Temmuz 2009
130 Takip Edilen396 Takipçiler
Marco Elver retweetledi
Dmitry Vyukov
Dmitry Vyukov@dvyukov·
#Linux kernel static locking analysis is finally merged! docs.kernel.org/next/dev-tools… This concludes Marco's hard work in the past year, and will enable prevention of locking bugs from entering kernel code base But we still have long road of annotating more code & enabling this on CIs
Marco Elver@maelver

Clang's -Wthread-safety, named "Context Analysis" for the Linux kernel finally merged after a year's worth of work: git.kernel.org/torvalds/c/092… docs.kernel.org/next/dev-tools… Currently opt-in; go and set 'CONTEXT_ANALYSIS := y' for any kernel code you're developing. Needs Clang 22+.

English
0
10
63
6.2K
Marco Elver
Marco Elver@maelver·
Respin of Capability Analysis (aka -Wthread-safety) for the Linux kernel now that Clang gained some new powers: @google.com" target="_blank" rel="nofollow noopener">lkml.kernel.org/r/202509181404… - prior LWN article: lwn.net/Articles/10129…
English
0
0
5
148
Marco Elver
Marco Elver@maelver·
Prototype for type-based partitioning of Linux kernel slab caches: discourse.llvm.org/t/rfc-a-framew… Compiler seems to be doing a good-enough job of inferring allocated types per /proc/slabinfo.
English
1
11
43
22.2K
Marco Elver
Marco Elver@maelver·
@disruptnhandlr FWIW GWPSan doesn't use DynamoRIO for emulation directly, only uses the instruction decoder. To avoid crazy things like binary rewriting in prod we ended up adding new features to the Linux kernel to do fast emulation from signal handlers with the help of HW breakpoints.
English
0
0
2
80
Marco Elver
Marco Elver@maelver·
Want to help improve Linux kernel memory safety? KFENCE has been available since Linux 5.12, with several distros enabling KFENCE (chances are your kernel supports it). Though I suspect 1000s of reports are lost. Keeping it simple, I present kfence-cron: gist.github.com/melver/7bf5bdf…
English
1
3
7
1.4K
Marco Elver retweetledi
Dmitry Vyukov
Dmitry Vyukov@dvyukov·
Excited to share bug detection tool we've been working on w/ @maelver: github.com/google/gwpsan It samples unmodified prod binaries with ~1% overhead, can be turned off completely. Detects data races, use-after-return, uninits. Can do more e.g. UAF/OOB in syscalls. Cool tech ...
English
5
111
341
33.2K
Marco Elver
Marco Elver@maelver·
@MayaPosch @dvyukov That being said, the metadata sections are only needed by specific bug detectors (currently all 3 available detectors need it though). It's possible to develop your own bug detectors in the framework that don't need those ELF sections at all.
English
1
0
3
125
Marco Elver
Marco Elver@maelver·
@MayaPosch @dvyukov "GWPSan does not modify the executed code" is the main point. Still needs additional compiler flag to generate ELF sections it loads when needed. However, when the tool is completely disabled (or not linked in) it has zero overhead (besides a small binary size increase).
English
1
0
6
180
Karthik Kumar Viswanathan
@joel_linux Today I encountered an error when building a module on Debian .... This license linkage business is getting out of hand :-) I just thought of you. What is the preferred Kernel's solution for these modules? The open driver supports Turing, Ampere and Ada ONLY.
Karthik Kumar Viswanathan tweet media
English
1
0
1
582
Joel Fernandes 🐧🇺🇸
Joel Fernandes 🐧🇺🇸@joel_linux·
@_vkaku @debian @nvidia @nickblack Thanks for bringing it to my attention. This is a tough one. I shall circle with the internal RCU crew and gather opinions. I am not sure if the kernel community cares for proprietary / out of tree drivers though.. but hmm I’m wondering we can liberalize those export license type
English
2
0
1
120