[ANNOUNCE] undertaker 1.6
From: stefan . hengelein
Date: Mon Oct 13 2014 - 11:19:39 EST
The CADOS team is pleased to announce the release of the undertaker tool
version 1.6. The tool is a result of the VAMOS[1] and CADOS[2] research
projects and
available for download at https://vamos.informatik.uni-erlangen.de/files/
Please visit our project site at:
https://undertaker.cs.fau.de
= What is undertaker? =
The undertaker is a tool for static code analysis for code with C
preprocessor directives, which can be used in various modes. The most
prominent one checks every single preprocessor block within the file
whether it can be selected or deselected, which in many cases is a great
asset for code maintenance.
Some preprocessor blocks are only seemingly conditional. In many cases, it
turns out that additional constraints from the project's
configuration model causes such conditional blocks to be in fact
unconditionally selected or unselected. We call such block "dead" and
"undead" conditional blocks or more general, a defect.
Undertaker provides tools to extract the configuration model from the
Linux configuration tooling Kconfig and to perform this check on whole
source trees.
Please see https://undertaker.cs.fau.de for a quick tour.
= What undertaker is not? =
It isn't an automatic patch generator. Because of peculiarities in the
Kconfig semantics, (ignored) coding guidelines and simply engineering
issues, some defects are not caught by the undertaker. Note that our
philosophy is that we prefer false negatives over false positives, i.e.,
we prefer to miss reports than reports that are no issue at all.
= What is new in undertaker 1.6 =
* New tool: undertaker-checkpatch: checks patch files for defects and
helps to analyze them
* New tool: flipper: provides a lean method for kernel tracing as
extension for the tailor
* undertaker: now has a new mode `-u` to minimize defect formulas (thanks
to the PicoMUS-Tool, which is part of PicoSAT)
* Further improvements in performance and bug fixes in our tools
= What is golem =
Golem is a tool for build system analysis. It exploits the "dancing
makefiles" pattern found in Kbuild to induce dependency constraints from
build rules. The resulting inferences significantly improve the results of
undertaker. The tool `undertaker-kconfigdump` has learned the option `-i`
to automatically add inferences to the models.
A basic primitive of golem is to learn what files would get compiled with
the current configuration. This is accessibly with `golem -l`.
= What is vampyr =
Vampyr is a configurability-aware driver for static-analysis (compile
testing) on a single file or a list of files (batchmode `-b`).
With the `-C` option it is possible to run static analysis with a compiler
like gcc / clang or the sparse tool.
A complete analysis of the variability can be done with the `-a` directive
and additionally the coverage strategy can be chosen with `vampyr -A
{simple, min, simple_decision, min_decision}`
= What is undertaker-checkpatch =
This new tool analyzes patch files and accordingly reports changes to
defects such as newly introduced or fixed defects. Defects can also be
correlated to changes in Kconfig and vice versa.
Additionally, undertaker-checkpatch ships the functionality to further
analyze the causes of defects, displaying contradictory Kconfig items, a
block's precondition or the defect causing formula.
= What is undertaker-tailor =
If the intended use of a system is known at kernel compilation time, an
effective approach to reduce the kernel's attack surface is to conïgure
the kernel to not compile unneeded functionality.
However, finding a fitting conïguration requires extensive technical
expertise about currently more than 14.000 Linux conïguration options, and
needs to be repeated at each kernel update.
Therefore, maintaining such a custom-conïgured kernel entails considerable
maintenance and engineering costs.
undertaker-tailor[3] automatically determines a kernel conïguration that
enables only kernel functionalities that are actually necessary in a given
scenario. The approach exhibits promising security improvements by simply
not compiling unnecessary files and code.
With the release of version 1.6, undertaker-tailor received a new tool
called flipper[4]. While ftrace was employed for kernel function tracing
earlier, its usage caused quite a lot of overhead during the observation
of the kernel. Flipper however relies on small bit-setting instructions
patched into the kernel to collect tracing data and delivers more accurate
results with less run time overhead.
= Links =
[1] https://vamos.cs.fau.de
[2] https://cados.cs.fau.de
[3] http://vamos.cs.fau.de/trac/undertaker/wiki/UndertakerTailor
[4] http://vamos.cs.fau.de/trac/undertaker/wiki/UndertakerTailorFlipper
= CADOS at the Linux Plumbers Conference http://www.linuxplumbersconf.org =
There will be two talks at the 'development tools' microconference at the
Linux Plumbers Conference.
Valentin Rothberg will show the functionality of the new
undertaker-checkpatch tool (
http://www.linuxplumbersconf.org/2014/ocw/sessions/1863 ).
Stefan Hengelein will explain the vampyr tool for configurability-aware
compile testing of source code (
http://www.linuxplumbersconf.org/2014/ocw/sessions/2313 ).
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/