[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v5 48/50] multi-process: Validate incoming commands from Prox
From: |
Stefan Hajnoczi |
Subject: |
Re: [PATCH v5 48/50] multi-process: Validate incoming commands from Proxy |
Date: |
Thu, 27 Feb 2020 17:18:30 +0000 |
On Mon, Feb 24, 2020 at 03:55:39PM -0500, Jagannathan Raman wrote:
> From: Elena Ufimtseva <address@hidden>
>
> Validate the incoming commands to confirm that they would not cause any
> errors in the remote process.
>
> Signed-off-by: Elena Ufimtseva <address@hidden>
> Signed-off-by: Jagannathan Raman <address@hidden>
> Signed-off-by: John G Johnson <address@hidden>
> ---
> hw/proxy/qemu-proxy.c | 6 +++-
> include/io/mpqemu-link.h | 2 ++
> io/mpqemu-link.c | 75
> +++++++++++++++++++++++++++++++++++++++++++++++-
> remote/remote-main.c | 4 +++
> 4 files changed, 85 insertions(+), 2 deletions(-)
Please squash this into the patch(es) that introduced the code.
Reviewers want to see a logical sequence of patches. Introducing
unsafe code in an earlier patch and adding checks in a later patch makes
it impossible to review the patches in sequence (reviewers would waste
time pointing out bugs that end up getting fixed later).
> diff --git a/remote/remote-main.c b/remote/remote-main.c
> index 20d160e..c4aa3e0 100644
> --- a/remote/remote-main.c
> +++ b/remote/remote-main.c
> @@ -435,6 +435,10 @@ static void process_msg(GIOCondition cond, MPQemuChannel
> *chan)
> if (msg->id > MAX_REMOTE_DEVICES) {
> error_setg(&err, "id of the device is larger than max number of "\
> "devices per remote process.");
> + }
Was goto finalize_loop accidentally dropped?
signature.asc
Description: PGP signature
- [PATCH v5 31/50] multi-process: handle heartbeat messages in remote process, (continued)
- [PATCH v5 31/50] multi-process: handle heartbeat messages in remote process, Jagannathan Raman, 2020/02/24
- [PATCH v5 38/50] multi-process/mon: Initialize QMP module for remote processes, Jagannathan Raman, 2020/02/24
- [PATCH v5 43/50] multi-process/mig: Load VMSD in the proxy object, Jagannathan Raman, 2020/02/24
- [PATCH v5 42/50] multi-process/mig: Send VMSD of remote to the Proxy object, Jagannathan Raman, 2020/02/24
- [PATCH v5 37/50] multi-process/mon: Refactor monitor/chardev functions out of vl.c, Jagannathan Raman, 2020/02/24
- [PATCH v5 36/50] multi-process/mon: enable QMP module support in the remote process, Jagannathan Raman, 2020/02/24
- [PATCH v5 45/50] multi-process/mig: Synchronize runstate of remote process, Jagannathan Raman, 2020/02/24
- [PATCH v5 46/50] multi-process/mig: Restore the VMSD in remote process, Jagannathan Raman, 2020/02/24
- [PATCH v5 39/50] multi-process: prevent duplicate memory initialization in remote, Jagannathan Raman, 2020/02/24
- [PATCH v5 48/50] multi-process: Validate incoming commands from Proxy, Jagannathan Raman, 2020/02/24
- Re: [PATCH v5 48/50] multi-process: Validate incoming commands from Proxy,
Stefan Hajnoczi <=
- [PATCH v5 41/50] multi-process/mig: Enable VMSD save in the Proxy object, Jagannathan Raman, 2020/02/24
- [PATCH v5 50/50] multi-process: add configure and usage information, Jagannathan Raman, 2020/02/24
- [PATCH v5 40/50] multi-process/mig: build migration module in the remote process, Jagannathan Raman, 2020/02/24
- [PATCH v5 44/50] multi-process/mig: refactor runstate_check into common file, Jagannathan Raman, 2020/02/24
- [PATCH v5 47/50] multi-process: Enable support for multiple devices in remote, Jagannathan Raman, 2020/02/24
- [PATCH v5 49/50] multi-process: add the concept description to docs/devel/qemu-multiprocess, Jagannathan Raman, 2020/02/24