tech-kern archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: problem with USER_LDT in current 9.99.81



On Wed, Apr 28, 2021 at 10:54:22AM +0100, Dave Tyson wrote:
> I don't know whether altering the LDT size will have any implications for the 
> SVS stuff, currently 
> 
> #define MAX_USERLDT_SIZE PAGE_SIZE
> 
> appears in the above include files.
> 
> I changed the define to be:
> 
> #define MAX_USERLDT_SIZE PAGE_SIZE*2
> 
> and a recompiled kernel now allows wine to work correctly.

If we want have a fixed size limit, it should be 64KB. That's the maximum
size a LDT can have and I see no reason why we want to allow less. It's
rare enough that wasting a bit space here shouldn't matter.

Joerg


Home | Main Index | Thread Index | Old Index