[PATCH v5] um: Enable preemption in UML

Johannes Berg johannes at sipsolutions.net
Fri Sep 22 02:04:56 PDT 2023


On Fri, 2023-09-22 at 10:43 +0200, Johannes Berg wrote:
> > 
> > I think this has pretty much always been wrong, just now we actually
> > notice it?
> > 
> > Basically, when we create a new thread (really just mm I think), we say
> > the first thing that has to run there is fork_handler(), which
> > initialises things the first time around. This calls force_flush_all()
> > 

So I thought we could perhaps just force_flush_all() the new mm in
init_new_context(), but that segfaults userspace immediately.

So I need to fully understand first (again?) why we even need
force_flush_all() at this spot, but probably not today.

johannes



More information about the linux-um mailing list