lkml.org 
[lkml]   [2004]   [Nov]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: 32-bit segfaults on x86_64 in recent mm kernels
On Sun, 7 Nov 2004, Rafael J. Wysocki wrote:
>This is because of the flex mmap patch for x86-64. You can try the following
>workaround from Andi Kleen:
...
> #ifdef HAVE_ARCH_PICK_MMAP_LAYOUT
>-int sysctl_legacy_va_layout;
>+int sysctl_legacy_va_layout = 1;
> #endif

One does not need to patch the kernel to do this...

% sysctl -w vm.legacy_va_layout=1

(some systems process an /etc/sysctl.conf during boot)

Of course, if you need 32bit apps before that can be set during boot-up,
messing with the kernel will be necessary. I will point out, the sysctl
var totally disables flex mmap.

--Ricky


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 14:07    [W:0.030 / U:0.892 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site