Re: [PATCH] migration: Assign current_migration as NULL after migration

2020-07-01 Thread zhukeqian
Please ignore this patch :-) If we shutdown VM during migration, the migration thread may still ref current_migration at this point. On 2020/6/28 14:49, Keqian Zhu wrote: > In migration_shutdown, global var current_migration is freed but not > assigned to NULL, which may cause heap-use-after-free

[PATCH] migration: Assign current_migration as NULL after migration

2020-06-27 Thread Keqian Zhu
In migration_shutdown, global var current_migration is freed but not assigned to NULL, which may cause heap-use-after-free problem if the following code logic is abnormal. Signed-off-by: Keqian Zhu --- migration/migration.c | 1 + 1 file changed, 1 insertion(+) diff --git a/migration/migration.