]> www.infradead.org Git - users/jedix/linux-maple.git/commit
uprobes: simplify find_active_uprobe_rcu() VMA checks
authorAndrii Nakryiko <andrii@kernel.org>
Fri, 22 Nov 2024 03:59:21 +0000 (19:59 -0800)
committerPeter Zijlstra <peterz@infradead.org>
Mon, 2 Dec 2024 11:01:38 +0000 (12:01 +0100)
commit83e3dc9a5d4d7402adb24090a77327245d593129
treee2d839ade7aff2c43475ed152492dca7be397562
parent03a001b156d2da186a5618de242750d06bf81e2d
uprobes: simplify find_active_uprobe_rcu() VMA checks

At the point where find_active_uprobe_rcu() is used we know that VMA in
question has triggered software breakpoint, so we don't need to validate
vma->vm_flags. Keep only vma->vm_file NULL check.

Suggested-by: Oleg Nesterov <oleg@redhat.com>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Reviewed-by: Masami Hiramatsu (Google) <mhiramat@kernel.org>
Acked-by: Oleg Nesterov <oleg@redhat.com>
Link: https://lkml.kernel.org/r/20241122035922.3321100-2-andrii@kernel.org
kernel/events/uprobes.c