* [patch] powerpc systbl.h broken
@ 2008-01-02 14:11 Clifford Wolf
2008-01-03 2:16 ` Stephen Rothwell
0 siblings, 1 reply; 3+ messages in thread
From: Clifford Wolf @ 2008-01-02 14:11 UTC (permalink / raw)
To: lkml
[-- Attachment #1: Type: text/plain, Size: 865 bytes --]
Hi,
In current 2.6.23 (I have checked 2.6.23.12 and 2.6.23.9) the end of
include/asm-powerpc/systbl.h reads:
--snip--
SYSCALL_SPU(getcpu)
COMPAT_SYS(epoll_pwait)
COMPAT_SYS_SPU(utimensat)
COMPAT_SYS(fallocate)
COMPAT_SYS_SPU(signalfd)
COMPAT_SYS_SPU(timerfd)
SYSCALL_SPU(eventfd)
COMPAT_SYS_SPU(sync_file_range2)
--snap--
This obviously does not match the definitions in asm-powerpc/unistd.h:
--snip--
#define __NR_getcpu 302
#define __NR_epoll_pwait 303
#define __NR_utimensat 304
#define __NR_signalfd 305
#define __NR_timerfd 306
#define __NR_eventfd 307
#define __NR_sync_file_range2 308
#define __NR_fallocate 309
--snap--
which breaks the system calls 305 to 309 inclusive.
I've attached the simple patch which fixes the problem.
yours,
- clifford
--
"Any sufficiently advanced technology is indistinguishable from magic."
- Arthur C. Clarke
[-- Attachment #2: powerpc-systbl.h --]
[-- Type: text/plain, Size: 421 bytes --]
--- linux-2.6.23.12/include/asm-powerpc/systbl.h.orig 2008-01-02 15:09:04.000000000 +0100
+++ linux-2.6.23.12/include/asm-powerpc/systbl.h 2008-01-02 15:09:29.000000000 +0100
@@ -308,8 +308,8 @@
SYSCALL_SPU(getcpu)
COMPAT_SYS(epoll_pwait)
COMPAT_SYS_SPU(utimensat)
-COMPAT_SYS(fallocate)
COMPAT_SYS_SPU(signalfd)
COMPAT_SYS_SPU(timerfd)
SYSCALL_SPU(eventfd)
COMPAT_SYS_SPU(sync_file_range2)
+COMPAT_SYS(fallocate)
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [patch] powerpc systbl.h broken
2008-01-02 14:11 [patch] powerpc systbl.h broken Clifford Wolf
@ 2008-01-03 2:16 ` Stephen Rothwell
2008-01-03 2:54 ` Stephen Rothwell
0 siblings, 1 reply; 3+ messages in thread
From: Stephen Rothwell @ 2008-01-03 2:16 UTC (permalink / raw)
To: Clifford Wolf; +Cc: lkml, linuxppc-dev, stable
Hi Clifford,
Thanks for the report.
PowerPC problems should be reported to linuxppc-dev@ozlabs.org.
This has been fixed in the current (approaching 2.6.24) kernel. It
should be fixed in 2.6.23.xx, so I have cc'd this to
stable@vger.kernel.org (and linuxppc-dev, of course).
(Also, please post patches inline, don't attach them. And you need to
reply to this with a Signed-off-by: line.)
--
Cheers,
Stephen Rothwell sfr@canb.auug.org.au
------------------------------------------------------------------------
From: Clifford Wolf <clifford@clifford.at>
Hi,
In current 2.6.23 (I have checked 2.6.23.12 and 2.6.23.9) the end of
include/asm-powerpc/systbl.h reads:
--snip--
SYSCALL_SPU(getcpu)
COMPAT_SYS(epoll_pwait)
COMPAT_SYS_SPU(utimensat)
COMPAT_SYS(fallocate)
COMPAT_SYS_SPU(signalfd)
COMPAT_SYS_SPU(timerfd)
SYSCALL_SPU(eventfd)
COMPAT_SYS_SPU(sync_file_range2)
--snap--
This obviously does not match the definitions in asm-powerpc/unistd.h:
--snip--
#define __NR_getcpu 302
#define __NR_epoll_pwait 303
#define __NR_utimensat 304
#define __NR_signalfd 305
#define __NR_timerfd 306
#define __NR_eventfd 307
#define __NR_sync_file_range2 308
#define __NR_fallocate 309
--snap--
which breaks the system calls 305 to 309 inclusive.
--- linux-2.6.23.12/include/asm-powerpc/systbl.h.orig 2008-01-02 15:09:04.000000000 +0100
+++ linux-2.6.23.12/include/asm-powerpc/systbl.h 2008-01-02 15:09:29.000000000 +0100
@@ -308,8 +308,8 @@
SYSCALL_SPU(getcpu)
COMPAT_SYS(epoll_pwait)
COMPAT_SYS_SPU(utimensat)
-COMPAT_SYS(fallocate)
COMPAT_SYS_SPU(signalfd)
COMPAT_SYS_SPU(timerfd)
SYSCALL_SPU(eventfd)
COMPAT_SYS_SPU(sync_file_range2)
+COMPAT_SYS(fallocate)
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [patch] powerpc systbl.h broken
2008-01-03 2:16 ` Stephen Rothwell
@ 2008-01-03 2:54 ` Stephen Rothwell
0 siblings, 0 replies; 3+ messages in thread
From: Stephen Rothwell @ 2008-01-03 2:54 UTC (permalink / raw)
To: Clifford Wolf; +Cc: lkml, linuxppc-dev, stable
[-- Attachment #1: Type: text/plain, Size: 464 bytes --]
On Thu, 3 Jan 2008 13:16:24 +1100 Stephen Rothwell <sfr@canb.auug.org.au> wrote:
>
> This has been fixed in the current (approaching 2.6.24) kernel. It
> should be fixed in 2.6.23.xx, so I have cc'd this to
> stable@vger.kernel.org (and linuxppc-dev, of course).
Should have been stable@kernel.org. (where I have sent another copy of
the email)
--
Cheers,
Stephen Rothwell sfr@canb.auug.org.au
http://www.canb.auug.org.au/~sfr/
[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2008-01-03 2:54 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-01-02 14:11 [patch] powerpc systbl.h broken Clifford Wolf
2008-01-03 2:16 ` Stephen Rothwell
2008-01-03 2:54 ` Stephen Rothwell
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®