]> git.baikalelectronics.ru Git - kernel.git/commit
kasan: accurately determine the type of the bad access
authorAndrey Konovalov <andreyknvl@google.com>
Fri, 6 Nov 2015 02:51:01 +0000 (18:51 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 6 Nov 2015 03:34:48 +0000 (19:34 -0800)
commit56daddc1707feea06d0520c62db2a9362c066b92
treeaed1e0d52ada95dd706597679d80d770fe6deb7f
parent247e83a5393c2600a6318f0bd1036f89f783242c
kasan: accurately determine the type of the bad access

Makes KASAN accurately determine the type of the bad access. If the shadow
byte value is in the [0, KASAN_SHADOW_SCALE_SIZE) range we can look at
the next shadow byte to determine the type of the access.

Signed-off-by: Andrey Konovalov <andreyknvl@google.com>
Cc: Andrey Ryabinin <ryabinin.a.a@gmail.com>
Cc: Dmitry Vyukov <dvyukov@google.com>
Cc: Alexander Potapenko <glider@google.com>
Cc: Konstantin Serebryany <kcc@google.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/kasan/report.c