]> git.baikalelectronics.ru Git - kernel.git/commit
s390: Fix runtime warning about negative pgtables_bytes
authorGuenter Roeck <linux@roeck-us.net>
Thu, 1 Mar 2018 22:40:52 +0000 (14:40 -0800)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Fri, 2 Mar 2018 11:48:40 +0000 (12:48 +0100)
commit8808dcaf2d9c823a1a7fdca9ad1c993b4d74c260
treed9bb7e2c84e8bb877a51d015ddbd606b2652f9af
parent7aae716e4c44da682a54b71d8b06c1adf52706b5
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 4bdc1bdae9af ("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: 4bdc1bdae9af ("mm: account pud page tables")
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
arch/s390/include/asm/mmu_context.h