android_kernel_motorola_sm6225/arch/x86/xen
Xiu Jianfeng 9209d2cbf5 x86/xen: Fix memory leak in xen_smp_intr_init{_pv}()
[ Upstream commit 69143f60868b3939ddc89289b29db593b647295e ]

These local variables @{resched|pmu|callfunc...}_name saves the new
string allocated by kasprintf(), and when bind_{v}ipi_to_irqhandler()
fails, it goes to the @fail tag, and calls xen_smp_intr_free{_pv}() to
free resource, however the new string is not saved, which cause a memory
leak issue. fix it.

Fixes: 9702785a74 ("i386: move xen")
Signed-off-by: Xiu Jianfeng <xiujianfeng@huawei.com>
Reviewed-by: Juergen Gross <jgross@suse.com>
Link: https://lore.kernel.org/r/20221123155858.11382-2-xiujianfeng@huawei.com
Signed-off-by: Juergen Gross <jgross@suse.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2023-01-18 11:30:07 +01:00
..
apic.c
debugfs.c
debugfs.h
efi.c xen/pvh: correctly setup the PV EFI interface for dom0 2021-01-12 20:10:24 +01:00
enlighten.c x86/xen: Return from panic notifier 2019-11-06 13:05:55 +01:00
enlighten_hvm.c
enlighten_pv.c xen/x86: fix PV trap handling on secondary processors 2021-10-06 15:31:10 +02:00
enlighten_pvh.c xen/pvh: correctly setup the PV EFI interface for dom0 2021-01-12 20:10:24 +01:00
grant-table.c
irq.c
Kconfig
Makefile
mmu.c
mmu.h
mmu_hvm.c
mmu_pv.c
multicalls.c
multicalls.h
p2m.c xen: fix setting of max_pfn in shared_info 2021-09-22 11:47:57 +02:00
pci-swiotlb-xen.c
platform-pci-unplug.c
pmu.c xen: fix is_xen_pmu() 2022-04-15 14:14:53 +02:00
pmu.h xen: fix is_xen_pmu() 2022-04-15 14:14:53 +02:00
setup.c
smp.c x86/xen: Fix memory leak in xen_smp_intr_init{_pv}() 2023-01-18 11:30:07 +01:00
smp.h
smp_hvm.c xen: delay xen_hvm_init_time_ops() if kdump is boot on vcpu>=32 2022-04-15 14:15:03 +02:00
smp_pv.c x86/xen: Fix memory leak in xen_smp_intr_init{_pv}() 2023-01-18 11:30:07 +01:00
spinlock.c x86/xen: don't unbind uninitialized lock_kicker_irq 2020-12-02 08:48:09 +01:00
suspend.c
suspend_hvm.c
suspend_pv.c
time.c xen: delay xen_hvm_init_time_ops() if kdump is boot on vcpu>=32 2022-04-15 14:15:03 +02:00
trace.c
vdso.h
vga.c
xen-asm.S
xen-asm_32.S
xen-asm_64.S kprobes/x86/xen: blacklist non-attachable xen interrupt functions 2019-12-05 09:20:25 +01:00
xen-head.S
xen-ops.h xen/events: only register debug interrupt for 2-level events 2023-01-18 11:30:07 +01:00
xen-pvh.S