]> git.ipfire.org Git - thirdparty/qemu.git/commit
tests/ide-test: Create a single unit-test covering more PRDT cases
authorAlexander Popov <alex.popov@linux.com>
Mon, 23 Dec 2019 17:51:17 +0000 (20:51 +0300)
committerJohn Snow <jsnow@redhat.com>
Mon, 27 Jan 2020 22:07:31 +0000 (17:07 -0500)
commit59805ae92dfe4f67105e36b539d567caec4f8304
tree5405478c5c6d127d60cf0c5fec9a50b18138b36f
parented78352a59ea7acf7520d4d47a96b9911bae7fc3
tests/ide-test: Create a single unit-test covering more PRDT cases

Fuzzing the Linux kernel with syzkaller allowed to find how to crash qemu
using a special SCSI_IOCTL_SEND_COMMAND. It hits the assertion in
ide_dma_cb() introduced in the commit a718978ed58a in July 2015.
Currently this bug is not reproduced by the unit tests.

Let's improve the ide-test to cover more PRDT cases including one
that causes this particular qemu crash.

The test is developed according to the Programming Interface for
Bus Master IDE Controller (Revision 1.0 5/16/94).

Signed-off-by: Alexander Popov <alex.popov@linux.com>
Message-id: 20191223175117.508990-3-alex.popov@linux.com
Signed-off-by: John Snow <jsnow@redhat.com>
tests/qtest/ide-test.c