diff options
author | Michael Ellerman <mpe@ellerman.id.au> | 2016-11-15 10:02:32 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2016-11-15 21:26:06 +0300 |
commit | c55d240003ae253d3057dcf93510c9bd64bb7a09 (patch) | |
tree | c80233dfdea2ba01b6a627fbe9cbc52a45df203c /drivers/char/pcmcia | |
parent | 967b274e02e18c9fbb4d19b96a89bd0afbc77b7a (diff) | |
download | linux-c55d240003ae253d3057dcf93510c9bd64bb7a09.tar.xz |
lkdtm: Prevent the compiler from optimising lkdtm_CORRUPT_STACK()
At least on powerpc with GCC 6, the compiler is smart enough to optimise
lkdtm_CORRUPT_STACK() into an empty function that just returns.
If we print the buffer after we've written to it that prevents the
compiler from optimising away data and the memset().
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Acked-by: Kees Cook <keescook@chromium.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/char/pcmcia')
0 files changed, 0 insertions, 0 deletions