Re: [PATCH] mm: /proc/pid/smaps_rollup: avoid skipping vma after getting mmap_lock again

From: Andrew Morton
Date: Thu May 23 2024 - 14:56:36 EST


On Thu, 23 May 2024 12:35:31 -0600 Yuanyuan Zhong <yzhong@xxxxxxxxxxxxxxx> wrote:

> After switching smaps_rollup to use VMA iterator, searching for next
> entry is part of the condition expression of the do-while loop. So the
> current VMA needs to be addressed before the continue statement.

Please describe the userspace-visible runtime effects of this bug.
This aids others in deciding which kernel version(s) need the patch.

Thanks.