Lines Matching refs:is_write
193 unsigned long address, bool is_write)
212 if (bad_kuap_fault(regs, address, is_write)) {
214 is_write ? "write" : "read", address,
223 return WARN(true, "Bug: %s fault blocked by KUAP!", is_write ? "Write" : "Read");
230 static bool access_pkey_error(bool is_write, bool is_exec, bool is_pkey,
238 if (!arch_vma_access_permitted(vma, is_write, is_exec, 0))
244 static bool access_error(bool is_write, bool is_exec, struct vm_area_struct *vma)
262 if (is_write) {
306 static void sanity_check_fault(bool is_write, bool is_user,
334 * the special !is_write in the below conditional.
354 if (radix_enabled() || is_write)
361 * Define the correct "is_write" bit in error_code based
414 int is_write = page_fault_is_write(error_code);
430 sanity_check_fault(is_write, is_user, error_code, address);
437 if (unlikely(!is_user && bad_kernel_fault(regs, error_code, address, is_write))) {
438 if (kfence_handle_page_fault(address, is_write, regs))
468 if (is_write)
480 if (unlikely(access_pkey_error(is_write, is_exec,
486 if (unlikely(access_error(is_write, is_exec, vma))) {
522 if (unlikely(access_pkey_error(is_write, is_exec,
526 if (unlikely(access_error(is_write, is_exec, vma)))
601 int is_write = page_fault_is_write(regs->dsisr);
615 is_write ? "write" : "read", regs->dar);