diff options
author | 2017-08-07 15:16:15 +0200 | |
---|---|---|
committer | 2017-08-09 09:09:32 -0400 | |
commit | 267239cc10f18251892a0783104df3dc22b620d5 (patch) | |
tree | f420241fbc3f469085c8d5a2105a90b3fd4d26ac /tools/perf/scripts/python/export-to-postgresql.py | |
parent | s390/mm: prevent memory offline for memory blocks with cma areas (diff) | |
download | wireguard-linux-267239cc10f18251892a0783104df3dc22b620d5.tar.xz wireguard-linux-267239cc10f18251892a0783104df3dc22b620d5.zip |
s390/vmcp: fix uaccess check and avoid undefined behavior
The vmcp device driver should return -EFAULT if get_user() fails, due
to an invalid user space address. In addition the buffer size value
from user space is passed unchecked to get_order(). The return value
of get_order(0) undefined.
Therefore explicitly test for zero before calling get_order() and also
return -EFAULT if get_user() fails.
Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions