summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorArjun Roy <arjunroy@google.com>2021-05-07 01:35:30 +0300
committerJakub Kicinski <kuba@kernel.org>2021-05-07 04:05:35 +0300
commita6f8ee58a8e35f7e4380a5efce312e2a5bc27497 (patch)
treeaec7b0174d722130592496eba7eace14321c633f /drivers
parentcbaf3f6af9c268caf558c8e7ec52bcb35c5455dd (diff)
downloadlinux-a6f8ee58a8e35f7e4380a5efce312e2a5bc27497.tar.xz
tcp: Specify cmsgbuf is user pointer for receive zerocopy.
A prior change (1f466e1f15cf) introduces separate handling for ->msg_control depending on whether the pointer is a kernel or user pointer. However, while tcp receive zerocopy is using this field, it is not properly annotating that the buffer in this case is a user pointer. This can cause faults when the improper mechanism is used within put_cmsg(). This patch simply annotates tcp receive zerocopy's use as explicitly being a user pointer. Fixes: 7eeba1706eba ("tcp: Add receive timestamp support for receive zerocopy.") Signed-off-by: Arjun Roy <arjunroy@google.com> Acked-by: Soheil Hassas Yeganeh <soheil@google.com> Reviewed-by: Eric Dumazet <edumazet@google.com> Link: https://lore.kernel.org/r/20210506223530.2266456-1-arjunroy.kdev@gmail.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'drivers')
0 files changed, 0 insertions, 0 deletions