Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

[PATCH] x86_64: Check for bad elf entry address.

Fixes a local DOS on Intel systems that lead to an endless
recursive fault. AMD machines don't seem to be affected.

Signed-off-by: Suresh Siddha <suresh.b.siddha@intel.com>
Signed-off-by: Andi Kleen <ak@suse.de>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>

authored by

Suresh Siddha and committed by
Linus Torvalds
5342fba5 f83f2b5f

+5
+5
fs/binfmt_elf.c
··· 938 938 kfree(elf_interpreter); 939 939 } else { 940 940 elf_entry = loc->elf_ex.e_entry; 941 + if (BAD_ADDR(elf_entry)) { 942 + send_sig(SIGSEGV, current, 0); 943 + retval = -ENOEXEC; /* Nobody gets to see this, but.. */ 944 + goto out_free_dentry; 945 + } 941 946 } 942 947 943 948 kfree(elf_phdata);