On Fri, Nov 13, 2026 at 04:34:52PM -0600, Eric Blake wrote:
> Feifan Qian posted a sample script generated with the help of AI that
> created a known-broken NBD server that intentionally replies to a
> structured read with only a subset of bytes, to expose the leak of
> heap data from qemu as an NBD client into an emulated IDE drive. Take
> the idea of that test, but simplify it into a qemu-io test (much
> lighter-weight NBD client, and easier access to see what bytes the NBD
> client code is passing on) that more closely resembles paradigms in my
> recent nbd-robustness iotest.  Also, expand the test to cover multiple
> scenarios: in addition to the original test demonstrating a prefix of
> 20 bytes with unwritten tail, I expanded it to cover out-of-order
> replies, a hole-only reply, and a completely empty reply.
> 
> Reported-by: Feifan Qian <[email protected]>
> Based-on: https://gitlab.com/qemu-project/qemu/-/work_items/3815
> AI-used-for: tests

QEMU's current AI policy forbids AI-generated code.

> Signed-off-by: Eric Blake <[email protected]>
> ---
>  .../tests/nbd-structured-read-gaps            | 215 ++++++++++++++++++
>  .../tests/nbd-structured-read-gaps.out        |   5 +
>  2 files changed, 220 insertions(+)
>  create mode 100755 tests/qemu-iotests/tests/nbd-structured-read-gaps
>  create mode 100644 tests/qemu-iotests/tests/nbd-structured-read-gaps.out
> 
> diff --git a/tests/qemu-iotests/tests/nbd-structured-read-gaps 
> b/tests/qemu-iotests/tests/nbd-structured-read-gaps
> new file mode 100755
> index 00000000000..9f8b3b8b20b
> --- /dev/null
> +++ b/tests/qemu-iotests/tests/nbd-structured-read-gaps
> @@ -0,0 +1,215 @@
> +#!/usr/bin/env python3
> +# group: rw quick

Does this run in CI without the "auto" group?


Reply via email to