]> 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)
committerMichael Roth <mdroth@linux.vnet.ibm.com>
Mon, 11 May 2020 23:06:53 +0000 (18:06 -0500)
commit3a94a8b7fd5cb500ee604b5aa609c238cea07a7c
treeace9e260477e42fc87e148a2d28f73b6e6a99f2d
parent0cfa46da8f175fbe16c1ad362282d59ccd9f026d
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>
(cherry picked from commit 59805ae92dfe4f67105e36b539d567caec4f8304)
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
tests/ide-test.c