Centos-kernel-stream-9/kernel/entry
Chris von Recklinghausen 3da8288d26 entry: kmsan: introduce kmsan_unpoison_entry_regs()
JIRA: https://issues.redhat.com/browse/RHEL-1848

commit 6cae637fa26df867449c6bc20ea8bc693abe49b0
Author: Alexander Potapenko <glider@google.com>
Date:   Thu Sep 15 17:04:14 2022 +0200

    entry: kmsan: introduce kmsan_unpoison_entry_regs()

    struct pt_regs passed into IRQ entry code is set up by uninstrumented asm
    functions, therefore KMSAN may not notice the registers are initialized.

    kmsan_unpoison_entry_regs() unpoisons the contents of struct pt_regs,
    preventing potential false positives.  Unlike kmsan_unpoison_memory(), it
    can be called under kmsan_in_runtime(), which is often the case in IRQ
    entry code.

    Link: https://lkml.kernel.org/r/20220915150417.722975-41-glider@google.com
    Signed-off-by: Alexander Potapenko <glider@google.com>
    Cc: Alexander Viro <viro@zeniv.linux.org.uk>
    Cc: Alexei Starovoitov <ast@kernel.org>
    Cc: Andrey Konovalov <andreyknvl@gmail.com>
    Cc: Andrey Konovalov <andreyknvl@google.com>
    Cc: Andy Lutomirski <luto@kernel.org>
    Cc: Arnd Bergmann <arnd@arndb.de>
    Cc: Borislav Petkov <bp@alien8.de>
    Cc: Christoph Hellwig <hch@lst.de>
    Cc: Christoph Lameter <cl@linux.com>
    Cc: David Rientjes <rientjes@google.com>
    Cc: Dmitry Vyukov <dvyukov@google.com>
    Cc: Eric Biggers <ebiggers@google.com>
    Cc: Eric Biggers <ebiggers@kernel.org>
    Cc: Eric Dumazet <edumazet@google.com>
    Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
    Cc: Herbert Xu <herbert@gondor.apana.org.au>
    Cc: Ilya Leoshkevich <iii@linux.ibm.com>
    Cc: Ingo Molnar <mingo@redhat.com>
    Cc: Jens Axboe <axboe@kernel.dk>
    Cc: Joonsoo Kim <iamjoonsoo.kim@lge.com>
    Cc: Kees Cook <keescook@chromium.org>
    Cc: Marco Elver <elver@google.com>
    Cc: Mark Rutland <mark.rutland@arm.com>
    Cc: Matthew Wilcox <willy@infradead.org>
    Cc: Michael S. Tsirkin <mst@redhat.com>
    Cc: Pekka Enberg <penberg@kernel.org>
    Cc: Peter Zijlstra <peterz@infradead.org>
    Cc: Petr Mladek <pmladek@suse.com>
    Cc: Stephen Rothwell <sfr@canb.auug.org.au>
    Cc: Steven Rostedt <rostedt@goodmis.org>
    Cc: Thomas Gleixner <tglx@linutronix.de>
    Cc: Vasily Gorbik <gor@linux.ibm.com>
    Cc: Vegard Nossum <vegard.nossum@oracle.com>
    Cc: Vlastimil Babka <vbabka@suse.cz>
    Signed-off-by: Andrew Morton <akpm@linux-foundation.org>

Signed-off-by: Chris von Recklinghausen <crecklin@redhat.com>
2023-10-20 06:14:42 -04:00
..
Makefile kernel: Implement selective syscall userspace redirection 2020-12-02 15:07:56 +01:00
common.c entry: kmsan: introduce kmsan_unpoison_entry_regs() 2023-10-20 06:14:42 -04:00
common.h kernel: Implement selective syscall userspace redirection 2020-12-02 15:07:56 +01:00
kvm.c entry/kvm: Exit to user mode when TIF_NOTIFY_SIGNAL is set 2023-04-10 11:52:39 -04:00
syscall_user_dispatch.c signal: Replace force_fatal_sig with force_exit_sig when in doubt 2022-10-12 07:27:31 -04:00