Thread (36 messages) flat view 36 messages, 12 authors, 2016-03-08
STALE3835d

Revision v2 of 4 in this series.

Revisions (4)
  1. v1 [diff vs current]
  2. v2 [diff vs current]
  3. v2 [diff vs current]
  4. v2 current

[PATCH v2 0/5] arm64: kernel: Add support for User Access Override

From: james.morse@arm.com (James Morse)
Date: 2016-03-07 17:40:23

On 07/03/16 17:23, Russell King - ARM Linux wrote:
On Mon, Mar 07, 2016 at 04:43:19PM +0000, James Morse wrote:
quoted
As far as I can see, this would only affect arm64. I can't find an equivalent
memset() for x86_64.
I don't think you've looked hard enough. :)
Heh, Thanks! I ignored the 32bit code and instead got lost in the maze of
underscores and alternative-strings for the 64 bit path.

Having seen that path, I've now found:
/* If the destination is a kernel buffer, we always clear the end */
if (!__addr_ok(to))
	memset(to, 0, len);
in arch/x86/lib/usercopy_64.c:copy_user_handle_tail(), which may be the x86_64
equivalent, or I may be lost in the maze again.


Thanks!

James
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help