Bug 1959192 - Fix memfd_test failure on hugetlbfs (F_SEAL_FUTURE_WRITE fix; copy-on-write data corrupt)
Summary: Fix memfd_test failure on hugetlbfs (F_SEAL_FUTURE_WRITE fix; copy-on-write d...
Keywords:
Status: CLOSED NEXTRELEASE
Alias: None
Product: Red Hat Enterprise Linux 9
Classification: Red Hat
Component: kernel
Version: 9.0
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: beta
: 9.0
Assignee: Peter Xu
QA Contact: Li Wang
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-05-10 21:35 UTC by Peter Xu
Modified: 2023-08-08 03:05 UTC (History)
7 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-11-17 21:01:29 UTC
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Peter Xu 2021-05-10 21:35:45 UTC
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.


Note You need to log in before you can comment on or make changes to this bug.