All of lore.kernel.org
 help / color / mirror / Atom feed
* debug and breakpoint interrupts handling?
@ 2007-06-25  8:24 Jun Koi
       [not found] ` <fdaac4d50706250124u42bbcf69oc6934b1a52f9542d-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
  0 siblings, 1 reply; 25+ messages in thread
From: Jun Koi @ 2007-06-25  8:24 UTC (permalink / raw)
  To: kvm-devel

Hi,

I am wondering how KVM handles debug and breakpoint interrupt? Does it
process them like normal NMI interrupt, or is there any special
processing?


Thanks,
Jun

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/

^ permalink raw reply	[flat|nested] 25+ messages in thread
* Re: debug and breakpoint interrupts handling?
@ 2007-06-27  3:59 Gregory Haskins
       [not found] ` <4681A87B0200005A00026765-Igcdv/6uVdMHoYOw/+koYqIwWpluYiW7@public.gmane.org>
  0 siblings, 1 reply; 25+ messages in thread
From: Gregory Haskins @ 2007-06-27  3:59 UTC (permalink / raw)
  To: junkoi2004-Re5JQEeQqe8AvxtiuMwx3w
  Cc: kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f

On Wed, 2007-06-27 at 12:51 +0900, Jun Koi wrote:
> BTW, I think that turning on debugger from qemu is a dangerous action,
> from security point of view. Once the gdbserver is started, anybody
> can connect to it (with gdb) and modify VM memory in anyway he wants
> (like overwrite kernel with malicious code). The problem why this is
> feasible is because there is no authentication machanism on gdbserver
> at all.
> 
> Any idea?

Its probably not a real-world concern since you wouldn't be debugging in
production.  But, if it was a concern to someone you could do things to
qemu to shore this up a little bit.  For instance, bind the gdb-proxy to
the "localhost" address, or alternatively open a gdb transport over a
unix-domain-socket with appropriate perms instead of IP, etc.

-Greg


-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/

^ permalink raw reply	[flat|nested] 25+ messages in thread
* Re: debug and breakpoint interrupts handling?
@ 2007-06-27  4:36 Gregory Haskins
       [not found] ` <4681B11E0200005A0002676C-Igcdv/6uVdMHoYOw/+koYqIwWpluYiW7@public.gmane.org>
  0 siblings, 1 reply; 25+ messages in thread
From: Gregory Haskins @ 2007-06-27  4:36 UTC (permalink / raw)
  To: junkoi2004-Re5JQEeQqe8AvxtiuMwx3w
  Cc: kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f

On Wed, 2007-06-27 at 13:33 +0900, Jun Koi wrote:
> On 6/27/07, Gregory Haskins <ghaskins-Et1tbQHTxzrQT0dZR+AlfA@public.gmane.org> wrote:
> > On Wed, 2007-06-27 at 12:51 +0900, Jun Koi wrote:
> > > BTW, I think that turning on debugger from qemu is a dangerous action,
> > > from security point of view. Once the gdbserver is started, anybody
> > > can connect to it (with gdb) and modify VM memory in anyway he wants
> > > (like overwrite kernel with malicious code). The problem why this is
> > > feasible is because there is no authentication machanism on gdbserver
> > > at all.
> > >
> > > Any idea?
> >
> > Its probably not a real-world concern since you wouldn't be debugging in
> > production.  But, if it was a concern to someone you could do things to
> > qemu to shore this up a little bit.  For instance, bind the gdb-proxy to
> > the "localhost" address, or alternatively open a gdb transport over a
> > unix-domain-socket with appropriate perms instead of IP, etc.
> >
> 
> I like the domain socket idea, but naturally gdb does not support that
> kind of communication, but only network and serial line, does it?

Since its all open-source, it will support anything you code it to do ;)
In a past life, I modified it to work over a proprietary IPC mechanism
and it worked great.

But on that subject, I bet there are tools out there that might do the
conversion for you (socat?) without modifying any code.

> 
> 
> Thanks,
> Jun


-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/

^ permalink raw reply	[flat|nested] 25+ messages in thread

end of thread, other threads:[~2007-07-01  9:35 UTC | newest]

Thread overview: 25+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-06-25  8:24 debug and breakpoint interrupts handling? Jun Koi
     [not found] ` <fdaac4d50706250124u42bbcf69oc6934b1a52f9542d-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2007-06-25  8:49   ` Dong, Eddie
     [not found]     ` <10EA09EFD8728347A513008B6B0DA77A01AA497A-wq7ZOvIWXbNpB2pF5aRoyrfspsVTdybXVpNB7YpNyf8@public.gmane.org>
2007-06-25  8:56       ` Jun Koi
2007-06-25  8:51   ` Dor Laor
     [not found]     ` <64F9B87B6B770947A9F8391472E032160C654ABB-yEcIvxbTEBqsx+V+t5oei8rau4O3wl8o3fe8/T/H7NteoWH0uzbU5w@public.gmane.org>
2007-06-25  9:08       ` Jun Koi
     [not found]         ` <fdaac4d50706250208h20d62b04h44b53495ba3e6447-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2007-06-25  9:45           ` Dong, Eddie
     [not found]             ` <10EA09EFD8728347A513008B6B0DA77A01AA49C8-wq7ZOvIWXbNpB2pF5aRoyrfspsVTdybXVpNB7YpNyf8@public.gmane.org>
2007-06-25 10:09               ` Jun Koi
     [not found]                 ` <fdaac4d50706250309y79a854c7xa0ca392c30e144a3-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2007-06-25 10:42                   ` Dor Laor
     [not found]                     ` <64F9B87B6B770947A9F8391472E032160C654AE8-yEcIvxbTEBqsx+V+t5oei8rau4O3wl8o3fe8/T/H7NteoWH0uzbU5w@public.gmane.org>
2007-06-25 10:50                       ` Avi Kivity
2007-06-25 11:00                       ` Jun Koi
     [not found]                         ` <fdaac4d50706250400p5c8cbeeie7aba44a8cccbfc7-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2007-06-25 13:23                           ` Dong, Eddie
     [not found]                             ` <10EA09EFD8728347A513008B6B0DA77A01AA4A03-wq7ZOvIWXbNpB2pF5aRoyrfspsVTdybXVpNB7YpNyf8@public.gmane.org>
2007-06-27  3:51                               ` Jun Koi
     [not found]                                 ` <fdaac4d50706262051y1042a56haf0d397f82d74b61-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2007-06-27  7:20                                   ` Dor Laor
     [not found]                                     ` <64F9B87B6B770947A9F8391472E032160C730963-yEcIvxbTEBqsx+V+t5oei8rau4O3wl8o3fe8/T/H7NteoWH0uzbU5w@public.gmane.org>
2007-06-27 16:39                                       ` Jun Koi
     [not found]                                         ` <fdaac4d50706270939n2b703d1crf1ebe00847f06cfb-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2007-06-27 21:26                                           ` Dor Laor
     [not found]                                             ` <64F9B87B6B770947A9F8391472E032160C730E48-yEcIvxbTEBqsx+V+t5oei8rau4O3wl8o3fe8/T/H7NteoWH0uzbU5w@public.gmane.org>
2007-06-28  3:26                                               ` Jun Koi
     [not found]                                                 ` <fdaac4d50706272026r33a09fe5gf96d1e2827e3fa30-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2007-06-29  6:12                                                   ` Compile error Dong, Eddie
     [not found]                                                     ` <10EA09EFD8728347A513008B6B0DA77A01AE9AD9-wq7ZOvIWXbNpB2pF5aRoyrfspsVTdybXVpNB7YpNyf8@public.gmane.org>
2007-07-01  9:35                                                       ` Dor Laor
2007-06-27  6:06               ` debug and breakpoint interrupts handling? Jun Koi
     [not found]                 ` <fdaac4d50706262306y5bbec95fkae98ca848f59b85b-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2007-06-27  6:48                   ` Dong, Eddie
     [not found]                     ` <10EA09EFD8728347A513008B6B0DA77A01AE9099-wq7ZOvIWXbNpB2pF5aRoyrfspsVTdybXVpNB7YpNyf8@public.gmane.org>
2007-06-27  6:57                       ` Jun Koi
  -- strict thread matches above, loose matches on Subject: below --
2007-06-27  3:59 Gregory Haskins
     [not found] ` <4681A87B0200005A00026765-Igcdv/6uVdMHoYOw/+koYqIwWpluYiW7@public.gmane.org>
2007-06-27  4:33   ` Jun Koi
2007-06-27  4:36 Gregory Haskins
     [not found] ` <4681B11E0200005A0002676C-Igcdv/6uVdMHoYOw/+koYqIwWpluYiW7@public.gmane.org>
2007-06-27  5:15   ` Jun Koi

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.