tmp_suning_uos_patched/mm/kasan
Andrey Konovalov 121e8f81d3 kasan: add bug reporting routines for tag-based mode
This commit adds rountines, that print tag-based KASAN error reports.
Those are quite similar to generic KASAN, the difference is:

1. The way tag-based KASAN finds the first bad shadow cell (with a
   mismatching tag). Tag-based KASAN compares memory tags from the shadow
   memory to the pointer tag.

2. Tag-based KASAN reports all bugs with the "KASAN: invalid-access"
   header.

Also simplify generic KASAN find_first_bad_addr.

Link: http://lkml.kernel.org/r/aee6897b1bd077732a315fd84c6b4f234dbfdfcb.1544099024.git.andreyknvl@google.com
Signed-off-by: Andrey Konovalov <andreyknvl@google.com>
Reviewed-by: Andrey Ryabinin <aryabinin@virtuozzo.com>
Reviewed-by: Dmitry Vyukov <dvyukov@google.com>
Cc: Christoph Lameter <cl@linux.com>
Cc: Mark Rutland <mark.rutland@arm.com>
Cc: Will Deacon <will.deacon@arm.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2018-12-28 12:11:44 -08:00
..
common.c kasan: initialize shadow to 0xff for tag-based mode 2018-12-28 12:11:43 -08:00
generic_report.c kasan: add bug reporting routines for tag-based mode 2018-12-28 12:11:44 -08:00
generic.c kasan: add CONFIG_KASAN_GENERIC and CONFIG_KASAN_SW_TAGS 2018-12-28 12:11:43 -08:00
init.c kasan: rename kasan_zero_page to kasan_early_shadow_page 2018-12-28 12:11:43 -08:00
kasan.h kasan: add bug reporting routines for tag-based mode 2018-12-28 12:11:44 -08:00
Makefile kasan: split out generic_report.c from report.c 2018-12-28 12:11:43 -08:00
quarantine.c mm/kasan/quarantine.c: make quarantine_lock a raw_spinlock_t 2018-10-26 16:38:15 -07:00
report.c kasan: add bug reporting routines for tag-based mode 2018-12-28 12:11:44 -08:00
tags_report.c kasan: add bug reporting routines for tag-based mode 2018-12-28 12:11:44 -08:00
tags.c kasan: add tag related helper functions 2018-12-28 12:11:43 -08:00