summaryrefslogtreecommitdiff
path: root/fs/proc/stat.c
diff options
context:
space:
mode:
authorHelge Deller <deller@gmx.de>2017-03-29 21:41:05 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2017-04-08 09:30:34 +0200
commit76343bfbcafa1b703b38746e8b39d15d31ab8957 (patch)
treecd46f740f41bde03ace1e1ec775c2ec4bf059e66 /fs/proc/stat.c
parent99e354a59ac5e7920166e68903b4ad031ef933e3 (diff)
parisc: Fix access fault handling in pa_memcpy()
commit 554bfeceb8a22d448cd986fc9efce25e833278a1 upstream. pa_memcpy() is the major memcpy implementation in the parisc kernel which is used to do any kind of userspace/kernel memory copies. Al Viro noticed various bugs in the implementation of pa_mempcy(), most notably that in case of faults it may report back to have copied more bytes than it actually did. Fixing those bugs is quite hard in the C-implementation, because the compiler is messing around with the registers and we are not guaranteed that specific variables are always in the same processor registers. This makes proper fault handling complicated. This patch implements pa_memcpy() in assembler. That way we have correct fault handling and adding a 64-bit copy routine was quite easy. Runtime tested with 32- and 64bit kernels. Reported-by: Al Viro <viro@ZenIV.linux.org.uk> Signed-off-by: John David Anglin <dave.anglin@bell.net> Signed-off-by: Helge Deller <deller@gmx.de> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'fs/proc/stat.c')
0 files changed, 0 insertions, 0 deletions