summaryrefslogtreecommitdiff
path: root/linux/lib/usercopy.c
diff options
context:
space:
mode:
authorMichael J. Chudobiak <mjc@avtechpulse.com>2016-04-25 10:00:44 -0400
committerMichael J. Chudobiak <mjc@avtechpulse.com>2016-04-25 10:00:44 -0400
commita1df417e74aa6dae7352dc8cbb0ad471af5b7c69 (patch)
treec34b2311e37ea31db153c90cb8f4570374d05e78 /linux/lib/usercopy.c
initial Olimex linux tree from Daniel, originally Feb 3, 2016
Diffstat (limited to 'linux/lib/usercopy.c')
-rw-r--r--linux/lib/usercopy.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/linux/lib/usercopy.c b/linux/lib/usercopy.c
new file mode 100644
index 00000000..4f5b1ddb
--- /dev/null
+++ b/linux/lib/usercopy.c
@@ -0,0 +1,9 @@
+#include <linux/export.h>
+#include <linux/bug.h>
+#include <linux/uaccess.h>
+
+void copy_from_user_overflow(void)
+{
+ WARN(1, "Buffer overflow detected!\n");
+}
+EXPORT_SYMBOL(copy_from_user_overflow);