rpms/kernel/devel kernel-2.6.spec, 1.3294, 1.3295 linux-2.6-execshield.patch, 1.58, 1.59
Dave Jones (davej)
fedora-extras-commits at redhat.com
Wed Jul 11 03:53:25 UTC 2007
Author: davej
Update of /cvs/pkgs/rpms/kernel/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv389
Modified Files:
kernel-2.6.spec linux-2.6-execshield.patch
Log Message:
* Tue Jul 10 2007 Dave Jones <davej at redhat.com>
- Fix issue with PIE randomization (#246623).
Index: kernel-2.6.spec
===================================================================
RCS file: /cvs/pkgs/rpms/kernel/devel/kernel-2.6.spec,v
retrieving revision 1.3294
retrieving revision 1.3295
diff -u -r1.3294 -r1.3295
--- kernel-2.6.spec 11 Jul 2007 01:59:16 -0000 1.3294
+++ kernel-2.6.spec 11 Jul 2007 03:52:50 -0000 1.3295
@@ -2127,6 +2127,9 @@
%changelog
* Tue Jul 10 2007 Dave Jones <davej at redhat.com>
+- Fix issue with PIE randomization (#246623).
+
+* Tue Jul 10 2007 Dave Jones <davej at redhat.com>
- 2.6.22-git1
* Tue Jul 10 2007 John W. Linville <linville at redhat.com>
linux-2.6-execshield.patch:
Index: linux-2.6-execshield.patch
===================================================================
RCS file: /cvs/pkgs/rpms/kernel/devel/linux-2.6-execshield.patch,v
retrieving revision 1.58
retrieving revision 1.59
diff -u -r1.58 -r1.59
--- linux-2.6-execshield.patch 22 Jun 2007 01:54:24 -0000 1.58
+++ linux-2.6-execshield.patch 11 Jul 2007 03:52:50 -0000 1.59
@@ -864,15 +864,6 @@
/*
* If we don't support core dumping, then supply a NULL so we
-@@ -83,7 +83,7 @@ static struct linux_binfmt elf_format =
- .min_coredump = ELF_EXEC_PAGESIZE
- };
-
--#define BAD_ADDR(x) ((unsigned long)(x) >= TASK_SIZE)
-+#define BAD_ADDR(x) ((unsigned long)(x) >= PAGE_MASK)
-
- static int set_brk(unsigned long start, unsigned long end)
- {
@@ -285,33 +285,71 @@ create_elf_tables(struct linux_binprm *b
#ifndef elf_map
@@ -1094,7 +1085,7 @@
- &interp_load_addr);
+ &interp_map_addr,
+ load_bias);
-+ if (!BAD_ADDR(elf_entry)) {
++ if (!IS_ERR((void *)elf_entry)) {
+ /* load_elf_interp() returns relocation adjustment */
+ interp_load_addr = elf_entry;
+ elf_entry += loc->interp_elf_ex.e_entry;
More information about the fedora-extras-commits
mailing list