]> git.baikalelectronics.ru Git - uboot.git/commit
Merge branch '2022-06-23-fuzzing-and-asan-for-sandbox' into next
authorTom Rini <trini@konsulko.com>
Thu, 23 Jun 2022 18:24:24 +0000 (14:24 -0400)
committerTom Rini <trini@konsulko.com>
Thu, 23 Jun 2022 18:24:24 +0000 (14:24 -0400)
commitefff9e1a198d27c0596c9820cf6dfab335d6857d
tree7a942f93d9884d9c1fd7b905c1a2078f8207d18b
parente7eeeb81184e47c4be550ed09fb8b465c9757988
parentd95c42de7df57d45668b7830496f406385433ee1
Merge branch '2022-06-23-fuzzing-and-asan-for-sandbox' into next

To quote the author:
This series introduces ASAN and a basic fuzzing infrastructure that
works with sandbox. The example fuzz test towards the end of the series
will find something pretty quickly. That something is fixed by the
series "virtio: Harden and test vring" that needs to be applied for the
final patch in this series.

There is some refactoring to stop using '.' prefixed sections. ELF
defines sections with names that contain anything that isn't
alphanumeric or an underscore as being for system use which means
clang's ASAN instrumentation happily add redzones between the contained
objects. That's not what we want for things like linker lists where the
linker script has carefully placed the sections contiguously. By
renaming the sections, clang sees them as user sections and doesn't add
instrumentation.

ASAN is left disabled by default as there are still some tests that it
triggers on and will need some more investigation to fix. It can be
enabled with CONFIG_ASAN or passing `-a ASAN` to buildman.