svn commit: r275514 - in head/sys: sys vm
John Baldwin
jhb at FreeBSD.org
Fri Dec 5 15:24:43 UTC 2014
Author: jhb
Date: Fri Dec 5 15:24:42 2014
New Revision: 275514
URL: https://svnweb.freebsd.org/changeset/base/275514
Log:
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
Modified:
head/sys/sys/param.h
head/sys/vm/vm_mmap.c
Modified: head/sys/sys/param.h
==============================================================================
--- head/sys/sys/param.h Fri Dec 5 15:02:30 2014 (r275513)
+++ head/sys/sys/param.h Fri Dec 5 15:24:42 2014 (r275514)
@@ -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
Modified: head/sys/vm/vm_mmap.c
==============================================================================
--- head/sys/vm/vm_mmap.c Fri Dec 5 15:02:30 2014 (r275513)
+++ head/sys/vm/vm_mmap.c Fri Dec 5 15:24:42 2014 (r275514)
@@ -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.
More information about the svn-src-head
mailing list