uprobes/sdt: Prevent multiple reference counter for same uprobe
authorRavi Bangoria <ravi.bangoria@linux.ibm.com>
Mon, 20 Aug 2018 04:42:48 +0000 (10:12 +0530)
committerSteven Rostedt (VMware) <rostedt@goodmis.org>
Mon, 24 Sep 2018 08:44:54 +0000 (04:44 -0400)
commit22bad38286d9a652d7061a02f9743bb2ebb84e59
treea43f88655fda4bdaf5470133c9b0fd367f22d3f6
parent1cc33161a83d20b5462b1e93f95d3ce6388079ee
uprobes/sdt: Prevent multiple reference counter for same uprobe

We assume to have only one reference counter for one uprobe.
Don't allow user to register multiple uprobes having same
inode+offset but different reference counter.

Link: http://lkml.kernel.org/r/20180820044250.11659-3-ravi.bangoria@linux.ibm.com
Acked-by: Srikar Dronamraju <srikar@linux.vnet.ibm.com>
Reviewed-by: Oleg Nesterov <oleg@redhat.com>
Reviewed-by: Song Liu <songliubraving@fb.com>
Tested-by: Song Liu <songliubraving@fb.com>
Signed-off-by: Ravi Bangoria <ravi.bangoria@linux.ibm.com>
Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
kernel/events/uprobes.c