On Wed, Dec 06, 2017 at 11:23:59PM -0800, Ricardo Neri wrote: > In UMIP emulation we can potentially access the LDT twice. Once when > determining the base address of the code segment and again when determining > the base address and limit of the segment in which the result of the > emulation is written. I guess that mm->context.ldt_seq needs to not change > not only while decoding a particular linear address but across these two > linear address decodings.
Yap, stuff which needs to see an *unchanged* LDT should use the cookie to verify that and the LDT code should change the cookie when the LDT is modified. > Sure, I will look into implementing this idea and post patches for it. Thanks! -- Regards/Gruss, Boris. SUSE Linux GmbH, GF: Felix Imendörffer, Jane Smithard, Graham Norton, HRB 21284 (AG Nürnberg) --