aboutsummaryrefslogtreecommitdiffstats
path: root/arch/openrisc/include/asm/uaccess.h
Commit message (Collapse)AuthorAge
*---. Merge branches 'uaccess.alpha', 'uaccess.arc', 'uaccess.arm', ↵Al Viro2017-04-26
|\ \ \ | | | | | | | | | | | | 'uaccess.arm64', 'uaccess.avr32', 'uaccess.bfin', 'uaccess.c6x', 'uaccess.cris', 'uaccess.frv', 'uaccess.h8300', 'uaccess.hexagon', 'uaccess.ia64', 'uaccess.m32r', 'uaccess.m68k', 'uaccess.metag', 'uaccess.microblaze', 'uaccess.mips', 'uaccess.mn10300', 'uaccess.nios2', 'uaccess.openrisc', 'uaccess.parisc', 'uaccess.powerpc', 'uaccess.s390', 'uaccess.score', 'uaccess.sh', 'uaccess.sparc', 'uaccess.tile', 'uaccess.um', 'uaccess.unicore32', 'uaccess.x86' and 'uaccess.xtensa' into work.uaccess
| | | * Merge branch 'parisc-4.11-3' of ↵Al Viro2017-04-02
| | |/| | |/| | | | | | | | | | git://git.kernel.org/pub/scm/linux/kernel/git/deller/parisc-linux into uaccess.parisc
| | | * openrisc: fix issue handling 8 byte get_user callsStafford Horne2017-03-15
| |_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | Was getting the following error with allmodconfig: ERROR: "__get_user_bad" [lib/test_user_copy.ko] undefined! This was simply a missing break statement, causing an unwanted fall through. Signed-off-by: Stafford Horne <shorne@gmail.com>
| | * openrisc: switch to RAW_COPY_USERAl Viro2017-03-28
| | | | | | | | | | | | Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
| | * openrisc: switch to generic extable.hAl Viro2017-03-28
| |/ | | | | | | Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
| * new helper: uaccess_kernel()Al Viro2017-03-28
| | | | | | | | Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
| * uaccess: drop duplicate includes from asm/uaccess.hAl Viro2017-03-05
| | | | | | | | Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
| * uaccess: move VERIFY_{READ,WRITE} definitions to linux/uaccess.hAl Viro2017-03-05
|/ | | | Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
* exceptions: detritus removalAl Viro2016-09-27
| | | | | | externs and defines for stuff that is never used Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
* openrisc: fix the fix of copy_from_user()Guenter Roeck2016-09-18
| | | | | | | | | | Since commit acb2505d0119 ("openrisc: fix copy_from_user()"), copy_from_user() returns the number of bytes requested, not the number of bytes not copied. Cc: Al Viro <viro@zeniv.linux.org.uk> Fixes: acb2505d0119 ("openrisc: fix copy_from_user()") Signed-off-by: Guenter Roeck <linux@roeck-us.net>
* openrisc: fix copy_from_user()Al Viro2016-09-13
| | | | | | | | | | | ... that should zero on faults. Also remove the <censored> helpful logics wrt range truncation copied from ppc32. Where it had ever been needed only in case of copy_from_user() *and* had not been merged into the mainline until a month after the need had disappeared. A decade before openrisc went into mainline, I might add... Cc: stable@vger.kernel.org Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
* openrisc/uaccess: fix sparse errorsMichael S. Tsirkin2015-01-13
| | | | | | | | | | virtio wants to read bitwise types from userspace using get_user. At the moment this triggers sparse errors, since the value is passed through an integer. Fix that up using __force. Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
* openrisc: use generic strnlen_user() functionJonas Bonn2012-05-28
| | | | | | | The generic version is both easier to support and more correct. Signed-off-by: Jonas Bonn <jonas@southpole.se> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
* openrisc: use generic strncpy_from_userJonas Bonn2012-05-25
| | | | | | | | | | As per commits 2922585b9329 ("lib: Sparc's strncpy_from_user is generic enough, move under lib/") and 92ae03f2ef99 ("x86: merge 32/64-bit versions of 'strncpy_from_user()' and speed it up"), and corresponding discussion on linux-arch. Signed-off-by: Jonas Bonn <jonas@southpole.se> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
* openrisc: included linux/thread_info.h twiceDanny Kukawka2012-02-17
| | | | | | | | arch/openrisc/include/asm/uaccess.h: included 'linux/thread_info.h' twice, remove the duplicate. Signed-off-by: Danny Kukawka <danny.kukawka@bisect.de> Signed-off-by: Jonas Bonn <jonas@southpole.se>
* OpenRISC: Memory managementJonas Bonn2011-07-22
Signed-off-by: Jonas Bonn <jonas@southpole.se> Reviewed-by: Arnd Bergmann <arnd@arndb.de>