linux-stable/arch/x86
Xiu Jianfeng 9278bdbb56 x86/xen: Fix memory leak in xen_init_lock_cpu()
[ Upstream commit ca84ce153d ]

In xen_init_lock_cpu(), the @name has allocated new string by kasprintf(),
if bind_ipi_to_irqhandler() fails, it should be freed, otherwise may lead
to a memory leak issue, fix it.

Fixes: 2d9e1e2f58 ("xen: implement Xen-specific spinlocks")
Signed-off-by: Xiu Jianfeng <xiujianfeng@huawei.com>
Reviewed-by: Juergen Gross <jgross@suse.com>
Link: https://lore.kernel.org/r/20221123155858.11382-3-xiujianfeng@huawei.com
Signed-off-by: Juergen Gross <jgross@suse.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2023-01-07 12:07:15 +01:00
..
boot x86/boot/compressed: Disable relocation relaxation 2021-01-30 13:27:16 +01:00
configs x86/defconfig: Enable CONFIG_USB_XHCI_HCD=y 2020-09-23 08:46:16 +02:00
crypto crypto: x86/crct10dif-pcl - fix use via crypto_shash_digest() 2019-05-21 18:48:57 +02:00
entry x86/entry/64: Add instruction suffix 2021-01-09 13:35:48 +01:00
events perf/x86/intel/pt: Fix address filter config for 32-bit kernel 2022-04-20 09:06:32 +02:00
ia32 x86/ia32: Fix ia32_restore_sigcontext() AC leak 2019-05-31 06:48:29 -07:00
include x86/tsx: Add a feature bit for TSX control MSR support 2022-12-08 11:15:42 +01:00
kernel uprobes/x86: Allow to probe a NOP instruction with 0x66 prefix 2023-01-07 12:07:15 +01:00
kvm x86/cpu: Restore AMD's DE_CFG MSR after resume 2022-11-25 17:35:38 +01:00
lguest
lib x86/delay: Fix the wrong asm constraint in delay_loop() 2022-06-14 16:52:31 +02:00
math-emu x86: math-emu: Fix up 'cmp' insn for clang ias 2020-07-31 16:44:04 +02:00
mm x86/ioremap: Fix page aligned size calculation in __ioremap_caller() 2022-12-08 11:15:42 +01:00
net bpf, x86: Validate computation of branch displacements for x86-64 2021-04-10 13:04:45 +02:00
oprofile x86/oprofile: Fix bogus GCC-8 warning in nmi_setup() 2018-02-28 10:18:31 +01:00
pci x86/PCI: Mark Intel C620 MROMs as having non-compliant BARs 2020-06-20 10:24:08 +02:00
platform platform/x86: pmc_atom: Fix SLP_TYPx bitfield mask 2022-09-15 12:39:44 +02:00
power x86/pm: Add enumeration check before spec MSRs save/restore setup 2022-12-08 11:15:42 +01:00
purgatory kasan: do not sanitize kexec purgatory 2017-10-08 10:26:09 +02:00
ras
realmode x86/build: Specify elf_i386 linker emulation explicitly for i386 objects 2019-04-05 22:29:14 +02:00
tools x86/tools: Fix objdump version check again 2021-08-26 08:37:23 -04:00
um um: Cleanup compiler warning in arch/x86/um/tls_32.c 2022-10-26 13:15:34 +02:00
video
xen x86/xen: Fix memory leak in xen_init_lock_cpu() 2023-01-07 12:07:15 +01:00
.gitignore
Kbuild
Kconfig x86/retpoline: Make CONFIG_RETPOLINE depend on compiler support 2022-03-11 10:03:30 +01:00
Kconfig.cpu
Kconfig.debug x86, perf: Fix the dependency of the x86 insn decoder selftest 2020-01-29 10:24:31 +01:00
Makefile x86/build: Fix compiler support check for CONFIG_RETPOLINE 2022-03-11 10:03:32 +01:00
Makefile.um
Makefile_32.cpu