linux-stable/net/9p
Dominique Martinet 029a7f1c5d 9p/xen: check logical size for buffer size
[ Upstream commit 391c18cf77 ]

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:37:17 +01:00
..
client.c net/9p: Initialize the iounit field during fid creation 2022-08-17 14:24:23 +02:00
error.c 9p: fix a bunch of checkpatch warnings 2022-08-17 14:24:07 +02:00
Kconfig net: remove redundant 'depends on NET' 2021-01-27 17:04:12 -08:00
Makefile 9p: Remove p9_idpool 2018-08-29 13:39:57 +09:00
mod.c 9p: fix a bunch of checkpatch warnings 2022-08-17 14:24:07 +02:00
protocol.c 9p: fix a bunch of checkpatch warnings 2022-08-17 14:24:07 +02:00
protocol.h 9p: fix a bunch of checkpatch warnings 2022-08-17 14:24:07 +02:00
trans_common.c net: 9p: Fix kerneldoc warnings of missing parameters etc 2020-11-02 12:25:52 -08:00
trans_common.h 9p: fix a bunch of checkpatch warnings 2022-08-17 14:24:07 +02:00
trans_fd.c 9p/fd: Use P9_HDRSZ for header size 2022-12-14 11:37:16 +01:00
trans_rdma.c 9p: Add client parameter to p9_req_put() 2022-08-17 14:24:07 +02:00
trans_virtio.c 9p: Add client parameter to p9_req_put() 2022-08-17 14:24:07 +02:00
trans_xen.c 9p/xen: check logical size for buffer size 2022-12-14 11:37:17 +01:00