diff options
author | Heiko Carstens <heiko.carstens@de.ibm.com> | 2014-01-17 07:12:34 -0500 |
---|---|---|
committer | Martin Schwidefsky <schwidefsky@de.ibm.com> | 2014-01-22 08:02:16 -0500 |
commit | b03b467944b3e88a36a33b5429425c42dbd5b8a0 (patch) | |
tree | 57c5b36c72106e35e9ab9ca929946e5656373296 /firmware | |
parent | 05e9181bdba4b1eb8f8eac5fd925df5223d16308 (diff) |
s390/uaccess: test if current->mm is set before walking page tables
If get_fs() == USER_DS we better test if current->mm is not zero before
walking page tables.
The page table walk code would try to lock mm->page_table_lock, however
if mm is zero this might crash.
Now it is arguably incorrect trying to access userspace if current->mm
is zero, however we have seen that and s390 would be the only architecture
which would crash in such a case.
So we better make the page table walk code a bit more robust and report
always a fault instead.
Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Diffstat (limited to 'firmware')
0 files changed, 0 insertions, 0 deletions