★ wanayoo — archive 1999 http://www.kernelnotes.org/patch/21-p0235.htmlNouvelle recherche | Portail wanayoo

Fix for Reliable OOP'es on 2.0.28/2.1.25 after modify_ldt

Hans Lermen (lermen@elserv.ffm.fgan.de)
Mon Feb 10 20:35:00 1997

[Home] [Linux 2.0] [Linux 2.1] [Information] [Software] [Distributions] [Links]

21-modify_ldt-fix.patch
The below two patches fix a problem in ldt.c, that was reported by Ion Badulescu <ionut@moisil.wal.rhno.columbia.edu> and was traced down by Ramon <ramon@atlante.ieeesb.etsit.upm.es>:

Ramon  wrote:
>
> Wine tells the operating system to free a selector that is being used
> in the %fs register. The kernel does it, but when trying to restore
> the registers to return from the system call, the processor generates
> a expection since it does not like place an unused selector in the
> %fs register.
>

Well, of course Wine could fix the problem, but the kernel shouldn't oops anyway. The below patches were tested by Ion Badulescu and Wine seems happy with the -EBUSY.

The 2.1.x patch also is needed, because (though the kernel doesn't use %fs/%gs) the oops may happen on schedule.




[Home] [Up] [Search] [FeedBack]

Copyleft © The LinuxHQ Project. Licensed under the GNU Public License.