WSL2-Linux-Kernel/drivers/vhost
Harold Huang bb78c3b11f tuntap: add sanity checks about msg_controllen in sendmsg
[ Upstream commit 74a335a07a ]

In patch [1], tun_msg_ctl was added to allow pass batched xdp buffers to
tun_sendmsg. Although we donot use msg_controllen in this path, we should
check msg_controllen to make sure the caller pass a valid msg_ctl.

[1]: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=fe8dd45bb7556246c6b76277b1ba4296c91c2505

Reported-by: Eric Dumazet <eric.dumazet@gmail.com>
Suggested-by: Jason Wang <jasowang@redhat.com>
Signed-off-by: Harold Huang <baymaxhuang@gmail.com>
Acked-by: Jason Wang <jasowang@redhat.com>
Link: https://lore.kernel.org/r/20220303022441.383865-1-baymaxhuang@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2022-04-13 20:59:07 +02:00
..
Kconfig
Makefile
iotlb.c vhost: handle error while adding split ranges to iotlb 2022-04-08 14:24:12 +02:00
net.c tuntap: add sanity checks about msg_controllen in sendmsg 2022-04-13 20:59:07 +02:00
scsi.c
test.c
test.h
vdpa.c vdpa: check that offsets are within bounds 2021-12-22 09:32:36 +01:00
vhost.c vhost: allow batching hint without size 2022-03-16 14:23:47 +01:00
vhost.h
vringh.c
vsock.c vsock: each transport cycles only on its own sockets 2022-03-23 09:16:41 +01:00