Bug 121109 - (PATCH) races with handling of prelink.cache
(PATCH) races with handling of prelink.cache
Product: Fedora
Classification: Fedora
Component: prelink (Show other bugs)
All Linux
medium Severity high
: ---
: ---
Assigned To: Jakub Jelinek
Depends On:
  Show dependency treegraph
Reported: 2004-04-17 07:43 EDT by Sami Farin
Modified: 2007-11-30 17:10 EST (History)
1 user (show)

See Also:
Fixed In Version: prelink-0.3.2-1
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2004-05-12 06:07:26 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)
race fixes for prelink.cache handling (2.52 KB, patch)
2004-04-17 07:45 EDT, Sami Farin
no flags Details | Diff
prelink_save_cache patch (1.02 KB, patch)
2004-05-03 09:02 EDT, Jakub Jelinek
no flags Details | Diff

  None (edit)
Description Sami Farin 2004-04-17 07:43:56 EDT
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.6) Gecko/20040113

Description of problem:
1) after unlink(), prelink.cache does not exist
   (now, if another prelink is executed...)
2) after open(), prelink.cache is 0 bytes
   (now, system crash and you might be left with empty cache)
3) if write() fails (disk full, system crash),
   prelink.cache contains invalid data

Version-Release number of selected component (if applicable):

How reproducible:

Steps to Reproduce:
1. run prelink and have bad luck or almost full partition

Additional info:

patch will be attached.
Comment 1 Sami Farin 2004-04-17 07:45:16 EDT
Created attachment 99507 [details]
race fixes for prelink.cache handling
Comment 2 Jakub Jelinek 2004-05-03 09:02:15 EDT
Created attachment 99909 [details]
prelink_save_cache patch

Your patch unfortunately improves one thing and creates another race
(two different prelink's can destroy each other's temporary cache,
I'll attach what I'll use for next prelink release.
Comment 3 Jay Turner 2004-09-02 01:19:45 EDT
An errata has been issued which should help the problem 
described in this bug report. This report is therefore being 
closed with a resolution of ERRATA. For more information
on the solution and/or where to find the updated files, 
please follow the link below. You may reopen this bug report 
if the solution does not work for you.


Note You need to log in before you can comment on or make changes to this bug.