Dominique Martinet 391c18cf77 9p/xen: check logical size for buffer size
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>
2022-11-23 14:01:27 +09:00
..
2021-11-04 21:04:25 +09:00
2022-01-10 10:00:09 +09:00
2022-10-05 07:05:41 +09:00
2022-10-05 07:05:41 +09:00
2021-11-03 17:45:04 +09:00
2022-11-18 22:57:34 +09:00