Damien Zammit, le mer. 07 janv. 2026 03:07:50 +0000, a ecrit: > --- > i386/i386/pcb.c | 6 +++++- > 1 file changed, 5 insertions(+), 1 deletion(-) > > diff --git a/i386/i386/pcb.c b/i386/i386/pcb.c > index d845b2b2..f217495b 100644 > --- a/i386/i386/pcb.c > +++ b/i386/i386/pcb.c > @@ -316,7 +316,11 @@ void stack_handoff( > stack = current_stack(); > old->kernel_stack = 0; > new->kernel_stack = stack; > - percpu_assign(active_thread, new); > + > + /* > + * NB: cannot use percpu_assign here because GS is now switched! > + */ > + percpu_array[mycpu].active_thread = new;
with swapgs we won't need it :) > /* > * Switch exception link to point to new > -- > 2.45.2 > > > -- Samuel <A> mr - remove the home of correct users who accidentally enter mr <A> instead of rm
