Re: siginfo_t fracturing, especially for 64/32-bit compatibilitymode

From: Linus Torvalds
Date: Fri Jan 02 2004 - 15:32:22 EST




On Fri, 2 Jan 2004, Joe Korty wrote:
>
> siginfo_t processing is fragile when in 32 bit compatibility mode on
> a 64 bit processor.

It shouldn't be.

Inside the kernel, we should always use the "native" format (ie 64-bit).
The fact that 64-bit architectures are broken is their bug, and the proper
way to fix it is to make sure that everything always uses the native
format.

We should _not_ play games with si_code etc. There is no reason to do so,
since every entrypointe knows _statically_ whether it is given a 32-bit or
64-bit version. That's a lot less fragile than depending on a field that
is filled in by the user.

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