Re: [RFC PATCH] Fix: x86 unaligned __memcpy to/from virtual memory

From: Linus Torvalds
Date: Wed Jun 24 2015 - 20:38:13 EST


On Wed, Jun 24, 2015 at 4:54 PM, Mathieu Desnoyers
<mathieu.desnoyers@xxxxxxxxxxxx> wrote:
>
> OK, see below. This time the fault occurred at an unaligned address.
> It fails on the !pte_present(*pte_ref) check.

So every time, %rcx is 0x001fb.

Once, your rdx value (which is remaining bytes after the movsq) was 3,
the other two times it's 0.

What's so magical about that 4056-byte copy (+3 bytes once)? Are you
*sure* that copy is valid?

Linus
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/