Re: [PATCH v2 09/12] x86/sev: Use AP Jump Table blob to stop CPU

2021-11-15 Thread Borislav Petkov
On Mon, Sep 13, 2021 at 05:56:00PM +0200, Joerg Roedel wrote: > diff --git a/arch/x86/include/asm/sev.h b/arch/x86/include/asm/sev.h > index 134a7c9d91b6..cd14b6e10f12 100644 > --- a/arch/x86/include/asm/sev.h > +++ b/arch/x86/include/asm/sev.h > @@ -81,12 +81,19 @@ static __always_inline void

Re: [PATCH v2] proc/vmcore: fix clearing user buffer by properly using clear_user()

2021-11-15 Thread Andrew Morton
On Fri, 12 Nov 2021 10:27:50 +0100 David Hildenbrand wrote: > To clear a user buffer we cannot simply use memset, we have to use > clear_user(). With a virtio-mem device that registers a vmcore_cb and has > some logically unplugged memory inside an added Linux memory block, I can > easily

[PATCH v2 2/2] s390/kexec: fix kmemleak

2021-11-15 Thread Baoquan He
unreferenced object 0x38000195000 (size 4096): comm "kexec", pid 8548, jiffies 4294953647 (age 32443.270s) hex dump (first 32 bytes): 00 00 00 c8 20 00 00 00 00 00 00 c0 02 80 00 00 ... 40 40 40 40 40 40 40 40 00 00 00 00 00 00 00 00 backtrace:

[PATCH v2 1/2] s390/kexec: check the return value of ipl_report_finish

2021-11-15 Thread Baoquan He
In function ipl_report_finish(), it could fail by memory allocation failure, so check the return value to handle the case. Signed-off-by: Baoquan He --- arch/s390/include/asm/ipl.h | 2 +- arch/s390/kernel/ipl.c| 6 -- arch/s390/kernel/machine_kexec_file.c | 5

[PATCH v2 RESEND 2/2] s390/kexec: fix memory leak of ipl report buffer

2021-11-15 Thread Baoquan He
unreferenced object 0x38000195000 (size 4096): comm "kexec", pid 8548, jiffies 4294953647 (age 32443.270s) hex dump (first 32 bytes): 00 00 00 c8 20 00 00 00 00 00 00 c0 02 80 00 00 ... 40 40 40 40 40 40 40 40 00 00 00 00 00 00 00 00 backtrace:

Re: Help needed in getting kernel dump in QEMU VM

2021-11-15 Thread Baoquan He
On 11/15/21 at 03:49pm, Dongliang Mu wrote: > On Mon, Nov 15, 2021 at 3:27 PM Baoquan He wrote: > > > > Hi, > > > > On 11/13/21 at 10:40am, Dongliang Mu wrote: > > > Hi all KDUMP maintainers, > > > > > > I would like to generate a kernel dump within QEMU VM. > > > > > > 1. I reproduced the kernel