summaryrefslogtreecommitdiff
path: root/include/net/9p
diff options
context:
space:
mode:
authorDominique Martinet <asmadeus@codewreck.org>2022-11-22 09:06:56 +0900
committerDominique Martinet <asmadeus@codewreck.org>2022-12-03 00:04:37 +0900
commitf15e006b831384aaec4b4f13265c0dff88ef09dd (patch)
treef0aad1fb29528093cdfd2281ca3072a9b35c192c /include/net/9p
parent26273ade77f54716e30dfd40ac6e85ceb54ac0f9 (diff)
9p/xen: do not memcpy header into req->rc
while 'h' is packed and can be assumed to match the request payload, req->rc is a struct p9_fcall which is not packed and that memcpy could be wrong. Fix this by copying each fields individually instead. Reported-by: Christian Schoenebeck <linux_oss@crudebyte.com> Reviewed-by: Christian Schoenebeck <linux_oss@crudebyte.com> Suggested-by: Stefano Stabellini <sstabellini@kernel.org> Reviewed-by: Stefano Stabellini <sstabellini@kernel.org> Link: https://lkml.kernel.org/r/alpine.DEB.2.22.394.2211211454540.1049131@ubuntu-linux-20-04-desktop Link: https://lkml.kernel.org/r/20221122001025.119121-1-asmadeus@codewreck.org Signed-off-by: Dominique Martinet <asmadeus@codewreck.org>
Diffstat (limited to 'include/net/9p')
0 files changed, 0 insertions, 0 deletions