public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: "Américo Wang" <xiyou.wangcong@gmail.com>
To: Renzo Davoli <renzo@cs.unibo.it>
Cc: linux-kernel@vger.kernel.org, Jeff Dike <jdike@addtoit.com>,
	Andrew Morton <akpm@osdl.org>,
	user-mode-linux-devel@lists.sourceforge.net
Subject: Re: [PATCH] UML on UML fixed: it did not start
Date: Tue, 10 Mar 2009 22:27:10 +0800	[thread overview]
Message-ID: <20090310142710.GF3157@hack> (raw)
In-Reply-To: <20090306194921.GA2881@cs.unibo.it>

On Fri, Mar 06, 2009 at 08:49:22PM +0100, Renzo Davoli wrote:
>It is currently impossible to run a user-mode linux machine inside another user-mode 
>linux (UML on UML). It breaks after a few instructions. When it tries to check
>whether SYSEMU is installed (the inner) UML receives an inconsistent result 
>(from the outer UML).
>
>This is the output of a broken attempt:
>$ ./linux mem=256m ubd0=cow
>Locating the bottom of the address space ... 0x0
>Locating the top of the address space ... 0xc0000000
>Core dump limits :
>        soft - 0
>        hard - NONE
>Checking that ptrace can change system call numbers...OK
>Checking ptrace new tags for syscall emulation...unsupported
>Checking syscall emulation patch for ptrace...check_sysemu : expected SIGTRAP, got status = 256
>$
>
>The problem is the following:
>PTRACE_SYSCALL/SINGLESTEP is currently managed inside arch_ptrace for ARCH=um.
>
>PTRACE_SYSEMU/SUSEMU_SINGLESTEP is not captured in arch_ptrace's switch, therefore
>it is erroneously passed back to ptrace_request (in kernel/ptrace).
>
>This simple patch simply forces ptrace to return an error on PTRACE_SYSEMU/SUSEMU_SINGLESTEP
>as it is unsupported on ARCH=um, and fixes the problem.
>
>I posted the same patch one month ago. I just tested it again against the latest kernel.
>
>	renzo
>
>Signed-off-by: Renzo Davoli <renzo@cs.unibo.it>

Cc: Andrew Morton <akpm@osdl.org>

Andrew, would you like to put this patch into -mm? It looks fine for me.

Renzo, I remember you sent some patches about PTRACE_SYSEMU support
for UML some days ago, could you please rebase them against the latest
-git tree and resend?

Thank you very much! Have a nice day!


Yours,
Cong
 

      parent reply	other threads:[~2009-03-10 14:27 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-03-06 19:49 [PATCH] UML on UML fixed: it did not start Renzo Davoli
2009-03-08  6:49 ` Américo Wang
2009-03-10 14:27 ` Américo Wang [this message]

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=20090310142710.GF3157@hack \
    --to=xiyou.wangcong@gmail.com \
    --cc=akpm@osdl.org \
    --cc=jdike@addtoit.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=renzo@cs.unibo.it \
    --cc=user-mode-linux-devel@lists.sourceforge.net \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox