usercopy.c 170 B

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