linux/mm/kasan
Zhiyuan Dai f76e0c41c0 mm/kasan: switch from strlcpy to strscpy
strlcpy is marked as deprecated in Documentation/process/deprecated.rst,
and there is no functional difference when the caller expects truncation
(when not checking the return value).  strscpy is relatively better as it
also avoids scanning the whole source string.

Link: https://lkml.kernel.org/r/1613970647-23272-1-git-send-email-daizhiyuan@phytium.com.cn
Signed-off-by: Zhiyuan Dai <daizhiyuan@phytium.com.cn>
Acked-by: Alexander Potapenko <glider@google.com>
Reviewed-by: Andrey Konovalov <andreyknvl@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2021-04-30 11:20:41 -07:00
..
common.c kasan: remove redundant config option 2021-04-16 16:10:36 -07:00
generic.c kfence, kasan: make KFENCE compatible with KASAN 2021-02-26 09:41:02 -08:00
hw_tags.c kasan, arm64: tests supports for HW_TAGS async mode 2021-04-11 10:57:45 +01:00
init.c kasan: fix incorrect arguments passing in kasan_add_zero_shadow 2021-01-24 10:34:52 -08:00
kasan.h arm64 updates for 5.13: 2021-04-26 10:25:03 -07:00
Makefile kasan, arm64: implement HW_TAGS runtime 2020-12-22 12:55:08 -08:00
quarantine.c kasan: prefix global functions with kasan_ 2021-02-24 13:38:30 -08:00
report_generic.c mm/kasan: switch from strlcpy to strscpy 2021-04-30 11:20:41 -07:00
report_hw_tags.c kasan: prefix global functions with kasan_ 2021-02-24 13:38:30 -08:00
report_sw_tags.c kasan: prefix global functions with kasan_ 2021-02-24 13:38:30 -08:00
report.c kasan, arm64: tests supports for HW_TAGS async mode 2021-04-11 10:57:45 +01:00
shadow.c kasan: ensure poisoning size alignment 2021-02-26 09:41:03 -08:00
sw_tags.c kasan: fix bug detection via ksize for HW_TAGS mode 2021-02-24 13:38:31 -08:00