Re: [PATCH 12/14] x86: remove address space overrides using set_fs()

From: Christoph Hellwig
Date: Fri Sep 04 2020 - 03:48:01 EST


On Fri, Sep 04, 2020 at 08:38:13AM +0200, Christoph Hellwig wrote:
> > Wait a sec... how is that supposed to build with X86_5LEVEL? Do you mean
> >
> > #define LOAD_TASK_SIZE_MINUS_N(n) \
> > ALTERNATIVE __stringify(mov $((1 << 47) - 4096 - (n)),%rdx), \
> > __stringify(mov $((1 << 56) - 4096 - (n)),%rdx), X86_FEATURE_LA57
> >
> > there?
>
> Don't ask me about the how, but it builds and works with X86_5LEVEL,
> and the style is copied from elsewhere..

Actually, it doesn't any more. Looks like the change to pass the n
parameter as suggested by Linus broke the previously working version.