All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH bpf 0/2] Wait for busy refill_work when destorying bpf memory allocator
@ 2022-10-19 11:55 Hou Tao
  2022-10-19 11:55 ` [PATCH bpf 1/2] bpf: " Hou Tao
  2022-10-19 11:55 ` [PATCH bpf 2/2] bpf: Use __llist_del_all() whenever possbile during memory draining Hou Tao
  0 siblings, 2 replies; 11+ messages in thread
From: Hou Tao @ 2022-10-19 11:55 UTC (permalink / raw)
  To: bpf, Alexei Starovoitov
  Cc: Martin KaFai Lau, Andrii Nakryiko, Song Liu, Hao Luo,
	Yonghong Song, Daniel Borkmann, KP Singh, Stanislav Fomichev,
	Jiri Olsa, John Fastabend, houtao1

From: Hou Tao <houtao1@huawei.com>

Hi,

The patchset aims to fix the problem of bpf memory allocator destruction
when there is PREEMPT_RT kernel or kernel with arch_irq_work_has_interrupt()
being false (e.g. 1-cpu arm32 host). The root cause is that there may be
busy refill_work when the allocator is destorying and it may incur oops
or other problems as shown in patch #1. Patch #1 fixes the problem by
waiting for the completion of irq work during destorying and patch #2
is just a clean-up patch based on patch #1. Please see individual
patches for more details.

Comments are always welcome.

Hou Tao (2):
  bpf: Wait for busy refill_work when destorying bpf memory allocator
  bpf: Use __llist_del_all() whenever possbile during memory draining

 kernel/bpf/memalloc.c | 18 ++++++++++++++++--
 1 file changed, 16 insertions(+), 2 deletions(-)

-- 
2.29.2


^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2022-10-21  1:09 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-10-19 11:55 [PATCH bpf 0/2] Wait for busy refill_work when destorying bpf memory allocator Hou Tao
2022-10-19 11:55 ` [PATCH bpf 1/2] bpf: " Hou Tao
2022-10-19 18:38   ` sdf
2022-10-20  1:07     ` Hou Tao
2022-10-20 17:49       ` Stanislav Fomichev
2022-10-21  1:06         ` Hou Tao
2022-10-19 11:55 ` [PATCH bpf 2/2] bpf: Use __llist_del_all() whenever possbile during memory draining Hou Tao
2022-10-19 19:00   ` sdf
2022-10-20  1:17     ` Hou Tao
2022-10-20 17:52       ` Stanislav Fomichev
2022-10-21  1:09         ` Hou Tao

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.