android_kernel_motorola_sm6225/net/xdp
Björn Töpel 43a8075419 xsk: avoid store-tearing when assigning umem
[ Upstream commit 9764f4b301c3e7eb3b75eec85b73cad449cdbb0d ]

The umem member of struct xdp_sock is read outside of the control
mutex, in the mmap implementation, and needs a WRITE_ONCE to avoid
potential store-tearing.

Acked-by: Jonathan Lemon <jonathan.lemon@gmail.com>
Fixes: 423f38329d ("xsk: add umem fill queue support and mmap")
Signed-off-by: Björn Töpel <bjorn.topel@intel.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2020-01-27 14:51:10 +01:00
..
Kconfig
Makefile
xdp_umem.c xsk: proper AF_XDP socket teardown ordering 2019-11-24 08:20:32 +01:00
xdp_umem.h
xdp_umem_props.h
xsk.c xsk: avoid store-tearing when assigning umem 2020-01-27 14:51:10 +01:00
xsk_queue.c
xsk_queue.h xsk: Properly terminate assignment in xskq_produce_flush_desc 2019-07-26 09:14:12 +02:00