--- linux-source-2.6.10-2.6.10.orig/arch/x86_64/kernel/setup64.c +++ linux-source-2.6.10-2.6.10/arch/x86_64/kernel/setup64.c @@ -52,10 +52,10 @@ */ static int __init nonx_setup(char *str) { - if (!strcmp(str, "on")) { + if (!memcmp(str, "on", 2)) { __supported_pte_mask |= _PAGE_NX; do_not_nx = 0; - } else if (!strcmp(str, "off")) { + } else if (!memcmp(str, "off", 3)) { do_not_nx = 1; __supported_pte_mask &= ~_PAGE_NX; }