Skip to content

Fix segfault on migration return path

Fabiano Rosas qemu-devel 6 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v6 Latest10 patches 12 repliesIn review
  2. v58 patches 4 repliesSuperseded
  3. v48 patches 5 repliesSuperseded
Earlier versions · 3
VersionPostedPatchesRepliesStatus
v310 patches15 repliesSuperseded
v22 patches11 repliesSuperseded
v13 patches8 repliesSuperseded

v5 from the cover letter

Patches in v6 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/10migration: Fix possible race when setting rp_state.errormigration/migration.c+0 -10 replies
2/10migration: Fix possible races when shutting down the return pathmigration/migration.c+10 -90 replies
3/10migration: Fix possible race when shutting down to_dst_filemigration/migration.c+11 -70 replies
4/10migration: Remove redundant cleanup of postcopy_qemufile_srcmigration/migration.c+0 -60 replies
5/10migration: Consolidate return path closing codemigration/migration.c+14 -150 replies
6/10migration: Replace the return path retry logicmigration/migration.c migration/migration.h+11 -500 replies
7/10migration: Move return path cleanup to main migration threadmigration/migration.c+10 -10 replies
8/10migration/yank: Use channel featuresmigration/yank_functions.c+1 -54 replies
9/10migration/yank: Keep track of registered yank instancesmigration/yank_functions.c migration/yank_functions.h+81 -88 replies
10/10migration: Add a wrapper to cleanup migration filesmigration/migration.c+25 -640 replies

Reviews trailers per patch

8 of 10 patches have a Reviewed-by or Acked-by.

PatchPeter XuPhilippe Mathieu-Daudé
1/10R-b
2/10R-b
3/10R-b
4/10R-b
5/10R-b
6/10R-b
7/10R-b
8/10R-b R-b
9/10
10/10

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

Read the v6 thread

Cover letter [PATCH v6 00/10] Fix segfault on migration return path

This version adds migration-specific tracking for the yank functions.

We've estabilished that using the ioc refcount is a layer violation and that relaxing the abort() on yank.c is undesirable, so we're left with making the migration code keep track of how many QEMUFiles are still using the QIOChannel and (consequently) the yank function.

CI run: https://gitlab.com/farosas/qemu/-/pipelines/999810871

v5:
https://lore.kernel.org/r/[email protected]
v4:
https://lore.kernel.org/r/[email protected]
v3:
https://lore.kernel.org/r/[email protected]
v2:
https://lore.kernel.org/r/[email protected]
v1:
https://lore.kernel.org/r/[email protected]

Fabiano Rosas (10):
migration: Fix possible race when setting rp_state.error
migration: Fix possible races when shutting down the return path
migration: Fix possible race when shutting down to_dst_file
migration: Remove redundant cleanup of postcopy_qemufile_src
migration: Consolidate return path closing code
migration: Replace the return path retry logic
migration: Move return path cleanup to main migration thread migration/yank: Use channel features
migration/yank: Keep track of registered yank instances
migration: Add a wrapper to cleanup migration files

 migration/migration.c      | 227 +++++++++++++------------------------
 migration/migration.h      |   1 -
 migration/yank_functions.c |  87 +++++++++++---
 migration/yank_functions.h |   8 ++
 4 files changed, 160 insertions(+), 163 deletions(-)
Signature · 1 line
2.35.3