> On Jul 4, 2019, at 7:18 PM, Linus Torvalds <torva...@linux-foundation.org> > wrote: > >> On Fri, Jul 5, 2019 at 5:03 AM Peter Zijlstra <pet...@infradead.org> wrote: >> >> Despire the current efforts to read CR2 before tracing happens there >> still exist a number of possible holes: > > So this whole series disturbs me for the simple reason that I thought > tracing was supposed to save/restore cr2 and make it unnecessary to > worry about this in non-tracing code. > > That is very much what the NMI code explicitly does. Why shouldn't all > the other tracing code do the same thing in case they can take page > faults? > If nothing else, MOV to CR2 is architecturally serializing, so, unless there’s some fancy unwinding involved, this will be quite slow.
- Re: [PATCH v2 1/7] x86/paravirt: Make read_cr2() CALL... Andy Lutomirski
- [PATCH v2 3/7] x86/entry/64: Simplify idtentry a little Peter Zijlstra
- Re: [PATCH v2 3/7] x86/entry/64: Simplify idtentry a ... Andy Lutomirski
- [PATCH v2 4/7] x86/entry/64: Update comments and sanity te... Peter Zijlstra
- Re: [PATCH v2 4/7] x86/entry/64: Update comments and ... Andy Lutomirski
- [PATCH v2 2/7] x86/entry/32: Simplify common_exception Peter Zijlstra
- Re: [PATCH v2 2/7] x86/entry/32: Simplify common_exce... Andy Lutomirski
- [RFC][PATCH v2 7/7] x86/entry/64: Pull bits into C Peter Zijlstra
- [PATCH v2 5/7] x86/mm, tracing: Fix CR2 corruption Peter Zijlstra
- Re: [PATCH v2 5/7] x86/mm, tracing: Fix CR2 corruptio... Linus Torvalds
- Re: [PATCH v2 5/7] x86/mm, tracing: Fix CR2 corru... Andy Lutomirski
- Re: [PATCH v2 5/7] x86/mm, tracing: Fix CR2 c... Linus Torvalds
- Re: [PATCH v2 5/7] x86/mm, tracing: Fix CR2 corru... Peter Zijlstra
- Re: [PATCH v2 5/7] x86/mm, tracing: Fix CR2 c... Linus Torvalds
- Re: [PATCH v2 5/7] x86/mm, tracing: Fix C... Steven Rostedt
- Re: [PATCH v2 5/7] x86/mm, tracing: ... Linus Torvalds
- Re: [PATCH v2 5/7] x86/mm, traci... Linus Torvalds
- Re: [PATCH v2 5/7] x86/mm, traci... Andy Lutomirski
- Re: [PATCH v2 5/7] x86/mm, tracing: ... Andy Lutomirski
- Re: [PATCH v2 5/7] x86/mm, tracing: ... Eiichi Tsukata
- Re: [PATCH v2 5/7] x86/mm, tracing: Fix CR2 corru... Eiichi Tsukata