What happens when a process attempts to write to a shared page marked as read-only during the `fork()` operation? Describe the role of the `handle_pte_fault` function in this scenario.
When a process attempts to write to a shared page marked as read-only, a page fault occurs. The kernel handles this fault by copying the page and updating the page table entry. The handle_pte_fault function is part of the page fault handler that deals with copy-on-write scenarios.