Skip to content

Commit 61e1827

Browse files
groeckMartin Schwidefsky
authored andcommitted
s390: Fix runtime warning about negative pgtables_bytes
When running s390 images with 'compat' processes, the following BUG is seen repeatedly. BUG: non-zero pgtables_bytes on freeing mm: -16384 Bisect points to commit b4e98d9 ("mm: account pud page tables"). Analysis shows that init_new_context() is called with mm->context.asce_limit set to _REGION3_SIZE. In this situation, pgtables_bytes remains set to 0 and is not increased. The message is displayed when the affected process dies and mm_dec_nr_puds() is called. Cc: Kirill A. Shutemov <kirill.shutemov@linux.intel.com> Cc: Heiko Carstens <heiko.carstens@de.ibm.com> Fixes: b4e98d9 ("mm: account pud page tables") Signed-off-by: Guenter Roeck <linux@roeck-us.net> Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
1 parent d5feec0 commit 61e1827

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

arch/s390/include/asm/mmu_context.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ static inline int init_new_context(struct task_struct *tsk,
6363
_ASCE_USER_BITS | _ASCE_TYPE_SEGMENT;
6464
/* pgd_alloc() did not account this pmd */
6565
mm_inc_nr_pmds(mm);
66+
mm_inc_nr_puds(mm);
6667
}
6768
crst_table_init((unsigned long *) mm->pgd, pgd_entry_type(mm));
6869
return 0;

0 commit comments

Comments
 (0)