Re: [tip:x86/asm] x86/i386: Make sure stack-protector segment baseis cache aligned

From: H. Peter Anvin
Date: Fri Sep 04 2009 - 12:55:28 EST


On 09/04/2009 09:01 AM, Jeremy Fitzhardinge wrote:
>>>
>> It's correct that it doesn't make any difference for access, only for load.
>>
>
> Well, to be completely precise, restore. When returning to usermode,
> the "pop %seg" is slightly faster if you're restoring a null selector,
> which is typically the case for %fs as 32-bit usermode doesn't use it.
>

That's a segment load...

-hpa

--
H. Peter Anvin, Intel Open Source Technology Center
I work for Intel. I don't speak on their behalf.

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