Closed
Bug 1343816
Opened 7 years ago
Closed 7 years ago
CacheFileIOManager::CloseHandleInternal() can remove file belonging to other handle
Categories
(Core :: Networking: Cache, enhancement)
Core
Networking: Cache
Tracking
()
RESOLVED
FIXED
mozilla55
People
(Reporter: CuveeHsu, Assigned: michal)
References
Details
(Whiteboard: [necko-active])
Attachments
(1 file)
1.38 KB,
patch
|
mayhemer
:
review+
|
Details | Diff | Splinter Review |
Per bug 1338675 comment 14, if we doom a cache file and open the same file before mMetadataWritesTimer fires, the cache file will be accidentally doomed. We have a test patch on bug 1338675 comment 13.
Assignee | ||
Comment 1•7 years ago
|
||
It happens if the first handle is invalid, not doomed. If we doom the handle, we rename the file, move file to doomed directory and mFile points to a correct file.
Assignee: nobody → michal.novotny
Blocks: 1338675
Summary: Prevent metadata writes timer accidentally dooming cache file → CacheFileIOManager::CloseHandleInternal() can remove file belonging to other handle
Whiteboard: [necko-next] → [necko-active]
Assignee | ||
Comment 2•7 years ago
|
||
Attachment #8844887 -
Flags: review?(honzab.moz)
Updated•7 years ago
|
Attachment #8844887 -
Flags: review?(honzab.moz) → review+
Assignee | ||
Updated•7 years ago
|
Keywords: checkin-needed
Updated•7 years ago
|
status-firefox54:
--- → affected
status-firefox55:
--- → affected
Pushed by ryanvm@gmail.com: https://hg.mozilla.org/integration/mozilla-inbound/rev/cfe024d13c32 CacheFileIOManager::CloseHandleInternal() can remove file belonging to other handle. r=mayhemer
Keywords: checkin-needed
Comment 4•7 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/cfe024d13c32
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla55
Assignee | ||
Comment 7•7 years ago
|
||
Probably not, it shouldn't happen too often and the cache should be able to handle situations when a file that is expected to exist isn't found on the disk.
Flags: needinfo?(michal.novotny)
Comment 8•7 years ago
|
||
Mark 54 won't fix as this is late for Beta54.
You need to log in
before you can comment on or make changes to this bug.
Description
•