Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 96074179 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "arm64: avoid segfault on el0 cache maintenance" into msm-4.9

parents 3eb01f50 f5a37ef3
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -335,7 +335,8 @@ static int __kprobes do_page_fault(unsigned long addr, unsigned int esr,

	if (is_el0_instruction_abort(esr)) {
		vm_flags = VM_EXEC;
	} else if (esr & ESR_ELx_WNR) {
	} else if (((esr & ESR_ELx_WNR) && !(esr & ESR_ELx_CM)) ||
			((esr & ESR_ELx_CM) && !(mm_flags & FAULT_FLAG_USER))) {
		vm_flags = VM_WRITE;
		mm_flags |= FAULT_FLAG_WRITE;
	}