Re: [PATCH] Add prctl to change endian of a task

From: Ingo Oeser
Date: Sun Apr 02 2006 - 10:39:47 EST


Hi Anton,

On Sunday, 2. April 2006 00:29, you wrote:
> Add a prctl to change a tasks endian. While we only have powerpc code to
> implement this so far, it seems like something that warrants a generic
> interface (like setting floating point mode bits).

Most programmers (and thus programs) expect this to be a compile time
decision.

What are the reasons of allowing to change it so dynamic at all?

What are the security implications of this?
My naive guess is, that it might defeat range checking of values
in user space code.

What about limiting this to be called once per task or VM?
This will prevent most abuse scenarios, I can think of.


Regards

Ingo Oeser

Attachment: pgp00000.pgp
Description: PGP signature