diff options
author | 2018-02-01 21:00:49 +0300 | |
---|---|---|
committer | 2018-02-01 12:20:21 -0800 | |
commit | 7f1e541fc8d57a143dd5df1d0a1276046e08c083 (patch) | |
tree | 3a56c3f3dbf30506bd47b9af085f3c20863b4dee /tools/perf/scripts/python/export-to-postgresql.py | |
parent | compiler.h, kasan: Avoid duplicating __read_once_size_nocheck() (diff) | |
download | linux-dev-7f1e541fc8d57a143dd5df1d0a1276046e08c083.tar.xz linux-dev-7f1e541fc8d57a143dd5df1d0a1276046e08c083.zip |
compiler.h: Add read_word_at_a_time() function.
Sometimes we know that it's safe to do potentially out-of-bounds access
because we know it won't cross a page boundary. Still, KASAN will
report this as a bug.
Add read_word_at_a_time() function which is supposed to be used in such
cases. In read_word_at_a_time() KASAN performs relaxed check - only the
first byte of access is validated.
Signed-off-by: Andrey Ryabinin <aryabinin@virtuozzo.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions