Re: [PATCH] Make LIST_POISON less deadly (v3)

From: Andi Kleen
Date: Tue May 20 2008 - 11:16:23 EST


Avi Kivity <avi@xxxxxxxxxxxx> writes:
>
> +config ILLEGAL_POINTER_VALUE
> + hex
> + default 0 if X86_32
> + default 0xffffc10000000000 if X86_64

Don't make it exactly 0xffffc10000000000 but 0xffffc10000000000 + 0x1000000
or so, otherwise list_entry() users which subtract offsets would still
end up in user space and there might be actually something in there
by default.

-Andi

--
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/