[PATCH v3 0/7] Fix getdents{64} regression on some FS

Adhemerval Zanella adhemerval.zanella@linaro.org
Thu Aug 19 16:19:25 GMT 2021



On 19/08/2021 13:07, John Paul Adrian Glaubitz wrote:
> Hello!
> 
> On 10/21/20 4:15 PM, Adhemerval Zanella wrote:
>> This is updated version [1], rebased against master add with some
>> suggestion from previous review.  The main changes are:
>>
>>   - The translation buffer is allocated as an auxiliarry one (instead
>>     of a reserved spacefrom the dirstream) and readdir might reallocate
>>     it if it finds a large entry.
>>
>>   - Failures in non-LFS readdir (such as d_ino/d_off overflow or failure
>>     in expand the translation buffer) is ignored.  This allows code that
>>     does not handle possible failure in readdir to successful read the
>>     rest of entries in the directory.
>>
>>   - So minor fixes in dirent/tst-seekdir2.c
>>
>>   - Added __attribute_deprecated_msg__ on getdirentries to redirect to
>>     getdents64.
>>
>> I have checked on x86_64-linux-gnu, powerpc64-linux-gnu and on some
>> 32-bit ABIs arm-linux-gnueabihf, powerpc-linux-gnu, and sparcv9-linux-gnu.
> 
> Are there any news on this patch series besides the v3 version? [1]

Unfortunately it is requires reviews. Since it only affects legacy
ABIs there is no much traction for fixing it.

> 
> Thanks,
> Adrian
> 
>> [1] https://patchwork.ozlabs.org/project/glibc/list/?series=209257
> 


More information about the Libc-alpha mailing list