summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorAmery Hung <ameryhung@gmail.com>2025-07-30 21:58:55 +0300
committerAlexei Starovoitov <ast@kernel.org>2025-08-02 04:00:46 +0300
commit784181141782204f6dbbeadf01780e81da5fcb29 (patch)
treec2bbab91c80e6066923f1b4ce54676091b88d2aa /include/linux
parent120f1a950e495d9751fdb5c8b7852d94546dcd03 (diff)
downloadlinux-784181141782204f6dbbeadf01780e81da5fcb29.tar.xz
selftests/bpf: Test concurrent task local data key creation
Test thread-safety of tld_create_key(). Since tld_create_key() does not rely on locks but memory barriers and atomic operations to protect the shared metadata, the thread-safety of the function is non-trivial. Make sure concurrent tld_key_create(), both valid and invalid, can not race and corrupt metatada, which may leads to TLDs not being thread- specific or duplicate TLDs with the same name. Signed-off-by: Amery Hung <ameryhung@gmail.com> Reviewed-by: Emil Tsalapatis <emil@etsalapatis.com> Link: https://lore.kernel.org/r/20250730185903.3574598-5-ameryhung@gmail.com Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Diffstat (limited to 'include/linux')
0 files changed, 0 insertions, 0 deletions