Files
linux/net
Ying Xue 6bdd9547c5 tipc: don't use memcpy to copy from user space
commit 5c0a0fc81f upstream.

tipc_msg_build() calls skb_copy_to_linear_data_offset() to copy data
from user space to kernel space. However, the latter function does
in its turn call memcpy() to perform the actual copying. This poses
an obvious security and robustness risk, since memcpy() never makes
any validity check on the pointer it is copying from.

To correct this, we the replace the offending function call with
a call to memcpy_fromiovecend(), which uses copy_from_user() to
perform the copying.

Signed-off-by: Ying Xue <ying.xue@windriver.com>
Reviewed-by: Paul Gortmaker <paul.gortmaker@windriver.com>
Signed-off-by: Jon Maloy <jon.maloy@ericsson.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
2014-09-07 18:20:11 +01:00
..
2014-07-29 16:56:58 +02:00
2014-02-26 10:22:50 +01:00
2013-09-23 16:52:45 -04:00
2013-05-27 22:50:59 -07:00
2013-09-13 15:09:52 +02:00
2013-05-27 22:50:59 -07:00
2010-10-15 15:53:27 +02:00