X86_PF_WRITE
unsigned long error_code = X86_PF_PROT | X86_PF_WRITE;
ctxt->fi.error_code |= X86_PF_WRITE;
ctxt->fi.error_code |= X86_PF_WRITE;
thread->error_code = X86_PF_USER | X86_PF_WRITE;
if ((error_code & (X86_PF_WRITE | X86_PF_USER)) != X86_PF_USER)
tsk->thread.error_code = X86_PF_USER | X86_PF_WRITE;
X86_PF_USER | X86_PF_WRITE);
if (error_code != (X86_PF_WRITE | X86_PF_PROT) &&
if (!arch_vma_access_permitted(vma, (error_code & X86_PF_WRITE),
if (error_code & X86_PF_WRITE) {
if (error_code & X86_PF_WRITE)
(error_code & X86_PF_WRITE) ? "write access" :
if (kfence_handle_page_fault(address, error_code & X86_PF_WRITE, regs))
if (bpf_arena_handle_page_fault(address, error_code & X86_PF_WRITE, regs->ip))
if (!arch_vma_access_permitted(vma, (error_code & X86_PF_WRITE),
if ((error_code & X86_PF_WRITE) && !pte_write(*pte))