Kees Cook 91b8348cb1 UPSTREAM: lib/test_stackinit: Handle Clang auto-initialization pattern
Upstream commit 8c30d32b1a ("lib/test_stackinit: Handle Clang
auto-initialization pattern").

While the gcc plugin for automatic stack variable initialization (i.e.
CONFIG_GCC_PLUGIN_STRUCTLEAK_BYREF_ALL) performs initialization with
0x00 bytes, the Clang automatic stack variable initialization (i.e.
CONFIG_INIT_STACK_ALL) uses various type-specific patterns that are
typically 0xAA. Therefore the stackinit selftest has been fixed to check
that bytes are no longer the test fill pattern of 0xFF (instead of looking
for bytes that have become 0x00). This retains the test coverage for the
0x00 pattern of the gcc plugin while adding coverage for the mostly 0xAA
pattern of Clang.

Signed-off-by: Kees Cook <keescook@chromium.org>
Acked-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Bug: 144999193
Change-Id: Ieb59dd5ba351d9ae96e5e3ad22f686be4524281a
Signed-off-by: Alexander Potapenko <glider@google.com>
2020-02-13 16:36:27 +01:00
2020-02-11 15:05:03 -08:00
2020-02-02 20:22:38 +00:00
2020-02-11 15:05:03 -08:00
2020-02-11 15:05:03 -08:00
2020-02-11 15:05:03 -08:00
2020-02-11 15:05:03 -08:00
2020-02-11 15:05:03 -08:00
2020-02-11 15:05:03 -08:00
2020-02-11 15:05:03 -08:00
2020-02-11 15:05:03 -08:00
2020-02-11 15:05:03 -08:00
2020-02-05 19:20:26 +00:00
2020-02-11 15:05:03 -08:00
2020-02-11 15:05:03 -08:00
2019-10-17 15:33:07 -07:00
2020-02-11 15:05:03 -08:00

Linux kernel
============

There are several guides for kernel developers and users. These guides can
be rendered in a number of formats, like HTML and PDF. Please read
Documentation/admin-guide/README.rst first.

In order to build the documentation, use ``make htmldocs`` or
``make pdfdocs``.  The formatted documentation can also be read online at:

    https://www.kernel.org/doc/html/latest/

There are various text files in the Documentation/ subdirectory,
several of them using the Restructured Text markup notation.
See Documentation/00-INDEX for a list of what is contained in each file.

Please read the Documentation/process/changes.rst file, as it contains the
requirements for building and running the kernel, and information about
the problems which may result by upgrading your kernel.
Description
No description provided
Readme 7.9 GiB
Languages
C 97.7%
Assembly 1.6%
Makefile 0.3%
Perl 0.1%