public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* 2.6.8.1-mm, programs crashing on x86_64
@ 2004-08-20 17:45 Alexander Nyberg
  2004-08-20 20:35 ` Alexander Nyberg
  2004-08-20 20:35 ` Alexander Nyberg
  0 siblings, 2 replies; 3+ messages in thread
From: Alexander Nyberg @ 2004-08-20 17:45 UTC (permalink / raw)
  To: linux-kernel; +Cc: ak

This does not happen in linus -bk. I noticed it happens in
2.6.8-mm2 also, but not sure about earlier. I'll try some earlier
-mm's and if noone knows what could be it I'll do a binary search.

Must be quite newly introduced though...

boxen:~# chroot /mnt/store/x86/ bash
bash[911] bad frame in 32bit signal deliver frame:00000000ffffd220 rip:556605d6 rsp:ffffd500 orax:ffffffffffffffff
bash[910] bad frame in 32bit signal deliver frame:00000000ffffd220 rip:556605d6 rsp:ffffd500 orax:ffffffffffffffff
bash[910]: segfault at 00000000ffffd51c rip 00000000556605d6 rsp 00000000ffffd500 error 7
bash[911]: segfault at 00000000ffffd51c rip 00000000556605d6 rsp 00000000ffffd500 error 7





^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: 2.6.8.1-mm, programs crashing on x86_64
  2004-08-20 17:45 2.6.8.1-mm, programs crashing on x86_64 Alexander Nyberg
@ 2004-08-20 20:35 ` Alexander Nyberg
  2004-08-20 20:35 ` Alexander Nyberg
  1 sibling, 0 replies; 3+ messages in thread
From: Alexander Nyberg @ 2004-08-20 20:35 UTC (permalink / raw)
  To: linux-kernel; +Cc: ak, Andrew Morton

> This does not happen in linus -bk. I noticed it happens in
> 2.6.8-mm2 also, but not sure about earlier. I'll try some earlier
> -mm's and if noone knows what could be it I'll do a binary search.
> 
> Must be quite newly introduced though...
> 
> boxen:~# chroot /mnt/store/x86/ bash
> bash[911] bad frame in 32bit signal deliver frame:00000000ffffd220 rip:556605d6 rsp:ffffd500 orax:ffffffffffffffff
> bash[910] bad frame in 32bit signal deliver frame:00000000ffffd220 rip:556605d6 rsp:ffffd500 orax:ffffffffffffffff
> bash[910]: segfault at 00000000ffffd51c rip 00000000556605d6 rsp 00000000ffffd500 error 7
> bash[911]: segfault at 00000000ffffd51c rip 00000000556605d6 rsp 00000000ffffd500 error 7
> 

I forgot to tell you what environment I'm in; debian in a pure 64-bit
environment. I've got a chroot at /mnt/store/x86 where I compile kernels
for x86 boxes.

.config snippet:
CONFIG_BINFMT_ELF=y
CONFIG_BINFMT_MISC=y
CONFIG_IA32_EMULATION=y
CONFIG_IA32_AOUT=y
CONFIG_COMPAT=y
CONFIG_SYSVIPC_COMPAT=y
CONFIG_UID16=y


Anyway, found the trouble-maker. Reverting below patch fixes issues.

diff -uprN linux-2.6.8-rc3-mm1/include/asm-x86_64/processor.h linux-2.6.8-rc3-mm2/include/asm-x86_64/processor.h
--- linux-2.6.8-rc3-mm1/include/asm-x86_64/processor.h	2004-08-20 21:10:01.739109232 +0200
+++ linux-2.6.8-rc3-mm2/include/asm-x86_64/processor.h	2004-08-20 21:09:52.095575272 +0200
@@ -164,9 +164,9 @@ static inline void clear_in_cr4 (unsigne
 
 
 /*
- * User space process size: 512GB - 1GB (default).
+ * User space process size.
  */
-#define TASK_SIZE	(0x0000007fc0000000UL)
+#define TASK_SIZE	(test_thread_flag(TIF_IA32) ? 0xffffd000 : 0x0000007fc0000000UL)
 
 /* This decides where the kernel will search for a free chunk of vm
  * space during mmap's.



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: 2.6.8.1-mm, programs crashing on x86_64
  2004-08-20 17:45 2.6.8.1-mm, programs crashing on x86_64 Alexander Nyberg
  2004-08-20 20:35 ` Alexander Nyberg
@ 2004-08-20 20:35 ` Alexander Nyberg
  1 sibling, 0 replies; 3+ messages in thread
From: Alexander Nyberg @ 2004-08-20 20:35 UTC (permalink / raw)
  To: linux-kernel; +Cc: ak, Andrew Morton

> This does not happen in linus -bk. I noticed it happens in
> 2.6.8-mm2 also, but not sure about earlier. I'll try some earlier
> -mm's and if noone knows what could be it I'll do a binary search.
> 
> Must be quite newly introduced though...
> 
> boxen:~# chroot /mnt/store/x86/ bash
> bash[911] bad frame in 32bit signal deliver frame:00000000ffffd220 rip:556605d6 rsp:ffffd500 orax:ffffffffffffffff
> bash[910] bad frame in 32bit signal deliver frame:00000000ffffd220 rip:556605d6 rsp:ffffd500 orax:ffffffffffffffff
> bash[910]: segfault at 00000000ffffd51c rip 00000000556605d6 rsp 00000000ffffd500 error 7
> bash[911]: segfault at 00000000ffffd51c rip 00000000556605d6 rsp 00000000ffffd500 error 7
> 

I forgot to tell you what environment I'm in; debian in a pure 64-bit
environment. I've got a chroot at /mnt/store/x86 where I compile kernels
for x86 boxes.

.config snippet:
CONFIG_BINFMT_ELF=y
CONFIG_BINFMT_MISC=y
CONFIG_IA32_EMULATION=y
CONFIG_IA32_AOUT=y
CONFIG_COMPAT=y
CONFIG_SYSVIPC_COMPAT=y
CONFIG_UID16=y


Anyway, found the trouble-maker. Reverting below patch fixes issues.

diff -uprN linux-2.6.8-rc3-mm1/include/asm-x86_64/processor.h linux-2.6.8-rc3-mm2/include/asm-x86_64/processor.h
--- linux-2.6.8-rc3-mm1/include/asm-x86_64/processor.h	2004-08-20 21:10:01.739109232 +0200
+++ linux-2.6.8-rc3-mm2/include/asm-x86_64/processor.h	2004-08-20 21:09:52.095575272 +0200
@@ -164,9 +164,9 @@ static inline void clear_in_cr4 (unsigne
 
 
 /*
- * User space process size: 512GB - 1GB (default).
+ * User space process size.
  */
-#define TASK_SIZE	(0x0000007fc0000000UL)
+#define TASK_SIZE	(test_thread_flag(TIF_IA32) ? 0xffffd000 : 0x0000007fc0000000UL)
 
 /* This decides where the kernel will search for a free chunk of vm
  * space during mmap's.



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2004-08-20 20:41 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-08-20 17:45 2.6.8.1-mm, programs crashing on x86_64 Alexander Nyberg
2004-08-20 20:35 ` Alexander Nyberg
2004-08-20 20:35 ` Alexander Nyberg

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox