From: Amol Surati <suratiamol@gmail.com>
To: Amol Surati <suratiamol@gmail.com>
Cc: qemu-devel@nongnu.org, John Snow <jsnow@redhat.com>,
"open list:IDE" <qemu-block@nongnu.org>
Subject: Re: [Qemu-devel] [RFC 1/1] ide: bug #1777315: io_buffer_size and sg.size can represent partial sector sizes
Date: Mon, 18 Jun 2018 23:32:56 +0530 [thread overview]
Message-ID: <20180618180254.GA2441@arch> (raw)
In-Reply-To: <20180617183515.3982-2-suratiamol@gmail.com>
On Mon, Jun 18, 2018 at 12:05:15AM +0530, Amol Surati wrote:
> This patch fixes the assumption that io_buffer_size is always a perfect
> multiple of the sector size. The assumption is the cause of the firing
> of 'assert(n * 512 == s->sg.size);'.
>
> Signed-off-by: Amol Surati <suratiamol@gmail.com>
> ---
The repository https://github.com/asurati/1777315 contains a module for
QEMU's 8086:7010 ATA controller, which exercises the code path
described in [RFC 0/1] of this series.
Loading the module reproduces the bug. Tested on the latest master
branch.
Steps:
- Install a Linux distribution as a guest, ensuring that the boot disk
resides on non-IDE controllers (such as virtio)
- Attach another disk as a master device on the primary
IDE controller (i.e. attach at -hda.)
- Blacklist ata_piix, pata_acpi and ata_generic modules, and reboot.
- Copy the source files into the guest and build the module.
- Load the module. QEMU process should die with the message:
qemu-system-x86_64: hw/ide/core.c:871: ide_dma_cb:
Assertion `n * 512 == s->sg.size' failed.
-Amol
next prev parent reply other threads:[~2018-06-18 18:01 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-06-17 18:35 [Qemu-devel] [RFC 0/1] ide: attempt at fixing the bug #1777315 Amol Surati
2018-06-17 18:35 ` [Qemu-devel] [RFC 1/1] ide: bug #1777315: io_buffer_size and sg.size can represent partial sector sizes Amol Surati
2018-06-18 18:02 ` Amol Surati [this message]
2018-06-18 18:13 ` John Snow
2018-06-18 18:24 ` Amol Surati
2018-06-19 0:14 ` John Snow
2018-06-19 4:01 ` Amol Surati
2018-06-19 8:53 ` [Qemu-devel] [Qemu-block] " Kevin Wolf
2018-06-19 13:45 ` John Snow
2018-06-19 14:34 ` Amol Surati
2018-06-19 21:26 ` Amol Surati
2018-06-19 21:43 ` John Snow
2018-06-20 0:53 ` Amol Surati
2018-06-20 1:27 ` Amol Surati
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20180618180254.GA2441@arch \
--to=suratiamol@gmail.com \
--cc=jsnow@redhat.com \
--cc=qemu-block@nongnu.org \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.