|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [PATCH] tools/xenstored: Don't crash xenstored when Live-Update is cancelled
Hi Juergen, On 22/06/2021 11:23, Juergen Gross wrote: On 17.06.21 19:38, Julien Grall wrote:From: Julien GralL <jgrall@xxxxxxxxxx> As Live-Update is asynchronous, it is possible to receive a request to cancel it (either on the same connection or from a different one). Currently, this will crash xenstored because do_lu_start() assumes lu_status will be valid. This is not the case when Live-Update has been cancelled. This will result to dereference a NULL pointer and crash Xenstored. Rework do_lu_start() to check if lu_status is NULL and return an error in this case.Fixes: af216a99fb ("tools/xenstore: add the basic framework for doing the live update")Signed-off-by: Julien Grall <jgrall@xxxxxxxxxx> ---- This is currently based on top of: https://lore.kernel.org/xen-devel/20210616144324.31652-1-julien@xxxxxxx This can be re-ordered if necessary. --- tools/xenstore/xenstored_control.c | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-)diff --git a/tools/xenstore/xenstored_control.c b/tools/xenstore/xenstored_control.c Ah yes. I will drop this line. Also, I took the opportunity to replace } else assert(...) with just assert(...)This should improve a bit the readability. Let me know if you want me to resend the patch for that. Other than that: Reviewed-by: Juergen Gross <jgross@xxxxxxxx> Thank you! Cheers, -- Julien Grall
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |