android_kernel_sony_sdm845/kernel/debug/kdb
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Arnd Bergmann 21761c7034 kdb: use memmove instead of overlapping memcpy
commit 2cf2f0d5b91fd1b06a6ae260462fc7945ea84add upstream.

gcc discovered that the memcpy() arguments in kdbnearsym() overlap, so
we should really use memmove(), which is defined to handle that correctly:

In function 'memcpy',
    inlined from 'kdbnearsym' at /git/arm-soc/kernel/debug/kdb/kdb_support.c:132:4:
/git/arm-soc/include/linux/string.h:353:9: error: '__builtin_memcpy' accessing 792 bytes at offsets 0 and 8 overlaps 784 bytes at offset 8 [-Werror=restrict]
  return __builtin_memcpy(p, q, size);

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Jason Wessel <jason.wessel@windriver.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2018-12-08 13:05:05 +01:00
..
.gitignore
kdb_bp.c
kdb_bt.c
kdb_cmds
kdb_debugger.c
kdb_io.c kdb: Use strscpy with destination buffer size 2018-12-01 09:44:21 +01:00
kdb_keyboard.c
kdb_main.c kdb: make "mdr" command repeat 2018-05-30 07:50:51 +02:00
kdb_private.h kdb: Use strscpy with destination buffer size 2018-12-01 09:44:21 +01:00
kdb_support.c kdb: use memmove instead of overlapping memcpy 2018-12-08 13:05:05 +01:00
Makefile