[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20240711152555.GD16902@redhat.com>
Date: Thu, 11 Jul 2024 17:25:56 +0200
From: Oleg Nesterov <oleg@...hat.com>
To: Masami Hiramatsu <mhiramat@...nel.org>
Cc: andrii@...nel.org, peterz@...radead.org, clm@...a.com, jolsa@...nel.org,
mingo@...nel.org, paulmck@...nel.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH 1/2] uprobes: document the usage of mm->mmap_lock
On 07/11, Masami Hiramatsu wrote:
>
> What about this?
>
> * We take mmap_lock for writing to avoid the race with
> * find_active_uprobe(), which takes mmap_lock for reading.
> * Thus this install_breakpoint() must not make
> * is_trap_at_addr() true right after find_uprobe()
> * returns NULL in find_active_uprobe().
Thanks! will change.
Oleg.
Powered by blists - more mailing lists