aboutsummaryrefslogtreecommitdiff
path: root/sys/kern/subr_csan.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/kern/subr_csan.c')
-rw-r--r--sys/kern/subr_csan.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/sys/kern/subr_csan.c b/sys/kern/subr_csan.c
index 33cd2f42d61d..66e50a9b1ee6 100644
--- a/sys/kern/subr_csan.c
+++ b/sys/kern/subr_csan.c
@@ -350,7 +350,6 @@ kcsan_strlen(const char *str)
return (s - str);
}
-#undef copystr
#undef copyin
#undef copyin_nofault
#undef copyinstr
@@ -358,13 +357,6 @@ kcsan_strlen(const char *str)
#undef copyout_nofault
int
-kcsan_copystr(const void *kfaddr, void *kdaddr, size_t len, size_t *done)
-{
- kcsan_access((uintptr_t)kdaddr, len, true, false, __RET_ADDR);
- return copystr(kfaddr, kdaddr, len, done);
-}
-
-int
kcsan_copyin(const void *uaddr, void *kaddr, size_t len)
{
kcsan_access((uintptr_t)kaddr, len, true, false, __RET_ADDR);