]> www.infradead.org Git - users/jedix/linux-maple.git/commit
fs/procfs: remove build ID-related code duplication in PROCMAP_QUERY
authorAndrii Nakryiko <andrii@kernel.org>
Mon, 29 Jul 2024 17:40:44 +0000 (10:40 -0700)
committerAndrew Morton <akpm@linux-foundation.org>
Mon, 2 Sep 2024 03:43:30 +0000 (20:43 -0700)
commit00bd8ec2f7cb40e438f5c9eb9ea2110d1ce5e165
treeb3734f5d71f1b9312fde08488440e09577c43cb9
parentb6e21b71208f289a796d786bd695ec25eae4ed9a
fs/procfs: remove build ID-related code duplication in PROCMAP_QUERY

A piece of build ID handling code in PROCMAP_QUERY ioctl() was
accidentally duplicated.  It wasn't meant to be part of ed5d583a88a9
("fs/procfs: implement efficient VMA querying API for /proc/<pid>/maps")
commit, which is what introduced duplication.

It has no correctness implications, but we unnecessarily perform the same
work twice, if build ID parsing is requested.  Drop the duplication.

Link: https://lkml.kernel.org/r/20240729174044.4008399-1-andrii@kernel.org
Fixes: ed5d583a88a9 ("fs/procfs: implement efficient VMA querying API for /proc/<pid>/maps")
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Reported-by: Jann Horn <jannh@google.com>
Cc: Alexey Dobriyan <adobriyan@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
fs/proc/task_mmu.c