[PATCH] Linux: Fix '__close_nocancel_nostatus' clobbering 'errno' [BZ #33035]

Adhemerval Zanella Netto adhemerval.zanella@linaro.org
Fri May 30 16:17:36 GMT 2025



On 30/05/25 13:09, Maciej W. Rozycki wrote:
> On Fri, 30 May 2025, Adhemerval Zanella Netto wrote:
> 
>> It is not clear neither from the bug report nor from commit message why
>> cloberring errno in this case causes the regression. 
> 
>  The `_nostatus' suffix in the handler refers to keeping `errno' intact.  
> It's also clearly documented with the implementation:
> 
> /* Non cancellable close syscall that does not also set errno in case of
>    failure.  */

Right, but this causes a real problem on the interfaces that uses the
__close_nocancel_nostatus? I am asking more to know how far we should
backport it.


More information about the Libc-alpha mailing list