You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
qemu/tests/qtest
Nabih Estefan 26b20dc207 tests/qtest: Avoid unaligned access in IGB test
../tests/qtest/libqos/igb.c:106:5: runtime error: load of misaligned address 0x562040be8e33 for type 'uint32_t', which requires 4 byte alignment

Instead of straight casting the uint8_t array, we can use ldl_le_p and
lduw_l_p to assure the unaligned access works properly against
uint32_t and uint16_t.

Signed-off-by: Nabih Estefan <nabihestefan@google.com>
Reviewed-by: Laurent Vivier <lvivier@redhat.com>
Tested-by: Laurent Vivier <lvivier@redhat.com>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20250429155621.2028198-1-nabihestefan@google.com>
[AJB: fix commit message, remove unneeded casts]
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
Reviewed-by: Akihiko Odaki <odaki@rsg.ci.i.u-tokyo.ac.jp>
Message-ID: <20250603110204.838117-5-alex.bennee@linaro.org>
10 hours ago
..
fuzz Miscellaneous patches for 2025-04-24 1 month ago
libqos tests/qtest: Avoid unaligned access in IGB test 10 hours ago
migration tests/qtest/migration: add postcopy tests with multifd 3 weeks ago
ac97-test.c
acpi-utils.c tests/qtest: remove return after g_assert_not_reached() 9 months ago
acpi-utils.h
adm1266-test.c qapi: Move include/qapi/qmp/ to include/qobject/ 4 months ago
adm1272-test.c qapi: Move include/qapi/qmp/ to include/qobject/ 4 months ago
ahci-test.c cleanup: Drop pointless return at end of function 1 month ago
am53c974-test.c
arm-cpu-features.c qapi: Move include/qapi/qmp/ to include/qobject/ 4 months ago
aspeed-hace-utils.c test/qtest/hace: Support to validate 64-bit hmac key buffer addresses 2 weeks ago
aspeed-hace-utils.h test/qtest/hace: Support to validate 64-bit hmac key buffer addresses 2 weeks ago
aspeed-smc-utils.c test/qtest: Introduce a new aspeed-smc-utils.c to place common testcases 6 months ago
aspeed-smc-utils.h test/qtest: Introduce a new aspeed-smc-utils.c to place common testcases 6 months ago
aspeed_fsi-test.c
aspeed_gpio-test.c qapi: Move include/qapi/qmp/ to include/qobject/ 4 months ago
aspeed_hace-test.c test/qtest/hace: Support to validate 64-bit hmac key buffer addresses 2 weeks ago
aspeed_smc-test.c tests/qtest/aspeed_smc-test: Fix memory leaks 2 weeks ago
ast2700-gpio-test.c qapi: Move include/qapi/qmp/ to include/qobject/ 4 months ago
ast2700-hace-test.c test/qtest/hace: Add tests for AST2700 2 weeks ago
ast2700-smc-test.c tests/qtest/ast2700-smc-test: Fix leak 2 weeks ago
bcm2835-dma-test.c
bcm2835-i2c-test.c hw/sensor/tmp105: Lower 4 bit of limit registers are always 0 9 months ago
bios-tables-test-allowed-diff.h tests: acpi: update expected blobs 5 months ago
bios-tables-test.c tests/qtest/bios-tables-test: Use MiB macro rather hardcode value 7 days ago
boot-order-test.c qapi: Move include/qapi/qmp/ to include/qobject/ 4 months ago
boot-sector.c
boot-sector.h
boot-serial-test.c tests: Add functional tests for HPPA machines 5 months ago
cdrom-test.c qapi: Move include/qapi/qmp/ to include/qobject/ 4 months ago
cmsdk-apb-dualtimer-test.c
cmsdk-apb-timer-test.c
cmsdk-apb-watchdog-test.c cleanup: Re-run return_directly.cocci 1 month ago
cpu-plug-test.c tests/qtest/cpu-plug-test: Add cpu hotplug support for LoongArch 4 weeks ago
cxl-test.c
dbus-display-test.c tests: add basic -display dbus Map.Unix test 8 months ago
dbus-vmstate-test.c
device-introspect-test.c qapi: Move include/qapi/qmp/ to include/qobject/ 4 months ago
device-plug-test.c qapi: Move include/qapi/qmp/ to include/qobject/ 4 months ago
display-vga-test.c
dm163-test.c tests/qtest: Add missing qtest_quit() to stm32 tests 9 months ago
drive_del-test.c qapi: Move include/qapi/qmp/ to include/qobject/ 4 months ago
ds1338-test.c
e1000-test.c
e1000e-test.c
eepro100-test.c
emc141x-test.c qapi: Move include/qapi/qmp/ to include/qobject/ 4 months ago
endianness-test.c Revert "Remove the unused sh4eb target" 7 months ago
erst-test.c
es1370-test.c
fdc-test.c qapi: Move include/qapi/qmp/ to include/qobject/ 4 months ago
fuzz-e1000e-test.c
fuzz-lsi53c895a-test.c
fuzz-megasas-test.c
fuzz-sb16-test.c
fuzz-sdcard-test.c
fuzz-virtio-scsi-test.c
fuzz-xlnx-dp-test.c
fw_cfg-test.c qtest/fw-cfg: remove compiled out code 5 months ago
hd-geo-test.c qapi: Move include/qapi/qmp/ to include/qobject/ 4 months ago
hexloader-test.c
i440fx-test.c
i82801b11-test.c
ide-test.c qapi: Move include/qapi/qmp/ to include/qobject/ 4 months ago
igb-test.c
intel-hda-test.c
intel-iommu-test.c tests/qtest: Add intel-iommu test 5 months ago
ioh3420-test.c
ipmi-bt-test.c chardev: finalize 'reconnect' deprecation 7 months ago
ipmi-kcs-test.c tests/qtest: replace assert(0) with g_assert_not_reached() 9 months ago
ipoctal232-test.c
isl_pmbus_vr-test.c qapi: Move include/qapi/qmp/ to include/qobject/ 4 months ago
ivshmem-test.c
libqmp.c qapi: Move include/qapi/qmp/ to include/qobject/ 4 months ago
libqmp.h qapi: Move include/qapi/qmp/ to include/qobject/ 4 months ago
libqtest-single.h
libqtest.c qtest: introduce qtest_init_ext 4 weeks ago
libqtest.h qtest: introduce qtest_init_ext 4 weeks ago
lpc-ich9-test.c
lsm303dlhc-mag-test.c qapi: Move include/qapi/qmp/ to include/qobject/ 4 months ago
m48t59-test.c ppc/ppc405: Remove tests 3 months ago
machine-none-test.c qapi: Move include/qapi/qmp/ to include/qobject/ 4 months ago
max34451-test.c qapi: Move include/qapi/qmp/ to include/qobject/ 4 months ago
megasas-test.c
meson.build tests/qtest: Migrate GMAC test from 7xx to 8xx 1 week ago
microbit-test.c
migration-helpers.c qapi: Move include/qapi/qmp/ to include/qobject/ 4 months ago
migration-test.c tests/qtest/migration: Pick smoke tests 4 months ago
modules-test.c
ne2000-test.c
netdev-socket.c qapi: Move include/qapi/qmp/ to include/qobject/ 4 months ago
npcm7xx_adc-test.c qapi: Move include/qapi/qmp/ to include/qobject/ 4 months ago
npcm7xx_emc-test.c qapi: Move include/qapi/qmp/ to include/qobject/ 4 months ago
npcm7xx_gpio-test.c
npcm7xx_pwm-test.c qapi: Move include/qapi/qmp/ to include/qobject/ 4 months ago
npcm7xx_rng-test.c
npcm7xx_sdhci-test.c
npcm7xx_smbus-test.c
npcm7xx_timer-test.c tests/qtest: don't step clock at start of npcm7xx periodic IRQ test 4 months ago
npcm7xx_watchdog_timer-test.c qapi: Move include/qapi/qmp/ to include/qobject/ 4 months ago
npcm_gmac-test.c tests/qtest: Migrate GMAC test from 7xx to 8xx 1 week ago
numa-test.c qapi: Move include/qapi/qmp/ to include/qobject/ 4 months ago
nvme-test.c
pca9552-test.c
pci-test.c
pcnet-test.c
pflash-cfi02-test.c
pnv-host-i2c-test.c cleanup: Re-run return_directly.cocci 1 month ago
pnv-spi-seeprom-test.c hw/ssi/pnv_spi: Make bus names distinct for each controllers of a socket 3 months ago
pnv-xive2-common.c tests/qtest: Add XIVE tests for the powernv10 machine 7 months ago
pnv-xive2-common.h ppc/xive2: Add support for MMIO operations on the NVPG/NVC BAR 3 months ago
pnv-xive2-flush-sync.c qtest/xive: Change printf to g_test_message 3 months ago
pnv-xive2-nvpg_bar.c qtest/xive: Change printf to g_test_message 3 months ago
pnv-xive2-test.c qtest/xive: Add test of pool interrupts 3 months ago
pnv-xscom-test.c
pnv-xscom.h ppc/pnv: Update Power10's cfam id to use Power10 DD2 11 months ago
ppc-util.h
prom-env-test.c
pvpanic-pci-test.c qapi: Move include/qapi/qmp/ to include/qobject/ 4 months ago
pvpanic-test.c qapi: Move include/qapi/qmp/ to include/qobject/ 4 months ago
pxe-test.c
q35-test.c tests/qtest/q35-test: Remove the obsolete test_without_smram_base test 1 month ago
qmp-cmd-test.c qapi: make s390x specific CPU commands unconditionally available 1 week ago
qmp-test.c qapi: Move include/qapi/qmp/ to include/qobject/ 4 months ago
qom-test.c tests/qtest/qom-test: Test retrieval of machine class properties 3 months ago
qos-test.c qapi: Move include/qapi/qmp/ to include/qobject/ 4 months ago
qtest_aspeed.c
qtest_aspeed.h
readconfig-test.c qapi: Move include/qapi/qmp/ to include/qobject/ 4 months ago
riscv-csr-test.c tests/qtest: QTest example for RISC-V CSR register 5 months ago
riscv-iommu-test.c qtest/riscv-iommu-test: add init queues test 7 months ago
rs5c372-test.c hw/rtc: Add Ricoh RS5C372 RTC emulation 3 months ago
rtas-test.c
rtc-test.c
rtl8139-test.c tests/qtest: replace assert(0) with g_assert_not_reached() 9 months ago
sdhci-test.c
sifive-e-aon-watchdog-test.c
spapr-phb-test.c
sse-timer-test.c
stm32l4x5.h tests/qtest: Check STM32L4x5 clock connections 8 months ago
stm32l4x5_exti-test.c
stm32l4x5_gpio-test.c tests/qtest: Use qtest_system_reset() instead of open-coded versions 6 months ago
stm32l4x5_rcc-test.c
stm32l4x5_syscfg-test.c tests/qtest: Use qtest_system_reset() instead of open-coded versions 6 months ago
stm32l4x5_usart-test.c cleanup: Re-run return_directly.cocci 1 month ago
tco-test.c qapi: Move include/qapi/qmp/ to include/qobject/ 4 months ago
test-arm-mptimer.c
test-filter-mirror.c qapi: Move include/qapi/qmp/ to include/qobject/ 4 months ago
test-filter-redirector.c qapi: Move include/qapi/qmp/ to include/qobject/ 4 months ago
test-hmp.c
test-netfilter.c qapi: Move include/qapi/qmp/ to include/qobject/ 4 months ago
test-x86-cpuid-compat.c hw/i386/pc: Remove deprecated pc-q35-2.4 and pc-i440fx-2.4 machines 1 week ago
tmp105-test.c qapi: Move include/qapi/qmp/ to include/qobject/ 4 months ago
tpm-crb-swtpm-test.c
tpm-crb-test.c
tpm-emu.c qapi: Move include/qapi/qmp/ to include/qobject/ 4 months ago
tpm-emu.h include: Rename sysemu/ -> system/ 6 months ago
tpm-tests.c tests: Wait for migration completion on destination QEMU to avoid failures 8 months ago
tpm-tests.h
tpm-tis-device-swtpm-test.c
tpm-tis-device-test.c
tpm-tis-i2c-test.c
tpm-tis-swtpm-test.c
tpm-tis-test.c
tpm-tis-util.c
tpm-tis-util.h
tpm-util.c qapi: Move include/qapi/qmp/ to include/qobject/ 4 months ago
tpm-util.h
tulip-test.c
ufs-test.c tests/qtest/ufs-test: Add test code for the temperature feature 3 months ago
usb-hcd-ehci-test.c
usb-hcd-ohci-test.c
usb-hcd-uhci-test.c
usb-hcd-xhci-test.c
vhost-user-blk-test.c
vhost-user-test.c tests/qtest/vhost-user-test: Use modern virtio for vhost-user tests 4 months ago
virtio-9p-test.c tests/9p: Test `Tsetattr` can truncate unlinked file 1 month ago
virtio-balloon-test.c tests/qtest: add test for querying balloon guest stats 6 months ago
virtio-blk-test.c
virtio-ccw-test.c
virtio-iommu-test.c tests/qtest/virtio-iommu-test: Don't pass uninitialized data into qtest_memwrite 5 months ago
virtio-net-failover.c qapi: Move include/qapi/qmp/ to include/qobject/ 4 months ago
virtio-net-test.c qapi: Move include/qapi/qmp/ to include/qobject/ 4 months ago
virtio-rng-test.c
virtio-scsi-test.c
virtio-serial-test.c
virtio-test.c
vmcoreinfo-test.c tests/qtest/vmcoreinfo: add a unit test to exercize basic vmcoreinfo function 4 months ago
vmgenid-test.c qapi: Move include/qapi/qmp/ to include/qobject/ 4 months ago
vmxnet3-test.c
vnc-display-test.c
wdt_ib700-test.c qapi: Move include/qapi/qmp/ to include/qobject/ 4 months ago
xlnx-can-test.c
xlnx-canfd-test.c
xlnx-versal-trng-test.c