All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/3] metag/usercopy: Support RAW_COPY_USER
@ 2017-04-04 14:46 ` James Hogan
  0 siblings, 0 replies; 11+ messages in thread
From: James Hogan @ 2017-04-04 14:46 UTC (permalink / raw)
  To: linux-metag, Al Viro; +Cc: James Hogan, stable

These patches, based on viro-vfs/uaccess.metag, add support for
RAW_COPY_USER to the metag architecture.

Al: Did you want these to go via your uaccess.metag branch? If so I'm
happy to create a topic branch with the fixes (patches 1-2, marked for
stable) for you to pull, so I can get them upstream for 4.11.

- Patch 1 drops some unused macros so they don't need fixing in patch 2.

- Patch 2 moves zeroing out to copy_from_user, since __copy_from_user
  shouldn't cause zeroing, and the existing fixup code didn't properly
  zero the access that first failed anyway. This is needed for patch 3.

- Patch 3 switches metag to using RAW_COPY_USER, which is fairly trivial
  now that patch 2 moved the zeroing out to copy_from_user.

I have a bunch of other usercopy fixes for metag, but it won't hurt for
them to go in separately to these patches.

Cc: Al Viro <viro@zeniv.linux.org.uk>
Cc: linux-metag@vger.kernel.org
Cc: stable@vger.kernel.org

James Hogan (3):
  metag/usercopy: Drop unused macros
  metag/usercopy: Zero rest of buffer from copy_from_user
  metag/usercopy: Switch to RAW_COPY_USER

 arch/metag/Kconfig               |   1 +-
 arch/metag/include/asm/uaccess.h |  34 +------
 arch/metag/lib/usercopy.c        | 171 +++-----------------------------
 3 files changed, 26 insertions(+), 180 deletions(-)

-- 
git-series 0.8.10

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2017-04-05  6:54 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-04-04 14:46 [PATCH 0/3] metag/usercopy: Support RAW_COPY_USER James Hogan
2017-04-04 14:46 ` James Hogan
2017-04-04 14:46 ` [PATCH 1/3] metag/usercopy: Drop unused macros James Hogan
2017-04-04 14:46   ` James Hogan
2017-04-04 14:46 ` [PATCH 2/3] metag/usercopy: Zero rest of buffer from copy_from_user James Hogan
2017-04-04 14:46   ` James Hogan
2017-04-04 16:31   ` Al Viro
2017-04-04 16:31     ` Al Viro
2017-04-05  6:54     ` James Hogan
2017-04-05  6:54       ` James Hogan
     [not found] ` <cover.67b8034e25703fa0c68295f1ac1d7abe4bd1fac9.1491316836.git-series.james.hogan-1AXoQHu6uovQT0dZR+AlfA@public.gmane.org>
2017-04-04 14:46   ` [PATCH 3/3] metag/usercopy: Switch to RAW_COPY_USER James Hogan

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.