summaryrefslogtreecommitdiffstats
path: root/net/mac80211/trace.h
diff options
context:
space:
mode:
authorYing Xue <ying.xue@windriver.com>2013-10-18 07:23:14 +0200
committerDavid S. Miller <davem@davemloft.net>2013-10-18 13:20:42 -0400
commit5c0a0fc81f4dc786b42c4fc9c7c72ba635406ab5 (patch)
treedf4a2c33ac2bfda18393fe56500fd0cb58551351 /net/mac80211/trace.h
parent7cc7c5e54b7128195a1403747a63971c3c3f8e25 (diff)
downloadlinux-5c0a0fc81f4dc786b42c4fc9c7c72ba635406ab5.tar.gz
linux-5c0a0fc81f4dc786b42c4fc9c7c72ba635406ab5.tar.bz2
linux-5c0a0fc81f4dc786b42c4fc9c7c72ba635406ab5.zip
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/mac80211/trace.h')
0 files changed, 0 insertions, 0 deletions