[PATCH 0/7] migrate_pages(): fix several bugs in error path

From: Huang Ying
Date: Thu Jun 23 2022 - 22:53:37 EST


From: "Huang, Ying" <ying.huang@xxxxxxxxx>

During review the code of migrate_pages() and build a test program for
it. Several bugs in error path are identified and fixed in this
series.

Most patches are tested via

- Apply error-inject.patch in Linux kernel
- Compile test-migrate.c (with -lnuma)
- Test with test-migrate.sh

error-inject.patch, test-migrate.c, and test-migrate.sh are as below.
It turns out that error injection is an important tool to fix bugs in
error path.

Best Regards,
Huang, Ying

------------------------- error-inject.patch -------------------------