diff options
author | Martin Schwidefsky <schwidefsky@de.ibm.com> | 2012-07-26 08:53:06 +0200 |
---|---|---|
committer | Martin Schwidefsky <schwidefsky@de.ibm.com> | 2012-07-26 16:24:14 +0200 |
commit | 0f6f281b731d20bfe75c13f85d33f3f05b440222 (patch) | |
tree | 0f8c23d3fca50dd2830ddc978501cd45a0057f45 /arch/s390/include/asm/processor.h | |
parent | 8143adafd2d00b13f1db96ce06b6bf479e0bfe5b (diff) | |
download | op-kernel-dev-0f6f281b731d20bfe75c13f85d33f3f05b440222.zip op-kernel-dev-0f6f281b731d20bfe75c13f85d33f3f05b440222.tar.gz |
s390/mm: downgrade page table after fork of a 31 bit process
The downgrade of the 4 level page table created by init_new_context is
currently done only in start_thread31. If a 31 bit process forks the
new mm uses a 4 level page table, including the task size of 2<<42
that goes along with it. This is incorrect as now a 31 bit process
can map memory beyond 2GB. Define arch_dup_mmap to do the downgrade
after fork.
Cc: stable@vger.kernel.org
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Diffstat (limited to 'arch/s390/include/asm/processor.h')
-rw-r--r-- | arch/s390/include/asm/processor.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/s390/include/asm/processor.h b/arch/s390/include/asm/processor.h index c40fa91..11e4e32 100644 --- a/arch/s390/include/asm/processor.h +++ b/arch/s390/include/asm/processor.h @@ -120,7 +120,9 @@ struct stack_frame { regs->psw.mask = psw_user_bits | PSW_MASK_BA; \ regs->psw.addr = new_psw | PSW_ADDR_AMODE; \ regs->gprs[15] = new_stackp; \ + __tlb_flush_mm(current->mm); \ crst_table_downgrade(current->mm, 1UL << 31); \ + update_mm(current->mm, current); \ } while (0) /* Forward declaration, a strange C thing */ |