From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id AC5CA3858D33; Sun, 24 Apr 2022 18:48:30 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org AC5CA3858D33 From: "mark at klomp dot org" To: elfutils-devel@sourceware.org Subject: [Bug debuginfod/28240] debuginfod client cache falsely sticky for root user Date: Sun, 24 Apr 2022 18:48:30 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: elfutils X-Bugzilla-Component: debuginfod X-Bugzilla-Version: unspecified X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: mark at klomp dot org X-Bugzilla-Status: REOPENED X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: elfutils-devel@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Elfutils-devel mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 24 Apr 2022 18:48:30 -0000 https://sourceware.org/bugzilla/show_bug.cgi?id=3D28240 --- Comment #3 from Mark Wielaard --- We got rid of the zero-permission 000 files with: commit 8b568fdea8e1baea3d68cc38dec587e4c9219276 Author: Aaron Merey Date: Fri Apr 8 19:37:11 2022 -0400 PR29022: 000-permissions files cause problems for backups 000-permission files currently used for negative caching can cause permission problems for some backup software and disk usage checkers. Fix this by using empty files for negative caching instead. Also use each empty file's mtime to determine the time since last download attempt instead of the cache_miss_s file's mtime. https://sourceware.org/bugzilla/show_bug.cgi?id=3D29022 Tested-by: Milian Wolff Signed-off-by: Aaron Merey And I think that also got rid of this race issue. Any other client that races past us now will either create a new empty file with=20=20=20 open (target_cache_path, O_CREAT|O_EXCL, DEFFILEMODE) or puts in a new non-empty file using rename (target_cache_tmppath, target_cache_path). Both= of which are atomic. So I think this is resolved now. But would like someone else to double chec= k. These races are tricky. --=20 You are receiving this mail because: You are on the CC list for the bug.=