From: Bodo Stroesser <bstroesser@fujitsu-siemens.com>
To: Blaisorblade <blaisorblade_spam@yahoo.it>
Cc: user-mode-linux-devel@lists.sourceforge.net, jdike@addtoit.com
Subject: Re: [uml-devel] Re: [patch 1/1] SYSEMU: avoid intercepting syscall on return when using SYSCALL again.
Date: Fri, 29 Oct 2004 01:36:53 +0200 [thread overview]
Message-ID: <41818295.5000209@fujitsu-siemens.com> (raw)
In-Reply-To: <200410290104.22725.blaisorblade_spam@yahoo.it>
Blaisorblade wrote:
> On Wednesday 27 October 2004 16:21, Bodo Stroesser wrote:
>
>>Bodo Stroesser wrote:
>>
>>>BlaisorBlade wrote:
>>>
>>>>Yes - I forgot it. Does the revised version work? My version did not -
>>>>it failed the startup test. In fact, PTRACE_CONT is called in the
>>>>startup test (which fails). I'm recompiling and testing.
>
>
>>>Yes. My system works very fine with it.
> No, simply UML should use PTRACE_KILL rather than sending SIGKILL itself. It
> always just *happened* to work.
But why can't the host's filesystem be unmounted ("Is in use"), even if
the UML-Processes were killed?
>
> I was just about to release -v7 - I'll hold on it a bit more to include your
> fix. Then I'll do releases for 2.6.7 and 2.6.9.
Year. But in November we hhave to talk again! Sysemu is still dangerous.
If SKAS will support SMP, no one can guarantee, that the code of a UML-process
isn't modified between "is_syscall()" and ptrace(PTRACE_SINGLESTEP, ...).
What we really need is an option for PTRACE_SYSEMU, that lets it stop
for Singlestep AND syscall-trace. Example:
ptrace( PTRACE_SYSEMU, pid, (void *)PTRACE_SINGLESTEP, 0)
Then no more opcode-reading / checking will be needed.
>
> I have idea we need something more robust, i.e. a return path avoiding
> altogether the 2nd do_syscall_trace call, like it happened in 2.4.
Think, the current solution is robust. But let me know, if you find a
way to knock it out.
>
> Now, My Mighty Bodo, after cleaning up the issues about collecting your
> patches, could you try to understand also why strace does not work with
> SYSEMU on? Even switching SYSEMU off through /proc/sysemu avoids that. It
> seems to be a guest-only problem, since the UML debugger code seems totally
> unrelated to the syscall interception on the host.
>
> Also, something strange is that when not enabling network support, strace
> printed out some network syscalls, with bogus return values, even with SYSEMU
> active.
Do you talk about strace'ing the kernel?
Or do you talk about the debugger problem, Lorenzo has?
For his problem, I have an idea: writing my tests for Jeff, I saw SIGCHLD being
masked by default! No SIGCHLD, no debugging ?!
Regards
Bodo
-------------------------------------------------------
This Newsletter Sponsored by: Macrovision
For reliable Linux application installations, use the industry's leading
setup authoring tool, InstallShield X. Learn more and evaluate
today. http://clk.atdmt.com/MSI/go/ins0030000001msi/direct/01/
_______________________________________________
User-mode-linux-devel mailing list
User-mode-linux-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel
next prev parent reply other threads:[~2004-10-28 23:37 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-10-21 23:18 [uml-devel] [patch 1/1] SYSEMU: avoid intercepting syscall on return when using SYSCALL again blaisorblade_spam
2004-10-22 0:37 ` BlaisorBlade
2004-10-22 9:22 ` [uml-devel] " Bodo Stroesser
2004-10-22 16:14 ` BlaisorBlade
2004-10-22 16:23 ` Bodo Stroesser
2004-10-27 14:21 ` Bodo Stroesser
2004-10-28 23:04 ` Blaisorblade
2004-10-28 23:36 ` Bodo Stroesser [this message]
[not found] ` <200410290200.46907.blaisorblade_spam@yahoo.it>
2004-10-29 1:19 ` Bodo Stroesser
2004-10-29 7:51 ` Gerd Knorr
2004-10-29 13:09 ` Blaisorblade
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=41818295.5000209@fujitsu-siemens.com \
--to=bstroesser@fujitsu-siemens.com \
--cc=blaisorblade_spam@yahoo.it \
--cc=jdike@addtoit.com \
--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 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.