android_kernel_motorola_sm6375/net/9p
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Dominique Martinet e35c3ad0c2 9p/xen: check logical size for buffer size
[ Upstream commit 391c18cf776eb4569ecda1f7794f360fe0a45a26 ]

trans_xen did not check the data fits into the buffer before copying
from the xen ring, but we probably should.
Add a check that just skips the request and return an error to
userspace if it did not fit

Tested-by: Stefano Stabellini <sstabellini@kernel.org>
Reviewed-by: Christian Schoenebeck <linux_oss@crudebyte.com>
Link: https://lkml.kernel.org/r/20221118135542.63400-1-asmadeus@codewreck.org
Signed-off-by: Dominique Martinet <asmadeus@codewreck.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2022-12-14 11:30:41 +01:00
..
client.c net/9p: Initialize the iounit field during fid creation 2022-08-25 11:18:17 +02:00
error.c
Kconfig
Makefile
mod.c
protocol.c
protocol.h
trans_common.c
trans_common.h
trans_fd.c 9p/fd: Use P9_HDRSZ for header size 2022-12-14 11:30:41 +01:00
trans_rdma.c
trans_virtio.c
trans_xen.c 9p/xen: check logical size for buffer size 2022-12-14 11:30:41 +01:00