Skip to content

migration: A few fixes on coverity reports

Peter Xu qemu-devel 2 versions In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest4 patches 3 repliesIn review
  2. v13 patches 8 repliesSuperseded

Changes in v2 from the cover letter

- Added tags for Fabiano
- Patch 1: dump the %d too along with %s [Fabiano]
- Patch 2: make the error returned to the caller, with some refactoring
- Added new patch 4 to fix a crash on cpr-exec when args==NULL

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4migration: Fix error leak in postcopy_ram_listen_thread()migration/savevm.c+4 -31 reply
2/4migration/cpr: Fix coverity report in cpr_exec_persist_state()include/migration/cpr.h migration/cpr-exec.c migration/cpr.c +1 more+20 -111 reply
3/4migration/cpr: Fix UAF in cpr_exec_cb() when execvp() failsmigration/cpr-exec.c+2 -20 replies
4/4migration/cpr: Avoid crashing QEMU when cpr-exec runs with no argsmigration/migration.c+6 -01 reply

Reviews trailers per patch

All 4 patches have a Reviewed-by or Acked-by.

PatchFabiano Rosas
1/4R-b
2/4R-b
3/4R-b
4/4R-b

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

Read the v2 thread

Cover letter [PATCH v2 0/4] migration: A few fixes on coverity reports

v2:
- Added tags for Fabiano
- Patch 1: dump the %d too along with %s [Fabiano]
- Patch 2: make the error returned to the caller, with some refactoring
- Added new patch 4 to fix a crash on cpr-exec when args==NULL

A small series that fixes three coverity reported issues. Please review, thanks.

Peter Xu (4):
migration: Fix error leak in postcopy_ram_listen_thread() migration/cpr: Fix coverity report in cpr_exec_persist_state() migration/cpr: Fix UAF in cpr_exec_cb() when execvp() fails migration/cpr: Avoid crashing QEMU when cpr-exec runs with no args

 include/migration/cpr.h |  4 ++--
 migration/cpr-exec.c    | 14 ++++++++++----
 migration/cpr.c         | 15 +++++++++------
 migration/migration.c   |  8 +++++++-
 migration/savevm.c      |  7 ++++---
 5 files changed, 32 insertions(+), 16 deletions(-)
Signature · 1 line
2.50.1