Skip to content

Commit bf9bccb

Browse files
author
Vladimir Kotal
committed
add note on ASLR
1 parent 67cf8a2 commit bf9bccb

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

proc.tex

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1079,7 +1079,10 @@
10791079
via \texttt{open}. The access mode in \texttt{prot} cannot be ``higher'' than
10801080
specified in the mode for \texttt{open}.
10811081
\item The use of \texttt{MAP\_FIXED} is not recommended, since it hampers
1082-
portability of the code.
1082+
portability of the code. Also, it removes any existing mappings at that
1083+
address. Further, it does not work well with ASLR (Address Space Layout
1084+
Randomization) which is frequently used in current Unix systems for dynamically
1085+
linked programs.
10831086
\item \textbf{warning:} w.r.t. \texttt{MAP\_SHARED} -- if the file is truncated
10841087
by another process so that the truncation affects the mapped part, the access
10851088
to such area results in the \texttt{SIGBUS} resp. \texttt{SIGSEGV} or signal

0 commit comments

Comments
 (0)