Re: 32-bit segfaults on x86_64 in recent mm kernels

From: Ricky Beam
Date: Sun Nov 07 2004 - 19:19:19 EST


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@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/