Always ignore the deprecated MAP_RENAME and MAP_NORESERVE flags to mmap().
Some old libraries may be used even with newer binaries (specifically the Nvidia driver libraries). Differential Revision: https://reviews.freebsd.org/D1262 Reviewed by: kib
This commit is contained in:
parent
30d57414a0
commit
01ca58b23c
@ -81,7 +81,6 @@
|
||||
#define P_OSREL_SIGSEGV 700004
|
||||
#define P_OSREL_MAP_ANON 800104
|
||||
#define P_OSREL_MAP_FSTRICT 1100036
|
||||
#define P_OSREL_MAP_RENAME 1100039
|
||||
|
||||
#define P_OSREL_MAJOR(x) ((x) / 100000)
|
||||
#endif
|
||||
|
@ -222,8 +222,7 @@ sys_mmap(td, uap)
|
||||
/*
|
||||
* Ignore old flags that used to be defined but did not do anything.
|
||||
*/
|
||||
if (td->td_proc->p_osrel < P_OSREL_MAP_RENAME)
|
||||
flags &= ~(MAP_RESERVED0020 | MAP_RESERVED0040);
|
||||
flags &= ~(MAP_RESERVED0020 | MAP_RESERVED0040);
|
||||
|
||||
/*
|
||||
* Enforce the constraints.
|
||||
|
Loading…
x
Reference in New Issue
Block a user