Discussion:
[1003.1(2013)/Issue7+TC1 0000852]: Clarify MAP_FIXED semantics when replacing existing locked mappings
Austin Group Bug Tracker
2014-07-24 16:36:30 UTC
Permalink
A NOTE has been added to this issue.
======================================================================
http://austingroupbugs.net/view.php?id=852
======================================================================
Reported By: mdempsky
Assigned To:
======================================================================
Project: 1003.1(2013)/Issue7+TC1
Issue ID: 852
Category: System Interfaces
Type: Clarification Requested
Severity: Editorial
Priority: normal
Status: New
Name: Matthew Dempsky
Organization: OpenBSD
User Reference:
Section: mmap
Page Number:
http://pubs.opengroup.org/onlinepubs/9699919799/functions/mmap.html
Line Number:
Interp Status: ---
Final Accepted Text:
======================================================================
Date Submitted: 2014-06-28 22:42 UTC
Last Modified: 2014-07-24 16:36 UTC
======================================================================
Summary: Clarify MAP_FIXED semantics when replacing existing
locked mappings
======================================================================

----------------------------------------------------------------------
(0002323) martinr (reporter) - 2014-07-24 16:36
http://austingroupbugs.net/view.php?id=852#c2323
----------------------------------------------------------------------
When the second mmap() is called segvn_lockop() function with UNLOCK
operation is called to unlock the lock. During as_map() part no
segvn_lockop() with LOCK operation is called to restore underlying lock.
That means there is no lock on the overlapping region unless mlock*() is
explicitly called.

Issue History
Date Modified Username Field Change
======================================================================
2014-06-28 22:42 mdempsky New Issue
2014-06-28 22:42 mdempsky Name => Matthew Dempsky
2014-06-28 22:42 mdempsky Organization => OpenBSD
2014-06-28 22:42 mdempsky Section => mmap
2014-06-28 22:42 mdempsky Page Number =>
http://pubs.opengroup.org/onlinepubs/9699919799/functions/mmap.html
2014-06-28 22:56 mdempsky Note Added: 0002293
2014-06-29 00:20 mdempsky Note Added: 0002294
2014-07-02 18:02 mdempsky Note Added: 0002301
2014-07-04 17:04 markh Note Added: 0002302
2014-07-05 10:13 mdempsky Note Added: 0002303
2014-07-17 16:26 joerg Note Added: 0002311
2014-07-17 17:02 joerg Note Edited: 0002311
2014-07-17 17:03 joerg Note Edited: 0002311
2014-07-17 18:16 mdempsky Note Added: 0002312
2014-07-18 07:48 martinr Note Added: 0002313
2014-07-18 16:03 mdempsky Note Added: 0002316
2014-07-24 16:36 martinr Note Added: 0002323
======================================================================
Loading...