Ley Foon Tan
7f1e614113
nios2: use generic strncpy_from_user() and strnlen_user()
...
This change enables the generic strncpy_from_user() and strnlen_user()
Signed-off-by: Ley Foon Tan <ley.foon.tan@intel.com>
2017-05-08 17:14:14 +08:00
Al Viro
de51d6cc2c
nios2: switch to RAW_COPY_USER
...
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
2017-03-28 18:23:50 -04:00
Al Viro
981db65b52
nios2: switch to generic extable.h
...
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
2017-03-28 18:23:50 -04:00
Al Viro
af1d5b37d6
uaccess: drop duplicate includes from asm/uaccess.h
...
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
2017-03-05 21:57:49 -05:00
Al Viro
5e6039d8a3
uaccess: move VERIFY_{READ,WRITE} definitions to linux/uaccess.h
...
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
2017-03-05 20:40:25 -05:00
Al Viro
2e29f50ad5
nios2: fix __get_user()
...
a) should not leave crap on fault
b) should _not_ require access_ok() in any cases.
Cc: stable@vger.kernel.org
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
2016-09-13 17:49:43 -04:00
Al Viro
e33d1f6f72
nios2: copy_from_user() should zero the tail of destination
...
Cc: stable@vger.kernel.org
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
2016-09-13 17:49:43 -04:00
Ley Foon Tan
f1f2eac912
nios2/uaccess: fix sparse errors
...
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.
Suggested-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Ley Foon Tan <lftan@altera.com>
2014-12-17 13:53:41 +08:00
Ley Foon Tan
5ccc6af5e8
nios2: Memory management
...
This patch contains the initialisation of the memory blocks, MMU
attributes and the memory map.
Signed-off-by: Ley Foon Tan <lftan@altera.com>
2014-12-08 12:55:51 +08:00