memfd: Fix memfd_test failure
JIRA: https://issues.redhat.com/browse/RHEL-37152
MR: !4459 (merged)
Tested: With the patched kernel and memfd_test, the test can run to
completion without core dump.
This MR includes a number of relevant mm/memfd.c and memfd_test commits to fix the memfd_test failure.
Signed-off-by: Waiman Long longman@redhat.com
Edited by Waiman Long