diff options
author | Heiko Carstens <heiko.carstens@de.ibm.com> | 2017-12-04 09:42:45 +0100 |
---|---|---|
committer | Martin Schwidefsky <schwidefsky@de.ibm.com> | 2017-12-05 07:51:09 +0100 |
commit | 8d306f53b63099fec2d56300149e400d181ba4f5 (patch) | |
tree | 862fa632c344913bf8c08cf596fba3b08f1b8736 /arch/s390/kernel/syscalls.S | |
parent | s390: Remove redudant license text (diff) | |
download | linux-8d306f53b63099fec2d56300149e400d181ba4f5.tar.xz linux-8d306f53b63099fec2d56300149e400d181ba4f5.zip |
s390/mm: fix off-by-one bug in 5-level page table handling
Martin Cermak reported that setting a uprobe doesn't work. Reason for
this is that the common uprobes code tries to get an unmapped area at
the last possible page within an address space.
This broke with commit 1aea9b3f9210 ("s390/mm: implement 5 level pages
tables") which introduced an off-by-one bug which prevents to map
anything at the last possible page within an address space.
The check with the off-by-one bug however can be removed since with
commit 8ab867cb0806 ("s390/mm: fix BUG_ON in crst_table_upgrade") the
necessary check is done at both call sites.
Reported-by: Martin Cermak <mcermak@redhat.com>
Bisected-by: Thomas Richter <tmricht@linux.vnet.ibm.com>
Fixes: 1aea9b3f9210 ("s390/mm: implement 5 level pages tables")
Cc: <stable@vger.kernel.org> # v4.13+
Reviewed-by: Hendrik Brueckner <brueckner@linux.vnet.ibm.com>
Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Diffstat (limited to 'arch/s390/kernel/syscalls.S')
0 files changed, 0 insertions, 0 deletions