Re: [PATCH 04/16] libelf: Fix deadlock in elf_cntl

2023-10-17 Thread Heather McIntyre
You are right. I changed the code to just rely on if (__libelf_readall (elf) == NULL) and this seems to work just fine. On Tue, Oct 10, 2023 at 10:23 AM Mark Wielaard wrote: > Hi Heather, > > On Tue, 2023-10-10 at 15:42 +0200, Mark Wielaard wrote: > > From: Heather McIntyre > > > > * libe

Re: [PATCH 04/16] libelf: Fix deadlock in elf_cntl

2023-10-10 Thread Mark Wielaard
Hi Heather, On Tue, 2023-10-10 at 15:42 +0200, Mark Wielaard wrote: > From: Heather McIntyre > > * libelf/elf_cntl.c (elf_cntl): Move rwlock_wrlock, rwlock_unlock, > inside case switch statements. > > Signed-off-by: Heather S. McIntyre > Signed-off-by: Mark Wielaard > --- > libel