qemu/hw
Fabiano Rosas bdf12f2a56 s390x: Fix leak in machine_set_loadparm
ASAN spotted a leaking string in machine_set_loadparm():

Direct leak of 9 byte(s) in 1 object(s) allocated from:
    #0 0x560ffb5bb379 in malloc ../projects/compiler-rt/lib/asan/asan_malloc_linux.cpp:69:3
    #1 0x7f1aca926518 in g_malloc ../glib/gmem.c:106
    #2 0x7f1aca94113e in g_strdup ../glib/gstrfuncs.c:364
    #3 0x560ffc8afbf9 in qobject_input_type_str ../qapi/qobject-input-visitor.c:542:12
    #4 0x560ffc8a80ff in visit_type_str ../qapi/qapi-visit-core.c:349:10
    #5 0x560ffbe6053a in machine_set_loadparm ../hw/s390x/s390-virtio-ccw.c:802:10
    #6 0x560ffc0c5e52 in object_property_set ../qom/object.c:1450:5
    #7 0x560ffc0d4175 in object_property_set_qobject ../qom/qom-qobject.c:28:10
    #8 0x560ffc0c6004 in object_property_set_str ../qom/object.c:1458:15
    #9 0x560ffbe2ae60 in update_machine_ipl_properties ../hw/s390x/ipl.c:569:9
    #10 0x560ffbe2aa65 in s390_ipl_update_diag308 ../hw/s390x/ipl.c:594:5
    #11 0x560ffbdee132 in handle_diag_308 ../target/s390x/diag.c:147:9
    #12 0x560ffbebb956 in helper_diag ../target/s390x/tcg/misc_helper.c:137:9
    #13 0x7f1a3c51c730  (/memfd:tcg-jit (deleted)+0x39730)

Cc: qemu-stable@nongnu.org
Signed-off-by: Fabiano Rosas <farosas@suse.de>
Message-ID: <20250509174938.25935-1-farosas@suse.de>
Fixes: 1fd396e322 ("s390x: Register TYPE_S390_CCW_MACHINE properties as class properties")
Reviewed-by: Thomas Huth <thuth@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Signed-off-by: Thomas Huth <thuth@redhat.com>
2025-05-14 06:58:59 +02:00
..
9pfs 9pfs: fix 'total_open_fd' decrementation 2025-05-05 11:28:29 +02:00
acpi trivial patches for 2025-05-09 2025-05-12 11:11:27 -04:00
adc qom: Have class_init() take a const data argument 2025-04-25 17:00:41 +02:00
alpha qom: Have class_init() take a const data argument 2025-04-25 17:00:41 +02:00
arm hw/arm/virt: Remove deprecated virt-4.0 machine 2025-05-06 15:02:35 +01:00
audio qom: Make InterfaceInfo[] uses const 2025-04-25 17:00:41 +02:00
avr qom: Have class_init() take a const data argument 2025-04-25 17:00:41 +02:00
block qom: Make InterfaceInfo[] uses const 2025-04-25 17:00:41 +02:00
char hw/char/serial: Remove unused prog_if compat property 2025-05-02 21:49:32 +02:00
core hw/core/machine: Fix indentation 2025-05-09 23:49:26 +03:00
cpu qom: Have class_init() take a const data argument 2025-04-25 17:00:41 +02:00
cxl qom: Make InterfaceInfo[] uses const 2025-04-25 17:00:41 +02:00
display trivial patches for 2025-05-09 2025-05-12 11:11:27 -04:00
dma qom: Make InterfaceInfo[] uses const 2025-04-25 17:00:41 +02:00
fsi qom: Have class_init() take a const data argument 2025-04-25 17:00:41 +02:00
gpio hw/gpio/imx_gpio: Fix interpretation of GDIR polarity 2025-05-06 15:02:35 +01:00
hppa qom: Make InterfaceInfo[] uses const 2025-04-25 17:00:41 +02:00
hyperv hw/hyperv/hyperv: common compilation unit 2025-05-08 14:22:12 +02:00
i2c hw/i2c/imx: Always set interrupt status bit if interrupt condition occurs 2025-05-08 14:26:37 +02:00
i386 hw/i386/acpi-build: Fix typo in function name 2025-05-09 23:49:26 +03:00
ide qom: Make InterfaceInfo[] uses const 2025-04-25 17:00:41 +02:00
input qom: Make InterfaceInfo[] uses const 2025-04-25 17:00:41 +02:00
intc loongarch queue 2025-05-06 11:03:45 -04:00
ipack qom: Make InterfaceInfo[] uses const 2025-04-25 17:00:41 +02:00
ipmi qom: Make InterfaceInfo[] uses const 2025-04-25 17:00:41 +02:00
isa hw/isa/ich9: Remove stray empty comment 2025-05-09 23:49:26 +03:00
loongarch hw/loongarch/virt: Allow user to customize OEM ID and OEM table ID 2025-05-06 09:17:32 +08:00
m68k qom: Make InterfaceInfo[] uses const 2025-04-25 17:00:41 +02:00
mem qom: Make InterfaceInfo[] uses const 2025-04-25 17:00:41 +02:00
microblaze hw/microblaze: Evaluate TARGET_BIG_ENDIAN at compile time 2025-04-25 17:09:58 +02:00
mips hw/mips: Evaluate TARGET_BIG_ENDIAN at compile time 2025-04-25 17:09:58 +02:00
misc qom: Make InterfaceInfo[] uses const 2025-04-25 17:00:41 +02:00
net hw/net/e1000: Remove stray empty comment in header 2025-05-09 23:49:26 +03:00
nubus qom: Have class_init() take a const data argument 2025-04-25 17:00:41 +02:00
nvme qom: Make InterfaceInfo[] uses const 2025-04-25 17:00:41 +02:00
nvram qom: Have class_init() take a const data argument 2025-04-25 17:00:41 +02:00
openrisc qom: Have class_init() take a const data argument 2025-04-25 17:00:41 +02:00
pci trivial patches for 2025-05-09 2025-05-12 11:11:27 -04:00
pci-bridge qom: Make InterfaceInfo[] uses const 2025-04-25 17:00:41 +02:00
pci-host trivial patches for 2025-05-09 2025-05-12 11:11:27 -04:00
ppc include: Remove 'exec/exec-all.h' 2025-04-30 12:45:05 -07:00
remote qom: Make InterfaceInfo[] uses const 2025-04-25 17:00:41 +02:00
riscv include: Remove 'exec/exec-all.h' 2025-04-30 12:45:05 -07:00
rtc hw/rtc/mc146818rtc: Drop pre-v3 migration stream support 2025-04-30 20:44:20 +02:00
rx qom: Have class_init() take a const data argument 2025-04-25 17:00:41 +02:00
s390x s390x: Fix leak in machine_set_loadparm 2025-05-14 06:58:59 +02:00
scsi qom: Make InterfaceInfo[] uses const 2025-04-25 17:00:41 +02:00
sd qom: Make InterfaceInfo[] uses const 2025-04-25 17:00:41 +02:00
sensor qom: Constify TypeInfo::class_data 2025-04-25 17:00:41 +02:00
sh4 include: Remove 'exec/exec-all.h' 2025-04-30 12:45:05 -07:00
smbios ipmi: add fwinfo to pci ipmi devices 2025-04-11 10:50:42 -05:00
sparc qom: Have class_init() take a const data argument 2025-04-25 17:00:41 +02:00
sparc64 qom: Make InterfaceInfo[] uses const 2025-04-25 17:00:41 +02:00
ssi hw/ssi/aspeed_smc: Allow 64-bit wide flash accesses 2025-05-05 09:38:55 +02:00
timer qom: Have class_init() take a const data argument 2025-04-25 17:00:41 +02:00
tpm qom: Make InterfaceInfo[] uses const 2025-04-25 17:00:41 +02:00
tricore qom: Have class_init() take a const data argument 2025-04-25 17:00:41 +02:00
uefi qom: Have class_init() take a const data argument 2025-04-25 17:00:41 +02:00
ufs qom: Make InterfaceInfo[] uses const 2025-04-25 17:00:41 +02:00
usb hw/usb/hcd-xhci: Unmap canceled packet 2025-04-25 17:00:42 +02:00
vfio vfio queue: 2025-05-09 12:04:35 -04:00
virtio exec: Rename target_words_bigendian() -> target_big_endian() 2025-04-25 17:00:42 +02:00
vmapple qom: Have class_init() take a const data argument 2025-04-25 17:00:41 +02:00
watchdog qom: Make InterfaceInfo[] uses const 2025-04-25 17:00:41 +02:00
xen trivial patches for 2025-05-09 2025-05-12 11:11:27 -04:00
xenpv hw/boards: Do not create unusable default if=sd drives 2025-02-16 14:25:08 +01:00
xtensa qom: Have class_init() take a const data argument 2025-04-25 17:00:41 +02:00
Kconfig Misc HW patches 2025-03-05 21:54:58 +08:00
meson.build Misc HW patches 2025-03-05 21:54:58 +08:00