mn10300: failing __get_user() and get_user() should zero
authorAl Viro <viro@zeniv.linux.org.uk>
Sat, 20 Aug 2016 20:32:02 +0000 (16:32 -0400)
committerWilly Tarreau <w@1wt.eu>
Mon, 6 Feb 2017 22:32:58 +0000 (23:32 +0100)
commit 43403eabf558d2800b429cd886e996fd555aa542 upstream.

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Willy Tarreau <w@1wt.eu>
arch/mn10300/include/asm/uaccess.h

index d7966e0f76988cfb2d36d0b480277961dcef7e3a..b9855e4f0ccdb2ceeb0f8b9d549d2cc3fcb3ff96 100644 (file)
@@ -181,6 +181,7 @@ struct __large_struct { unsigned long buf[100]; };
                "2:\n"                                          \
                "       .section        .fixup,\"ax\"\n"        \
                "3:\n\t"                                        \
+               "       mov             0,%1\n"                 \
                "       mov             %3,%0\n"                \
                "       jmp             2b\n"                   \
                "       .previous\n"                            \