aboutsummaryrefslogtreecommitdiff
path: root/kernel/bpf/bpf_local_storage.c
diff options
context:
space:
mode:
authorMuchun Song <songmuchun@bytedance.com>2020-09-17 15:44:53 +0800
committerDaniel Borkmann <daniel@iogearbox.net>2020-09-21 21:20:17 +0200
commit31f23a6a181c81543b10a1a9056b0e6c7ef1c747 (patch)
treee275566fe13c8fdd63f4b6206173f2e9692a5844 /kernel/bpf/bpf_local_storage.c
parent70b971118e074d5042715587953f27929e99117a (diff)
bpf: Fix potential call bpf_link_free() in atomic context
The in_atomic() macro cannot always detect atomic context, in particular, it cannot know about held spinlocks in non-preemptible kernels. Although, there is no user call bpf_link_put() with holding spinlock now, be on the safe side, so we can avoid this in the future. Signed-off-by: Muchun Song <songmuchun@bytedance.com> Signed-off-by: Daniel Borkmann <daniel@iogearbox.net> Acked-by: Song Liu <songliubraving@fb.com> Acked-by: Andrii Nakryiko <andriin@fb.com> Link: https://lore.kernel.org/bpf/20200917074453.20621-1-songmuchun@bytedance.com
Diffstat (limited to 'kernel/bpf/bpf_local_storage.c')
0 files changed, 0 insertions, 0 deletions