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


Groups > linux.kernel > #1520832 > unrolled thread

[PATCH 3.2 119/152] sh64: failing __get_user() should zero

Started byBen Hutchings <ben@decadent.org.uk>
First post2016-11-14 03:30 +0100
Last post2016-11-14 03:30 +0100
Articles 1 — 1 participant

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  [PATCH 3.2 119/152] sh64: failing __get_user() should zero Ben Hutchings <ben@decadent.org.uk> - 2016-11-14 03:30 +0100

#1520832 — [PATCH 3.2 119/152] sh64: failing __get_user() should zero

FromBen Hutchings <ben@decadent.org.uk>
Date2016-11-14 03:30 +0100
Subject[PATCH 3.2 119/152] sh64: failing __get_user() should zero
Message-ID<sDfbX-xk-27@gated-at.bofh.it>
3.2.84-rc1 review patch.  If anyone has any objections, please let me know.

------------------

From: Al Viro <viro@zeniv.linux.org.uk>

commit c6852389228df9fb3067f94f3b651de2a7921b36 upstream.

It could be done in exception-handling bits in __get_user_b() et.al.,
but the surgery involved would take more knowledge of sh64 details
than I have or _want_ to have.

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
---
 arch/sh/include/asm/uaccess_64.h | 1 +
 1 file changed, 1 insertion(+)

--- a/arch/sh/include/asm/uaccess_64.h
+++ b/arch/sh/include/asm/uaccess_64.h
@@ -24,6 +24,7 @@
 #define __get_user_size(x,ptr,size,retval)			\
 do {								\
 	retval = 0;						\
+	x = 0;							\
 	switch (size) {						\
 	case 1:							\
 		retval = __get_user_asm_b((void *)&x,		\

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web