lkml.org 
[lkml]   [2002]   [Aug]   [17]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: Boot failure in 2.5.31 BK with new TLS patch
James Bottomley wrote:

>
>
> Actually, the intel manual recommends (but doesn't require) a wierd alignment
> for the descriptors. It recommends aligning them at an address which is 2 MOD
> 4 to avoid possible alignment check faults in user mode. Not that I think we
> can ever run into the problem, but we should probably obey the recommendation.
> I'll fix this up as well.

This is already done for the IDT descriptor, but not (yet) for the gdt
descriptor(s).

Alignment checks are only done when CPL==3. And lidt/lgdt are (obviously)
privileged, although sidt/sgdt (and sldt/str for that matter) are not,
but I can't see how application could take benefit or make malicious use
of this capability.

Gabriel.




-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:28    [W:0.090 / U:0.024 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site