On Tue, Nov 17, 2026 at 09:51:12PM +0100, Philippe Mathieu-Daudé wrote: > On 17/11/26 21:07, Eric Blake wrote: > > On Tue, Nov 17, 2026 at 01:06:01PM -0500, Stefan Hajnoczi wrote: > > > 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. > > OTOH nobody disagreed with latest policy sent by Paolo > (https://lore.kernel.org/qemu-devel/[email protected]/) > and Paolo said he'd get it merge during a community call > (Tuesday, 5 or 6 weeks ago?) so personally I consider it accepted > and being processed, only delayed. I hope this isn't a problem.
The new policy is not in effect yet. There are maintainers who wanted to discuss it at QEMU Summit but we ran out of time, so it was deferred to the next KVM Community Call (November 24th). If we merge this before there is a consensus, then we are overruling those who are not in agreement yet. I think it's too early. Eric: is there a way to implement the tests in tests/qemu-iotests/nbd-fault-injector.py? At least that already contains the NBD server logic and it would just be a question of adding the specific server responses needed to exercise the block/nbd.c code paths. Stefan
