From: Anthony Liguori <aliguori@cs.utexas.edu>
To: Markus Armbruster <armbru@redhat.com>
Cc: aliguori <aliguori@mail.utexas.edu>,
Jeremy Katz <katzj@redhat.com>,
xen-devel <xen-devel@lists.xensource.com>,
sos22@srcf.ucam.org
Subject: Re: [PATCH] Paravirt framebuffer backend tools [2/5]
Date: Wed, 04 Oct 2006 09:57:56 -0500 [thread overview]
Message-ID: <4523CBF4.6060703@cs.utexas.edu> (raw)
In-Reply-To: <87y7rwyy6q.fsf@pike.pond.sub.org>
Markus Armbruster wrote:
>> -- The backend still isn't proof against a malicious frontend. This
>> (might) mean that root in an unprivileged domain can get root in
>> dom0, which is a fairly major problem. Fixing this should be
>> fairly easy.
>>
>
> Yes, this needs to be done.
>
Sorry if I missed this previously, but how could a malicious frontend
attack a backend? And where else in Xen are we safe from this? :-)
>> -- The setup protocol doesn't look much like the normal xenbus state
>> machine. There may be a good reason for this, but I haven't heard
>> one yet. I know the standard way is badly documented and
>> non-trivial to understand from the existing implementations; sorry
>> about that.
This was written before we even had the xenbus state machine.
>>> + case SDL_MOUSEBUTTONDOWN:
>>> + case SDL_MOUSEBUTTONUP:
>>> + xenfb_send_button(xenfb,
>>> + event.type == SDL_MOUSEBUTTONDOWN,
>>> + 3 - event.button.button);
>>>
>> Why 3 - button?
>>
>
> Anthony speedcoding? %-}
>
I never expected this code to see the light of day :-)
Seems like every UI toolkit uses a different ordering for mouse
buttons. In this case, SDL stores them backwards :-)
>> What happens if someone has a four, five, six button
>> mouse?
>>
>
>
>> Irritatingly, map_foreign_batch doesn't actually return success or
>> failure through its return value, but by setting the high bits on the
>> failed entry in the array you pass in. If the array is mapped
>> readonly, or is shared with a remote domain, there's no way to detect
>> failure.
>>
>
> Sounds like a design flaw to me.
>
Wow.
Thanks again Markus for taking on this code! I hope it's not too
painful :-)
Regards,
Anthony Liguori
next prev parent reply other threads:[~2006-10-04 14:57 UTC|newest]
Thread overview: 42+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-09-02 19:58 [PATCH] Paravirt framebuffer backend tools [2/5] Jeremy Katz
2006-09-04 9:01 ` Steven Smith
2006-09-04 12:55 ` Laurent Vivier
2006-09-06 9:15 ` Steven Smith
2006-09-06 11:41 ` Laurent Vivier
2006-09-06 17:10 ` Steven Smith
2006-09-06 17:50 ` Gerd Hoffmann
2006-09-07 7:32 ` Laurent Vivier
2006-09-07 7:50 ` Steven Smith
2006-09-07 7:31 ` Laurent Vivier
2006-09-07 8:38 ` Steven Smith
2006-09-07 9:31 ` Laurent Vivier
2006-09-07 9:55 ` Steven Smith
2006-09-07 12:03 ` Laurent Vivier
2006-09-08 13:26 ` Anthony Liguori
2006-09-08 14:00 ` Laurent Vivier
2006-09-08 14:12 ` Steven Smith
2006-09-08 14:23 ` Anthony Liguori
2006-10-07 16:48 ` Markus Armbruster
2006-10-10 16:53 ` Stephen C. Tweedie
2006-10-10 17:46 ` Anthony Liguori
2006-10-10 17:46 ` Anthony Liguori
2006-10-11 13:49 ` Markus Armbruster
2006-10-11 15:18 ` Gerd Hoffmann
2006-10-11 15:21 ` Laurent Vivier
2006-10-10 18:48 ` Steven Smith
2006-09-10 10:40 ` Steven Smith
2006-09-10 13:05 ` Anthony Liguori
2006-09-05 16:11 ` Jeremy Katz
2006-09-05 16:57 ` Anthony Liguori
2006-09-06 9:14 ` Steven Smith
2006-09-06 9:13 ` Steven Smith
2006-09-30 8:51 ` Markus Armbruster
2006-10-02 9:01 ` Steven Smith
2006-10-04 14:04 ` Markus Armbruster
2006-10-04 14:20 ` Daniel P. Berrange
2006-10-04 14:57 ` Anthony Liguori [this message]
2006-10-05 18:41 ` Steven Smith
2006-10-05 18:33 ` Steven Smith
2006-10-06 14:10 ` Markus Armbruster
2006-10-07 9:42 ` Steven Smith
2006-09-12 18:55 ` Daniel P. Berrange
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=4523CBF4.6060703@cs.utexas.edu \
--to=aliguori@cs.utexas.edu \
--cc=aliguori@mail.utexas.edu \
--cc=armbru@redhat.com \
--cc=katzj@redhat.com \
--cc=sos22@srcf.ucam.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.