Quantcast
Viewing all articles
Browse latest Browse all 1267

Re: x86/pti: smp_processor_id() called while preemptible in resume ...

Linus Torvalds writes: (Summary) Good point, but I think that was actually a mis-feature of the old "__flush_tlb_up()" implementation that Andy got rid of in commit ce4a4e565f52 ("x86/mm: Remove the UP asm/tlbflush.h code, always use the (formerly) SMP code").
the (formerly) SMP code").
So the code sequence that that commit talks about no longer exists. But adding a
WARN_ON_ONCE(preemptible());
WARN_ON_ONCE(preemptible());
might still be a good idea.
might still be a good idea.
Linus
Linus
Linus

Viewing all articles
Browse latest Browse all 1267

Trending Articles