mirror of
https://github.com/torvalds/linux.git
synced 2024-11-05 19:41:54 +00:00
fb34035e7b
This mirrors x86 commit 9f0cf4adb6
(x86: Use __builtin_object_size() to validate the buffer size for copy_from_user())
Signed-off-by: David S. Miller <davem@davemloft.net>
9 lines
170 B
C
9 lines
170 B
C
#include <linux/module.h>
|
|
#include <linux/bug.h>
|
|
|
|
void copy_from_user_overflow(void)
|
|
{
|
|
WARN(1, "Buffer overflow detected!\n");
|
|
}
|
|
EXPORT_SYMBOL(copy_from_user_overflow);
|