mirror of https://github.com/mkerrisk/man-pages
mmap.2: Minor wording fixes to to text describing MAP_FIXED hazards
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
parent
fd859eb599
commit
56a033affa
|
@ -249,11 +249,16 @@ If the specified address cannot be used,
|
|||
.BR mmap ()
|
||||
will fail.
|
||||
.IP
|
||||
Software that aspires to be portable should use this option with care,
|
||||
Software that aspires to be portable should use the
|
||||
.BR MAP_FIXED
|
||||
flag with care,
|
||||
keeping in mind that the exact layout of a process's memory mappings
|
||||
is allowed to change significantly between kernel versions,
|
||||
C library versions, and operating system releases.
|
||||
This option should be used only when the specified memory region has
|
||||
.IP
|
||||
The
|
||||
.BR MAP_FIXED
|
||||
flag should be used only when the specified memory region has
|
||||
already been reserved using another mapping; otherwise, it is extremely
|
||||
hazardous because it forcibly removes preexisting mappings,
|
||||
making it easy for a multithreaded process to corrupt its own address space.
|
||||
|
|
Loading…
Reference in New Issue