kernel-hacking-2024-linux-s.../mm/damon
Xu Panda b6f00c9190 mm/damon/sysfs-schemes: use strscpy() to instead of strncpy()
The implementation of strscpy() is more robust and safer.
That's now the recommended way to copy NUL-terminated strings.

Link: https://lkml.kernel.org/r/202301091946553770006@zte.com.cn
Signed-off-by: Xu Panda <xu.panda@zte.com.cn>
Signed-off-by: Yang Yang <yang.yang29@zte.com.cn>
Reviewed-by: SeongJae Park <sj@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
2023-01-18 17:12:59 -08:00
..
core-test.h
core.c mm/damon/core: implement damos filter 2023-01-18 17:12:43 -08:00
dbgfs-test.h
dbgfs.c mm/damon/dbgfs: check if rm_contexts input is for a real context 2022-11-08 15:57:25 -08:00
Kconfig
lru_sort.c mm/damon: use kstrtobool() instead of strtobool() 2022-11-30 15:58:45 -08:00
Makefile mm/damon/modules: deduplicate init steps for DAMON context setup 2022-11-30 15:01:26 -08:00
modules-common.c mm/damon/modules: deduplicate init steps for DAMON context setup 2022-11-30 15:01:26 -08:00
modules-common.h mm/damon/modules: deduplicate init steps for DAMON context setup 2022-11-30 15:01:26 -08:00
ops-common.c mm/damon: convert damon_ptep/pmdp_mkold() to use a folio 2023-01-18 17:12:52 -08:00
ops-common.h mm/damon: remove unneeded damon_get_page() 2023-01-18 17:12:53 -08:00
paddr.c mm/damon/paddr: remove damon_pa_access_chk_result struct 2023-01-18 17:12:58 -08:00
reclaim.c mm/damon/reclaim: add a parameter called skip_anon for avoiding anonymous pages reclamation 2023-01-18 17:12:43 -08:00
sysfs-common.c mm/damon/sysfs: move unsigned long range directory to common module 2022-11-30 15:01:25 -08:00
sysfs-common.h mm/damon/sysfs-schemes: implement DAMOS-tried regions clear command 2022-11-30 15:58:44 -08:00
sysfs-schemes.c mm/damon/sysfs-schemes: use strscpy() to instead of strncpy() 2023-01-18 17:12:59 -08:00
sysfs.c mm/damon/sysfs-schemes: implement DAMOS-tried regions clear command 2022-11-30 15:58:44 -08:00
vaddr-test.h
vaddr.c mm/damon/vaddr: record appropriate folio size when the access is not found 2023-01-18 17:12:58 -08:00