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

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: default avatarChristian Schoenebeck <linux_oss@crudebyte.com>
Reviewed-by: default avatarChristian Schoenebeck <linux_oss@crudebyte.com>
Suggested-by: default avatarStefano Stabellini <sstabellini@kernel.org>
Reviewed-by: default avatarStefano 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's avatarDominique Martinet <asmadeus@codewreck.org>
parent 26273ade
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment