Hello,
Sorry, I have no idea how to test these changes. Please review.
Hopefully sashiko.dev will take a look too ;)
find_mm_struct() has the same problem, will send a patch tomorrow.
Unless you tell me this race doesn't need a fix.
Oleg.
---
mm/mempolicy.c | 53 +++++++++++++++++++++++++----------------------------
1 file changed, 25 insertions(+), 28 deletions(-)