Fixed false-positive image reuploads (#1557)

* Fixed false-positive image reuploads

* Fixed userfaultfd path, removed dead code, simplified calculations

* oopsie

* track potentially dirty images and hash them

* untrack only first page of the image in case of head access

* rebase, initialize hash, fix bounds check

* include image tail in the calculations
This commit is contained in:
Vladislav Mikhalin 2024-11-26 23:45:15 +03:00 committed by GitHub
parent 3f1be5a4ce
commit 18a36c5daa
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
9 changed files with 196 additions and 40 deletions

View file

@ -28,6 +28,9 @@ public:
/// Increase/decrease the number of surface in pages touching the specified region
void UpdatePagesCachedCount(VAddr addr, u64 size, s32 delta);
static VAddr GetPageAddr(VAddr addr);
static VAddr GetNextPageAddr(VAddr addr);
private:
struct Impl;
std::unique_ptr<Impl> impl;