From: lepton <ytht.net@gmail.com>
To: Jeff Dike <jdike@addtoit.com>
Cc: lepton <ytht.net@gmail.com>, lkm <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH] 2.6.22.6 user-mode linux: use address instead of value as argument in os_free_irq_by_cb
Date: Tue, 25 Sep 2007 09:13:16 +0800 [thread overview]
Message-ID: <20070925011316.GA2453@router.lepton.home> (raw)
In-Reply-To: <20070924170220.GE23078@c2.user-mode-linux.org>
I added dump_stack and some printk in host kernel. The following is what
I got when sys_reboot in host kernel is called, the first line is
printing the process state and ptrace state and pid of the calling
process. the following is the call path.
Sep 22 14:25:49 pc kernel: linux Rptrace: 00000000 pid:3698
Sep 22 14:25:49 pc kernel: [<c01234a7>] kernel_halt+0x8/0x24
Sep 22 14:25:49 pc kernel: [<c01239b2>] sys_reboot+0x14c/0x1c7
Sep 22 14:25:49 pc kernel: [<c0120712>] recalc_sigpending+0xb/0x1d
Sep 22 14:25:49 pc kernel: [<c0121ed2>] dequeue_signal+0x9d/0x11b
Sep 22 14:25:49 pc kernel: [<c012222b>]
get_signal_to_deliver+0xe1/0x389
Sep 22 14:25:49 pc kernel: [<c0101bd5>] do_notify_resume+0x84/0x5f1
Sep 22 14:25:49 pc kernel: [<c012212c>] ptrace_notify+0x6f/0x8d
Sep 22 14:25:49 pc kernel: [<c010249e>] syscall_call+0x7/0xb
Sep 22 14:25:49 pc kernel: =======================
Sep 22 14:25:50 pc kernel: sd 1:0:0:0: [sda] Synchronizing SCSI cache
Sep 22 14:25:50 pc kernel: sd 1:0:0:0: [sda] Stopping disk
Sep 22 14:25:51 pc kernel: System halted.
On Mon, Sep 24, 2007 at 01:02:20PM -0400, Jeff Dike wrote:
> I would say that you shouldn't be running UMLs as root. However, a
> sys_reboot shouldn't escape being ptraced either. This is a bug, but
> I don't see any connection between it and ptrace missing a final
> system call.
>
> Jeff
>
> --
> Work email - jdike at linux dot intel dot com
prev parent reply other threads:[~2007-09-25 1:13 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-09-22 4:39 lepton
2007-09-24 17:02 ` Jeff Dike
2007-09-25 1:13 ` lepton [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=20070925011316.GA2453@router.lepton.home \
--to=ytht.net@gmail.com \
--cc=jdike@addtoit.com \
--cc=linux-kernel@vger.kernel.org \
/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
all inboxes | Powered by JetHome®