]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commit
bpf: Remove recursion prevention from rcu free callback
authorThomas Gleixner <tglx@linutronix.de>
Mon, 24 Feb 2020 14:01:39 +0000 (15:01 +0100)
committerStefan Bader <stefan.bader@canonical.com>
Mon, 9 Nov 2020 13:47:32 +0000 (14:47 +0100)
commit1e60f90aefeb238303afc8b6982e567d3767788a
tree5e80986438653e52c413a0b7c5bf0b7a9e564874
parentf1cbf4a2b244e7546b2722b99f668f674078aa37
bpf: Remove recursion prevention from rcu free callback

BugLink: https://bugs.launchpad.net/bugs/1900624
[ Upstream commit 8a37963c7ac9ecb7f86f8ebda020e3f8d6d7b8a0 ]

If an element is freed via RCU then recursion into BPF instrumentation
functions is not a concern. The element is already detached from the map
and the RCU callback does not hold any locks on which a kprobe, perf event
or tracepoint attached BPF program could deadlock.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Link: https://lore.kernel.org/bpf/20200224145643.259118710@linutronix.de
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Ian May <ian.may@canonical.com>
kernel/bpf/hashtab.c