bug-tar
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Race condition in creating directories


From: Simon Lees
Subject: Re: Race condition in creating directories
Date: Thu, 25 Aug 2022 21:32:04 +0930
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.1.2

Hi All,

Apologies if this is a completely broken email i'm not subscribed and am trying to reply from the archive.

> Thanks for the bug report. How about the attached patch instead? It's a bit more conservative than what you proposed. (I haven't tested it.)

We tested the 0001-Retry-file-creation-more-aggressively.patch for a customer and found it was possible to cause tar to hang indefinitely while extracting one of the test files from the go test suite. The initial patch from this thread didn't have the same issue. Reproducer below.

wget https://go.dev/src/archive/tar/testdata/pax-global-records.tar

tar --force-local --no-unquote -xf ax-global-records.tar

Thanks

-- 
Simon Lees (Simotek)                            http://simotek.net

Emergency Update Team                           keybase.io/simotek
SUSE Linux                           Adelaide Australia, UTC+10:30
GPG Fingerprint: 5B87 DB9D 88DC F606 E489 CEC5 0922 C246 02F0 014B

Attachment: OpenPGP_signature
Description: OpenPGP digital signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]