All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] metag/uaccess: Some more user access fixes
@ 2017-05-02 21:11 ` James Hogan
  0 siblings, 0 replies; 8+ messages in thread
From: James Hogan @ 2017-05-02 21:11 UTC (permalink / raw)
  To: linux-metag; +Cc: Al Viro, James Hogan, stable

Here are a couple more user access fixes for metag. The first fixes
access_ok() which was flawed in a number of ways (including ignoring the
size of the copy and so allowing a copy crossing the user/kernel
boundary). The second adds missing access_ok() checking to
strncpy_from_user(). Thanks to Al for spotting some of the issues.

Both are tagged for stable.

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

James Hogan (2):
  metag/uaccess: Fix access_ok()
  metag/uaccess: Check access_ok in strncpy_from_user

 arch/metag/include/asm/uaccess.h | 49 ++++++++++++++++++++-------------
 1 file changed, 31 insertions(+), 18 deletions(-)

-- 
git-series 0.8.10

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

end of thread, other threads:[~2017-05-02 21:36 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-05-02 21:11 [PATCH 0/2] metag/uaccess: Some more user access fixes James Hogan
2017-05-02 21:11 ` James Hogan
2017-05-02 21:11 ` [PATCH 1/2] metag/uaccess: Fix access_ok() James Hogan
2017-05-02 21:11   ` James Hogan
     [not found]   ` <8a8b56638bcac4e64cccc88bf95a0f9f4b19a2fb.1493759289.git-series.james.hogan-1AXoQHu6uovQT0dZR+AlfA@public.gmane.org>
2017-05-02 21:26     ` James Hogan
     [not found]       ` <20170502212605.GO1105-4bYivNCBEGTR3KXKvIWQxtm+Uo4AYnCiHZ5vskTnxNA@public.gmane.org>
2017-05-02 21:36         ` Stephen Rothwell
2017-05-02 21:11 ` [PATCH 2/2] metag/uaccess: Check access_ok in strncpy_from_user James Hogan
2017-05-02 21:11   ` 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.