From b8fd9555511aabdb1ef56c340105eb8dbaa4f053 Mon Sep 17 00:00:00 2001 From: Franck Bui-Huu Date: Tue, 16 Oct 2007 23:30:24 -0700 Subject: [PATCH] --- yaml --- r: 70711 b: refs/heads/master c: d68c9d6ae8f1fdae7d998158adc5ee106a2f8ce6 h: refs/heads/master i: 70709: f04d223df5a0808436f7094de44aa0cf2fdd91ef 70707: a7052ecaeccfce7f15996023b399c46b2c566c3c 70703: a74f358300755594610cdb702675a1fb0e37835d v: v3 --- [refs] | 2 +- trunk/fs/binfmt_elf.c | 16 ++++++++-------- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/[refs] b/[refs] index d0979c439665..953f6bb09239 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 96358de6bc2ab0bc5e8b44a8f3be4c9bf4a14e4f +refs/heads/master: d68c9d6ae8f1fdae7d998158adc5ee106a2f8ce6 diff --git a/trunk/fs/binfmt_elf.c b/trunk/fs/binfmt_elf.c index 0f55b71ed983..6e2f3b8dde7f 100644 --- a/trunk/fs/binfmt_elf.c +++ b/trunk/fs/binfmt_elf.c @@ -150,6 +150,14 @@ create_elf_tables(struct linux_binprm *bprm, struct elfhdr *exec, struct task_struct *tsk = current; struct vm_area_struct *vma; + /* + * In some cases (e.g. Hyper-Threading), we want to avoid L1 + * evictions by the processes running on the same package. One + * thing we can do is to shuffle the initial stack for them. + */ + + p = arch_align_stack(p); + /* * If this architecture has a platform capability string, copy it * to userspace. In some cases (Sparc), this info is impossible @@ -160,14 +168,6 @@ create_elf_tables(struct linux_binprm *bprm, struct elfhdr *exec, if (k_platform) { size_t len = strlen(k_platform) + 1; - /* - * In some cases (e.g. Hyper-Threading), we want to avoid L1 - * evictions by the processes running on the same package. One - * thing we can do is to shuffle the initial stack for them. - */ - - p = arch_align_stack(p); - u_platform = (elf_addr_t __user *)STACK_ALLOC(p, len); if (__copy_to_user(u_platform, k_platform, len)) return -EFAULT;