Re: [PATCH v2] uprobes: Free utask on dup_return_instance() failure
| Newsgroups | org.kernel.vger.linux-perf-users,org.kernel.vger.linux-trace-kernel |
|---|---|
| Message-ID | <[email protected]> |
> dup_utask() installs the new uprobe_task in t->utask before copying > return_instances. If dup_return_instance() fails, the partially copied > utask is left attached to the child task. > > Free the partially copied utask before returning -ENOMEM. > > Also, dup_return_instance() copies the return_instance before fixing > up extra_consumers. > > Here, if no deep copy is needed, clear the copied extra_consumers > pointer. > > Signed-off-by: Keke Ming <[email protected]> Sashiko has reviewed this patch and found no issues. It looks great! -- Sashiko AI review · https://sashiko.dev/#/patchset/[email protected]?part=1