summaryrefslogtreecommitdiffstats
path: root/fs/binfmt_elf.c
diff options
context:
space:
mode:
authorEric W. Biederman <ebiederm@xmission.com>2020-04-02 18:35:14 -0500
committerEric W. Biederman <ebiederm@xmission.com>2020-05-07 16:55:47 -0500
commit7d503feba0c88586b4c9f1212e9cc582c9370fa7 (patch)
treea50b5966929127c7886af7cccb4363a8d582b2cd /fs/binfmt_elf.c
parent96ecee29b0b560662ec082ee9b6f2049f2a79090 (diff)
downloadlinux-7d503feba0c88586b4c9f1212e9cc582c9370fa7.tar.gz
linux-7d503feba0c88586b4c9f1212e9cc582c9370fa7.tar.bz2
linux-7d503feba0c88586b4c9f1212e9cc582c9370fa7.zip
exec: In setup_new_exec cache current in the local variable me
At least gcc 8.3 when generating code for x86_64 has a hard time consolidating multiple calls to current aka get_current(), and winds up unnecessarily rereading %gs:current_task several times in setup_new_exec. Caching the value of current in the local variable of me generates slightly better and shorter assembly. Reviewed-by: Kees Cook <keescook@chromium.org> Reviewed-by: Greg Ungerer <gerg@linux-m68k.org> Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com>
Diffstat (limited to 'fs/binfmt_elf.c')
0 files changed, 0 insertions, 0 deletions