Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1171775

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

From Linus Torvalds <torvalds@linux-foundation.org>
Newsgroups linux.kernel
Subject Re: [RFC PATCH] Fix: x86 unaligned __memcpy to/from virtual memory
Date 2015-06-25 02:40 +0200
Message-ID <pF3mW-KX-13@gated-at.bofh.it> (permalink)
References <pEVz4-6x6-15@gated-at.bofh.it> <pEWls-7H7-13@gated-at.bofh.it> <pEXUd-1jL-7@gated-at.bofh.it> <pEYng-26P-9@gated-at.bofh.it> <pF2Ke-8e7-3@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Wed, Jun 24, 2015 at 4:54 PM, Mathieu Desnoyers
<mathieu.desnoyers@efficios.com> 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@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Back to linux.kernel | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

Re: [RFC PATCH] Fix: x86 unaligned __memcpy to/from virtual memory Mathieu Desnoyers <mathieu.desnoyers@efficios.com> - 2015-06-25 02:00 +0200
  Re: [RFC PATCH] Fix: x86 unaligned __memcpy to/from virtual memory Mathieu Desnoyers <mathieu.desnoyers@efficios.com> - 2015-06-25 02:40 +0200
  Re: [RFC PATCH] Fix: x86 unaligned __memcpy to/from virtual memory Linus Torvalds <torvalds@linux-foundation.org> - 2015-06-25 02:40 +0200

csiph-web