From: Anthony Liguori <aliguori@us.ibm.com>
To: Herbert Xu <herbert@gondor.apana.org.au>
Cc: Xen Development Mailing List <xen-devel@lists.xensource.com>,
qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] Recursion in cpu_physical_memory_rw
Date: Wed, 15 Nov 2006 19:04:01 -0000 [thread overview]
Message-ID: <455B6486.8080604@us.ibm.com> (raw)
In-Reply-To: <20061115025839.GA22608@gondor.apana.org.au>
Herbert Xu wrote:
> On Wed, Nov 15, 2006 at 12:57:24AM +0000, Paul Brook wrote:
>> It isn't always system memory. Some DMA controllers deliberately write to
>> device FIFOs. There are also several devices which map areas of onboard RAM.
>> At minimum you need to make those to use RAM mappings rather than MMIO.
>
> I'm not suggesting that we change all existing users of cpu_physical_*
> to a new interface that only accessed RAM. However, for cases where it
> is obvious that only system RAM is intended (e.g., rtl8139), it makes
> sense to bypass MMIO handlers.
>
>> If a device is recursively writing to itself I'd take this as sign that the
>> guest OS is already pretty screwed. I'm not sure what happens in this
>> situation on real hardware, but I wouldn't be surprised if it caused similar
>> effects by flooding the bus.
>
> The scenario here is a compromised guest attempting to harm a host such
> as Xen.
The only "harm" done to a host is that the process will take as much CPU
as it can get. This is really only a problem in Xen because the device
model is in Domain-0. Once the device model is in a different domain,
it doesn't matter anymore as the normal scheduler parameters can be used
to ensure that no other hosts are harmed.
Regards,
Anthony Liguori
> Cheers,
WARNING: multiple messages have this Message-ID (diff)
From: Anthony Liguori <aliguori@us.ibm.com>
To: Herbert Xu <herbert@gondor.apana.org.au>
Cc: Xen Development Mailing List <xen-devel@lists.xensource.com>,
qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] Recursion in cpu_physical_memory_rw
Date: Wed, 15 Nov 2006 13:03:34 -0600 [thread overview]
Message-ID: <455B6486.8080604@us.ibm.com> (raw)
In-Reply-To: <20061115025839.GA22608@gondor.apana.org.au>
Herbert Xu wrote:
> On Wed, Nov 15, 2006 at 12:57:24AM +0000, Paul Brook wrote:
>> It isn't always system memory. Some DMA controllers deliberately write to
>> device FIFOs. There are also several devices which map areas of onboard RAM.
>> At minimum you need to make those to use RAM mappings rather than MMIO.
>
> I'm not suggesting that we change all existing users of cpu_physical_*
> to a new interface that only accessed RAM. However, for cases where it
> is obvious that only system RAM is intended (e.g., rtl8139), it makes
> sense to bypass MMIO handlers.
>
>> If a device is recursively writing to itself I'd take this as sign that the
>> guest OS is already pretty screwed. I'm not sure what happens in this
>> situation on real hardware, but I wouldn't be surprised if it caused similar
>> effects by flooding the bus.
>
> The scenario here is a compromised guest attempting to harm a host such
> as Xen.
The only "harm" done to a host is that the process will take as much CPU
as it can get. This is really only a problem in Xen because the device
model is in Domain-0. Once the device model is in a different domain,
it doesn't matter anymore as the normal scheduler parameters can be used
to ensure that no other hosts are harmed.
Regards,
Anthony Liguori
> Cheers,
next prev parent reply other threads:[~2006-11-15 19:04 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-11-15 0:43 [Qemu-devel] Recursion in cpu_physical_memory_rw Herbert Xu
2006-11-15 0:43 ` Herbert Xu
2006-11-15 0:57 ` [Qemu-devel] " Paul Brook
2006-11-15 0:57 ` Paul Brook
2006-11-15 2:58 ` [Qemu-devel] " Herbert Xu
2006-11-15 7:55 ` Keir Fraser
2006-11-15 7:57 ` [Xen-devel] " Keir Fraser
2006-11-15 11:12 ` Herbert Xu
2006-11-15 11:12 ` Herbert Xu
2006-11-15 11:25 ` Keir Fraser
2006-11-15 11:52 ` [Xen-devel] " Keir Fraser
2006-11-15 15:02 ` Paul Brook
2006-11-15 15:02 ` [Xen-devel] " Paul Brook
2006-11-16 5:09 ` [Xen-devel] Re: [Qemu-devel] " Herbert Xu
2006-11-16 5:09 ` Herbert Xu
2006-11-15 19:03 ` Anthony Liguori [this message]
2006-11-15 19:04 ` Anthony Liguori
2006-11-16 5:11 ` Herbert Xu
2006-11-16 7:52 ` Keir Fraser
2006-11-16 7:53 ` [Xen-devel] " Keir Fraser
2006-11-16 7:59 ` Herbert Xu
2006-11-16 7:59 ` Herbert Xu
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=455B6486.8080604@us.ibm.com \
--to=aliguori@us.ibm.com \
--cc=herbert@gondor.apana.org.au \
--cc=qemu-devel@nongnu.org \
--cc=xen-devel@lists.xensource.com \
/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.