Skip to content
Commit 391c18cf authored by Dominique Martinet's avatar Dominique Martinet
Browse files

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: default avatarStefano Stabellini <sstabellini@kernel.org>
Reviewed-by: default avatarChristian Schoenebeck <linux_oss@crudebyte.com>
Link: https://lkml.kernel.org/r/20221118135542.63400-1-asmadeus@codewreck.org


Signed-off-by: default avatarDominique Martinet <asmadeus@codewreck.org>
parent 6854fadb
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment