aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/pwm/pwm-stm32.c
diff options
context:
space:
mode:
authorYuanyuan Zhong <[email protected]>2024-05-23 18:35:31 +0000
committerAndrew Morton <[email protected]>2024-05-24 18:55:07 +0000
commit6d065f507d82307d6161ac75c025111fb8b08a46 (patch)
tree339973c85e73a1a4e18de0b289050cff2414f7b6 /drivers/pwm/pwm-stm32.c
parentnilfs2: fix potential hang in nilfs_detach_log_writer() (diff)
downloadkernel-6d065f507d82307d6161ac75c025111fb8b08a46.tar.gz
kernel-6d065f507d82307d6161ac75c025111fb8b08a46.zip
mm: /proc/pid/smaps_rollup: avoid skipping vma after getting mmap_lock again
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. Otherwise, with some VMAs skipped, userspace observed memory consumption from /proc/pid/smaps_rollup will be smaller than the sum of the corresponding fields from /proc/pid/smaps. Link: https://lkml.kernel.org/r/[email protected] Fixes: c4c84f06285e ("fs/proc/task_mmu: stop using linked list and highest_vm_end") Signed-off-by: Yuanyuan Zhong <[email protected]> Reviewed-by: Mohamed Khalfella <[email protected]> Cc: David Hildenbrand <[email protected]> Cc: Matthew Wilcox (Oracle) <[email protected]> Cc: <[email protected]> Signed-off-by: Andrew Morton <[email protected]>
Diffstat (limited to 'drivers/pwm/pwm-stm32.c')
0 files changed, 0 insertions, 0 deletions