RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1560191 - madvise.2: Document MADV_WIPEONFORK and MADV_KEEPONFORK
Summary: madvise.2: Document MADV_WIPEONFORK and MADV_KEEPONFORK
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: man-pages-overrides
Version: 7.5
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: alpha
: 7.6
Assignee: Nikola Forró
QA Contact: Jan Houska
URL:
Whiteboard:
Depends On: 1476297
Blocks: 1592878
TreeView+ depends on / blocked
 
Reported: 2018-03-24 15:55 UTC by Rafael Aquini
Modified: 2018-10-30 11:35 UTC (History)
4 users (show)

Fixed In Version: man-pages-overrides-7.6.0-1.el7
Doc Type: No Doc Update
Doc Text:
undefined
Clone Of:
Environment:
Last Closed: 2018-10-30 11:34:51 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2018:3254 0 None None None 2018-10-30 11:35:39 UTC

Description Rafael Aquini 2018-03-24 15:55:01 UTC
Via Bug 1476297 we're backporting these new advice into RHEL7's madvise(2) syscall, and as such their availability and behaviour must be noted accordingly in the man pages.

Comment 10 Jan Houska 2018-08-28 10:04:46 UTC
VERIFIED

diff OLD (man-pages-overrides-7.5.2-1.el7) NEW (man-pages-overrides-7.6.2-1.el7)
91a93,103
>        MADV_WIPEONFORK (since Linux 4.14)
>               Present  the  child  process  with zero-filled memory in this range after a fork(2).  This is useful in forking servers in order to ensure that sensitive per-process data
>               (for example, PRNG seeds, cryptographic secrets, and so on) is not handed to child processes.
> 
>               The MADV_WIPEONFORK operation can be applied only to private anonymous pages (see mmap(2)).
> 
>               Within the child created by fork(2), the MADV_WIPEONFORK setting remains in place on the specified address range.  This setting is cleared during execve(2).
> 
>        MADV_KEEPONFORK (since Linux 4.14)
>               Undo the effect of an earlier MADV_WIPEONFORK.
> 
111a124,125
>        EINVAL advice is MADV_FREE or MADV_WIPEONFORK but the specified address range includes file, Huge TLB, MAP_SHARED, or VM_PFNMAP ranges.
> 
126c140
<        The current Linux implementation (2.4.0) views this system call more as a command than as advice and hence may return an error when it cannot do what  it  usually  would  do  in
---
>        The  current  Linux  implementation  (2.4.0)  views this system call more as a command than as advice and hence may return an error when it cannot do what it usually would do in
129c143
<        The  Linux  implementation  requires  that  the  address addr be page-aligned, and allows length to be zero.  If there are some parts of the specified address range that are not
---
>        The Linux implementation requires that the address addr be page-aligned, and allows length to be zero.  If there are some parts of the  specified  address  range  that  are  not
136c150
<        This  page  is  part  of  release  3.53  of  the  Linux  man-pages  project.   A  description  of  the  project,  and  information  about  reporting  bugs,  can  be   found   at
---
>        This   page   is  part  of  release  3.53  of  the  Linux  man-pages  project.   A  description  of  the  project,  and  information  about  reporting  bugs,  can  be  found  at

Comment 13 errata-xmlrpc 2018-10-30 11:34:51 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2018:3254


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