1 2 3 4 5 6 7 8 9 10
#include <linux/export.h> #include <linux/bug.h> #include <linux/uaccess.h> void copy_from_user_overflow(void) { WARN(1, "Buffer overflow detected! "); } EXPORT_SYMBOL(copy_from_user_overflow);