git.samba.org
/
sfrench
/
cifs-2.6.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Merge tag 'asm-generic-5.18' of git://git.kernel.org/pub/scm/linux/kernel/git/arnd...
[sfrench/cifs-2.6.git]
/
mm
/
maccess.c
diff --git
a/mm/maccess.c
b/mm/maccess.c
index 106820b33a2b632ab53141fedc677606148e068d..5f4d240f67ecc0cae5c0900ae6e9545185847e0b 100644
(file)
--- a/
mm/maccess.c
+++ b/
mm/maccess.c
@@
-216,3
+216,9
@@
long strnlen_user_nofault(const void __user *unsafe_addr, long count)
return ret;
}
+
+void __copy_overflow(int size, unsigned long count)
+{
+ WARN(1, "Buffer overflow detected (%d < %lu)!\n", size, count);
+}
+EXPORT_SYMBOL(__copy_overflow);