Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 70711
b: refs/heads/master
c: d68c9d6
h: refs/heads/master
i:
  70709: f04d223
  70707: a7052ec
  70703: a74f358
v: v3
  • Loading branch information
Franck Bui-Huu authored and Linus Torvalds committed Oct 17, 2007
1 parent fcb372e commit b8fd955
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 96358de6bc2ab0bc5e8b44a8f3be4c9bf4a14e4f
refs/heads/master: d68c9d6ae8f1fdae7d998158adc5ee106a2f8ce6
16 changes: 8 additions & 8 deletions trunk/fs/binfmt_elf.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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;
Expand Down

0 comments on commit b8fd955

Please sign in to comment.