Main-line Linux kernel tree http://www.kernel.org
Go to file
Andrey Konovalov 05c56e7b43 kasan: fix type cast in memory_is_poisoned_n
Commit bb6e04a173 ("kasan: use internal prototypes matching gcc-13
builtins") introduced a bug into the memory_is_poisoned_n implementation:
it effectively removed the cast to a signed integer type after applying
KASAN_GRANULE_MASK.

As a result, KASAN started failing to properly check memset, memcpy, and
other similar functions.

Fix the bug by adding the cast back (through an additional signed integer
variable to make the code more readable).

Link: https://lkml.kernel.org/r/8c9e0251c2b8b81016255709d4ec42942dcaf018.1688431866.git.andreyknvl@google.com
Fixes: bb6e04a173 ("kasan: use internal prototypes matching gcc-13 builtins")
Signed-off-by: Andrey Konovalov <andreyknvl@google.com>
Cc: Alexander Potapenko <glider@google.com>
Cc: Andrey Ryabinin <ryabinin.a.a@gmail.com>
Cc: Arnd Bergmann <arnd@arndb.de>
Cc: Dmitry Vyukov <dvyukov@google.com>
Cc: Marco Elver <elver@google.com>
Cc: <stable@vger.kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
2023-07-08 09:29:32 -07:00
arch parisc architecture fixes and updates for kernel v6.5-rc1: 2023-07-02 10:02:35 -07:00
block
certs
crypto
Documentation docs: update ocfs2-devel mailing list address 2023-07-08 09:29:29 -07:00
drivers Biggest news is not a patch this time 2023-07-02 10:22:38 -07:00
fs squashfs: fix cache race with migration 2023-07-08 09:29:30 -07:00
include bootmem: remove the vmemmap pages from kmemleak in free_bootmem_page 2023-07-08 09:29:31 -07:00
init Kbuild updates for v6.5 2023-07-01 09:24:31 -07:00
io_uring
ipc
kernel fork: lock VMAs of the parent process when forking 2023-07-08 09:29:29 -07:00
lib
LICENSES
mm kasan: fix type cast in memory_is_poisoned_n 2023-07-08 09:29:32 -07:00
net NFS client updates for Linux 6.5 2023-07-01 14:38:25 -07:00
rust
samples
scripts Kbuild updates for v6.5 2023-07-01 09:24:31 -07:00
security
sound
tools
usr
virt
.clang-format
.cocciconfig
.get_maintainer.ignore
.gitattributes
.gitignore
.mailmap mailmap: add entries for Heiko Stuebner 2023-07-08 09:29:31 -07:00
.rustfmt.toml
COPYING
CREDITS
Kbuild
Kconfig
MAINTAINERS MAINTAINERS: add linux-next info 2023-07-08 09:29:31 -07:00
Makefile Kbuild updates for v6.5 2023-07-01 09:24:31 -07:00
README

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.

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.