|
From: Bodo S. <bst...@fu...> - 2004-10-28 23:37:17
|
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
|