memfd_test fails for rhel9: # uname -r 5.12.0-1.el9.x86_64 # ./memfd_test hugetlbfs memfd-hugetlb: CREATE memfd-hugetlb: BASIC memfd-hugetlb: SEAL-WRITE memfd-hugetlb: SEAL-FUTURE-WRITE mmap() didn't fail as expected Aborted (core dumped) We need to make sure we'll get below fixes into rhel9 by either rebase or backport: https://lore.kernel.org/lkml/20210503234356.9097-1-peterx@redhat.com/ The 1st patch is less important as it fixes F_SEAL_FUTURE_WRITE which may not have a huge lot of users, however good to have. The 2nd fix is more important as it could cause data corruption.