Re: [PATCH] uprobes: Use synchronize_rcu() not synchronize_sched()

From: Oleg Nesterov
Date: Fri Aug 10 2018 - 07:42:08 EST


On 08/10, Oleg Nesterov wrote:
>
> @@ -920,7 +918,8 @@ probe_event_enable(struct trace_uprobe *
> ret = uprobe_register(tu->inode, tu->offset, &tu->consumer);
> if (ret)
> goto err_buffer;
> -
> + add:
> + list_add_tail_rcu(&link->list, &tu->tp.files);

if (link)
list_add_tail_rcu(&link->list, &tu->tp.files);

Oleg.