]> git.baikalelectronics.ru Git - kernel.git/commit
lib/stackdepot.c: use a non-instrumented version of memcmp()
authorAlexander Potapenko <glider@google.com>
Tue, 6 Feb 2018 23:38:24 +0000 (15:38 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 7 Feb 2018 02:32:44 +0000 (18:32 -0800)
commit9f1864b7fde55dbbc2597bfc72052463c81e8b11
tree49405f84b2e7787235f1ddd1e4b3e9ed5d8779a1
parent8cc72a40fbeb0bb857e708ad1b8eed7be36fd803
lib/stackdepot.c: use a non-instrumented version of memcmp()

stackdepot used to call memcmp(), which compiler tools normally
instrument, therefore every lookup used to unnecessarily call instrumented
code.  This is somewhat ok in the case of KASAN, but under KMSAN a lot of
time was spent in the instrumentation.

Link: http://lkml.kernel.org/r/20171117172149.69562-1-glider@google.com
Signed-off-by: Alexander Potapenko <glider@google.com>
Cc: Andrey Ryabinin <aryabinin@virtuozzo.com>
Cc: Dmitry Vyukov <dvyukov@google.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
lib/stackdepot.c