• Jann Horn's avatar
    x86/dumpstack: Introduce die_addr() for die() with #GP fault address · aa49f204
    Jann Horn authored
    Split __die() into __die_header() and __die_body(). This allows inserting
    extra information below the header line that initiates the bug report.
    
    Introduce a new function die_addr() that behaves like die(), but is for
    faults only and uses __die_header() and __die_body() so that a future
    commit can print extra information after the header line.
    
     [ bp: Comment the KASAN-specific usage of gp_addr. ]
    Signed-off-by: default avatarJann Horn <jannh@google.com>
    Signed-off-by: default avatarBorislav Petkov <bp@suse.de>
    Cc: Alexander Potapenko <glider@google.com>
    Cc: Andrey Konovalov <andreyknvl@google.com>
    Cc: Andrey Ryabinin <aryabinin@virtuozzo.com>
    Cc: Andy Lutomirski <luto@kernel.org>
    Cc: Dmitry Vyukov <dvyukov@google.com>
    Cc: "Eric W. Biederman" <ebiederm@xmission.com>
    Cc: "H. Peter Anvin" <hpa@zytor.com>
    Cc: Ingo Molnar <mingo@redhat.com>
    Cc: kasan-dev@googlegroups.com
    Cc: Masami Hiramatsu <mhiramat@kernel.org>
    Cc: "Peter Zijlstra (Intel)" <peterz@infradead.org>
    Cc: Sean Christopherson <sean.j.christopherson@intel.com>
    Cc: Thomas Gleixner <tglx@linutronix.de>
    Cc: x86-ml <x86@kernel.org>
    Link: https://lkml.kernel.org/r/20191218231150.12139-3-jannh@google.com
    aa49f204
kdebug.h 1.02 KB