Re: [PATCH] task_struct + kernel stack colouring ...

kumon@flab.fujitsu.co.jp
Thu, 6 Dec 2001 09:12:45 +0900


Manfred Spraul writes:
> Shuij, I don't understand why you need both a shift and a modulo:
> address % odd_number should generate a random distribution (i.e. all
> bits affect the result), even without the shift.

The lame duck reason was: previously it was intended to use within
Current macro, the division should be avoided such a frequently used
operation.

Currently the stack coloring operation is required only at process
creation time, division by a odd number is sufficient and we'll
experiment it.

--
Kouichi Kumon, Software Laboratory, Fujitsu Labs.
kumon@flab.fujitsu.co.jp
-
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/