elf-make-bad_addr-unlikely.patch removed from -mm tree
The patch titled
Subject: fs/binfmt_elf.c: make BAD_ADDR() unlikely
has been removed from the -mm tree. Its filename was
elf-make-bad_addr-unlikely.patch
This patch was dropped because it was merged into mainline or a subsystem tree
------------------------------------------------------
From: Alexey Dobriyan <[email protected]>
Subject: fs/binfmt_elf.c: make BAD_ADDR() unlikely
If some mapping goes past TASK_SIZE it will be rejected by kernel which means no such userspace binaries exist.
Mark every such check as unlikely.
Signed-off-by Alexey Dobriyan <[email protected]>
Reviewed-by Andrew Morton <[email protected]>
Signed-off-by Andrew Morton <[email protected]>
---
fs/binfmt_elf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
fs/binfmt_elf.c renamed from fs/binfmt_elf.c~elf-make-bad_addr-unlikely +1 -1
@@ -97,7 +97,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) (unlikely((unsigned long)(x) >= TASK_SIZE))static int set_brk (unsigned long start,unsigned long end,int prot) {
_
Patches currently in -mm which might be from [email protected] are
ramfs-support-o_tmpfile.patch proc-decouple-proc-from-vfs-with-struct-proc_ops.patch proc-convert-everything-to-struct-proc_ops.patch