Skip Menu |
 

Date: Fri, 3 Jan 2014 00:01:55 -0500
From: Nalin Dahyabhai <nalin@redhat.com>
To: krb5-bugs@mit.edu
Subject: AES-NI support in 1.12 and executable stacks
I just recently tweaked the build of 1.12 for our development branch to
take advantage of the new AES-NI support, but overlooked that by
default, the assembler-generated object files don't include an empty
.note.GNU-stack section.

When the linker goes to include them into the libk5crypto shared
library, the resulting library is marked as needing its stack to be set
executable, and that trips various protections implemented elsewhere.

Dhiru Kholia was kind enough to supply a candidate patch which adds the
section in a bug report [1]; I'm attaching it.

Thanks,

Nalin

[1] https://bugzilla.redhat.com/show_bug.cgi?id=1045699

Message body is not shown because sender requested not to inline it.

From: ghudson@mit.edu
Subject: git commit

Mark AESNI files as not needing executable stacks

Some Linux systems now come with facilities to mark the stack as
non-executable, making it more difficult to exploit buffer overrun
bugs. For this to work, object files built from assembly need a
section added to note whether they require an executable stack.

Patch from Dhiru Kholia with comments added. More information at:
https://bugzilla.redhat.com/show_bug.cgi?id=1045699
https://wiki.gentoo.org/wiki/Hardened/GNU_stack_quickstart

https://github.com/krb5/krb5/commit/c64e39c69a9a7ee32c00b0cf7918f6274a565544
Author: Greg Hudson <ghudson@mit.edu>
Commit: c64e39c69a9a7ee32c00b0cf7918f6274a565544
Branch: master
src/lib/crypto/builtin/aes/iaesx64.s | 11 +++++++++++
src/lib/crypto/builtin/aes/iaesx86.s | 11 +++++++++++
2 files changed, 22 insertions(+), 0 deletions(-)
From: tlyu@mit.edu
Subject: git commit

Mark AESNI files as not needing executable stacks

Some Linux systems now come with facilities to mark the stack as
non-executable, making it more difficult to exploit buffer overrun
bugs. For this to work, object files built from assembly need a
section added to note whether they require an executable stack.

Patch from Dhiru Kholia with comments added. More information at:
https://bugzilla.redhat.com/show_bug.cgi?id=1045699
https://wiki.gentoo.org/wiki/Hardened/GNU_stack_quickstart

(cherry picked from commit c64e39c69a9a7ee32c00b0cf7918f6274a565544)

https://github.com/krb5/krb5/commit/1cc36f83ae13d91c255c92add19bbfea54a4e9a0
Author: Greg Hudson <ghudson@mit.edu>
Committer: Tom Yu <tlyu@mit.edu>
Commit: 1cc36f83ae13d91c255c92add19bbfea54a4e9a0
Branch: krb5-1.12
src/lib/crypto/builtin/aes/iaesx64.s | 11 +++++++++++
src/lib/crypto/builtin/aes/iaesx86.s | 11 +++++++++++
2 files changed, 22 insertions(+), 0 deletions(-)