Bug 139881
Summary: | Incorrect accounting with locked_vm (struct mm_struct) | ||||||||
---|---|---|---|---|---|---|---|---|---|
Product: | Red Hat Enterprise Linux 3 | Reporter: | Wendy Cheng <nobody+wcheng> | ||||||
Component: | kernel | Assignee: | Ernie Petrides <petrides> | ||||||
Status: | CLOSED DUPLICATE | QA Contact: | Brian Brock <bbrock> | ||||||
Severity: | medium | Docs Contact: | |||||||
Priority: | medium | ||||||||
Version: | 3.0 | CC: | peterm, petrides, riel, tao, tburke | ||||||
Target Milestone: | --- | ||||||||
Target Release: | --- | ||||||||
Hardware: | All | ||||||||
OS: | Linux | ||||||||
Whiteboard: | |||||||||
Fixed In Version: | Doc Type: | Bug Fix | |||||||
Doc Text: | Story Points: | --- | |||||||
Clone Of: | Environment: | ||||||||
Last Closed: | 2005-07-22 02:11:24 UTC | Type: | --- | ||||||
Regression: | --- | Mount Type: | --- | ||||||
Documentation: | --- | CRM: | |||||||
Verified Versions: | Category: | --- | |||||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||||
Cloudforms Team: | --- | Target Upstream Version: | |||||||
Embargoed: | |||||||||
Attachments: |
|
Description
Wendy Cheng
2004-11-18 16:56:29 UTC
Created attachment 106967 [details]
test program
1. Untar the file (tar xvf shmtest.tar) and build the two executables (shmget
and shmreget) by "make".
2. Run the ./shmget to obtain three shared memory regions.
3. Run the ./shmreget to remove the above regions and get a new one.
The 3) would fail with ENOMEM.
Created attachment 106970 [details] wor around patch This is the "better-than-before" patch that goes with the test kernel sent to the customer. Also thought about changing the locked_vm into "int" instead of "unsigned int". I eventually gave it up since the kernel had been doing too many shift (<< or >>) operations that is cumbersome to get it right. Still, the 2.6 implementation looks most reasonable, except the KABI issue. Yes, kABI needs to be broken in order for this bug to be fixed. That's going to have to be a decision for PM to make. This is a dup of bug 126411, but I'm leaving it open and putting it on the KABI-blocker list. A fix for this problem was committed to the RHEL3 U6 patch pool on 4-May-2005 (in kernel version 2.4.21-32.3.EL) and to the RHEL3 E6 patch pool on 16-May-2005 (in kernel version 2.4.21-32.0.1.EL). Following is the Errata System notice about the release fixing this: "An advisory has been issued which should help the problem described in this bug report. This report is therefore being closed with a resolution of ERRATA. For more information on the solution and/or where to find the updated files, please follow the link below. You may reopen this bug report if the solution does not work for you." *** This bug has been marked as a duplicate of 126411 *** |