* new syscalls
@ 2006-01-18 3:29 Andrew Morton
2006-01-18 3:38 ` Andi Kleen
0 siblings, 1 reply; 28+ messages in thread
From: Andrew Morton @ 2006-01-18 3:29 UTC (permalink / raw)
To: linux-arch
Verious new syscalls which are trickling their way Linuswards and will need
testing and wiring up once they get there:
sys_migrate_pages
Merged
sys_openat
sys_mkdirat
sys_mknodat
sys_fchownat
sys_futimesat
sys_newfstatat
sys_unlinkat
sys_renameat
sys_linkat
sys_symlinkat
sys_readlinkat
sys_fchmodat
sys_faccessat
Probably this week
sys_pselect6
sys_ppoll
Probably this week
sys_unshare
Not sure yet. These are a bit scary and I haven't seen any
evidence that they've had the appropriate level of review.
sys_pepoll_wait
Just queued this in -mm. Conceivably 2.6.16, more likely 2.6.17, or
never.
^ permalink raw reply [flat|nested] 28+ messages in thread
* Re: new syscalls
2006-01-18 3:29 Andrew Morton
@ 2006-01-18 3:38 ` Andi Kleen
2006-01-20 9:43 ` Heiko Carstens
0 siblings, 1 reply; 28+ messages in thread
From: Andi Kleen @ 2006-01-18 3:38 UTC (permalink / raw)
To: Andrew Morton; +Cc: linux-arch
On Wednesday 18 January 2006 04:29, Andrew Morton wrote:
>
> Verious new syscalls which are trickling their way Linuswards and will need
> testing and wiring up once they get there:
>
> sys_migrate_pages
> Merged
#define __NR_migrate_pages 256
__SYSCALL(__NR_migrate_pages, sys_migrate_pages)
We first have to wait if everybody survived crossing the 8bit boundary @)
-Andi
^ permalink raw reply [flat|nested] 28+ messages in thread
* RE: new syscalls
@ 2006-01-18 18:55 Luck, Tony
2006-01-18 21:36 ` Andrew Morton
0 siblings, 1 reply; 28+ messages in thread
From: Luck, Tony @ 2006-01-18 18:55 UTC (permalink / raw)
To: Andrew Morton, linux-arch
> Various new syscalls which are trickling their way Linuswards and will need
> testing and wiring up once they get there:
Are there test-suites for any/all of these new calls?
-Tony
^ permalink raw reply [flat|nested] 28+ messages in thread
* Re: new syscalls
2006-01-18 18:55 new syscalls Luck, Tony
@ 2006-01-18 21:36 ` Andrew Morton
2006-01-18 21:48 ` Ulrich Drepper
` (6 more replies)
0 siblings, 7 replies; 28+ messages in thread
From: Andrew Morton @ 2006-01-18 21:36 UTC (permalink / raw)
To: Luck, Tony
Cc: linux-arch, JANAK DESAI, Ulrich Drepper, David Woodhouse,
David Howells, Davide Libenzi, Christoph Lameter
"Luck, Tony" <tony.luck@intel.com> wrote:
>
> > Various new syscalls which are trickling their way Linuswards and will need
> > testing and wiring up once they get there:
>
> Are there test-suites for any/all of these new calls?
>
That's an excellent point.
Guys, architecture maintainers need test suites to verify that the syscalls
actually work as they wire them up. Please share. A stable URL would be
preferred - something which can go into the changlog or conceivably into
the kernel source.
Thanks.
^ permalink raw reply [flat|nested] 28+ messages in thread
* Re: new syscalls
2006-01-18 21:36 ` Andrew Morton
@ 2006-01-18 21:48 ` Ulrich Drepper
2006-01-18 21:58 ` David S. Miller
2006-01-18 21:53 ` David Woodhouse
` (5 subsequent siblings)
6 siblings, 1 reply; 28+ messages in thread
From: Ulrich Drepper @ 2006-01-18 21:48 UTC (permalink / raw)
To: Andrew Morton
Cc: Luck, Tony, linux-arch, JANAK DESAI, David Woodhouse,
David Howells, Davide Libenzi, Christoph Lameter
[-- Attachment #1: Type: text/plain, Size: 578 bytes --]
Andrew Morton wrote:
> That's an excellent point.
>
> Guys, architecture maintainers need test suites to verify that the syscalls
> actually work as they wire them up.
glibc has test for all the *at syscalls, pselect. ppoll and epoll_pwait
will follow as soon as the syscalls are upstream and I can add the
interfaces. unshare testing is harder, because it likely need
privileges. Using the tests outside glibc isn't easy because of the
framework for tests we are using.
--
➧ Ulrich Drepper ➧ Red Hat, Inc. ➧ 444 Castro St ➧ Mountain View, CA ❖
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 251 bytes --]
^ permalink raw reply [flat|nested] 28+ messages in thread
* Re: new syscalls
2006-01-18 21:36 ` Andrew Morton
2006-01-18 21:48 ` Ulrich Drepper
@ 2006-01-18 21:53 ` David Woodhouse
2006-01-18 21:58 ` David S. Miller
2006-01-20 10:04 ` Andi Kleen
2006-01-19 1:17 ` Davide Libenzi
` (4 subsequent siblings)
6 siblings, 2 replies; 28+ messages in thread
From: David Woodhouse @ 2006-01-18 21:53 UTC (permalink / raw)
To: Andrew Morton
Cc: Luck, Tony, linux-arch, JANAK DESAI, Ulrich Drepper,
David Howells, Davide Libenzi, Christoph Lameter
On Wed, 2006-01-18 at 13:36 -0800, Andrew Morton wrote:
> That's an excellent point.
>
> Guys, architecture maintainers need test suites to verify that the syscalls
> actually work as they wire them up. Please share. A stable URL would be
> preferred - something which can go into the changlog or conceivably into
> the kernel source.
http://david.woodhou.se/sigmasking.c is a good one for testing
sigsuspend after hooking up TIF_RESTORE_SIGMASK stuff and the generic
sys_rt_sigsuspend(), although it's not actually my code. There were a
bunch of other tests in a tarball with that (on linux-arch a year or two
ago) which arch maintainers should also use occasionally when they play
with signal or ptrace code.
When I get back home I'll tidy up and publish the hacks I used for
testing pselect() and ppoll() so that those can be tested without
actually rebuilding glibc.
--
dwmw2
^ permalink raw reply [flat|nested] 28+ messages in thread
* Re: new syscalls
2006-01-18 21:48 ` Ulrich Drepper
@ 2006-01-18 21:58 ` David S. Miller
0 siblings, 0 replies; 28+ messages in thread
From: David S. Miller @ 2006-01-18 21:58 UTC (permalink / raw)
To: drepper
Cc: akpm, tony.luck, linux-arch, janak, dwmw2, dhowells, davidel,
christoph
From: Ulrich Drepper <drepper@redhat.com>
Date: Wed, 18 Jan 2006 13:48:22 -0800
> glibc
This puts an unnecessary burdon upon kernel platform maintainers.
They should not be required to go through the work and time of getting
together a sane enough build environment to build the current glibc
sources.
What we want is a self contained directory of small tests that
exercise the syscalls directly and do not have any dependency
on any large source base or installed libraries.
If I remember correctly, the folks who did EPOLL did exactly this
and the syscall additions were trivial to test as a result.
^ permalink raw reply [flat|nested] 28+ messages in thread
* Re: new syscalls
2006-01-18 21:53 ` David Woodhouse
@ 2006-01-18 21:58 ` David S. Miller
2006-01-20 10:04 ` Andi Kleen
1 sibling, 0 replies; 28+ messages in thread
From: David S. Miller @ 2006-01-18 21:58 UTC (permalink / raw)
To: dwmw2
Cc: akpm, tony.luck, linux-arch, janak, drepper, dhowells, davidel,
christoph
From: David Woodhouse <dwmw2@infradead.org>
Date: Thu, 19 Jan 2006 08:53:07 +1100
> When I get back home I'll tidy up and publish the hacks I used for
> testing pselect() and ppoll() so that those can be tested without
> actually rebuilding glibc.
Thanks David.
^ permalink raw reply [flat|nested] 28+ messages in thread
* Re: new syscalls
2006-01-18 21:36 ` Andrew Morton
2006-01-18 21:48 ` Ulrich Drepper
2006-01-18 21:53 ` David Woodhouse
@ 2006-01-19 1:17 ` Davide Libenzi
2006-01-19 1:26 ` David S. Miller
2006-01-19 1:28 ` Andrew Morton
2006-01-19 1:19 ` Christoph Lameter
` (3 subsequent siblings)
6 siblings, 2 replies; 28+ messages in thread
From: Davide Libenzi @ 2006-01-19 1:17 UTC (permalink / raw)
To: Andrew Morton
Cc: Luck, Tony, linux-arch, JANAK DESAI, Ulrich Drepper,
David Woodhouse, David Howells, Christoph Lameter
On Wed, 18 Jan 2006, Andrew Morton wrote:
> "Luck, Tony" <tony.luck@intel.com> wrote:
>>
>>> Various new syscalls which are trickling their way Linuswards and will need
>>> testing and wiring up once they get there:
>>
>> Are there test-suites for any/all of these new calls?
>>
>
> That's an excellent point.
>
> Guys, architecture maintainers need test suites to verify that the syscalls
> actually work as they wire them up. Please share. A stable URL would be
> preferred - something which can go into the changlog or conceivably into
> the kernel source.
How sophisticated this has to be? And what's the expected ETA? The
epoll_pwait is really a wrapper around epoll_wait (that did not change at
all), so the test in this case should just make sure that the signal
behaviour is the one expected.
- Davide
^ permalink raw reply [flat|nested] 28+ messages in thread
* Re: new syscalls
2006-01-18 21:36 ` Andrew Morton
` (2 preceding siblings ...)
2006-01-19 1:17 ` Davide Libenzi
@ 2006-01-19 1:19 ` Christoph Lameter
2006-01-19 2:30 ` Andi Kleen
2006-01-19 13:50 ` JANAK DESAI
` (2 subsequent siblings)
6 siblings, 1 reply; 28+ messages in thread
From: Christoph Lameter @ 2006-01-19 1:19 UTC (permalink / raw)
To: Andrew Morton
Cc: Luck, Tony, linux-arch, JANAK DESAI, Ulrich Drepper,
David Woodhouse, David Howells, Davide Libenzi, Christoph Lameter
On Wed, 18 Jan 2006, Andrew Morton wrote:
> Guys, architecture maintainers need test suites to verify that the syscalls
> actually work as they wire them up. Please share. A stable URL would be
> preferred - something which can go into the changlog or conceivably into
> the kernel source.
sys_migrate_pages will be supported by libnuma in Andi Kleen's numactl
package. There is no URL that I am aware of.
^ permalink raw reply [flat|nested] 28+ messages in thread
* Re: new syscalls
2006-01-19 1:17 ` Davide Libenzi
@ 2006-01-19 1:26 ` David S. Miller
2006-01-19 5:00 ` David Woodhouse
2006-01-19 1:28 ` Andrew Morton
1 sibling, 1 reply; 28+ messages in thread
From: David S. Miller @ 2006-01-19 1:26 UTC (permalink / raw)
To: davidel
Cc: akpm, tony.luck, linux-arch, janak, drepper, dwmw2, dhowells,
christoph
From: Davide Libenzi <davidel@xmailserver.org>
Date: Wed, 18 Jan 2006 17:17:20 -0800 (PST)
> How sophisticated this has to be? And what's the expected ETA? The
> epoll_pwait is really a wrapper around epoll_wait (that did not change at
> all), so the test in this case should just make sure that the signal
> behaviour is the one expected.
Something along the lines of a smoke test is probably sufficient.
The platform folks just want to make sure they wired up the
syscall tables correctly, for the most part.
^ permalink raw reply [flat|nested] 28+ messages in thread
* Re: new syscalls
2006-01-19 1:17 ` Davide Libenzi
2006-01-19 1:26 ` David S. Miller
@ 2006-01-19 1:28 ` Andrew Morton
2006-01-19 21:48 ` Davide Libenzi
1 sibling, 1 reply; 28+ messages in thread
From: Andrew Morton @ 2006-01-19 1:28 UTC (permalink / raw)
To: Davide Libenzi
Cc: tony.luck, linux-arch, janak, drepper, dwmw2, dhowells, christoph
Davide Libenzi <davidel@xmailserver.org> wrote:
>
> On Wed, 18 Jan 2006, Andrew Morton wrote:
>
> > "Luck, Tony" <tony.luck@intel.com> wrote:
> >>
> >>> Various new syscalls which are trickling their way Linuswards and will need
> >>> testing and wiring up once they get there:
> >>
> >> Are there test-suites for any/all of these new calls?
> >>
> >
> > That's an excellent point.
> >
> > Guys, architecture maintainers need test suites to verify that the syscalls
> > actually work as they wire them up. Please share. A stable URL would be
> > preferred - something which can go into the changlog or conceivably into
> > the kernel source.
>
> How sophisticated this has to be?
umm
- test basic functionality
- test things which should fail: syscall arguments out-of-bounds,
negative syscall args, etc. invalid fd. valid fd but for the wrong type
of file.
- if you can, something which will test the 32bit->64bit->32bit
conversions which 32-bit userspace on 64-bit kernel needs to do.
> And what's the expected ETA?
Well the patch isn't even in -mm yet and you still have an argument to win ;)
Once it's been in -mm for a week or so it'd be nice to have a little test
app please.
> epoll_pwait is really a wrapper around epoll_wait (that did not change at
> all), so the test in this case should just make sure that the signal
> behaviour is the one expected.
^ permalink raw reply [flat|nested] 28+ messages in thread
* Re: new syscalls
2006-01-19 1:19 ` Christoph Lameter
@ 2006-01-19 2:30 ` Andi Kleen
0 siblings, 0 replies; 28+ messages in thread
From: Andi Kleen @ 2006-01-19 2:30 UTC (permalink / raw)
To: Christoph Lameter
Cc: Andrew Morton, Luck, Tony, linux-arch, JANAK DESAI,
Ulrich Drepper, David Woodhouse, David Howells, Davide Libenzi,
Christoph Lameter
On Thursday 19 January 2006 02:19, Christoph Lameter wrote:
> On Wed, 18 Jan 2006, Andrew Morton wrote:
> > Guys, architecture maintainers need test suites to verify that the
> > syscalls actually work as they wire them up. Please share. A stable URL
> > would be preferred - something which can go into the changlog or
> > conceivably into the kernel source.
>
> sys_migrate_pages will be supported by libnuma in Andi Kleen's numactl
> package. There is no URL that I am aware of.
The home is ftp://ftp.suse.com/pub/people/ak/numa/
The main server is a bit slow, best use a mirror like
ftp://ftp.gwde.de/pub/linux/suse/ftp.suse.com/people/ak/numa
But I haven't pushed out a update with Christoph's patch yet
(will do ASAP)
And of course you'll need a CONFIG_NUMA=y multi node system to actually try
it, that probably rules it out on most architectures. On the others
it will always -ENOSYS.
-Andi
^ permalink raw reply [flat|nested] 28+ messages in thread
* Re: new syscalls
2006-01-19 1:26 ` David S. Miller
@ 2006-01-19 5:00 ` David Woodhouse
0 siblings, 0 replies; 28+ messages in thread
From: David Woodhouse @ 2006-01-19 5:00 UTC (permalink / raw)
To: David S. Miller
Cc: davidel, akpm, tony.luck, linux-arch, janak, drepper, dhowells,
christoph
On Wed, 2006-01-18 at 17:26 -0800, David S. Miller wrote:
> From: Davide Libenzi <davidel@xmailserver.org>
> Date: Wed, 18 Jan 2006 17:17:20 -0800 (PST)
>
> > How sophisticated this has to be? And what's the expected ETA? The
> > epoll_pwait is really a wrapper around epoll_wait (that did not change at
> > all), so the test in this case should just make sure that the signal
> > behaviour is the one expected.
>
> Something along the lines of a smoke test is probably sufficient.
> The platform folks just want to make sure they wired up the
> syscall tables correctly, for the most part.
In the case of syscalls using TIF_RESTORE_SIGMASK we want to make sure
the architecture maintainer got a little bit more right than that -- but
the sigmasking.c test case I posted earlier ought to be mostly
sufficient for testing that, if the arch also switches to the generic
sys_rt_sigsuspend().
--
dwmw2
^ permalink raw reply [flat|nested] 28+ messages in thread
* Re: new syscalls
2006-01-18 21:36 ` Andrew Morton
` (3 preceding siblings ...)
2006-01-19 1:19 ` Christoph Lameter
@ 2006-01-19 13:50 ` JANAK DESAI
2006-01-22 17:45 ` JANAK DESAI
2006-01-24 23:44 ` JANAK DESAI
6 siblings, 0 replies; 28+ messages in thread
From: JANAK DESAI @ 2006-01-19 13:50 UTC (permalink / raw)
To: Andrew Morton
Cc: Luck, Tony, linux-arch, Ulrich Drepper, David Woodhouse,
David Howells, Davide Libenzi, Christoph Lameter
Andrew Morton wrote:
>"Luck, Tony" <tony.luck@intel.com> wrote:
>
>
>>>Various new syscalls which are trickling their way Linuswards and will need
>>>testing and wiring up once they get there:
>>>
>>>
>>Are there test-suites for any/all of these new calls?
>>
>>
>>
>
>That's an excellent point.
>
>Guys, architecture maintainers need test suites to verify that the syscalls
>actually work as they wire them up. Please share. A stable URL would be
>preferred - something which can go into the changlog or conceivably into
>the kernel source.
>
>Thanks.
>
>
>
Hi Andrew,
I have to finish up a couple of things today, but will post the unshare
test by tomorrow.
Thanks.
-Janak
^ permalink raw reply [flat|nested] 28+ messages in thread
* Re: new syscalls
2006-01-19 1:28 ` Andrew Morton
@ 2006-01-19 21:48 ` Davide Libenzi
2006-01-20 0:13 ` Davide Libenzi
0 siblings, 1 reply; 28+ messages in thread
From: Davide Libenzi @ 2006-01-19 21:48 UTC (permalink / raw)
To: Andrew Morton
Cc: tony.luck, linux-arch, janak, Ulrich Drepper, dwmw2, dhowells,
christoph
On Wed, 18 Jan 2006, Andrew Morton wrote:
> Davide Libenzi <davidel@xmailserver.org> wrote:
>>
>> How sophisticated this has to be?
>
> umm
>
> - test basic functionality
>
> - test things which should fail: syscall arguments out-of-bounds,
> negative syscall args, etc. invalid fd. valid fd but for the wrong type
> of file.
>
> - if you can, something which will test the 32bit->64bit->32bit
> conversions which 32-bit userspace on 64-bit kernel needs to do.
Somehow, I knew I didn't have to ask :)
- Davide
^ permalink raw reply [flat|nested] 28+ messages in thread
* Re: new syscalls
2006-01-19 21:48 ` Davide Libenzi
@ 2006-01-20 0:13 ` Davide Libenzi
2006-01-20 0:23 ` Ulrich Drepper
0 siblings, 1 reply; 28+ messages in thread
From: Davide Libenzi @ 2006-01-20 0:13 UTC (permalink / raw)
To: Andrew Morton
Cc: tony.luck, linux-arch, janak, Ulrich Drepper, dwmw2, dhowells,
christoph
On Thu, 19 Jan 2006, Davide Libenzi wrote:
> On Wed, 18 Jan 2006, Andrew Morton wrote:
>
>> Davide Libenzi <davidel@xmailserver.org> wrote:
>>>
>>> How sophisticated this has to be?
>>
>> umm
>>
>> - test basic functionality
>>
>> - test things which should fail: syscall arguments out-of-bounds,
>> negative syscall args, etc. invalid fd. valid fd but for the wrong type
>> of file.
>>
>> - if you can, something which will test the 32bit->64bit->32bit
>> conversions which 32-bit userspace on 64-bit kernel needs to do.
>
> Somehow, I knew I didn't have to ask :)
Here you go:
http://www.xmailserver.org/epoll_pwait_test.c
There is a problem with the test we have inside the kernel about the size
of sigset_t, from the kernel (8 bytes on i386) and the glibc one (128 bytes):
if (sigmask) {
if (sigsetsize != sizeof(sigset_t))
return -EINVAL;
if (copy_from_user(&ksigmask, sigmask, sizeof(ksigmask)))
return -EFAULT;
sigdelsetmask(&ksigmask, sigmask(SIGKILL) | sigmask(SIGSTOP));
sigprocmask(SIG_SETMASK, &ksigmask, &sigsaved);
}
ATM I left the check and I bolt 8 inside the test software, but this needs
nicer handling. Typical run will show:
davide@debstar:~/tmp$ ./epoll_pwait_test
Testing from wrong epfd type : OK
Testing from closed epfd type : OK
Testing numevents <= 0 : OK
Testing numevents too big : OK
Testing wrong sigmask size : OK
Testing getevents when none available : OK
Testing getevents when one available : OK
Testing signal when blocked : OK
Testing signal when non blocked : OK
- Davide
^ permalink raw reply [flat|nested] 28+ messages in thread
* Re: new syscalls
2006-01-20 0:13 ` Davide Libenzi
@ 2006-01-20 0:23 ` Ulrich Drepper
2006-01-20 0:34 ` Davide Libenzi
0 siblings, 1 reply; 28+ messages in thread
From: Ulrich Drepper @ 2006-01-20 0:23 UTC (permalink / raw)
To: Davide Libenzi
Cc: Andrew Morton, tony.luck, linux-arch, janak, dwmw2, dhowells,
christoph
[-- Attachment #1: Type: text/plain, Size: 342 bytes --]
Davide Libenzi wrote:
> There is a problem with the test we have inside the kernel about the
> size of sigset_t, from the kernel (8 bytes on i386) and the glibc one
> (128 bytes):
Not really a problem. We always pass down _NSIG/8 as the size.
--
➧ Ulrich Drepper ➧ Red Hat, Inc. ➧ 444 Castro St ➧ Mountain View, CA ❖
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 251 bytes --]
^ permalink raw reply [flat|nested] 28+ messages in thread
* Re: new syscalls
2006-01-20 0:23 ` Ulrich Drepper
@ 2006-01-20 0:34 ` Davide Libenzi
0 siblings, 0 replies; 28+ messages in thread
From: Davide Libenzi @ 2006-01-20 0:34 UTC (permalink / raw)
To: Ulrich Drepper
Cc: Andrew Morton, tony.luck, linux-arch, janak, dwmw2, dhowells,
christoph
On Thu, 19 Jan 2006, Ulrich Drepper wrote:
> Davide Libenzi wrote:
>> There is a problem with the test we have inside the kernel about the
>> size of sigset_t, from the kernel (8 bytes on i386) and the glibc one
>> (128 bytes):
>
> Not really a problem. We always pass down _NSIG/8 as the size.
Ok, I use _NSIG/8 inside the test software now.
- Davide
^ permalink raw reply [flat|nested] 28+ messages in thread
* Re: new syscalls
2006-01-18 3:38 ` Andi Kleen
@ 2006-01-20 9:43 ` Heiko Carstens
2006-01-20 9:48 ` Andi Kleen
2006-01-20 9:49 ` David S. Miller
0 siblings, 2 replies; 28+ messages in thread
From: Heiko Carstens @ 2006-01-20 9:43 UTC (permalink / raw)
To: Andi Kleen; +Cc: Andrew Morton, linux-arch
> > Verious new syscalls which are trickling their way Linuswards and will need
> > testing and wiring up once they get there:
> >
> > sys_migrate_pages
> > Merged
>
> #define __NR_migrate_pages 256
> __SYSCALL(__NR_migrate_pages, sys_migrate_pages)
>
>
> We first have to wait if everybody survived crossing the 8bit boundary @)
Any reason why arch/x86_64/ia32/ia32entry.S has sys_futimesat in its syscall
table instead of compat_sys_futimesat? Looks wrong to me...
Thanks,
Heiko
^ permalink raw reply [flat|nested] 28+ messages in thread
* Re: new syscalls
2006-01-20 9:43 ` Heiko Carstens
@ 2006-01-20 9:48 ` Andi Kleen
2006-01-20 9:49 ` David S. Miller
1 sibling, 0 replies; 28+ messages in thread
From: Andi Kleen @ 2006-01-20 9:48 UTC (permalink / raw)
To: Heiko Carstens; +Cc: Andrew Morton, linux-arch
On Friday 20 January 2006 10:43, Heiko Carstens wrote:
> > > Verious new syscalls which are trickling their way Linuswards and will need
> > > testing and wiring up once they get there:
> > >
> > > sys_migrate_pages
> > > Merged
> >
> > #define __NR_migrate_pages 256
> > __SYSCALL(__NR_migrate_pages, sys_migrate_pages)
> >
> >
> > We first have to wait if everybody survived crossing the 8bit boundary @)
>
> Any reason why arch/x86_64/ia32/ia32entry.S has sys_futimesat in its syscall
> table instead of compat_sys_futimesat? Looks wrong to me...
Yes, seems wrong. Thanks for catching. I will submit a patch.
-Andi
^ permalink raw reply [flat|nested] 28+ messages in thread
* Re: new syscalls
2006-01-20 9:43 ` Heiko Carstens
2006-01-20 9:48 ` Andi Kleen
@ 2006-01-20 9:49 ` David S. Miller
1 sibling, 0 replies; 28+ messages in thread
From: David S. Miller @ 2006-01-20 9:49 UTC (permalink / raw)
To: heiko.carstens; +Cc: ak, akpm, linux-arch
From: Heiko Carstens <heiko.carstens@de.ibm.com>
Date: Fri, 20 Jan 2006 10:43:09 +0100
> Any reason why arch/x86_64/ia32/ia32entry.S has sys_futimesat in its syscall
> table instead of compat_sys_futimesat? Looks wrong to me...
I made the same mistake on sparc64 (because I used the x86_64 code as
a guide), thanks for pointing it out :)
^ permalink raw reply [flat|nested] 28+ messages in thread
* Re: new syscalls
2006-01-18 21:53 ` David Woodhouse
2006-01-18 21:58 ` David S. Miller
@ 2006-01-20 10:04 ` Andi Kleen
2006-01-20 10:15 ` David S. Miller
1 sibling, 1 reply; 28+ messages in thread
From: Andi Kleen @ 2006-01-20 10:04 UTC (permalink / raw)
To: David Woodhouse
Cc: Andrew Morton, Luck, Tony, linux-arch, JANAK DESAI,
Ulrich Drepper, David Howells, Davide Libenzi, Christoph Lameter
On Wednesday 18 January 2006 22:53, David Woodhouse wrote:
> On Wed, 2006-01-18 at 13:36 -0800, Andrew Morton wrote:
> > That's an excellent point.
> >
> > Guys, architecture maintainers need test suites to verify that the syscalls
> > actually work as they wire them up. Please share. A stable URL would be
> > preferred - something which can go into the changlog or conceivably into
> > the kernel source.
>
> http://david.woodhou.se/sigmasking.c is a good one for testing
> sigsuspend after hooking up TIF_RESTORE_SIGMASK stuff and the generic
> sys_rt_sigsuspend(), although it's not actually my code. There were a
> bunch of other tests in a tarball with that (on linux-arch a year or two
> ago) which arch maintainers should also use occasionally when they play
> with signal or ptrace code.
Are you sure it's even working? I implemented TIF_RESTORE_SIGMASK
for x86-64 and the SEGV part of the test fails. But it even fails
without any of my patches applied, so if it's really broken
it was always like this. I suspect i would have heard if such
a fundamental thing was really broken on x86-64.
===== Test 2: signal SIGALRM while waiting in nanosleep() =====
Unblocking all signals
Calling alarm(2)
Calling nanosleep( 20s)
After return from nanosleep(), blocked all signals, saved returned mask
OK: nanosleep(): Interrupted system call
OK: sighandler for SIGALRM (14) didn't run (invalid stack)
OK: SIGSEGV is unmasked at end of test
ERROR: sighandler for SIGSEGV (11) didn't run
OK: SIGUSR1 is unmasked
OK: SIGUSR2 is unmasked
SIGSEGV is pending at end of test, unblocking it now ...
Signal 11 caught
... done
-Andi
^ permalink raw reply [flat|nested] 28+ messages in thread
* Re: new syscalls
2006-01-20 10:04 ` Andi Kleen
@ 2006-01-20 10:15 ` David S. Miller
2006-01-23 6:44 ` David Woodhouse
2006-01-23 9:58 ` Heiko Carstens
0 siblings, 2 replies; 28+ messages in thread
From: David S. Miller @ 2006-01-20 10:15 UTC (permalink / raw)
To: ak
Cc: dwmw2, akpm, tony.luck, linux-arch, janak, drepper, dhowells,
davidel, christoph
From: Andi Kleen <ak@suse.de>
Date: Fri, 20 Jan 2006 11:04:50 +0100
> Are you sure it's even working? I implemented TIF_RESTORE_SIGMASK
> for x86-64 and the SEGV part of the test fails. But it even fails
> without any of my patches applied, so if it's really broken
> it was always like this. I suspect i would have heard if such
> a fundamental thing was really broken on x86-64.
It fails similarly on sparc.
Signal stacks and SA_ONSTACK are not a very well tested feature, and I
think that is playing a part in this.
^ permalink raw reply [flat|nested] 28+ messages in thread
* Re: new syscalls
2006-01-18 21:36 ` Andrew Morton
` (4 preceding siblings ...)
2006-01-19 13:50 ` JANAK DESAI
@ 2006-01-22 17:45 ` JANAK DESAI
2006-01-24 23:44 ` JANAK DESAI
6 siblings, 0 replies; 28+ messages in thread
From: JANAK DESAI @ 2006-01-22 17:45 UTC (permalink / raw)
To: Andrew Morton
Cc: Luck, Tony, linux-arch, Ulrich Drepper, David Woodhouse,
David Howells, Davide Libenzi, Christoph Lameter
Andrew Morton wrote:
>"Luck, Tony" <tony.luck@intel.com> wrote:
>
>
>>>Various new syscalls which are trickling their way Linuswards and will need
>>>testing and wiring up once they get there:
>>>
>>>
>>Are there test-suites for any/all of these new calls?
>>
>>
>>
>
>That's an excellent point.
>
>Guys, architecture maintainers need test suites to verify that the syscalls
>actually work as they wire them up. Please share. A stable URL would be
>preferred - something which can go into the changlog or conceivably into
>the kernel source.
>
>Thanks.
>
>
>
Hi Andrew,
I apologize for not sending out the unshare test program by Friday as I had
promised. I got distracted with a strange problem with rmdir. Steve Grubb
first noticed it while testing the pam module that uses unshare. I was
able to
reproduce the problem with one of my unshare testcases as well. Initially
I suspected the unshare code, however the problem appears to be in the
base code. I am doing some additional debugging now, so I can narrow
down the release/patch that introduced the problem. Once I gather useful
information, I will email Ram Pai and Al Viro with the appropriate
information (hopefully by tonight) and a small test program that can
reproduce the problem. My new ETA for unshare test is by tomorrow
night.
Thanks.
-Janak
^ permalink raw reply [flat|nested] 28+ messages in thread
* Re: new syscalls
2006-01-20 10:15 ` David S. Miller
@ 2006-01-23 6:44 ` David Woodhouse
2006-01-23 9:58 ` Heiko Carstens
1 sibling, 0 replies; 28+ messages in thread
From: David Woodhouse @ 2006-01-23 6:44 UTC (permalink / raw)
To: David S. Miller
Cc: ak, akpm, tony.luck, linux-arch, janak, drepper, dhowells,
davidel, christoph
On Fri, 2006-01-20 at 02:15 -0800, David S. Miller wrote:
> From: Andi Kleen <ak@suse.de>
> Date: Fri, 20 Jan 2006 11:04:50 +0100
>
> > Are you sure it's even working? I implemented TIF_RESTORE_SIGMASK
> > for x86-64 and the SEGV part of the test fails. But it even fails
> > without any of my patches applied, so if it's really broken
> > it was always like this. I suspect i would have heard if such
> > a fundamental thing was really broken on x86-64.
>
> It fails similarly on sparc.
>
> Signal stacks and SA_ONSTACK are not a very well tested feature, and I
> think that is playing a part in this.
Indeed -- it's a fairly esoteric test case. It was part of a tarball of
similar tests posted by either Bodo Stroesser or Jeff Dike to
linux-arch, probably some time in or around 2003, when UML tripped over
the bug. I fixed it on PPC and PPC64, and I thought it got fixed on
other architectures at the same time.
I'd be more specific about the archive reference, but unfortunately the
PC with my archives on it is refusing to boot at the moment so I can't
be more helpful until I get home from LCA. But when I wanted this, I was
able to find it by grepping my archives starting from little more -- it
shouldn't be hard to find.
--
dwmw2
^ permalink raw reply [flat|nested] 28+ messages in thread
* Re: new syscalls
2006-01-20 10:15 ` David S. Miller
2006-01-23 6:44 ` David Woodhouse
@ 2006-01-23 9:58 ` Heiko Carstens
1 sibling, 0 replies; 28+ messages in thread
From: Heiko Carstens @ 2006-01-23 9:58 UTC (permalink / raw)
To: David S. Miller
Cc: ak, dwmw2, akpm, tony.luck, linux-arch, janak, drepper, dhowells,
davidel, christoph
> > Are you sure it's even working? I implemented TIF_RESTORE_SIGMASK
> > for x86-64 and the SEGV part of the test fails. But it even fails
> > without any of my patches applied, so if it's really broken
> > it was always like this. I suspect i would have heard if such
> > a fundamental thing was really broken on x86-64.
>
> It fails similarly on sparc.
>
> Signal stacks and SA_ONSTACK are not a very well tested feature, and I
> think that is playing a part in this.
Failed with a lot of errors on s390 too. Strange enough it works well
after if implemented TIF_RESTORE_SIGMASK. Worse things could happen :)
Heiko
^ permalink raw reply [flat|nested] 28+ messages in thread
* Re: new syscalls
2006-01-18 21:36 ` Andrew Morton
` (5 preceding siblings ...)
2006-01-22 17:45 ` JANAK DESAI
@ 2006-01-24 23:44 ` JANAK DESAI
6 siblings, 0 replies; 28+ messages in thread
From: JANAK DESAI @ 2006-01-24 23:44 UTC (permalink / raw)
To: Andrew Morton
Cc: Luck, Tony, linux-arch, Ulrich Drepper, David Woodhouse,
David Howells, Davide Libenzi, Christoph Lameter
Andrew Morton wrote:
>"Luck, Tony" <tony.luck@intel.com> wrote:
>
>
>>>Various new syscalls which are trickling their way Linuswards and will need
>>>testing and wiring up once they get there:
>>>
>>>
>>Are there test-suites for any/all of these new calls?
>>
>>
>>
>
>That's an excellent point.
>
>Guys, architecture maintainers need test suites to verify that the syscalls
>actually work as they wire them up. Please share. A stable URL would be
>preferred - something which can go into the changlog or conceivably into
>the kernel source.
>
>Thanks.
>
>
>
Here is the link to a program for testing unshare system call.
http://prdownloads.sourceforge.net/audit/unshare_test.c?download
Please note that because of a problem in rmdir associated with
bind mounts and clone with CLONE_NEWNS, the test fails while
trying to remove temporary test directory. You can remove that
temporary directory by doing rmdir, twice, from the command line.
The first will fail with EBUSY, but the second will succeed. I have
reported the problem to Ram Pai and Al Viro with a small program
which reproduces the problem. Al told us yesterday that he will
be looking at the problem soon. I have tried multiple rmdirs from
the unshare_test program itself, but for some reason that is not
working. Doing two rmdirs from command line does seem to
remove the directory.
Please let me know if you have trouble downloading/running
the program.
-Janak
^ permalink raw reply [flat|nested] 28+ messages in thread
end of thread, other threads:[~2006-01-24 23:44 UTC | newest]
Thread overview: 28+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-01-18 18:55 new syscalls Luck, Tony
2006-01-18 21:36 ` Andrew Morton
2006-01-18 21:48 ` Ulrich Drepper
2006-01-18 21:58 ` David S. Miller
2006-01-18 21:53 ` David Woodhouse
2006-01-18 21:58 ` David S. Miller
2006-01-20 10:04 ` Andi Kleen
2006-01-20 10:15 ` David S. Miller
2006-01-23 6:44 ` David Woodhouse
2006-01-23 9:58 ` Heiko Carstens
2006-01-19 1:17 ` Davide Libenzi
2006-01-19 1:26 ` David S. Miller
2006-01-19 5:00 ` David Woodhouse
2006-01-19 1:28 ` Andrew Morton
2006-01-19 21:48 ` Davide Libenzi
2006-01-20 0:13 ` Davide Libenzi
2006-01-20 0:23 ` Ulrich Drepper
2006-01-20 0:34 ` Davide Libenzi
2006-01-19 1:19 ` Christoph Lameter
2006-01-19 2:30 ` Andi Kleen
2006-01-19 13:50 ` JANAK DESAI
2006-01-22 17:45 ` JANAK DESAI
2006-01-24 23:44 ` JANAK DESAI
-- strict thread matches above, loose matches on Subject: below --
2006-01-18 3:29 Andrew Morton
2006-01-18 3:38 ` Andi Kleen
2006-01-20 9:43 ` Heiko Carstens
2006-01-20 9:48 ` Andi Kleen
2006-01-20 9:49 ` David S. Miller
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox