[PATCH v9 17/17] kasan: enable instrumentation of global variables

2015-01-21 Thread Andrey Ryabinin
This feature let us to detect accesses out of bounds of global variables. The idea of this is simple. Compiler increases each global variable by redzone size and add constructors invoking __asan_register_globals() function. Information about global variable (address, size, size with redzone ...)

[PATCH v9 17/17] kasan: enable instrumentation of global variables

2015-01-21 Thread Andrey Ryabinin
This feature let us to detect accesses out of bounds of global variables. The idea of this is simple. Compiler increases each global variable by redzone size and add constructors invoking __asan_register_globals() function. Information about global variable (address, size, size with redzone ...)