Linus Torvalds writes: (Summary) On Fri, Mar 16, 2018 at 4:48 AM, Borislav Petkov <bp@alien8.de>
The "address" register contains the CR2 value as it was read *very*
early in the page fault case, before we enabled interrupts, and before
we did various random things that can cause further page faults and
change CR2!
So the executive summary that does __show_regs() may end up showing
something completely different than the actual faulting address,
because we might have taken a vmalloc-space exception in the meantime,
for example. It's
like showing the current eflags rather than the eflags saved on the
faulting stack.
↧