aboutsummaryrefslogtreecommitdiffstats
path: root/tools/lib/bpf/bpf_prog_linfo.c
diff options
context:
space:
mode:
authorLorenzo Stoakes <[email protected]>2025-06-13 18:48:07 +0000
committerAndrew Morton <[email protected]>2025-07-10 05:42:11 +0000
commit4535cb331cfbdbc73d42887330e46e87a4589e6d (patch)
tree1571dc3bda7d587917c3b43fda10f02c62fb7b2d /tools/lib/bpf/bpf_prog_linfo.c
parenthighmem: remove a use of folio->page (diff)
downloadkernel-4535cb331cfbdbc73d42887330e46e87a4589e6d.tar.gz
kernel-4535cb331cfbdbc73d42887330e46e87a4589e6d.zip
mm/vma: use vmg->target to specify target VMA for new VMA merge
In commit 3a75ccba047b ("mm: simplify vma merge structure and expand comments") we introduced the vmg->target field to make the merging of existing VMAs simpler - clarifying precisely which VMA would eventually become the merged VMA once the merge operation was complete. New VMA merging did not get quite the same treatment, retaining the rather confusing convention of storing the target VMA in vmg->middle. This patch corrects this state of affairs, utilising vmg->target for this purpose for both vma_merge_new_range() and also for vma_expand(). We retain the WARN_ON for vmg->middle being specified in vma_merge_new_range() as doing so would make no sense, but add an additional debug assert for setting vmg->target. This patch additionally updates VMA userland testing to account for this change. [[email protected]: make comment consistent in vma_expand()] Link: https://lkml.kernel.org/r/[email protected] Link: https://lkml.kernel.org/r/[email protected] Signed-off-by: Lorenzo Stoakes <[email protected]> Reviewed-by: Vlastimil Babka <[email protected]> Cc: Jann Horn <[email protected]> Cc: Kees Cook <[email protected]> Cc: Liam Howlett <[email protected]> Signed-off-by: Andrew Morton <[email protected]>
Diffstat (limited to 'tools/lib/bpf/bpf_prog_linfo.c')
0 files changed, 0 insertions, 0 deletions