WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

[Xen-devel] Re: Bug: ptrace issues under x86_64 Xen kernel 2.6.29

To: Bryan Donlan <bdonlan@xxxxxxxxx>
Subject: [Xen-devel] Re: Bug: ptrace issues under x86_64 Xen kernel 2.6.29
From: Jeremy Fitzhardinge <jeremy@xxxxxxxx>
Date: Sat, 25 Apr 2009 16:19:05 -0700
Cc: xen-devel@xxxxxxxxxxxxxxxxxxx, LKML <linux-kernel@xxxxxxxxxxxxxxx>
Delivery-date: Sat, 25 Apr 2009 16:19:33 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <3e8340490904251510r5938b773r7b313555c91e214a@xxxxxxxxxxxxxx>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <3e8340490903252341u55abbc3aree9afc1b0a7703e6@xxxxxxxxxxxxxx> <49D0361C.3060901@xxxxxxxx> <3e8340490904251510r5938b773r7b313555c91e214a@xxxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Thunderbird 2.0.0.21 (X11/20090320)
Bryan Donlan wrote:
On Sun, Mar 29, 2009 at 11:01 PM, Jeremy Fitzhardinge <jeremy@xxxxxxxx> wrote:
Bryan Donlan wrote:
Using 2.6.29 or 2.6.28 as a 64-bit Xen domU, a number of ptrace()
users seem to have issues with unexpected breakpoints. ltrace and gdb
both seem to be affected, under both 64-bit and 32-bit userspace.
32-bit kernels do not seem to be affected. Typical symptoms look like:

It looks like this is because the kernel sets up int3 (breakpoint) and debug
(watchpoints, etc) to be on a separate debug stack in the tss.  Xen doesn't
do this (and doesn't appear to have a mechanism to do so), so I guess the
on-stack format isn't what the kernel expects.  Does the patch below work?

Hi,

Sorry for the late reply; this message never made it to my inbox for
some reason...
I did try the patch, and saw similar results to Mark; ptrace works,
but lots of warnings:

Thanks. Those warnings are harmless, but I have an updated version of the fix to suppress them in xen-tip/next.

   J

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel

<Prev in Thread] Current Thread [Next in Thread>