Re: [PATCH] elf_getdata_rawchunk.c: Fix dummy chunk insertion race condition

2025-09-05 Thread Mark Wielaard
Hi Aaron, I did a quick check for this unlock read lock, aqcuire write lock pattern in the code which we should double check/document/fix if necessary: https://sourceware.org/bugzilla/show_bug.cgi?id=33382 On Thu, 2025-09-04 at 14:24 -0400, Aaron Merey wrote: > When elf_getdata_rawchunk aquires a

[PATCH] elf_getdata_rawchunk.c: Fix dummy chunk insertion race condition

2025-09-04 Thread Aaron Merey
When elf_getdata_rawchunk aquires a new chunk for the first time, it inserts a stack-allocated dummy chunk into a search_tree with an rdlock held. When the real chunk is prepared to replace the dummy chunk, the rdlock is released and a wrlock is then held while replacing the dummy with the real ch