Messages in this thread | | | Date | Fri, 4 Jun 2004 19:32:16 +0200 | From | Ingo Molnar <> | Subject | Re: [announce] [patch] NX (No eXecute) support for x86, 2.6.7-rc2-bk2 |
| |
this is how the maps look like on distributions that dont have the PT_GNU_STACK:
08048000-0804c000 r-xp 00000000 03:01 495264 /bin/cat 0804c000-0804d000 rwxp 00003000 03:01 495264 /bin/cat 0804d000-0806e000 rwxp 0804d000 00:00 0 40000000-40014000 r-xp 00000000 03:01 319552 /lib/ld-2.3.3.so 40014000-40015000 r--p 00014000 03:01 319552 /lib/ld-2.3.3.so 40015000-40016000 rwxp 00015000 03:01 319552 /lib/ld-2.3.3.so 40029000-4015d000 r-xp 00000000 03:01 176042 /lib/tls/libc-2.3.3.so 4015d000-4015f000 r--p 00134000 03:01 176042 /lib/tls/libc-2.3.3.so 4015f000-40161000 rwxp 00136000 03:01 176042 /lib/tls/libc-2.3.3.so 40161000-40164000 rwxp 40161000 00:00 0 40164000-40364000 r-xp 00000000 03:01 465837 /usr/lib/locale/locale-archive 40364000-4036a000 r-xp 00902000 03:01 465837 /usr/lib/locale/locale-archive 4036a000-40397000 r-xp 0090c000 03:01 465837 /usr/lib/locale/locale-archive 40397000-40398000 r-xp 00942000 03:01 465837 /usr/lib/locale/locale-archive bfffe000-c0000000 rwxp bfffe000 00:00 0 ffffe000-fffff000 ---p 00000000 00:00 0
so we can turn on NX safely - all but the library/binary .data areas are executable. (and if any code assumes executability there then it deserves that SEGFAULT ...)
Ingo - 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/
| |