Re: [PATCH 01/11] x86: Use asm goto to implement bettermodify_and_test() functions

From: Andi Kleen
Date: Thu Sep 19 2013 - 04:31:22 EST


On Wed, Sep 18, 2013 at 02:02:37PM -0500, H. Peter Anvin wrote:
> Yes, a bit sad. We allow bracketing with the get/put_user_try/catch blocks, but that is x86-specific.
>
> I don't think a generic option is possible without compiler support, but it might be possible to do better than we do know.

Letting the compiler do it is a bit risky, because it may open it up for
really large blocks, thus defeating the security advantages.

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