Messages in this thread |  | | Date | Wed, 31 Oct 2001 18:18:10 -0800 (PST) | From | Davide Libenzi <> | Subject | Re: [PATCH] cache colour task_structs |
| |
On 1 Nov 2001, Andi Kleen wrote:
> Alan Cox <alan@lxorguk.ukuu.org.uk> writes: > > > > We need to perturb esp colour too. It might be the right way to do this > > is slab based kernel stacks, it might be that your code is cheaper than > > the cost of getting current the really hard way and we should just add > > random numbers to the initial esp of a task ? > > You could do that even today (without slab task_struct) by using a > random/coloured at fork time value for esp0. This could just be a static > colour counter that is subtracted.
Hey, ... I do that in userspace at thread creation time with a random alloca(), ... but it's to prevent stack pointer guessing in case of buffer overflows :)
- Davide
- 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/
|  |