qemu/hw
Paolo Bonzini 413d0ccb05 hw/isa: specify instance_size in isa_superio_type_info
Right now all subclasses of TYPE_ISA_SUPERIO have to specify an instance_size,
because the ISASuperIODevice struct adds fields to ISADevice but the type does
not include the increased instance size.  Failure to do so results in an access
past the bounds of struct ISADevice as soon as isa_superio_realize is called.
Fix this by specifying the instance_size already in the superclass.

Fixes: 4c3119a6e3 ("hw/isa/superio: Factor out the parallel code from pc87312.c")
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Bernhard Beschow <shentey@gmail.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Message-ID: <20240213155005.109954-6-pbonzini@redhat.com>
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
2024-02-15 15:53:12 +01:00
..
9pfs
acpi
adc
alpha
arm virtio,pc,pci: features, cleanups, fixes 2024-02-14 15:45:52 +00:00
audio
avr
block hw/block/tc58128: Don't emit deprecation warning under qtest 2024-02-15 15:53:12 +01:00
char
core
cpu
cris
cxl hw/cxl: Standardize all references on CXL r3.1 and minor updates 2024-02-14 06:09:33 -05:00
display virtio-gpu-rutabaga.c: override resource_destroy method 2024-02-14 06:17:44 -05:00
dma
fsi
gpio
hppa
hyperv
i2c
i386 hw/i386: Fix _STA return value for ACPI0017 2024-02-14 06:09:32 -05:00
ide
input
intc virtio,pc,pci: features, cleanups, fixes 2024-02-14 15:45:52 +00:00
ipack
ipmi
isa hw/isa: specify instance_size in isa_superio_type_info 2024-02-15 15:53:12 +01:00
loongarch
m68k
mem hw/cxl: Standardize all references on CXL r3.1 and minor updates 2024-02-14 06:09:33 -05:00
microblaze
mips hw/mips/Kconfig: Remove ISA dependencies from MIPSsim board 2024-02-15 15:53:12 +01:00
misc hw/misc/mips_itu: Remove MIPSITUState::saar field 2024-02-15 15:53:12 +01:00
net
nios2
nubus
nvme
nvram
openrisc
pci
pci-bridge hw/cxl: Standardize all references on CXL r3.1 and minor updates 2024-02-14 06:09:33 -05:00
pci-host
pcmcia
ppc
rdma
remote
riscv
rtc
rx
s390x
scsi
sd
sensor
sh4
smbios hw/smbios: Fix port connector option validation 2024-02-14 06:09:33 -05:00
sparc
sparc64
ssi
timer
tpm
tricore
ufs
usb
vfio
virtio
watchdog
xen
xenpv
xtensa
Kconfig
meson.build