Changeset 11579


Ignore:
Timestamp:
Jan 5, 2009, 5:36:00 AM (11 years ago)
Author:
gb
Message:

Set executable_start to 64K (not 4K). Some Linux kernels get upset
by the presence of code < 64K, and only calm down if the vm.mmap_min_addr
sysctl variable is set to 0. If we move code out of the low 64K (and
remap_spjump() at startup), the sysctl variable can be set to 4K, which
offers some protection against theoretical exploits.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/source/lisp-kernel/linuxppc64/elf64ppc.x

    r5661 r11579  
    1010{
    1111  /* Read-only sections, merged into text segment: */
    12   PROVIDE (__executable_start = 0x00001000); . = 0x00001000 + SIZEOF_HEADERS;
     12  PROVIDE (__executable_start = 0x00010000); . = 0x00010000 + SIZEOF_HEADERS;
    1313  .pad : { pad.o(.text) }
    1414  .subprims ALIGN(0x1000)    : 
Note: See TracChangeset for help on using the changeset viewer.