On Mon, Aug 29, 2022 at 10:27:52PM +0800, Hou Tao wrote: > From: Hou Tao <houtao1@xxxxxxxxxx> > > When there are concurrent task local storage lookup operations, > if updates on per-cpu bpf_task_storage_busy is not preemption-safe, > some updates will be lost due to interleave, the final value of > bpf_task_storage_busy will not be zero and bpf_task_storage_trylock() > on specific cpu will fail forever. > > So add a test case to ensure the update of per-cpu bpf_task_storage_busy > is preemption-safe. This test took my setup 1.5 minute to run and cannot reproduce after running the test in a loop. Can it be reproduced in a much shorter time ? If not, test_maps is probably a better place to do the test. I assume it can be reproduced in arm with this test? Or it can also be reproduced in other platforms with different kconfig. Please paste the test failure message and the platform/kconfig to reproduce it in the commit message.