xen: xenbus_dev_frontend: Really return response string
authorSimon Gaiser <simon@invisiblethingslab.com>
Thu, 15 Mar 2018 03:08:03 +0000 (04:08 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 20 Jun 2018 19:02:42 +0000 (04:02 +0900)
commitff3080bab10dcbd694b903eb8d70586c6f48b64b
tree6dc7e63a4195c67c92949e517cb4ad186d36eb71
parentd5cf1ed8d3ae37a6115a0696a4885df1c777a9e9
xen: xenbus_dev_frontend: Really return response string

[ Upstream commit ebf04f331fa15a966262341a7dc6b1a0efd633e4 ]

xenbus_command_reply() did not actually copy the response string and
leaked stack content instead.

Fixes: 9a6161fe73bd ("xen: return xenstore command failures via response instead of rc")
Signed-off-by: Simon Gaiser <simon@invisiblethingslab.com>
Reviewed-by: Juergen Gross <jgross@suse.com>
Signed-off-by: Boris Ostrovsky <boris.ostrovsky@oracle.com>
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/xen/xenbus/xenbus_dev_frontend.c