fix: disable 'shareable' flag to probe race conditions

This commit is contained in:
Themis Demetriades
2024-12-06 10:56:38 +00:00
parent 65da1659e5
commit 8ac34063d7

View File

@@ -183,6 +183,7 @@ page_load_file (struct page_entry *page)
panics as this should not happen if eviction is working correctly. */
struct thread *t = thread_current ();
bool shareable = !page->writable && file_compare (page->file, t->exec_file);
shareable = false;
if (shareable)
{
lock_acquire (&shared_file_pages_lock);