diff options
| author | Alex Mastro <amastro@fb.com> | 2026-06-17 11:58:01 -0700 |
|---|---|---|
| committer | Alex Williamson <alex@shazbot.org> | 2026-07-17 08:39:35 -0600 |
| commit | 6bc73befe1b4143ebe6a991b2ab133e9f3087128 (patch) | |
| tree | a7f4b3b85dfc795197ead1fadb8be14d72b3b40e /scripts/objdiff | |
| parent | bc4be8c6fd8bf9f4d7febccfbd6441c4d708135a (diff) | |
| download | linux-6bc73befe1b4143ebe6a991b2ab133e9f3087128.tar.gz linux-6bc73befe1b4143ebe6a991b2ab133e9f3087128.zip | |
vfio: selftests: Avoid VLAs
Allocate VFIO ioctl requests dynamically instead of using VLAs. GCC 11.5.0
rejects initialized VLAs with:
error: variable-sized object may not be initialized
The replaced stack u8 arrays also do not guarantee native struct alignment
for the aliased pointers.
Fixes: 19faf6fd969c ("vfio: selftests: Add a helper library for VFIO selftests")
Fixes: 20face8c75ff ("vfio: selftests: Add helper to set/override a vf_token")
Assisted-by: Codex:gpt-5.5-high
Reviewed-by: Vipin Sharma <vipinsh@google.com>
Reviewed-by: David Matlack <dmatlack@google.com>
Signed-off-by: Alex Mastro <amastro@fb.com>
Link: https://lore.kernel.org/r/20260617-scratch-amastro-vfio-selftests-avoid-vlas-v4-2-b9f52f1e2c5a@fb.com
Signed-off-by: Alex Williamson <alex@shazbot.org>
Diffstat (limited to 'scripts/objdiff')
0 files changed, 0 insertions, 0 deletions
