On Sat, Jul 09, 2016 at 04:22:45AM +0300, Andrey Utkin wrote:
Recent Linux kernel has some code behaviour analyzers which may give helpful notices about errors which may otherwise manifest themselves randomly:
- UBSAN - undefined behaviour sanity checker
- KASAN - runtime memory debugger
Whoever has prototypes on hands - please consider building kernel with these options and giving it a run and sharing traces from dmesg. This may slow down things a lot, be prepared.
Oh, forgot about arch constraints. Is Pyra arm64?
$ grep HAVE_ARCH_KASAN -n `find * | grep Kconfig` arch/arm64/Kconfig:56: select HAVE_ARCH_KASAN if SPARSEMEM_VMEMMAP && !(ARM64_16K_PAGES && ARM64_VA_BITS_48) arch/x86/Kconfig:85: select HAVE_ARCH_KASAN if X86_64 && SPARSEMEM_VMEMMAP lib/Kconfig.kasan:1:config HAVE_ARCH_KASAN lib/Kconfig.kasan:4:if HAVE_ARCH_KASAN