usercopy.c 197 B

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