Thanks a lot for this! :)
On 04/12/2016 05:27 PM, Linus Walleij wrote:
On Tue, Apr 12, 2016 at 11:06 AM, Alex Shi alex.shi@linaro.org wrote:
This is patchset for KASAN backporting to LSK 4.1. Any comments are appreciated.
Hi Linus,
Could you like to give some suggestion for testing?
You just enable it in KConfig and boot. I have this config snippet in my aarch64.mak Makefile:
config-kasan: config-base $(CURDIR)/scripts/config --file $(config_file) \ --enable KASAN \ --enable KASAN_OUTLINE \ --enable STACKTRACE \ --enable SLUB_DEBUG_ON \ --enable TEST_KASAN
The TEST_KASAN will show you that instrumentation works by triggering a console dump for each test.
It should be worth noting that a new GCC (4.9+, preferrably 5+) is needed for KASan to work, so if people are as conservative with upgrading their toolchain as they are in upgrading their kernels, they may see absolutely nothing: it will just be deactivated at compile-time.
Yours, Linus Walleij