]> git.baikalelectronics.ru Git - kernel.git/commit
parisc: implement full version of access_ok()
authorHelge Deller <deller@gmx.de>
Sat, 29 Jun 2013 12:03:14 +0000 (14:03 +0200)
committerHelge Deller <deller@gmx.de>
Thu, 7 Nov 2013 21:29:14 +0000 (22:29 +0100)
commita9ac906e1c492a5bd4f843789867497f7f2fbd39
tree35ef859d3afae3d73c0cb92c1dbd7cb79227deb3
parentaae71f3b26987f374ddce2fb648a88de4a93dd60
parisc: implement full version of access_ok()

Up to now PA-RISC could live with a trivial version of access_ok().
Our fault handlers can correctly handle fault cases.

But testcases showed that we need a better access check else we won't
always return correct errno failure codes to userspace.

Problem showed up during 32bit userspace tests in which writev() used a
32bit memory area and length which would then wrap around on 64bit
kernel.

Signed-off-by: Helge Deller <deller@gmx.de>
arch/parisc/include/asm/uaccess.h