Re: [PATCH v2] x86/ibpb: Skip IBPB when we switch back to same user process

2018-01-28 Thread Woodhouse, David
On Sun, 2018-01-28 at 10:56 +0100, Ingo Molnar wrote: > > What tree is this patch against? It doesn't apply to linus's latest, nor to  > tip:master. It's in my tree at   http://git.infradead.org/users/dwmw2/linux-retpoline.git/shortlog/refs/heads/ibpb which is gradually being finalized and flushe

Re: [PATCH v2] x86/ibpb: Skip IBPB when we switch back to same user process

2018-01-28 Thread Ingo Molnar
* Tim Chen wrote: > Thanks to the reviewers and Andy Lutomirski for the suggestion of > using ctx_id which got rid of the problem of mm pointer recycling. > Here's an update of this patch based on Andy's suggestion. > > We could switch to a kernel idle thread and then back to the original > pro

[PATCH v2] x86/ibpb: Skip IBPB when we switch back to same user process

2018-01-25 Thread Tim Chen
Thanks to the reviewers and Andy Lutomirski for the suggestion of using ctx_id which got rid of the problem of mm pointer recycling. Here's an update of this patch based on Andy's suggestion. We could switch to a kernel idle thread and then back to the original process such as: process A -> idle -