Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit abb8d6ec authored by Linus Torvalds's avatar Linus Torvalds
Browse files
Pull tracing fix from Steven Rostedt:
 "This is a single commit that fixes a bug in uprobes SDT code due to a
  missing mutex protection"

* tag 'trace-v4.20-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/rostedt/linux-trace:
  Uprobes: Fix kernel oops with delayed_uprobe_remove()
parents 2acee31c 1aed58e6
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -572,7 +572,9 @@ static void put_uprobe(struct uprobe *uprobe)
		 * gets called, we don't get a chance to remove uprobe from
		 * delayed_uprobe_list from remove_breakpoint(). Do it here.
		 */
		mutex_lock(&delayed_uprobe_lock);
		delayed_uprobe_remove(uprobe, NULL);
		mutex_unlock(&delayed_uprobe_lock);
		kfree(uprobe);
	}
}