net: qede: convert to SPDX License Identifiers
[linux-2.6-microblaze.git] / lib / iov_iter.c
index 51595bf..bf538c2 100644 (file)
@@ -8,6 +8,7 @@
 #include <linux/splice.h>
 #include <net/checksum.h>
 #include <linux/scatterlist.h>
+#include <linux/instrumented.h>
 
 #define PIPE_PARANOIA /* for now */
 
 static int copyout(void __user *to, const void *from, size_t n)
 {
        if (access_ok(to, n)) {
-               kasan_check_read(from, n);
+               instrument_copy_to_user(to, from, n);
                n = raw_copy_to_user(to, from, n);
        }
        return n;
@@ -147,7 +148,7 @@ static int copyout(void __user *to, const void *from, size_t n)
 static int copyin(void *to, const void __user *from, size_t n)
 {
        if (access_ok(from, n)) {
-               kasan_check_write(to, n);
+               instrument_copy_from_user(to, from, n);
                n = raw_copy_from_user(to, from, n);
        }
        return n;
@@ -639,7 +640,7 @@ EXPORT_SYMBOL(_copy_to_iter);
 static int copyout_mcsafe(void __user *to, const void *from, size_t n)
 {
        if (access_ok(to, n)) {
-               kasan_check_read(from, n);
+               instrument_copy_to_user(to, from, n);
                n = copy_to_user_mcsafe((__force void *) to, from, n);
        }
        return n;