public inbox for linux-arch@vger.kernel.org
 help / color / mirror / Atom feed
From: Bodo Stroesser <bstroesser@fujitsu-siemens.com>
To: Jeff Dike <jdike@addtoit.com>
Cc: Andrew Morton <akpm@osdl.org>,
	blaisorblade_spam@yahoo.it, linux-arch@vger.kernel.org,
	jdike@ccure.user-mode-linux.org
Subject: Re: [PATCH 9/11] - UML - fix signal mask on delivery error
Date: Mon, 15 Nov 2004 12:40:44 +0100	[thread overview]
Message-ID: <419895BC.6060109@fujitsu-siemens.com> (raw)
In-Reply-To: <200411142213.iAEMDHbV013050@ccure.user-mode-linux.org>

Jeff Dike wrote:
> akpm@osdl.org said:
> 
>>Could you send one of the test apps?  This is something which the arch
>>maintainers might want to look into fixing, thanks. 
> 
> 
> Attached...
> 
> Included are
> 	breakout.c - UML-specific breakouts, fixed in 2.6 and 2.4 now, but
> please don't popularize these :-)
> 
> 	step_sighdlr.c - PTRACE_SINGLESTEPs into a signal handler, if I'm
> reading the code right, fails on i386
I guess, you are notb using i386 2.6.9. On a 2.6.9-vanilla i386 the test
doesn't fail! In 2.6.9 some enhancement of singlestepping syscalls and
singlestepping signal handlers is included. The test checks, whether
UML 2.6.9 is compatible to 2.6.9-i386. With my patchset, it is.
> 
> 	interrupted_syscall.c - counts signals and system calls during 
> interrupted system calls, under ptrace and not.  Fails on x86 under ptrace.
On my 2.6.7 and 2.6.9 kernels, the test doesn't fail. What kerenel are you
using? Could you please send me a listing of the messages from the test?
> 
> 	kernel_restorer.c - I can't get this to compile because it's too
> intimate with the libc headers, expecting to get a k_sigaction from them.
On my SuSE 9 system, k_sigaction comes from /usr/include/asm/signal.h. This
again comes from glibc-devel-2.3.3-98.28, SuSE supplies. I had to write a
"#define __KERNEL__" into the test to have k_sigaction included. If your
system lacks a k_sigaction in the includes, please copy a definition from
the kernel sources to my test. Yes, that's dirty, but it's a test only!
k_sigaction is needed to call sys_sigaction directly, bypassing the lib.
This was the only way to test the kernels restorer-stub, since the lib
always inserted its own stub, if I used "NULL".
> 
> 	sigmasking.c - Makes sure that when a signal is (not) delivered to
> a bogus stack, that a segfault is delivered then, and not after returning
> to userspace.  This is the test relevant to the patch that Andrew replied
> to.
Yes. This should be the only test, that shows differences between i386
2.6.9-vanilla and UML 2.6.9 with my patches.
> 
> 				Jeff

  parent reply	other threads:[~2004-11-15 11:40 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <200411130201.iAD210pT005889@ccure.user-mode-linux.org>
2004-11-13  0:34 ` [PATCH 9/11] - UML - fix signal mask on delivery error Andrew Morton
2004-11-14 22:13   ` Jeff Dike
2004-11-15  8:35     ` David Woodhouse
2004-11-22 15:30       ` David Woodhouse
2004-11-15 11:40     ` Bodo Stroesser [this message]
2004-11-15 17:18       ` Jeff Dike
2004-11-16  9:39         ` Bodo Stroesser
2004-11-30 14:59     ` David Woodhouse
2004-12-02  9:55       ` Bodo Stroesser
2004-12-02 11:25         ` Paul Mackerras
2004-12-02 11:40           ` Bodo Stroesser

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=419895BC.6060109@fujitsu-siemens.com \
    --to=bstroesser@fujitsu-siemens.com \
    --cc=akpm@osdl.org \
    --cc=blaisorblade_spam@yahoo.it \
    --cc=jdike@addtoit.com \
    --cc=jdike@ccure.user-mode-linux.org \
    --cc=linux-arch@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