Skip to content

xenstore: Address coverity issues in the LiveUpdate code

Julien Grall xen-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest5 patches 9 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5tools/xenstored: Avoid unnecessary talloc_strdup() in do_control_lu()tools/xenstore/xenstored_control.c+1 -31 reply
2/5tools/xenstored: Avoid unnecessary talloc_strdup() in do_lu_start()tools/xenstore/xenstored_control.c+1 -31 reply
3/5tools/xenstored: control: Store the save filename in lu_dump_statetools/xenstore/xenstored_control.c+9 -91 reply
4/5tools/xenstore-control: Don't leak buf in live_update_start()tools/xenstore/xenstore_control.c+3 -11 reply
5/5tools/xenstored: Silence coverity when using xs_state_* structurestools/xenstore/include/xenstore_state.h+3 -35 replies

Reviews trailers per patch

4 of 5 patches have a Reviewed-by or Acked-by.

PatchIan JacksonJuergen Gross
SeriesRelease-Acked-by
1/5R-b
2/5R-b
3/5R-b
4/5R-b
5/5

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH for-4.15 0/5] xenstore: Address coverity issues in the LiveUpdate code

From: Julien Grall <[email protected]>

Hi all,

The AWS coverity instance spotted a few issues that could either leak memory and derefence NULL pointer.

All the patches are candidate for 4.15 as they are hardening XenStored code. The changes are low risks.

Cheers,

Julien Grall (5):
tools/xenstored: Avoid unnecessary talloc_strdup() in do_control_lu() tools/xenstored: Avoid unnecessary talloc_strdup() in do_lu_start() tools/xenstored: control: Store the save filename in lu_dump_state tools/xenstore-control: Don't leak buf in live_update_start() tools/xenstored: Silence coverity when using xs_state_* structures

 tools/xenstore/include/xenstore_state.h |  6 +++---
 tools/xenstore/xenstore_control.c       |  4 +++-
 tools/xenstore/xenstored_control.c      | 26 +++++++++++--------------
 3 files changed, 17 insertions(+), 19 deletions(-)
Signature · 1 line
2.17.1