[PATCH] Linux: Work around kernel bugs in chmod on /proc/self/fd paths

Stefan Liebler stli@linux.ibm.com
Thu Mar 5 11:55:00 GMT 2020


On 2/18/20 5:50 PM, Matheus Castanho wrote:
...
> On 2/18/20 11:50 AM, Florian Weimer wrote:
>> Agreed, I've dropped it.
>>
>> New patch below.
>>
>> Florian
...
...
> LGTM.
> 
> Reviewed-by: Matheus Castanho <msc@linux.ibm.com>
> 
> --
> Matheus Castanho
> 

Hi Florian,

I've just recognized that building with -Os fails with
/usr/bin/ld: /path/to/glibc-build/libc_pic.os.clean: in function `fchmodat':
(.text+0xb1c36): undefined reference to `fstatat64'
collect2: error: ld returned 1 exit status

This happens at least on x86_64 and s390x.
I've bisected and this was the first bad commit.

Can you please have a look?

Bye
Stefan



More information about the Libc-alpha mailing list