summaryrefslogtreecommitdiff
path: root/net/tipc/msg.h
diff options
context:
space:
mode:
authorYing Xue <ying.xue@windriver.com>2013-10-18 05:23:14 (GMT)
committerDavid S. Miller <davem@davemloft.net>2013-10-18 17:20:42 (GMT)
commit5c0a0fc81f4dc786b42c4fc9c7c72ba635406ab5 (patch)
treedf4a2c33ac2bfda18393fe56500fd0cb58551351 /net/tipc/msg.h
parent7cc7c5e54b7128195a1403747a63971c3c3f8e25 (diff)
downloadlinux-fsl-qoriq-5c0a0fc81f4dc786b42c4fc9c7c72ba635406ab5.tar.xz
tipc: don't use memcpy to copy from user space
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>
Diffstat (limited to 'net/tipc/msg.h')
0 files changed, 0 insertions, 0 deletions