[PATCH 0/3] metag/usercopy: Support RAW_COPY_USER

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxxxxxxxx>
Cc: linux-metag@xxxxxxxxxxxxxxx
Cc: stable@xxxxxxxxxxxxxxx

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



[Index of Archives]     [Linux Kernel]     [Kernel Development Newbies]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite Hiking]     [Linux Kernel]     [Linux SCSI]