rpms/kernel/F-7 kernel-2.6.spec, 1.3217, 1.3218 linux-2.6-execshield.patch, 1.51, 1.52
Dave Jones (davej)
fedora-extras-commits at redhat.com
Wed Jun 6 21:54:53 UTC 2007
Author: davej
Update of /cvs/pkgs/rpms/kernel/F-7
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv24220
Modified Files:
kernel-2.6.spec linux-2.6-execshield.patch
Log Message:
* Wed Jun 06 2007 Dave Jones <davej at redhat.com>
- Fix bug with MAP_FIXED (#242612).
Index: kernel-2.6.spec
===================================================================
RCS file: /cvs/pkgs/rpms/kernel/F-7/kernel-2.6.spec,v
retrieving revision 1.3217
retrieving revision 1.3218
diff -u -r1.3217 -r1.3218
--- kernel-2.6.spec 5 Jun 2007 21:42:46 -0000 1.3217
+++ kernel-2.6.spec 6 Jun 2007 21:54:18 -0000 1.3218
@@ -2432,6 +2432,9 @@
%endif
%changelog
+* Wed Jun 06 2007 Dave Jones <davej at redhat.com>
+- Fix bug with MAP_FIXED (#242612).
+
* Tue Jun 05 2007 Chuck Ebbert <cebbert at redhat.com>
- Fix the oprofile fix.
linux-2.6-execshield.patch:
Index: linux-2.6-execshield.patch
===================================================================
RCS file: /cvs/pkgs/rpms/kernel/F-7/linux-2.6-execshield.patch,v
retrieving revision 1.51
retrieving revision 1.52
diff -u -r1.51 -r1.52
--- linux-2.6-execshield.patch 28 Feb 2007 17:44:23 -0000 1.51
+++ linux-2.6-execshield.patch 6 Jun 2007 21:54:18 -0000 1.52
@@ -1734,3 +1734,21 @@
ret = new_addr;
if (new_addr & ~PAGE_MASK)
goto out;
+--- linux-2.6.21.noarch/mm/mmap.c~ 2007-06-06 17:50:39.000000000 -0400
++++ linux-2.6.21.noarch/mm/mmap.c 2007-06-06 17:52:12.000000000 -0400
+@@ -1422,10 +1422,12 @@ unsigned long arch_get_unmapped_exec_are
+ if (len > TASK_SIZE)
+ return -ENOMEM;
+
+- if (!addr && !(flags & MAP_FIXED))
+- addr = randomize_range(SHLIB_BASE, 0x01000000, len);
++ if (flags & MAP_FIXED)
++ return addr;
+
+- if (addr) {
++ if (!addr) {
++ addr = randomize_range(SHLIB_BASE, 0x01000000, len);
++ } else {
+ addr = PAGE_ALIGN(addr);
+ vma = find_vma(mm, addr);
+ if (TASK_SIZE - len >= addr &&
More information about the scm-commits
mailing list