Re: [PATCH] Fix argument checking in sched_setaffinity

From: Linus Torvalds
Date: Mon Sep 06 2004 - 13:51:19 EST




On Mon, 6 Sep 2004, Andi Kleen wrote:
>
> The only change I would like to have is to check the excess bytes
> to make sure they don't contain some random value. They should
> be either all 0 or all 0xff.

I hate the "byte at a time" interface.

That said, I think the "long at a time" interface we have now for bitmaps
ends up being a compatibility problem, where the compat layer has to worry
about big-endian 32-bit "long" lookign different from big-endian 64-bit
"long".

So there are other issues here.

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/