diff options
| author | Arjun Roy <[email protected]> | 2021-05-06 22:35:30 +0000 |
|---|---|---|
| committer | Jakub Kicinski <[email protected]> | 2021-05-07 01:05:35 +0000 |
| commit | a6f8ee58a8e35f7e4380a5efce312e2a5bc27497 (patch) | |
| tree | aec7b0174d722130592496eba7eace14321c633f /drivers/gpu/drm/amd/amdgpu/amdgpu_object.h | |
| parent | mlxsw: spectrum_mr: Update egress RIF list before route's action (diff) | |
| download | kernel-a6f8ee58a8e35f7e4380a5efce312e2a5bc27497.tar.gz kernel-a6f8ee58a8e35f7e4380a5efce312e2a5bc27497.zip | |
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 <[email protected]>
Acked-by: Soheil Hassas Yeganeh <[email protected]>
Reviewed-by: Eric Dumazet <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_object.h')
0 files changed, 0 insertions, 0 deletions
