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

From: Huang Ying
Date: Mon Jul 11 2022 - 04:50:11 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

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.



- Rebased on v5.19-rc5

- Addressed some comments from Baolin, Thanks!

- Added reviewed-by tags

Best Regards,
Huang, Ying

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