]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
kprobes: Don't call BUG_ON() if there is a kprobe in use on free list
authorMasami Hiramatsu <mhiramat@kernel.org>
Tue, 11 Sep 2018 10:21:09 +0000 (19:21 +0900)
committerStefan Bader <stefan.bader@canonical.com>
Tue, 26 Nov 2019 12:16:35 +0000 (13:16 +0100)
commit1b87f8536adc6ea370aea9c6e62f74550f822edb
tree1a3ad9dd4df13da6c7629d93fa80a2e62c31bb6a
parent00fb48e4048f814163c3f9421284290f126cce60
kprobes: Don't call BUG_ON() if there is a kprobe in use on free list

BugLink: https://bugs.launchpad.net/bugs/1853915
[ Upstream commit cbdd96f5586151e48317d90a403941ec23f12660 ]

Instead of calling BUG_ON(), if we find a kprobe in use on free kprobe
list, just remove it from the list and keep it on kprobe hash list
as same as other in-use kprobes.

Signed-off-by: Masami Hiramatsu <mhiramat@kernel.org>
Cc: Anil S Keshavamurthy <anil.s.keshavamurthy@intel.com>
Cc: David S . Miller <davem@davemloft.net>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Naveen N . Rao <naveen.n.rao@linux.vnet.ibm.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Link: http://lkml.kernel.org/r/153666126882.21306.10738207224288507996.stgit@devbox
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Khalid Elmously <khalid.elmously@canonical.com>
kernel/kprobes.c