* Re: 2.6.17-mm1
@ 2006-06-21 18:19 Martin Bligh
2006-06-21 18:48 ` 2.6.17-mm1 Mattia Dongili
0 siblings, 1 reply; 10+ messages in thread
From: Martin Bligh @ 2006-06-21 18:19 UTC (permalink / raw)
To: Andrew Morton; +Cc: Linux Kernel Mailing List, hpa
Seems to dive into an endless loop in compile.
http://test.kernel.org/abat/37068/debug/test.log.0
CHK include/linux/compile.h
UPD include/linux/compile.h
CC init/version.o
CC init/initramfs.o
CC init/calibrate.o
LD init/built-in.o
HOSTCC usr/gen_init_cpio
SYMLINK usr/include/asm -> include/asm-x86_64
GEN usr/klibc/syscalls/SYSCALLS.i
GEN usr/klibc/syscalls/syscalls.nrs
GEN usr/klibc/syscalls/typesize.c
KLIBCCC usr/klibc/syscalls/typesize.o
OBJCOPY usr/klibc/syscalls/typesize.bin
GEN usr/klibc/syscalls/syscalls.mk
GEN usr/klibc/syscalls/typesize.c
KLIBCCC usr/klibc/syscalls/typesize.o
OBJCOPY usr/klibc/syscalls/typesize.bin
GEN usr/klibc/syscalls/syscalls.mk
GEN usr/klibc/syscalls/typesize.c
KLIBCCC usr/klibc/syscalls/typesize.o
OBJCOPY usr/klibc/syscalls/typesize.bin
GEN usr/klibc/syscalls/syscalls.mk
GEN usr/klibc/syscalls/typesize.c
KLIBCCC usr/klibc/syscalls/typesize.o
OBJCOPY usr/klibc/syscalls/typesize.bin
GEN usr/klibc/syscalls/syscalls.mk
GEN usr/klibc/syscalls/typesize.c
KLIBCCC usr/klibc/syscalls/typesize.o
OBJCOPY usr/klibc/syscalls/typesize.bin
GEN usr/klibc/syscalls/syscalls.mk
etc etc. for ever.
On both x86_64 and ppc64.
M.
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: 2.6.17-mm1
2006-06-21 18:19 2.6.17-mm1 Martin Bligh
@ 2006-06-21 18:48 ` Mattia Dongili
2006-06-21 19:19 ` 2.6.17-mm1 H. Peter Anvin
0 siblings, 1 reply; 10+ messages in thread
From: Mattia Dongili @ 2006-06-21 18:48 UTC (permalink / raw)
To: Martin Bligh; +Cc: Andrew Morton, Linux Kernel Mailing List, hpa
On Wed, Jun 21, 2006 at 11:19:55AM -0700, Martin Bligh wrote:
> Seems to dive into an endless loop in compile.
>
> http://test.kernel.org/abat/37068/debug/test.log.0
>
> CHK include/linux/compile.h
> UPD include/linux/compile.h
> CC init/version.o
> CC init/initramfs.o
> CC init/calibrate.o
> LD init/built-in.o
> HOSTCC usr/gen_init_cpio
> SYMLINK usr/include/asm -> include/asm-x86_64
> GEN usr/klibc/syscalls/SYSCALLS.i
> GEN usr/klibc/syscalls/syscalls.nrs
> GEN usr/klibc/syscalls/typesize.c
> KLIBCCC usr/klibc/syscalls/typesize.o
> OBJCOPY usr/klibc/syscalls/typesize.bin
[...]
> etc etc. for ever.
>
> On both x86_64 and ppc64.
me too, on 586
.config is here: http://oioio.altervista.org/linux/config-2.6.17-mm1
--
mattia
:wq!
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: 2.6.17-mm1
2006-06-21 18:48 ` 2.6.17-mm1 Mattia Dongili
@ 2006-06-21 19:19 ` H. Peter Anvin
2006-06-21 19:39 ` fs/binfmt_aout.o, Error: suffix or operands invalid for `cmp' [was Re: 2.6.17-mm1] Mattia Dongili
0 siblings, 1 reply; 10+ messages in thread
From: H. Peter Anvin @ 2006-06-21 19:19 UTC (permalink / raw)
To: Martin Bligh, Andrew Morton, Linux Kernel Mailing List, hpa
Mattia Dongili wrote:
> On Wed, Jun 21, 2006 at 11:19:55AM -0700, Martin Bligh wrote:
>> Seems to dive into an endless loop in compile.
>>
>> http://test.kernel.org/abat/37068/debug/test.log.0
>>
>> CHK include/linux/compile.h
>> UPD include/linux/compile.h
>> CC init/version.o
>> CC init/initramfs.o
>> CC init/calibrate.o
>> LD init/built-in.o
>> HOSTCC usr/gen_init_cpio
>> SYMLINK usr/include/asm -> include/asm-x86_64
>> GEN usr/klibc/syscalls/SYSCALLS.i
>> GEN usr/klibc/syscalls/syscalls.nrs
>> GEN usr/klibc/syscalls/typesize.c
>> KLIBCCC usr/klibc/syscalls/typesize.o
>> OBJCOPY usr/klibc/syscalls/typesize.bin
> [...]
>> etc etc. for ever.
>>
>> On both x86_64 and ppc64.
>
> me too, on 586
>
> .config is here: http://oioio.altervista.org/linux/config-2.6.17-mm1
I've uploaded the patch for this to:
http://www.kernel.org/pub/linux/kernel/people/hpa/klibc-2.6.17-mm1-circdep.patch
The klibc tree has additional fixes in it.
-hpa
^ permalink raw reply [flat|nested] 10+ messages in thread
* fs/binfmt_aout.o, Error: suffix or operands invalid for `cmp' [was Re: 2.6.17-mm1]
2006-06-21 19:19 ` 2.6.17-mm1 H. Peter Anvin
@ 2006-06-21 19:39 ` Mattia Dongili
2006-06-21 20:42 ` Andrew Morton
0 siblings, 1 reply; 10+ messages in thread
From: Mattia Dongili @ 2006-06-21 19:39 UTC (permalink / raw)
To: H. Peter Anvin; +Cc: Martin Bligh, Andrew Morton, Linux Kernel Mailing List
On Wed, Jun 21, 2006 at 12:19:33PM -0700, H. Peter Anvin wrote:
> Mattia Dongili wrote:
[...]
> >.config is here: http://oioio.altervista.org/linux/config-2.6.17-mm1
>
> I've uploaded the patch for this to:
>
> http://www.kernel.org/pub/linux/kernel/people/hpa/klibc-2.6.17-mm1-circdep.patch
>
> The klibc tree has additional fixes in it.
Thanks, this is fixed, but I have a new failure:
CC [M] fs/xfs/support/move.o
CC [M] fs/xfs/support/uuid.o
LD [M] fs/xfs/xfs.o
CC fs/dnotify.o
CC fs/dcookies.o
LD fs/built-in.o
CC [M] fs/binfmt_aout.o
{standard input}: Assembler messages:
{standard input}:160: Error: suffix or operands invalid for `cmp'
make[1]: *** [fs/binfmt_aout.o] Error 1
make: *** [fs] Error 2
Same .config as above
--
mattia
:wq!
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: fs/binfmt_aout.o, Error: suffix or operands invalid for `cmp' [was Re: 2.6.17-mm1]
2006-06-21 19:39 ` fs/binfmt_aout.o, Error: suffix or operands invalid for `cmp' [was Re: 2.6.17-mm1] Mattia Dongili
@ 2006-06-21 20:42 ` Andrew Morton
2006-06-21 21:16 ` Mattia Dongili
2006-06-21 22:27 ` [PATCH] fix __range_ok constraint Roman Zippel
0 siblings, 2 replies; 10+ messages in thread
From: Andrew Morton @ 2006-06-21 20:42 UTC (permalink / raw)
To: Mattia Dongili; +Cc: hpa, mbligh, linux-kernel
On Wed, 21 Jun 2006 21:39:32 +0200
Mattia Dongili <malattia@linux.it> wrote:
> Thanks, this is fixed, but I have a new failure:
> CC [M] fs/xfs/support/move.o
> CC [M] fs/xfs/support/uuid.o
> LD [M] fs/xfs/xfs.o
> CC fs/dnotify.o
> CC fs/dcookies.o
> LD fs/built-in.o
> CC [M] fs/binfmt_aout.o
> {standard input}: Assembler messages:
> {standard input}:160: Error: suffix or operands invalid for `cmp'
> make[1]: *** [fs/binfmt_aout.o] Error 1
> make: *** [fs] Error 2
what the heck? Can you do `make fs/binfmt_aout.s' then send the relevant
parts of that file?
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: fs/binfmt_aout.o, Error: suffix or operands invalid for `cmp' [was Re: 2.6.17-mm1]
2006-06-21 20:42 ` Andrew Morton
@ 2006-06-21 21:16 ` Mattia Dongili
2006-06-21 21:34 ` Andrew Morton
2006-06-21 22:27 ` [PATCH] fix __range_ok constraint Roman Zippel
1 sibling, 1 reply; 10+ messages in thread
From: Mattia Dongili @ 2006-06-21 21:16 UTC (permalink / raw)
To: Andrew Morton; +Cc: hpa, mbligh, linux-kernel
On Wed, Jun 21, 2006 at 01:42:15PM -0700, Andrew Morton wrote:
> On Wed, 21 Jun 2006 21:39:32 +0200
> Mattia Dongili <malattia@linux.it> wrote:
>
> > Thanks, this is fixed, but I have a new failure:
> > CC [M] fs/xfs/support/move.o
> > CC [M] fs/xfs/support/uuid.o
> > LD [M] fs/xfs/xfs.o
> > CC fs/dnotify.o
> > CC fs/dcookies.o
> > LD fs/built-in.o
> > CC [M] fs/binfmt_aout.o
> > {standard input}: Assembler messages:
> > {standard input}:160: Error: suffix or operands invalid for `cmp'
> > make[1]: *** [fs/binfmt_aout.o] Error 1
> > make: *** [fs] Error 2
>
> what the heck? Can you do `make fs/binfmt_aout.s' then send the relevant
> parts of that file?
I can't really tell which is the relevant part other than line 160 :)
Full file available here:
http://oioio.altervista.org/linux/binfmt_aout.s
gcc is:
Using built-in specs.
Target: i486-linux-gnu
Configured with: ../src/configure -v --enable-languages=c,c++,java,f95,objc,ada,treelang --prefix=/usr --enable-shared --with-system-zlib --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --enable-nls --program-suffix=-4.0 --enable-__cxa_atexit --enable-clocale=gnu --enable-libstdcxx-debug --enable-java-awt=gtk-default --enable-gtk-cairo --with-java-home=/usr/lib/jvm/java-1.4.2-gcj-4.0-1.4.2.0/jre --enable-mpfr --disable-werror --with-tune=i686 --enable-checking=release i486-linux-gnu
Thread model: posix
gcc version 4.0.4 20060507 (prerelease) (Debian 4.0.3-3)
--
mattia
:wq!
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: fs/binfmt_aout.o, Error: suffix or operands invalid for `cmp' [was Re: 2.6.17-mm1]
2006-06-21 21:16 ` Mattia Dongili
@ 2006-06-21 21:34 ` Andrew Morton
2006-06-21 21:44 ` H. Peter Anvin
2006-06-21 21:51 ` Mattia Dongili
0 siblings, 2 replies; 10+ messages in thread
From: Andrew Morton @ 2006-06-21 21:34 UTC (permalink / raw)
To: Mattia Dongili; +Cc: hpa, mbligh, linux-kernel, Chuck Ebbert
On Wed, 21 Jun 2006 23:16:17 +0200
Mattia Dongili <malattia@linux.it> wrote:
> On Wed, Jun 21, 2006 at 01:42:15PM -0700, Andrew Morton wrote:
> > On Wed, 21 Jun 2006 21:39:32 +0200
> > Mattia Dongili <malattia@linux.it> wrote:
> >
> > > Thanks, this is fixed, but I have a new failure:
> > > CC [M] fs/xfs/support/move.o
> > > CC [M] fs/xfs/support/uuid.o
> > > LD [M] fs/xfs/xfs.o
> > > CC fs/dnotify.o
> > > CC fs/dcookies.o
> > > LD fs/built-in.o
> > > CC [M] fs/binfmt_aout.o
> > > {standard input}: Assembler messages:
> > > {standard input}:160: Error: suffix or operands invalid for `cmp'
> > > make[1]: *** [fs/binfmt_aout.o] Error 1
> > > make: *** [fs] Error 2
> >
> > what the heck? Can you do `make fs/binfmt_aout.s' then send the relevant
> > parts of that file?
>
> I can't really tell which is the relevant part other than line 160 :)
> Full file available here:
> http://oioio.altervista.org/linux/binfmt_aout.s
>
It's complaining about this:
#APP
addl %ecx,%eax ; sbbl %edx,%edx; cmpl %eax,$-1073741824; sbbl $0,%edx # dump.u_dsize, sum, flag,
#NO_APP
from fs/binfmt_aout.c:154:
if (!access_ok(VERIFY_READ, (void __user *)START_DATA(dump), dump.u_dsize << PAGE_SHIFT))
dump.u_dsize = 0;
if (!access_ok(VERIFY_READ, (void __user *)START_STACK(dump), dump.u_ssize << PAGE_SHIFT))
dump.u_ssize = 0;
the offending code comes from __range_ok()
Mad guess: does reverting
ftp://ftp.kernel.org/pub/linux/kernel/people/akpm/patches/2.6/2.6.17/2.6.17-mm1/broken-out/i386-use-c-code-for-current_thread_info.patch
help?
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: fs/binfmt_aout.o, Error: suffix or operands invalid for `cmp' [was Re: 2.6.17-mm1]
2006-06-21 21:34 ` Andrew Morton
@ 2006-06-21 21:44 ` H. Peter Anvin
2006-06-21 21:51 ` Mattia Dongili
1 sibling, 0 replies; 10+ messages in thread
From: H. Peter Anvin @ 2006-06-21 21:44 UTC (permalink / raw)
To: Andrew Morton; +Cc: Mattia Dongili, mbligh, linux-kernel, Chuck Ebbert
Andrew Morton wrote:
> On Wed, 21 Jun 2006 23:16:17 +0200
> Mattia Dongili <malattia@linux.it> wrote:
>
>> On Wed, Jun 21, 2006 at 01:42:15PM -0700, Andrew Morton wrote:
>>> On Wed, 21 Jun 2006 21:39:32 +0200
>>> Mattia Dongili <malattia@linux.it> wrote:
>>>
>>>> Thanks, this is fixed, but I have a new failure:
>>>> CC [M] fs/xfs/support/move.o
>>>> CC [M] fs/xfs/support/uuid.o
>>>> LD [M] fs/xfs/xfs.o
>>>> CC fs/dnotify.o
>>>> CC fs/dcookies.o
>>>> LD fs/built-in.o
>>>> CC [M] fs/binfmt_aout.o
>>>> {standard input}: Assembler messages:
>>>> {standard input}:160: Error: suffix or operands invalid for `cmp'
>>>> make[1]: *** [fs/binfmt_aout.o] Error 1
>>>> make: *** [fs] Error 2
>>> what the heck? Can you do `make fs/binfmt_aout.s' then send the relevant
>>> parts of that file?
>> I can't really tell which is the relevant part other than line 160 :)
>> Full file available here:
>> http://oioio.altervista.org/linux/binfmt_aout.s
>>
>
> It's complaining about this:
>
> #APP
> addl %ecx,%eax ; sbbl %edx,%edx; cmpl %eax,$-1073741824; sbbl $0,%edx # dump.u_dsize, sum, flag,
> #NO_APP
The cmpl should have its arguments reversed. It's quite possible some versions of the
assembler accepts the form given, but they're wrong (and doubly confusing when used as
input to sbb.)
-hpa
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: fs/binfmt_aout.o, Error: suffix or operands invalid for `cmp' [was Re: 2.6.17-mm1]
2006-06-21 21:34 ` Andrew Morton
2006-06-21 21:44 ` H. Peter Anvin
@ 2006-06-21 21:51 ` Mattia Dongili
1 sibling, 0 replies; 10+ messages in thread
From: Mattia Dongili @ 2006-06-21 21:51 UTC (permalink / raw)
To: Andrew Morton; +Cc: hpa, mbligh, linux-kernel, Chuck Ebbert
On Wed, Jun 21, 2006 at 02:34:50PM -0700, Andrew Morton wrote:
> On Wed, 21 Jun 2006 23:16:17 +0200
> Mattia Dongili <malattia@linux.it> wrote:
>
> > On Wed, Jun 21, 2006 at 01:42:15PM -0700, Andrew Morton wrote:
> > > On Wed, 21 Jun 2006 21:39:32 +0200
> > > Mattia Dongili <malattia@linux.it> wrote:
> > >
> > > > Thanks, this is fixed, but I have a new failure:
> > > > CC [M] fs/xfs/support/move.o
> > > > CC [M] fs/xfs/support/uuid.o
> > > > LD [M] fs/xfs/xfs.o
> > > > CC fs/dnotify.o
> > > > CC fs/dcookies.o
> > > > LD fs/built-in.o
> > > > CC [M] fs/binfmt_aout.o
> > > > {standard input}: Assembler messages:
> > > > {standard input}:160: Error: suffix or operands invalid for `cmp'
> > > > make[1]: *** [fs/binfmt_aout.o] Error 1
> > > > make: *** [fs] Error 2
> > >
> > > what the heck? Can you do `make fs/binfmt_aout.s' then send the relevant
> > > parts of that file?
> >
> > I can't really tell which is the relevant part other than line 160 :)
> > Full file available here:
> > http://oioio.altervista.org/linux/binfmt_aout.s
> >
>
> It's complaining about this:
>
> #APP
> addl %ecx,%eax ; sbbl %edx,%edx; cmpl %eax,$-1073741824; sbbl $0,%edx # dump.u_dsize, sum, flag,
> #NO_APP
>
> from fs/binfmt_aout.c:154:
>
> if (!access_ok(VERIFY_READ, (void __user *)START_DATA(dump), dump.u_dsize << PAGE_SHIFT))
> dump.u_dsize = 0;
> if (!access_ok(VERIFY_READ, (void __user *)START_STACK(dump), dump.u_ssize << PAGE_SHIFT))
> dump.u_ssize = 0;
>
> the offending code comes from __range_ok()
thanks for the explanation!
> Mad guess: does reverting
> ftp://ftp.kernel.org/pub/linux/kernel/people/akpm/patches/2.6/2.6.17/2.6.17-mm1/broken-out/i386-use-c-code-for-current_thread_info.patch
> help?
yes, I didn't build the full kernel but a simple
make fs/binfmt_aout.o
is finally successful.
--
mattia
:wq!
^ permalink raw reply [flat|nested] 10+ messages in thread
* [PATCH] fix __range_ok constraint
2006-06-21 20:42 ` Andrew Morton
2006-06-21 21:16 ` Mattia Dongili
@ 2006-06-21 22:27 ` Roman Zippel
1 sibling, 0 replies; 10+ messages in thread
From: Roman Zippel @ 2006-06-21 22:27 UTC (permalink / raw)
To: Andrew Morton; +Cc: Mattia Dongili, hpa, mbligh, linux-kernel
Hi,
On Wed, 21 Jun 2006, Andrew Morton wrote:
> what the heck? Can you do `make fs/binfmt_aout.s' then send the relevant
> parts of that file?
I've hit this too, I haven't booted with the patch yet, but it should be
simple enough to be safe.
bye, Roman
An immediate operand can't be the destination of the cmpl instruction,
so exclude it.
Signed-off-by: Roman Zippel <zippel@linux-m68k.org>
---
include/asm-i386/uaccess.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
Index: linux-2.6-mm/include/asm-i386/uaccess.h
===================================================================
--- linux-2.6-mm.orig/include/asm-i386/uaccess.h 2006-06-21 16:23:56.000000000 +0200
+++ linux-2.6-mm/include/asm-i386/uaccess.h 2006-06-21 16:46:55.000000000 +0200
@@ -58,7 +58,7 @@ extern struct movsl_mask {
__chk_user_ptr(addr); \
asm("addl %3,%1 ; sbbl %0,%0; cmpl %1,%4; sbbl $0,%0" \
:"=&r" (flag), "=r" (sum) \
- :"1" (addr),"g" ((int)(size)),"g" (current_thread_info()->addr_limit.seg)); \
+ :"1" (addr),"g" ((int)(size)),"rm" (current_thread_info()->addr_limit.seg)); \
flag; })
/**
^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2006-06-21 22:28 UTC | newest]
Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-06-21 18:19 2.6.17-mm1 Martin Bligh
2006-06-21 18:48 ` 2.6.17-mm1 Mattia Dongili
2006-06-21 19:19 ` 2.6.17-mm1 H. Peter Anvin
2006-06-21 19:39 ` fs/binfmt_aout.o, Error: suffix or operands invalid for `cmp' [was Re: 2.6.17-mm1] Mattia Dongili
2006-06-21 20:42 ` Andrew Morton
2006-06-21 21:16 ` Mattia Dongili
2006-06-21 21:34 ` Andrew Morton
2006-06-21 21:44 ` H. Peter Anvin
2006-06-21 21:51 ` Mattia Dongili
2006-06-21 22:27 ` [PATCH] fix __range_ok constraint Roman Zippel
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.